configure
author Sam Lantinga <slouken@libsdl.org>
Sun, 08 Jan 2012 02:23:37 -0500
changeset 6188 e82023802002
parent 6116 66f48d6bf735
child 6217 6952b11b7f46
permissions -rwxr-xr-x
Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11 Scott Percival 2011-07-03 06:41:51 PDT This submission is aimed at making life easier for OpenGL ES capable devices running a X11 stack (e.g. Maemo, Meego, TrimSlice, other ARM SoC boards not running Android). SDL's Pandora support already has the neccesary GLES-to-X11 glue code, however it's all ghetto'd off in Makefile.pandora and not very flexible. The patch: - adds an awesome --enable-video-opengles option to configure - re-modifies the opengles and opengles2 SDL_renderers to use function pointers - no idea why this was removed? - for SDL_Renderers, links in libGLESv1_CM, libGLES_CM (for PowerVR fans) or libGLESv2 at runtime - links in libEGL.so at runtime - the old code made an assumption that eglFunctions could be pulled from the active GLES library, PowerVR for one doesn't let you do that with their libGLESv2 - allows you to pick which of GLES v1 or v2 to load via SDL_GL_CONTEXT_MAJOR_VERSION So far I've tested this on a Nokia N900 (OMAP 3430/SGX 530 running Maemo 5) and a Toshiba AC100 (Tegra 2 running Ubuntu 10.10). I haven't tested it on... well, everything that isn't those two, such as a Pandora, iOS or Android device. The Pandora specific code should be kept intact (fingers crossed), and nothing painfully drastic has been added to the SDL_renderers. The library loading sequence in SDL_x11opengles has been updated to accomodate both NVIDIA's propensity to let developers get away with murder and PowerVR's alternative of punishing every missed step. The test apps work okay with GLES or GLES2 as the renderer. For some reason alpha blending doesn't seem to work on the Tegra 2; last week NVIDIA pushed out a new set of X11 GLES drivers, so I'll try and investigate once I upgrade those. Also, this patch adds things to configure.in, include/SDL_config.h.in and test/configure.in. I didn't know what the policy was re. committing generated spaghetti from autotools, so ./autogen.sh has to be run again. Sorry. I think that's about everything, let me know if there's anything I've overlooked.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
#! /bin/sh
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     2
# Guess values for system-dependent variables and create Makefiles.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
     3
# Generated by GNU Autoconf 2.61.
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     4
#
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
     6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     7
# This configure script is free software; the Free Software Foundation
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     8
# gives unlimited permission to copy, distribute and modify it.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
     9
## --------------------- ##
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    10
## M4sh Initialization.  ##
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    11
## --------------------- ##
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    12
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    13
# Be more Bourne compatible
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    14
DUALCASE=1; export DUALCASE # for MKS sh
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    16
  emulate sh
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    17
  NULLCMD=:
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    19
  # is contrary to our usage.  Disable this feature.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    20
  alias -g '${1+"$@"}'='"$@"'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    21
  setopt NO_GLOB_SUBST
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    22
else
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    23
  case `(set -o) 2>/dev/null` in
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    24
  *posix*) set -o posix ;;
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    25
esac
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    26
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    27
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    28
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    29
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    30
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    31
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    32
# PATH needs CR
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    33
# Avoid depending upon Character Ranges.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    37
as_cr_digits='0123456789'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    38
as_cr_alnum=$as_cr_Letters$as_cr_digits
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    39
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    40
# The user is always right.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    41
if test "${PATH_SEPARATOR+set}" != set; then
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    42
  echo "#! /bin/sh" >conf$$.sh
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    43
  echo  "exit 0"   >>conf$$.sh
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    44
  chmod +x conf$$.sh
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    46
    PATH_SEPARATOR=';'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    47
  else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    48
    PATH_SEPARATOR=:
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    49
  fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    50
  rm -f conf$$.sh
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    51
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    52
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    53
# Support unset when possible.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    55
  as_unset=unset
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    56
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    57
  as_unset=false
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    58
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    59
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    60
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    61
# IFS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    62
# We need space, tab and new line, in precisely that order.  Quoting is
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    63
# there to prevent editors from complaining about space-tab.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    65
# splitting by setting IFS to empty value.)
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    66
as_nl='
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    67
'
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    68
IFS=" ""	$as_nl"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    69
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    70
# Find who we are.  Look in the path if we contain no directory separator.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    71
case $0 in
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    72
  *[\\/]* ) as_myself=$0 ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    74
for as_dir in $PATH
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    75
do
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    76
  IFS=$as_save_IFS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    77
  test -z "$as_dir" && as_dir=.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    79
done
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    80
IFS=$as_save_IFS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    81
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    82
     ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    83
esac
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    84
# We did not find ourselves, most probably we were run as `sh COMMAND'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    85
# in which case we are not to be found in the path.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    86
if test "x$as_myself" = x; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    87
  as_myself=$0
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    88
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    89
if test ! -f "$as_myself"; then
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    91
  { (exit 1); exit 1; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    92
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    93
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    94
# Work around bugs in pre-3.0 UWIN ksh.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    95
for as_var in ENV MAIL MAILPATH
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
    96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    97
done
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    98
PS1='$ '
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    99
PS2='> '
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   100
PS4='+ '
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   101
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   102
# NLS nuisances.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   103
for as_var in \
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   106
  LC_TELEPHONE LC_TIME
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   107
do
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   109
    eval $as_var=C; export $as_var
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   110
  else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   112
  fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   113
done
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   114
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   115
# Required to use basename.
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   116
if expr a : '\(a\)' >/dev/null 2>&1 &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   118
  as_expr=expr
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   119
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   120
  as_expr=false
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   121
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   122
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   124
  as_basename=basename
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   125
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   126
  as_basename=false
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   127
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   128
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   129
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   130
# Name of the executable.
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   131
as_me=`$as_basename -- "$0" ||
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   133
	 X"$0" : 'X\(//\)$' \| \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   134
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   135
echo X/"$0" |
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   137
	    s//\1/
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   138
	    q
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   139
	  }
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   140
	  /^X\/\(\/\/\)$/{
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   141
	    s//\1/
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   142
	    q
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   143
	  }
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   144
	  /^X\/\(\/\).*/{
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   145
	    s//\1/
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   146
	    q
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   147
	  }
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   148
	  s/.*/./; q'`
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   149
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   150
# CDPATH.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   151
$as_unset CDPATH
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   152
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   153
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   154
if test "x$CONFIG_SHELL" = x; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   155
  if (eval ":") 2>/dev/null; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   156
  as_have_required=yes
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   157
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   158
  as_have_required=no
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   159
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   160
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   161
  if test $as_have_required = yes && 	 (eval ":
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   162
(as_func_return () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   163
  (exit \$1)
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   164
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   165
as_func_success () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   166
  as_func_return 0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   167
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   168
as_func_failure () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   169
  as_func_return 1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   170
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   171
as_func_ret_success () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   172
  return 0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   173
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   174
as_func_ret_failure () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   175
  return 1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   176
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   177
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   178
exitcode=0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   179
if as_func_success; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   180
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   181
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   182
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   183
  echo as_func_success failed.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   184
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   185
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   186
if as_func_failure; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   187
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   188
  echo as_func_failure succeeded.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   189
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   190
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   191
if as_func_ret_success; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   192
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   193
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   194
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   195
  echo as_func_ret_success failed.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   196
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   197
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   198
if as_func_ret_failure; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   199
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   200
  echo as_func_ret_failure succeeded.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   201
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   202
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   204
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   205
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   206
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   207
  echo positional parameters were not saved.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   208
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   209
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   210
test \$exitcode = 0) || { (exit 1); exit 1; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   211
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   212
(
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   213
  as_lineno_1=\$LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   214
  as_lineno_2=\$LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   217
") 2> /dev/null; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   218
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   219
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   220
  as_candidate_shells=
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   223
do
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   224
  IFS=$as_save_IFS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   225
  test -z "$as_dir" && as_dir=.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   226
  case $as_dir in
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   227
	 /*)
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   228
	   for as_base in sh bash ksh sh5; do
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   229
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   230
	   done;;
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   231
       esac
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   232
done
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   233
IFS=$as_save_IFS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   234
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   235
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   236
      for as_shell in $as_candidate_shells $SHELL; do
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   237
	 # Try only shells that exist, to save several forks.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   238
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   239
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   241
  emulate sh
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   242
  NULLCMD=:
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   244
  # is contrary to our usage.  Disable this feature.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   245
  alias -g '${1+"$@"}'='"$@"'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   246
  setopt NO_GLOB_SUBST
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   247
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   248
  case `(set -o) 2>/dev/null` in
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   249
  *posix*) set -o posix ;;
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   250
esac
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   251
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   252
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   253
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   254
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   255
:
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   256
_ASEOF
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   257
}; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   258
  CONFIG_SHELL=$as_shell
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   259
	       as_have_required=yes
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   260
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   262
  emulate sh
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   263
  NULLCMD=:
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   265
  # is contrary to our usage.  Disable this feature.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   266
  alias -g '${1+"$@"}'='"$@"'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   267
  setopt NO_GLOB_SUBST
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   268
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   269
  case `(set -o) 2>/dev/null` in
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   270
  *posix*) set -o posix ;;
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   271
esac
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   272
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   273
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   274
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   275
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   276
:
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   277
(as_func_return () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   278
  (exit $1)
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   279
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   280
as_func_success () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   281
  as_func_return 0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   282
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   283
as_func_failure () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   284
  as_func_return 1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   285
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   286
as_func_ret_success () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   287
  return 0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   288
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   289
as_func_ret_failure () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   290
  return 1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   291
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   292
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   293
exitcode=0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   294
if as_func_success; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   295
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   296
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   297
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   298
  echo as_func_success failed.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   299
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   300
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   301
if as_func_failure; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   302
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   303
  echo as_func_failure succeeded.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   304
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   305
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   306
if as_func_ret_success; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   307
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   308
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   309
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   310
  echo as_func_ret_success failed.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   311
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   312
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   313
if as_func_ret_failure; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   314
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   315
  echo as_func_ret_failure succeeded.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   316
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   317
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   318
if ( set x; as_func_ret_success y && test x = "$1" ); then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   319
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   320
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   321
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   322
  echo positional parameters were not saved.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   323
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   324
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   325
test $exitcode = 0) || { (exit 1); exit 1; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   326
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   327
(
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   328
  as_lineno_1=$LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   329
  as_lineno_2=$LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   332
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   333
_ASEOF
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   334
}; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   335
  break
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   336
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   337
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   338
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   339
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   340
      done
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   341
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   342
      if test "x$CONFIG_SHELL" != x; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   343
  for as_var in BASH_ENV ENV
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   345
        done
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   346
        export CONFIG_SHELL
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   348
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   349
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   350
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   351
    if test $as_have_required = no; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   352
  echo This script requires a shell more modern than all the
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   353
      echo shells that I found on your system.  Please install a
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   354
      echo modern shell, or manually run the script under such a
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   355
      echo shell if you do have one.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   356
      { (exit 1); exit 1; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   357
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   358
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   359
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   360
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   361
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   362
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   363
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   364
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   365
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   366
(eval "as_func_return () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   367
  (exit \$1)
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   368
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   369
as_func_success () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   370
  as_func_return 0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   371
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   372
as_func_failure () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   373
  as_func_return 1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   374
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   375
as_func_ret_success () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   376
  return 0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   377
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   378
as_func_ret_failure () {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   379
  return 1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   380
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   381
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   382
exitcode=0
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   383
if as_func_success; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   384
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   385
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   386
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   387
  echo as_func_success failed.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   388
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   389
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   390
if as_func_failure; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   391
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   392
  echo as_func_failure succeeded.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   393
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   394
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   395
if as_func_ret_success; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   396
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   397
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   398
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   399
  echo as_func_ret_success failed.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   400
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   401
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   402
if as_func_ret_failure; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   403
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   404
  echo as_func_ret_failure succeeded.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   405
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   406
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   408
  :
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   409
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   410
  exitcode=1
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   411
  echo positional parameters were not saved.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   412
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   413
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   414
test \$exitcode = 0") || {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   415
  echo No shell found that supports shell functions.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   416
  echo Please tell autoconf@gnu.org about your system,
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   417
  echo including any error possibly output before this
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   418
  echo message
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   419
}
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   420
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   421
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   422
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   423
  as_lineno_1=$LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   424
  as_lineno_2=$LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   427
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   429
  # uniformly replaced by the line number.  The first 'sed' inserts a
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   430
  # line-number line after each line using $LINENO; the second 'sed'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   431
  # does the real work.  The second script uses 'N' to pair each
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   432
  # line-number line with the line containing $LINENO, and appends
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   433
  # trailing '-' during substitution so that $LINENO is not a special
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   434
  # case at line end.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   438
  sed -n '
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   439
    p
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   440
    /[$]LINENO/=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   441
  ' <$as_myself |
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   442
    sed '
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   443
      s/[$]LINENO.*/&-/
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   444
      t lineno
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   445
      b
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   446
      :lineno
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   447
      N
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   448
      :loop
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   450
      t loop
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   451
      s/-\n.*//
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   452
    ' >$as_me.lineno &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   453
  chmod +x "$as_me.lineno" ||
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   455
   { (exit 1); exit 1; }; }
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   456
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   457
  # Don't try to exec as it changes $[0], causing all sort of problems
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   458
  # (the dirname of $[0] is not the place where we might find the
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   459
  # original and so on.  Autoconf is especially sensitive to this).
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   460
  . "./$as_me.lineno"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   461
  # Exit status is that of the last command.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   462
  exit
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   463
}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   464
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   465
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   467
  as_dirname=dirname
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   468
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   469
  as_dirname=false
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   470
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   471
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   472
ECHO_C= ECHO_N= ECHO_T=
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   473
case `echo -n x` in
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   474
-n*)
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   475
  case `echo 'x\c'` in
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   476
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   477
  *)   ECHO_C='\c';;
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   478
  esac;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   479
*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   480
  ECHO_N='-n';;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   481
esac
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   482
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   483
if expr a : '\(a\)' >/dev/null 2>&1 &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   485
  as_expr=expr
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   486
else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   487
  as_expr=false
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   488
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   489
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   490
rm -f conf$$ conf$$.exe conf$$.file
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   491
if test -d conf$$.dir; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   492
  rm -f conf$$.dir/conf$$.file
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   493
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   494
  rm -f conf$$.dir
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   495
  mkdir conf$$.dir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   496
fi
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   497
echo >conf$$.file
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   498
if ln -s conf$$.file conf$$ 2>/dev/null; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   499
  as_ln_s='ln -s'
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   500
  # ... but there are two gotchas:
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   503
  # In both cases, we have to default to `cp -p'.
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   505
    as_ln_s='cp -p'
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   506
elif ln conf$$.file conf$$ 2>/dev/null; then
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   507
  as_ln_s=ln
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   508
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   509
  as_ln_s='cp -p'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   510
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   512
rmdir conf$$.dir 2>/dev/null
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   513
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   514
if mkdir -p . 2>/dev/null; then
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   515
  as_mkdir_p=:
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   516
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   517
  test -d ./-p && rmdir ./-p
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   518
  as_mkdir_p=false
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   519
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   520
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   521
if test -x / >/dev/null 2>&1; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   522
  as_test_x='test -x'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   523
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   524
  if ls -dL / >/dev/null 2>&1; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   525
    as_ls_L_option=L
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   526
  else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   527
    as_ls_L_option=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   528
  fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   529
  as_test_x='
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   530
    eval sh -c '\''
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   531
      if test -d "$1"; then
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   532
        test -d "$1/.";
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   533
      else
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   534
	case $1 in
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   535
        -*)set "./$1";;
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   536
	esac;
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   537
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   538
	???[sx]*):;;*)false;;esac;fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   539
    '\'' sh
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   540
  '
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   541
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   542
as_executable_p=$as_test_x
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   543
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   544
# Sed expression to map a string onto a valid CPP name.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   546
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   547
# Sed expression to map a string onto a valid variable name.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   549
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   550
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   551
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   552
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   553
# Check that we are running under the correct shell.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   554
SHELL=${CONFIG_SHELL-/bin/sh}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   555
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   556
case X$lt_ECHO in
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   557
X*--fallback-echo)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   558
  # Remove one level of quotation (which was required for Make).
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   559
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   560
  ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   561
esac
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   562
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   563
ECHO=${lt_ECHO-echo}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   564
if test "X$1" = X--no-reexec; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   565
  # Discard the --no-reexec flag, and continue.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   566
  shift
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   567
elif test "X$1" = X--fallback-echo; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   568
  # Avoid inline document here, it may be left over
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   569
  :
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   570
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   571
  # Yippee, $ECHO works!
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   572
  :
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   573
else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   574
  # Restart under the correct shell.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   576
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   577
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   578
if test "X$1" = X--fallback-echo; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   579
  # used as fallback echo
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   580
  shift
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   581
  cat <<_LT_EOF
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   582
$*
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   583
_LT_EOF
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   584
  exit 0
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   585
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   586
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   587
# The HP-UX ksh and POSIX shell print the target directory to stdout
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   588
# if CDPATH is set.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   590
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   591
if test -z "$lt_ECHO"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   592
  if test "X${echo_test_string+set}" != Xset; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   593
    # find a string as large as possible, as long as the shell can cope with it
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   594
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   595
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   596
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   597
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   598
      then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   599
        break
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   600
      fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   601
    done
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   602
  fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   603
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   604
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   605
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   606
     test "X$echo_testing_string" = "X$echo_test_string"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   607
    :
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   608
  else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   609
    # The Solaris, AIX, and Digital Unix default echo programs unquote
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   610
    # backslashes.  This makes it impossible to quote backslashes using
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   611
    #   echo "$something" | sed 's/\\/\\\\/g'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   612
    #
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   613
    # So, first we look for a working echo in the user's PATH.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   614
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   615
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   616
    for dir in $PATH /usr/ucb; do
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   617
      IFS="$lt_save_ifs"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   618
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   619
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   620
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   621
         test "X$echo_testing_string" = "X$echo_test_string"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   622
        ECHO="$dir/echo"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   623
        break
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   624
      fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   625
    done
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   626
    IFS="$lt_save_ifs"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   627
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   628
    if test "X$ECHO" = Xecho; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   629
      # We didn't find a better echo, so look for alternatives.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   630
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   631
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   632
         test "X$echo_testing_string" = "X$echo_test_string"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   633
        # This shell has a builtin print -r that does the trick.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   634
        ECHO='print -r'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   635
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   636
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   637
        # If we have ksh, try running configure again with it.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   638
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   639
        export ORIGINAL_CONFIG_SHELL
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   640
        CONFIG_SHELL=/bin/ksh
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   641
        export CONFIG_SHELL
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   642
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   643
      else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   644
        # Try using printf.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   645
        ECHO='printf %s\n'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   646
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   647
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   648
	   test "X$echo_testing_string" = "X$echo_test_string"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   649
	  # Cool, printf works
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   650
	  :
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   651
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   652
	     test "X$echo_testing_string" = 'X\t' &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   653
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   654
	     test "X$echo_testing_string" = "X$echo_test_string"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   655
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   656
	  export CONFIG_SHELL
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   657
	  SHELL="$CONFIG_SHELL"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   658
	  export SHELL
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   659
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   660
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   661
	     test "X$echo_testing_string" = 'X\t' &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   662
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   663
	     test "X$echo_testing_string" = "X$echo_test_string"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   664
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   665
        else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   666
	  # maybe with a smaller string...
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   667
	  prev=:
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   668
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   669
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   670
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   671
	    then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   672
	      break
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   673
	    fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   674
	    prev="$cmd"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   675
	  done
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   676
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   677
	  if test "$prev" != 'sed 50q "$0"'; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   678
	    echo_test_string=`eval $prev`
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   679
	    export echo_test_string
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   680
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   681
	  else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   682
	    # Oops.  We lost completely, so just stick with echo.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   683
	    ECHO=echo
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   684
	  fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   685
        fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   686
      fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   687
    fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   688
  fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   689
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   690
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   691
# Copy echo and quote the copy suitably for passing to libtool from
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   692
# the Makefile, instead of quoting the original, which is used later.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   693
lt_ECHO=$ECHO
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   694
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   695
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   696
fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   697
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   698
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   699
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   700
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   701
exec 7<&0 </dev/null 6>&1
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   702
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   703
# Name of the host.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   704
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   705
# so uname gets run too.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   706
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   707
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   708
#
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   709
# Initializations.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   710
#
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   711
ac_default_prefix=/usr/local
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   712
ac_clean_files=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   713
ac_config_libobj_dir=.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   714
LIBOBJS=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   715
cross_compiling=no
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   716
subdirs=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   717
MFLAGS=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   718
MAKEFLAGS=
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   719
SHELL=${CONFIG_SHELL-/bin/sh}
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   720
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   721
# Identity of this package.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   722
PACKAGE_NAME=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   723
PACKAGE_TARNAME=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   724
PACKAGE_VERSION=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   725
PACKAGE_STRING=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   726
PACKAGE_BUGREPORT=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   727
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   728
ac_unique_file="README"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   729
# Factoring default headers for most tests.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   730
ac_includes_default="\
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   731
#include <stdio.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   732
#ifdef HAVE_SYS_TYPES_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   733
# include <sys/types.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   734
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   735
#ifdef HAVE_SYS_STAT_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   736
# include <sys/stat.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   737
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   738
#ifdef STDC_HEADERS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   739
# include <stdlib.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   740
# include <stddef.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   741
#else
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   742
# ifdef HAVE_STDLIB_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   743
#  include <stdlib.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   744
# endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   745
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   746
#ifdef HAVE_STRING_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   747
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   748
#  include <memory.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   749
# endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   750
# include <string.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   751
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   752
#ifdef HAVE_STRINGS_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   753
# include <strings.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   754
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   755
#ifdef HAVE_INTTYPES_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   756
# include <inttypes.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   757
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   758
#ifdef HAVE_STDINT_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   759
# include <stdint.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   760
#endif
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   761
#ifdef HAVE_UNISTD_H
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   762
# include <unistd.h>
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   763
#endif"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   764
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   765
ac_subst_vars='SHELL
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   766
PATH_SEPARATOR
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   767
PACKAGE_NAME
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   768
PACKAGE_TARNAME
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   769
PACKAGE_VERSION
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   770
PACKAGE_STRING
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   771
PACKAGE_BUGREPORT
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   772
exec_prefix
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   773
prefix
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   774
program_transform_name
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   775
bindir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   776
sbindir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   777
libexecdir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   778
datarootdir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   779
datadir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   780
sysconfdir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   781
sharedstatedir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   782
localstatedir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   783
includedir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   784
oldincludedir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   785
docdir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   786
infodir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   787
htmldir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   788
dvidir
6101
4b88086910d3 Fix buildbot sdl-macosx-unix-x86 and sdl-macosx-amd64 compiler warnings
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6086
diff changeset
   789
pdfdir
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   790
psdir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   791
libdir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   792
localedir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   793
mandir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   794
DEFS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   795
ECHO_C
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   796
ECHO_N
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   797
ECHO_T
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   798
LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   799
build_alias
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   800
host_alias
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   801
target_alias
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   802
SDL_MAJOR_VERSION
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   803
SDL_MINOR_VERSION
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   804
SDL_MICRO_VERSION
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   805
SDL_INTERFACE_AGE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   806
SDL_BINARY_AGE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   807
SDL_VERSION
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   808
AS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   809
DLLTOOL
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   810
OBJDUMP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   811
LIBTOOL
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   812
build
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   813
build_cpu
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   814
build_vendor
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   815
build_os
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   816
host
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   817
host_cpu
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   818
host_vendor
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   819
host_os
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   820
CC
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   821
CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   822
LDFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   823
CPPFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   824
ac_ct_CC
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   825
EXEEXT
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   826
OBJEXT
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   827
SED
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   828
GREP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   829
EGREP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   830
FGREP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   831
LD
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   832
DUMPBIN
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   833
ac_ct_DUMPBIN
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   834
NM
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   835
LN_S
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   836
AR
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   837
STRIP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   838
RANLIB
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   839
lt_ECHO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   840
DSYMUTIL
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   841
NMEDIT
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   842
LIPO
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   843
OTOOL
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   844
OTOOL64
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   845
CPP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   846
LT_RELEASE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   847
LT_CURRENT
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   848
LT_REVISION
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   849
LT_AGE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   850
CXX
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   851
CXXFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   852
ac_ct_CXX
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   853
CXXCPP
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   854
INSTALL_PROGRAM
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   855
INSTALL_SCRIPT
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   856
INSTALL_DATA
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   857
SET_MAKE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   858
WINDRES
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   859
ALLOCA
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   860
LIBOBJS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   861
POW_LIB
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   862
ALSA_CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   863
ALSA_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   864
ESD_CONFIG
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   865
ESD_CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   866
ESD_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   867
PKG_CONFIG
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   868
ARTSCONFIG
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   869
XMKMF
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   870
X_CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   871
X_PRE_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   872
X_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   873
X_EXTRA_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   874
DIRECTFBCONFIG
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   875
SDL_CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   876
SDL_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   877
SDL_STATIC_LIBS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   878
SDL_RLD_FLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   879
ENABLE_SHARED_TRUE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   880
ENABLE_SHARED_FALSE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   881
ENABLE_STATIC_TRUE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   882
ENABLE_STATIC_FALSE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   883
ac_aux_dir
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   884
INCLUDE
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   885
OBJECTS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   886
VERSION_OBJECTS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   887
SDLMAIN_OBJECTS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   888
BUILD_CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   889
EXTRA_CFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   890
BUILD_LDFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   891
EXTRA_LDFLAGS
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   892
LTLIBOBJS'
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   893
ac_subst_files=''
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   894
      ac_precious_vars='build_alias
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   895
host_alias
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   896
target_alias
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   897
CC
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   898
CFLAGS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   899
LDFLAGS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   900
LIBS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   901
CPPFLAGS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   902
CPP
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   903
CXX
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   904
CXXFLAGS
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   905
CCC
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   906
CXXCPP
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   907
XMKMF'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   908
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   909
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   910
# Initialize some variables set by options.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   911
ac_init_help=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   912
ac_init_version=false
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   913
# The variables have the same names as the options, with
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   914
# dashes changed to underlines.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   915
cache_file=/dev/null
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   916
exec_prefix=NONE
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   917
no_create=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   918
no_recursion=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   919
prefix=NONE
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   920
program_prefix=NONE
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   921
program_suffix=NONE
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   922
program_transform_name=s,x,x,
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   923
silent=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   924
site=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   925
srcdir=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   926
verbose=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   927
x_includes=NONE
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   928
x_libraries=NONE
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   929
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   930
# Installation directory options.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   931
# These are left unexpanded so users can "make install exec_prefix=/foo"
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   932
# and all the variables that are supposed to be based on exec_prefix
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   933
# by default will actually change.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   934
# Use braces instead of parens because sh, perl, etc. also accept them.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   935
# (The list follows the same order as the GNU Coding Standards.)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   936
bindir='${exec_prefix}/bin'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   937
sbindir='${exec_prefix}/sbin'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   938
libexecdir='${exec_prefix}/libexec'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   939
datarootdir='${prefix}/share'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   940
datadir='${datarootdir}'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   941
sysconfdir='${prefix}/etc'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   942
sharedstatedir='${prefix}/com'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   943
localstatedir='${prefix}/var'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   944
includedir='${prefix}/include'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   945
oldincludedir='/usr/include'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   946
docdir='${datarootdir}/doc/${PACKAGE}'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   947
infodir='${datarootdir}/info'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   948
htmldir='${docdir}'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   949
dvidir='${docdir}'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   950
pdfdir='${docdir}'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   951
psdir='${docdir}'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   952
libdir='${exec_prefix}/lib'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   953
localedir='${datarootdir}/locale'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   954
mandir='${datarootdir}/man'
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   955
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   956
ac_prev=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   957
ac_dashdash=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   958
for ac_option
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   959
do
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   960
  # If the previous option needs an argument, assign it.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   961
  if test -n "$ac_prev"; then
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   962
    eval $ac_prev=\$ac_option
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   963
    ac_prev=
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   964
    continue
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   965
  fi
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   966
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   967
  case $ac_option in
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   968
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
   969
  *)	ac_optarg=yes ;;
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   970
  esac
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   971
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   972
  # Accept the important Cygnus configure options, so we can diagnose typos.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   973
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   974
  case $ac_dashdash$ac_option in
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   975
  --)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   976
    ac_dashdash=yes ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   977
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   978
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   979
    ac_prev=bindir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   980
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   981
    bindir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   982
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   983
  -build | --build | --buil | --bui | --bu)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   984
    ac_prev=build_alias ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   985
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   986
    build_alias=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   987
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   988
  -cache-file | --cache-file | --cache-fil | --cache-fi \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   989
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   990
    ac_prev=cache_file ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   991
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   992
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   993
    cache_file=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   994
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   995
  --config-cache | -C)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   996
    cache_file=config.cache ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   997
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   998
  -datadir | --datadir | --datadi | --datad)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   999
    ac_prev=datadir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1000
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1001
    datadir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1002
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1003
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1004
  | --dataroo | --dataro | --datar)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1005
    ac_prev=datarootdir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1006
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1007
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1008
    datarootdir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1009
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1010
  -disable-* | --disable-*)
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1011
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1012
    # Reject names that are not valid shell variable names.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1013
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1014
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1015
   { (exit 1); exit 1; }; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1016
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1017
    eval enable_$ac_feature=no ;;
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1018
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1019
  -docdir | --docdir | --docdi | --doc | --do)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1020
    ac_prev=docdir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1021
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1022
    docdir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1023
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1024
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1025
    ac_prev=dvidir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1026
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1027
    dvidir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1028
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1029
  -enable-* | --enable-*)
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1030
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1031
    # Reject names that are not valid shell variable names.
6102
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1032
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1033
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1034
   { (exit 1); exit 1; }; }
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1035
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
bf7254ec1bf9 Backed out most of changeset 4b88086910d3, at Andreas's request.
Ryan C. Gordon <icculus@icculus.org>
parents: 6101
diff changeset
  1036
    eval enable_$ac_feature=\$ac_optarg ;;
5310
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1037
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1038
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1039
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1040
  | --exec | --exe | --ex)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1041
    ac_prev=exec_prefix ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1042
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1043
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1044
  | --exec=* | --exe=* | --ex=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1045
    exec_prefix=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1046
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1047
  -gas | --gas | --ga | --g)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1048
    # Obsolete; use --with-gas.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1049
    with_gas=yes ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1050
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1051
  -help | --help | --hel | --he | -h)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1052
    ac_init_help=long ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1053
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1054
    ac_init_help=recursive ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1055
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1056
    ac_init_help=short ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1057
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1058
  -host | --host | --hos | --ho)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1059
    ac_prev=host_alias ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1060
  -host=* | --host=* | --hos=* | --ho=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1061
    host_alias=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1062
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1063
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1064
    ac_prev=htmldir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1065
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1066
  | --ht=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1067
    htmldir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1068
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1069
  -includedir | --includedir | --includedi | --included | --include \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1070
  | --includ | --inclu | --incl | --inc)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1071
    ac_prev=includedir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1072
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1073
  | --includ=* | --inclu=* | --incl=* | --inc=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1074
    includedir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1075
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1076
  -infodir | --infodir | --infodi | --infod | --info | --inf)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1077
    ac_prev=infodir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1078
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1079
    infodir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1080
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1081
  -libdir | --libdir | --libdi | --libd)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1082
    ac_prev=libdir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1083
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1084
    libdir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1085
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1086
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1087
  | --libexe | --libex | --libe)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1088
    ac_prev=libexecdir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1089
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1090
  | --libexe=* | --libex=* | --libe=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1091
    libexecdir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1092
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1093
  -localedir | --localedir | --localedi | --localed | --locale)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1094
    ac_prev=localedir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1095
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1096
    localedir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1097
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1098
  -localstatedir | --localstatedir | --localstatedi | --localstated \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1099
  | --localstate | --localstat | --localsta | --localst | --locals)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1100
    ac_prev=localstatedir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1101
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1102
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1103
    localstatedir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1104
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1105
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1106
    ac_prev=mandir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1107
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1108
    mandir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1109
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1110
  -nfp | --nfp | --nf)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1111
    # Obsolete; use --without-fp.
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1112
    with_fp=no ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1113
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1114
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1115
  | --no-cr | --no-c | -n)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1116
    no_create=yes ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1117
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1118
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1119
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1120
    no_recursion=yes ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1121
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1122
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1123
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1124
  | --oldin | --oldi | --old | --ol | --o)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1125
    ac_prev=oldincludedir ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1126
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1127
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1128
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1129
    oldincludedir=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1130
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1131
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1132
    ac_prev=prefix ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1133
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1134
    prefix=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1135
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1136
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1137
  | --program-pre | --program-pr | --program-p)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1138
    ac_prev=program_prefix ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1139
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1140
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1141
    program_prefix=$ac_optarg ;;
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1142
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1143
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
a9945ce48999 Made it possible to build SDL from a fresh checkout without any additional steps.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset