test/configure
author Sam Lantinga <slouken@libsdl.org>
Thu, 20 Sep 2012 21:13:10 -0700
changeset 6442 2d3caa191dc4
parent 6390 3047baa4a5e0
child 6598 81d643a61b54
permissions -rwxr-xr-x
Updated to the latest versions of autotools and config.guess/config.sub
autoconf-2.69
automake-1.12
libtool-2.4.2
slouken@5310
     1
#! /bin/sh
slouken@5310
     2
# Guess values for system-dependent variables and create Makefiles.
slouken@6442
     3
# Generated by GNU Autoconf 2.69.
icculus@6390
     4
#
slouken@5310
     5
#
slouken@6442
     6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
icculus@6390
     7
#
icculus@6390
     8
#
slouken@5310
     9
# This configure script is free software; the Free Software Foundation
slouken@5310
    10
# gives unlimited permission to copy, distribute and modify it.
icculus@6390
    11
## -------------------- ##
icculus@6390
    12
## M4sh Initialization. ##
icculus@6390
    13
## -------------------- ##
slouken@5310
    14
slouken@5310
    15
# Be more Bourne compatible
slouken@5310
    16
DUALCASE=1; export DUALCASE # for MKS sh
icculus@6390
    17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
slouken@5310
    18
  emulate sh
slouken@5310
    19
  NULLCMD=:
icculus@6390
    20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
slouken@5310
    21
  # is contrary to our usage.  Disable this feature.
slouken@5310
    22
  alias -g '${1+"$@"}'='"$@"'
slouken@5310
    23
  setopt NO_GLOB_SUBST
slouken@5310
    24
else
icculus@6390
    25
  case `(set -o) 2>/dev/null` in #(
icculus@6390
    26
  *posix*) :
icculus@6390
    27
    set -o posix ;; #(
icculus@6390
    28
  *) :
icculus@6390
    29
     ;;
slouken@5310
    30
esac
slouken@5310
    31
fi
slouken@5310
    32
slouken@5310
    33
icculus@6390
    34
as_nl='
icculus@6390
    35
'
icculus@6390
    36
export as_nl
icculus@6390
    37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
icculus@6390
    38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
icculus@6390
    39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
icculus@6390
    40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
icculus@6390
    41
# Prefer a ksh shell builtin over an external printf program on Solaris,
icculus@6390
    42
# but without wasting forks for bash or zsh.
icculus@6390
    43
if test -z "$BASH_VERSION$ZSH_VERSION" \
icculus@6390
    44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
icculus@6390
    45
  as_echo='print -r --'
icculus@6390
    46
  as_echo_n='print -rn --'
icculus@6390
    47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
icculus@6390
    48
  as_echo='printf %s\n'
icculus@6390
    49
  as_echo_n='printf %s'
icculus@6390
    50
else
icculus@6390
    51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
icculus@6390
    52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
icculus@6390
    53
    as_echo_n='/usr/ucb/echo -n'
icculus@6390
    54
  else
icculus@6390
    55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
icculus@6390
    56
    as_echo_n_body='eval
icculus@6390
    57
      arg=$1;
icculus@6390
    58
      case $arg in #(
icculus@6390
    59
      *"$as_nl"*)
icculus@6390
    60
	expr "X$arg" : "X\\(.*\\)$as_nl";
icculus@6390
    61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
icculus@6390
    62
      esac;
icculus@6390
    63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
icculus@6390
    64
    '
icculus@6390
    65
    export as_echo_n_body
icculus@6390
    66
    as_echo_n='sh -c $as_echo_n_body as_echo'
icculus@6390
    67
  fi
icculus@6390
    68
  export as_echo_body
icculus@6390
    69
  as_echo='sh -c $as_echo_body as_echo'
icculus@6390
    70
fi
slouken@5310
    71
slouken@5310
    72
# The user is always right.
slouken@5310
    73
if test "${PATH_SEPARATOR+set}" != set; then
icculus@6390
    74
  PATH_SEPARATOR=:
icculus@6390
    75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
icculus@6390
    76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
icculus@6390
    77
      PATH_SEPARATOR=';'
icculus@6390
    78
  }
slouken@5310
    79
fi
slouken@5310
    80
slouken@5310
    81
slouken@5310
    82
# IFS
slouken@5310
    83
# We need space, tab and new line, in precisely that order.  Quoting is
slouken@5310
    84
# there to prevent editors from complaining about space-tab.
slouken@5310
    85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
slouken@5310
    86
# splitting by setting IFS to empty value.)
slouken@5310
    87
IFS=" ""	$as_nl"
slouken@5310
    88
slouken@5310
    89
# Find who we are.  Look in the path if we contain no directory separator.
icculus@6390
    90
as_myself=
icculus@6390
    91
case $0 in #((
slouken@5310
    92
  *[\\/]* ) as_myself=$0 ;;
slouken@5310
    93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
    94
for as_dir in $PATH
slouken@5310
    95
do
slouken@5310
    96
  IFS=$as_save_IFS
slouken@5310
    97
  test -z "$as_dir" && as_dir=.
icculus@6390
    98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
icculus@6390
    99
  done
slouken@5310
   100
IFS=$as_save_IFS
slouken@5310
   101
slouken@5310
   102
     ;;
slouken@5310
   103
esac
slouken@5310
   104
# We did not find ourselves, most probably we were run as `sh COMMAND'
slouken@5310
   105
# in which case we are not to be found in the path.
slouken@5310
   106
if test "x$as_myself" = x; then
slouken@5310
   107
  as_myself=$0
slouken@5310
   108
fi
slouken@5310
   109
if test ! -f "$as_myself"; then
icculus@6390
   110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
icculus@6390
   111
  exit 1
slouken@5310
   112
fi
slouken@5310
   113
icculus@6390
   114
# Unset variables that we do not need and which cause bugs (e.g. in
icculus@6390
   115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
icculus@6390
   116
# suppresses any "Segmentation fault" message there.  '((' could
icculus@6390
   117
# trigger a bug in pdksh 5.2.14.
icculus@6390
   118
for as_var in BASH_ENV ENV MAIL MAILPATH
icculus@6390
   119
do eval test x\${$as_var+set} = xset \
icculus@6390
   120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
slouken@5310
   121
done
slouken@5310
   122
PS1='$ '
slouken@5310
   123
PS2='> '
slouken@5310
   124
PS4='+ '
slouken@5310
   125
slouken@5310
   126
# NLS nuisances.
icculus@6390
   127
LC_ALL=C
icculus@6390
   128
export LC_ALL
icculus@6390
   129
LANGUAGE=C
icculus@6390
   130
export LANGUAGE
icculus@6390
   131
icculus@6390
   132
# CDPATH.
icculus@6390
   133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
icculus@6390
   134
slouken@6442
   135
# Use a proper internal environment variable to ensure we don't fall
slouken@6442
   136
  # into an infinite loop, continuously re-executing ourselves.
slouken@6442
   137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
slouken@6442
   138
    _as_can_reexec=no; export _as_can_reexec;
slouken@6442
   139
    # We cannot yet assume a decent shell, so we have to provide a
slouken@6442
   140
# neutralization value for shells without unset; and this also
slouken@6442
   141
# works around shells that cannot unset nonexistent variables.
slouken@6442
   142
# Preserve -v and -x to the replacement shell.
slouken@6442
   143
BASH_ENV=/dev/null
slouken@6442
   144
ENV=/dev/null
slouken@6442
   145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
slouken@6442
   146
case $- in # ((((
slouken@6442
   147
  *v*x* | *x*v* ) as_opts=-vx ;;
slouken@6442
   148
  *v* ) as_opts=-v ;;
slouken@6442
   149
  *x* ) as_opts=-x ;;
slouken@6442
   150
  * ) as_opts= ;;
slouken@6442
   151
esac
slouken@6442
   152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
slouken@6442
   153
# Admittedly, this is quite paranoid, since all the known shells bail
slouken@6442
   154
# out after a failed `exec'.
slouken@6442
   155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
slouken@6442
   156
as_fn_exit 255
slouken@6442
   157
  fi
slouken@6442
   158
  # We don't want this to propagate to other subprocesses.
slouken@6442
   159
          { _as_can_reexec=; unset _as_can_reexec;}
icculus@6390
   160
if test "x$CONFIG_SHELL" = x; then
icculus@6390
   161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
icculus@6390
   162
  emulate sh
icculus@6390
   163
  NULLCMD=:
icculus@6390
   164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
icculus@6390
   165
  # is contrary to our usage.  Disable this feature.
icculus@6390
   166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
icculus@6390
   167
  setopt NO_GLOB_SUBST
icculus@6390
   168
else
icculus@6390
   169
  case \`(set -o) 2>/dev/null\` in #(
icculus@6390
   170
  *posix*) :
icculus@6390
   171
    set -o posix ;; #(
icculus@6390
   172
  *) :
icculus@6390
   173
     ;;
icculus@6390
   174
esac
icculus@6390
   175
fi
icculus@6390
   176
"
icculus@6390
   177
  as_required="as_fn_return () { (exit \$1); }
icculus@6390
   178
as_fn_success () { as_fn_return 0; }
icculus@6390
   179
as_fn_failure () { as_fn_return 1; }
icculus@6390
   180
as_fn_ret_success () { return 0; }
icculus@6390
   181
as_fn_ret_failure () { return 1; }
icculus@6390
   182
icculus@6390
   183
exitcode=0
icculus@6390
   184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
icculus@6390
   185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
icculus@6390
   186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
icculus@6390
   187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
icculus@6390
   188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
icculus@6390
   189
icculus@6390
   190
else
icculus@6390
   191
  exitcode=1; echo positional parameters were not saved.
icculus@6390
   192
fi
slouken@6442
   193
test x\$exitcode = x0 || exit 1
slouken@6442
   194
test -x / || exit 1"
icculus@6390
   195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
icculus@6390
   196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
icculus@6390
   197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
icculus@6390
   198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
icculus@6390
   199
  if (eval "$as_required") 2>/dev/null; then :
icculus@6390
   200
  as_have_required=yes
icculus@6390
   201
else
icculus@6390
   202
  as_have_required=no
icculus@6390
   203
fi
icculus@6390
   204
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
icculus@6390
   205
icculus@6390
   206
else
icculus@6390
   207
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
icculus@6390
   208
as_found=false
icculus@6390
   209
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
slouken@5310
   210
do
icculus@6390
   211
  IFS=$as_save_IFS
icculus@6390
   212
  test -z "$as_dir" && as_dir=.
icculus@6390
   213
  as_found=:
icculus@6390
   214
  case $as_dir in #(
icculus@6390
   215
	 /*)
icculus@6390
   216
	   for as_base in sh bash ksh sh5; do
icculus@6390
   217
	     # Try only shells that exist, to save several forks.
icculus@6390
   218
	     as_shell=$as_dir/$as_base
icculus@6390
   219
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
icculus@6390
   220
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
icculus@6390
   221
  CONFIG_SHELL=$as_shell as_have_required=yes
icculus@6390
   222
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
icculus@6390
   223
  break 2
icculus@6390
   224
fi
icculus@6390
   225
fi
icculus@6390
   226
	   done;;
icculus@6390
   227
       esac
icculus@6390
   228
  as_found=false
icculus@6390
   229
done
icculus@6390
   230
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
icculus@6390
   231
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
icculus@6390
   232
  CONFIG_SHELL=$SHELL as_have_required=yes
icculus@6390
   233
fi; }
icculus@6390
   234
IFS=$as_save_IFS
icculus@6390
   235
icculus@6390
   236
icculus@6390
   237
      if test "x$CONFIG_SHELL" != x; then :
slouken@6442
   238
  export CONFIG_SHELL
slouken@6442
   239
             # We cannot yet assume a decent shell, so we have to provide a
slouken@6442
   240
# neutralization value for shells without unset; and this also
slouken@6442
   241
# works around shells that cannot unset nonexistent variables.
slouken@6442
   242
# Preserve -v and -x to the replacement shell.
slouken@6442
   243
BASH_ENV=/dev/null
slouken@6442
   244
ENV=/dev/null
slouken@6442
   245
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
slouken@6442
   246
case $- in # ((((
slouken@6442
   247
  *v*x* | *x*v* ) as_opts=-vx ;;
slouken@6442
   248
  *v* ) as_opts=-v ;;
slouken@6442
   249
  *x* ) as_opts=-x ;;
slouken@6442
   250
  * ) as_opts= ;;
slouken@6442
   251
esac
slouken@6442
   252
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
slouken@6442
   253
# Admittedly, this is quite paranoid, since all the known shells bail
slouken@6442
   254
# out after a failed `exec'.
slouken@6442
   255
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
slouken@6442
   256
exit 255
icculus@6390
   257
fi
icculus@6390
   258
icculus@6390
   259
    if test x$as_have_required = xno; then :
icculus@6390
   260
  $as_echo "$0: This script requires a shell more modern than all"
icculus@6390
   261
  $as_echo "$0: the shells that I found on your system."
icculus@6390
   262
  if test x${ZSH_VERSION+set} = xset ; then
icculus@6390
   263
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
icculus@6390
   264
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
icculus@6102
   265
  else
icculus@6390
   266
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
icculus@6390
   267
$0: including any error possibly output before this
icculus@6390
   268
$0: message. Then install a modern shell, or manually run
icculus@6390
   269
$0: the script under such a shell if you do have one."
icculus@6102
   270
  fi
icculus@6390
   271
  exit 1
icculus@6390
   272
fi
icculus@6390
   273
fi
icculus@6390
   274
fi
icculus@6390
   275
SHELL=${CONFIG_SHELL-/bin/sh}
icculus@6390
   276
export SHELL
icculus@6390
   277
# Unset more variables known to interfere with behavior of common tools.
icculus@6390
   278
CLICOLOR_FORCE= GREP_OPTIONS=
icculus@6390
   279
unset CLICOLOR_FORCE GREP_OPTIONS
icculus@6390
   280
icculus@6390
   281
## --------------------- ##
icculus@6390
   282
## M4sh Shell Functions. ##
icculus@6390
   283
## --------------------- ##
icculus@6390
   284
# as_fn_unset VAR
icculus@6390
   285
# ---------------
icculus@6390
   286
# Portably unset VAR.
icculus@6390
   287
as_fn_unset ()
icculus@6390
   288
{
icculus@6390
   289
  { eval $1=; unset $1;}
icculus@6390
   290
}
icculus@6390
   291
as_unset=as_fn_unset
icculus@6390
   292
icculus@6390
   293
# as_fn_set_status STATUS
icculus@6390
   294
# -----------------------
icculus@6390
   295
# Set $? to STATUS, without forking.
icculus@6390
   296
as_fn_set_status ()
icculus@6390
   297
{
icculus@6390
   298
  return $1
icculus@6390
   299
} # as_fn_set_status
icculus@6390
   300
icculus@6390
   301
# as_fn_exit STATUS
icculus@6390
   302
# -----------------
icculus@6390
   303
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
icculus@6390
   304
as_fn_exit ()
icculus@6390
   305
{
icculus@6390
   306
  set +e
icculus@6390
   307
  as_fn_set_status $1
icculus@6390
   308
  exit $1
icculus@6390
   309
} # as_fn_exit
icculus@6390
   310
icculus@6390
   311
# as_fn_mkdir_p
icculus@6390
   312
# -------------
icculus@6390
   313
# Create "$as_dir" as a directory, including parents if necessary.
icculus@6390
   314
as_fn_mkdir_p ()
icculus@6390
   315
{
icculus@6390
   316
icculus@6390
   317
  case $as_dir in #(
icculus@6390
   318
  -*) as_dir=./$as_dir;;
icculus@6390
   319
  esac
icculus@6390
   320
  test -d "$as_dir" || eval $as_mkdir_p || {
icculus@6390
   321
    as_dirs=
icculus@6390
   322
    while :; do
icculus@6390
   323
      case $as_dir in #(
icculus@6390
   324
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
icculus@6390
   325
      *) as_qdir=$as_dir;;
icculus@6390
   326
      esac
icculus@6390
   327
      as_dirs="'$as_qdir' $as_dirs"
icculus@6390
   328
      as_dir=`$as_dirname -- "$as_dir" ||
icculus@6390
   329
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
icculus@6390
   330
	 X"$as_dir" : 'X\(//\)[^/]' \| \
icculus@6390
   331
	 X"$as_dir" : 'X\(//\)$' \| \
icculus@6390
   332
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
icculus@6390
   333
$as_echo X"$as_dir" |
icculus@6390
   334
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
icculus@6390
   335
	    s//\1/
icculus@6390
   336
	    q
icculus@6390
   337
	  }
icculus@6390
   338
	  /^X\(\/\/\)[^/].*/{
icculus@6390
   339
	    s//\1/
icculus@6390
   340
	    q
icculus@6390
   341
	  }
icculus@6390
   342
	  /^X\(\/\/\)$/{
icculus@6390
   343
	    s//\1/
icculus@6390
   344
	    q
icculus@6390
   345
	  }
icculus@6390
   346
	  /^X\(\/\).*/{
icculus@6390
   347
	    s//\1/
icculus@6390
   348
	    q
icculus@6390
   349
	  }
icculus@6390
   350
	  s/.*/./; q'`
icculus@6390
   351
      test -d "$as_dir" && break
icculus@6390
   352
    done
icculus@6390
   353
    test -z "$as_dirs" || eval "mkdir $as_dirs"
icculus@6390
   354
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
icculus@6390
   355
icculus@6390
   356
icculus@6390
   357
} # as_fn_mkdir_p
slouken@6442
   358
slouken@6442
   359
# as_fn_executable_p FILE
slouken@6442
   360
# -----------------------
slouken@6442
   361
# Test if FILE is an executable regular file.
slouken@6442
   362
as_fn_executable_p ()
slouken@6442
   363
{
slouken@6442
   364
  test -f "$1" && test -x "$1"
slouken@6442
   365
} # as_fn_executable_p
icculus@6390
   366
# as_fn_append VAR VALUE
icculus@6390
   367
# ----------------------
icculus@6390
   368
# Append the text in VALUE to the end of the definition contained in VAR. Take
icculus@6390
   369
# advantage of any shell optimizations that allow amortized linear growth over
icculus@6390
   370
# repeated appends, instead of the typical quadratic growth present in naive
icculus@6390
   371
# implementations.
icculus@6390
   372
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
icculus@6390
   373
  eval 'as_fn_append ()
icculus@6390
   374
  {
icculus@6390
   375
    eval $1+=\$2
icculus@6390
   376
  }'
icculus@6390
   377
else
icculus@6390
   378
  as_fn_append ()
icculus@6390
   379
  {
icculus@6390
   380
    eval $1=\$$1\$2
icculus@6390
   381
  }
icculus@6390
   382
fi # as_fn_append
icculus@6390
   383
icculus@6390
   384
# as_fn_arith ARG...
icculus@6390
   385
# ------------------
icculus@6390
   386
# Perform arithmetic evaluation on the ARGs, and store the result in the
icculus@6390
   387
# global $as_val. Take advantage of shells that can avoid forks. The arguments
icculus@6390
   388
# must be portable across $(()) and expr.
icculus@6390
   389
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
icculus@6390
   390
  eval 'as_fn_arith ()
icculus@6390
   391
  {
icculus@6390
   392
    as_val=$(( $* ))
icculus@6390
   393
  }'
icculus@6390
   394
else
icculus@6390
   395
  as_fn_arith ()
icculus@6390
   396
  {
icculus@6390
   397
    as_val=`expr "$@" || test $? -eq 1`
icculus@6390
   398
  }
icculus@6390
   399
fi # as_fn_arith
icculus@6390
   400
icculus@6390
   401
icculus@6390
   402
# as_fn_error STATUS ERROR [LINENO LOG_FD]
icculus@6390
   403
# ----------------------------------------
icculus@6390
   404
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
icculus@6390
   405
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
icculus@6390
   406
# script with STATUS, using 1 if that was 0.
icculus@6390
   407
as_fn_error ()
icculus@6390
   408
{
icculus@6390
   409
  as_status=$1; test $as_status -eq 0 && as_status=1
icculus@6390
   410
  if test "$4"; then
icculus@6390
   411
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
icculus@6390
   412
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
icculus@6390
   413
  fi
icculus@6390
   414
  $as_echo "$as_me: error: $2" >&2
icculus@6390
   415
  as_fn_exit $as_status
icculus@6390
   416
} # as_fn_error
icculus@6390
   417
slouken@5310
   418
if expr a : '\(a\)' >/dev/null 2>&1 &&
slouken@5310
   419
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
slouken@5310
   420
  as_expr=expr
slouken@5310
   421
else
slouken@5310
   422
  as_expr=false
slouken@5310
   423
fi
slouken@5310
   424
slouken@5310
   425
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
slouken@5310
   426
  as_basename=basename
slouken@5310
   427
else
slouken@5310
   428
  as_basename=false
slouken@5310
   429
fi
slouken@5310
   430
icculus@6390
   431
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
icculus@6390
   432
  as_dirname=dirname
icculus@6390
   433
else
icculus@6390
   434
  as_dirname=false
icculus@6390
   435
fi
icculus@6390
   436
slouken@5310
   437
as_me=`$as_basename -- "$0" ||
slouken@5310
   438
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
slouken@5310
   439
	 X"$0" : 'X\(//\)$' \| \
slouken@5310
   440
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
icculus@6390
   441
$as_echo X/"$0" |
slouken@5310
   442
    sed '/^.*\/\([^/][^/]*\)\/*$/{
slouken@5310
   443
	    s//\1/
slouken@5310
   444
	    q
slouken@5310
   445
	  }
slouken@5310
   446
	  /^X\/\(\/\/\)$/{
slouken@5310
   447
	    s//\1/
slouken@5310
   448
	    q
slouken@5310
   449
	  }
slouken@5310
   450
	  /^X\/\(\/\).*/{
slouken@5310
   451
	    s//\1/
slouken@5310
   452
	    q
slouken@5310
   453
	  }
slouken@5310
   454
	  s/.*/./; q'`
slouken@5310
   455
icculus@6390
   456
# Avoid depending upon Character Ranges.
icculus@6390
   457
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
icculus@6390
   458
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
icculus@6390
   459
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
icculus@6390
   460
as_cr_digits='0123456789'
icculus@6390
   461
as_cr_alnum=$as_cr_Letters$as_cr_digits
icculus@6390
   462
icculus@6390
   463
icculus@6390
   464
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
icculus@6390
   465
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
icculus@6390
   466
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
icculus@6390
   467
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
icculus@6390
   468
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
slouken@5310
   469
  sed -n '
slouken@5310
   470
    p
slouken@5310
   471
    /[$]LINENO/=
slouken@5310
   472
  ' <$as_myself |
slouken@5310
   473
    sed '
slouken@5310
   474
      s/[$]LINENO.*/&-/
slouken@5310
   475
      t lineno
slouken@5310
   476
      b
slouken@5310
   477
      :lineno
slouken@5310
   478
      N
slouken@5310
   479
      :loop
slouken@5310
   480
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
slouken@5310
   481
      t loop
slouken@5310
   482
      s/-\n.*//
slouken@5310
   483
    ' >$as_me.lineno &&
slouken@5310
   484
  chmod +x "$as_me.lineno" ||
icculus@6390
   485
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
slouken@5310
   486
slouken@6442
   487
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
slouken@6442
   488
  # already done that, so ensure we don't try to do so again and fall
slouken@6442
   489
  # in an infinite loop.  This has already happened in practice.
slouken@6442
   490
  _as_can_reexec=no; export _as_can_reexec
slouken@5310
   491
  # Don't try to exec as it changes $[0], causing all sort of problems
slouken@5310
   492
  # (the dirname of $[0] is not the place where we might find the
slouken@5310
   493
  # original and so on.  Autoconf is especially sensitive to this).
slouken@5310
   494
  . "./$as_me.lineno"
slouken@5310
   495
  # Exit status is that of the last command.
slouken@5310
   496
  exit
slouken@5310
   497
}
slouken@5310
   498
slouken@5310
   499
ECHO_C= ECHO_N= ECHO_T=
icculus@6390
   500
case `echo -n x` in #(((((
slouken@5310
   501
-n*)
icculus@6390
   502
  case `echo 'xy\c'` in
slouken@5310
   503
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
icculus@6390
   504
  xy)  ECHO_C='\c';;
icculus@6390
   505
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
icculus@6390
   506
       ECHO_T='	';;
slouken@5310
   507
  esac;;
slouken@5310
   508
*)
slouken@5310
   509
  ECHO_N='-n';;
slouken@5310
   510
esac
slouken@5310
   511
slouken@5310
   512
rm -f conf$$ conf$$.exe conf$$.file
slouken@5310
   513
if test -d conf$$.dir; then
slouken@5310
   514
  rm -f conf$$.dir/conf$$.file
slouken@5310
   515
else
slouken@5310
   516
  rm -f conf$$.dir
icculus@6390
   517
  mkdir conf$$.dir 2>/dev/null
slouken@5310
   518
fi
icculus@6390
   519
if (echo >conf$$.file) 2>/dev/null; then
icculus@6390
   520
  if ln -s conf$$.file conf$$ 2>/dev/null; then
icculus@6390
   521
    as_ln_s='ln -s'
icculus@6390
   522
    # ... but there are two gotchas:
icculus@6390
   523
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
icculus@6390
   524
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
slouken@6442
   525
    # In both cases, we have to default to `cp -pR'.
icculus@6390
   526
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
slouken@6442
   527
      as_ln_s='cp -pR'
icculus@6390
   528
  elif ln conf$$.file conf$$ 2>/dev/null; then
icculus@6390
   529
    as_ln_s=ln
icculus@6390
   530
  else
slouken@6442
   531
    as_ln_s='cp -pR'
icculus@6390
   532
  fi
slouken@5310
   533
else
slouken@6442
   534
  as_ln_s='cp -pR'
slouken@5310
   535
fi
slouken@5310
   536
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
slouken@5310
   537
rmdir conf$$.dir 2>/dev/null
slouken@5310
   538
slouken@5310
   539
if mkdir -p . 2>/dev/null; then
icculus@6390
   540
  as_mkdir_p='mkdir -p "$as_dir"'
slouken@5310
   541
else
slouken@5310
   542
  test -d ./-p && rmdir ./-p
slouken@5310
   543
  as_mkdir_p=false
slouken@5310
   544
fi
slouken@5310
   545
slouken@6442
   546
as_test_x='test -x'
slouken@6442
   547
as_executable_p=as_fn_executable_p
slouken@5310
   548
slouken@5310
   549
# Sed expression to map a string onto a valid CPP name.
slouken@5310
   550
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
slouken@5310
   551
slouken@5310
   552
# Sed expression to map a string onto a valid variable name.
slouken@5310
   553
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
slouken@5310
   554
slouken@5310
   555
icculus@6390
   556
test -n "$DJDIR" || exec 7<&0 </dev/null
icculus@6390
   557
exec 6>&1
slouken@5310
   558
slouken@5310
   559
# Name of the host.
icculus@6390
   560
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
slouken@5310
   561
# so uname gets run too.
slouken@5310
   562
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
slouken@5310
   563
slouken@5310
   564
#
slouken@5310
   565
# Initializations.
slouken@5310
   566
#
slouken@5310
   567
ac_default_prefix=/usr/local
slouken@5310
   568
ac_clean_files=
slouken@5310
   569
ac_config_libobj_dir=.
slouken@5310
   570
LIBOBJS=
slouken@5310
   571
cross_compiling=no
slouken@5310
   572
subdirs=
slouken@5310
   573
MFLAGS=
slouken@5310
   574
MAKEFLAGS=
slouken@5310
   575
slouken@5310
   576
# Identity of this package.
slouken@5310
   577
PACKAGE_NAME=
slouken@5310
   578
PACKAGE_TARNAME=
slouken@5310
   579
PACKAGE_VERSION=
slouken@5310
   580
PACKAGE_STRING=
slouken@5310
   581
PACKAGE_BUGREPORT=
icculus@6390
   582
PACKAGE_URL=
slouken@5310
   583
slouken@5310
   584
ac_unique_file="README"
icculus@6390
   585
ac_subst_vars='LTLIBOBJS
icculus@6390
   586
LIBOBJS
icculus@6390
   587
SDL_TTF_LIB
icculus@6390
   588
GLLIB
icculus@6390
   589
CPP
icculus@6390
   590
XMKMF
icculus@6390
   591
SDL_CONFIG
icculus@6390
   592
SDL_LIBS
icculus@6390
   593
SDL_CFLAGS
icculus@6390
   594
PKG_CONFIG_LIBDIR
icculus@6390
   595
PKG_CONFIG_PATH
icculus@6390
   596
PKG_CONFIG
icculus@6390
   597
ISUNIX
icculus@6390
   598
ISWINDOWS
icculus@6390
   599
ISMACOSX
icculus@6390
   600
MATHLIB
icculus@6390
   601
EXE
icculus@6390
   602
OSMESA_CONFIG
icculus@6390
   603
OBJEXT
icculus@6390
   604
EXEEXT
icculus@6390
   605
ac_ct_CC
icculus@6390
   606
CPPFLAGS
icculus@6390
   607
LDFLAGS
icculus@6390
   608
CFLAGS
icculus@6390
   609
CC
icculus@6390
   610
host_os
icculus@6390
   611
host_vendor
icculus@6390
   612
host_cpu
icculus@6390
   613
host
icculus@6390
   614
build_os
icculus@6390
   615
build_vendor
icculus@6390
   616
build_cpu
icculus@6390
   617
build
icculus@6390
   618
target_alias
icculus@6390
   619
host_alias
icculus@6390
   620
build_alias
icculus@6390
   621
LIBS
icculus@6390
   622
ECHO_T
icculus@6390
   623
ECHO_N
icculus@6390
   624
ECHO_C
icculus@6390
   625
DEFS
icculus@6390
   626
mandir
icculus@6390
   627
localedir
icculus@6390
   628
libdir
icculus@6390
   629
psdir
icculus@6390
   630
pdfdir
icculus@6390
   631
dvidir
icculus@6390
   632
htmldir
icculus@6390
   633
infodir
icculus@6390
   634
docdir
icculus@6390
   635
oldincludedir
icculus@6390
   636
includedir
icculus@6390
   637
localstatedir
icculus@6390
   638
sharedstatedir
icculus@6390
   639
sysconfdir
icculus@6390
   640
datadir
icculus@6390
   641
datarootdir
icculus@6390
   642
libexecdir
icculus@6390
   643
sbindir
icculus@6390
   644
bindir
icculus@6390
   645
program_transform_name
icculus@6390
   646
prefix
icculus@6390
   647
exec_prefix
icculus@6390
   648
PACKAGE_URL
icculus@6390
   649
PACKAGE_BUGREPORT
icculus@6390
   650
PACKAGE_STRING
icculus@6390
   651
PACKAGE_VERSION
icculus@6390
   652
PACKAGE_TARNAME
icculus@6390
   653
PACKAGE_NAME
icculus@6102
   654
PATH_SEPARATOR
icculus@6390
   655
SHELL'
slouken@5310
   656
ac_subst_files=''
icculus@6390
   657
ac_user_opts='
icculus@6390
   658
enable_option_checking
icculus@6390
   659
with_sdl_prefix
icculus@6390
   660
with_sdl_exec_prefix
icculus@6390
   661
enable_sdltest
icculus@6390
   662
with_x
icculus@6390
   663
'
slouken@5310
   664
      ac_precious_vars='build_alias
slouken@5310
   665
host_alias
slouken@5310
   666
target_alias
slouken@5310
   667
CC
slouken@5310
   668
CFLAGS
slouken@5310
   669
LDFLAGS
slouken@5310
   670
LIBS
slouken@5310
   671
CPPFLAGS
slouken@6250
   672
PKG_CONFIG
slouken@6250
   673
PKG_CONFIG_PATH
slouken@6250
   674
PKG_CONFIG_LIBDIR
slouken@6250
   675
SDL_CFLAGS
slouken@6250
   676
SDL_LIBS
slouken@5310
   677
XMKMF
slouken@5310
   678
CPP'
slouken@5310
   679
slouken@5310
   680
slouken@5310
   681
# Initialize some variables set by options.
slouken@5310
   682
ac_init_help=
slouken@5310
   683
ac_init_version=false
icculus@6390
   684
ac_unrecognized_opts=
icculus@6390
   685
ac_unrecognized_sep=
slouken@5310
   686
# The variables have the same names as the options, with
slouken@5310
   687
# dashes changed to underlines.
slouken@5310
   688
cache_file=/dev/null
slouken@5310
   689
exec_prefix=NONE
slouken@5310
   690
no_create=
slouken@5310
   691
no_recursion=
slouken@5310
   692
prefix=NONE
slouken@5310
   693
program_prefix=NONE
slouken@5310
   694
program_suffix=NONE
slouken@5310
   695
program_transform_name=s,x,x,
slouken@5310
   696
silent=
slouken@5310
   697
site=
slouken@5310
   698
srcdir=
slouken@5310
   699
verbose=
slouken@5310
   700
x_includes=NONE
slouken@5310
   701
x_libraries=NONE
slouken@5310
   702
slouken@5310
   703
# Installation directory options.
slouken@5310
   704
# These are left unexpanded so users can "make install exec_prefix=/foo"
slouken@5310
   705
# and all the variables that are supposed to be based on exec_prefix
slouken@5310
   706
# by default will actually change.
slouken@5310
   707
# Use braces instead of parens because sh, perl, etc. also accept them.
slouken@5310
   708
# (The list follows the same order as the GNU Coding Standards.)
slouken@5310
   709
bindir='${exec_prefix}/bin'
slouken@5310
   710
sbindir='${exec_prefix}/sbin'
slouken@5310
   711
libexecdir='${exec_prefix}/libexec'
slouken@5310
   712
datarootdir='${prefix}/share'
slouken@5310
   713
datadir='${datarootdir}'
slouken@5310
   714
sysconfdir='${prefix}/etc'
slouken@5310
   715
sharedstatedir='${prefix}/com'
slouken@5310
   716
localstatedir='${prefix}/var'
slouken@5310
   717
includedir='${prefix}/include'
slouken@5310
   718
oldincludedir='/usr/include'
slouken@5310
   719
docdir='${datarootdir}/doc/${PACKAGE}'
slouken@5310
   720
infodir='${datarootdir}/info'
slouken@5310
   721
htmldir='${docdir}'
slouken@5310
   722
dvidir='${docdir}'
slouken@5310
   723
pdfdir='${docdir}'
slouken@5310
   724
psdir='${docdir}'
slouken@5310
   725
libdir='${exec_prefix}/lib'
slouken@5310
   726
localedir='${datarootdir}/locale'
slouken@5310
   727
mandir='${datarootdir}/man'
slouken@5310
   728
slouken@5310
   729
ac_prev=
slouken@5310
   730
ac_dashdash=
slouken@5310
   731
for ac_option
slouken@5310
   732
do
slouken@5310
   733
  # If the previous option needs an argument, assign it.
slouken@5310
   734
  if test -n "$ac_prev"; then
slouken@5310
   735
    eval $ac_prev=\$ac_option
slouken@5310
   736
    ac_prev=
slouken@5310
   737
    continue
slouken@5310
   738
  fi
slouken@5310
   739
slouken@5310
   740
  case $ac_option in
icculus@6390
   741
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
icculus@6390
   742
  *=)   ac_optarg= ;;
icculus@6390
   743
  *)    ac_optarg=yes ;;
slouken@5310
   744
  esac
slouken@5310
   745
slouken@5310
   746
  # Accept the important Cygnus configure options, so we can diagnose typos.
slouken@5310
   747
slouken@5310
   748
  case $ac_dashdash$ac_option in
slouken@5310
   749
  --)
slouken@5310
   750
    ac_dashdash=yes ;;
slouken@5310
   751
slouken@5310
   752
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
slouken@5310
   753
    ac_prev=bindir ;;
slouken@5310
   754
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
slouken@5310
   755
    bindir=$ac_optarg ;;
slouken@5310
   756
slouken@5310
   757
  -build | --build | --buil | --bui | --bu)
slouken@5310
   758
    ac_prev=build_alias ;;
slouken@5310
   759
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
slouken@5310
   760
    build_alias=$ac_optarg ;;
slouken@5310
   761
slouken@5310
   762
  -cache-file | --cache-file | --cache-fil | --cache-fi \
slouken@5310
   763
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
slouken@5310
   764
    ac_prev=cache_file ;;
slouken@5310
   765
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
slouken@5310
   766
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
slouken@5310
   767
    cache_file=$ac_optarg ;;
slouken@5310
   768
slouken@5310
   769
  --config-cache | -C)
slouken@5310
   770
    cache_file=config.cache ;;
slouken@5310
   771
slouken@5310
   772
  -datadir | --datadir | --datadi | --datad)
slouken@5310
   773
    ac_prev=datadir ;;
slouken@5310
   774
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
slouken@5310
   775
    datadir=$ac_optarg ;;
slouken@5310
   776
slouken@5310
   777
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
slouken@5310
   778
  | --dataroo | --dataro | --datar)
slouken@5310
   779
    ac_prev=datarootdir ;;
slouken@5310
   780
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
slouken@5310
   781
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
slouken@5310
   782
    datarootdir=$ac_optarg ;;
slouken@5310
   783
slouken@5310
   784
  -disable-* | --disable-*)
icculus@6390
   785
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
slouken@5310
   786
    # Reject names that are not valid shell variable names.
icculus@6390
   787
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
icculus@6390
   788
      as_fn_error $? "invalid feature name: $ac_useropt"
icculus@6390
   789
    ac_useropt_orig=$ac_useropt
icculus@6390
   790
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
icculus@6390
   791
    case $ac_user_opts in
icculus@6390
   792
      *"
icculus@6390
   793
"enable_$ac_useropt"
icculus@6390
   794
"*) ;;
icculus@6390
   795
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
icculus@6390
   796
	 ac_unrecognized_sep=', ';;
icculus@6390
   797
    esac
icculus@6390
   798
    eval enable_$ac_useropt=no ;;
slouken@5310
   799
slouken@5310
   800
  -docdir | --docdir | --docdi | --doc | --do)
slouken@5310
   801
    ac_prev=docdir ;;
slouken@5310
   802
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
slouken@5310
   803
    docdir=$ac_optarg ;;
slouken@5310
   804
slouken@5310
   805
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
slouken@5310
   806
    ac_prev=dvidir ;;
slouken@5310
   807
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
slouken@5310
   808
    dvidir=$ac_optarg ;;
slouken@5310
   809
slouken@5310
   810
  -enable-* | --enable-*)
icculus@6390
   811
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
slouken@5310
   812
    # Reject names that are not valid shell variable names.
icculus@6390
   813
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
icculus@6390
   814
      as_fn_error $? "invalid feature name: $ac_useropt"
icculus@6390
   815
    ac_useropt_orig=$ac_useropt
icculus@6390
   816
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
icculus@6390
   817
    case $ac_user_opts in
icculus@6390
   818
      *"
icculus@6390
   819
"enable_$ac_useropt"
icculus@6390
   820
"*) ;;
icculus@6390
   821
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
icculus@6390
   822
	 ac_unrecognized_sep=', ';;
icculus@6390
   823
    esac
icculus@6390
   824
    eval enable_$ac_useropt=\$ac_optarg ;;
slouken@5310
   825
slouken@5310
   826
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
slouken@5310
   827
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
slouken@5310
   828
  | --exec | --exe | --ex)
slouken@5310
   829
    ac_prev=exec_prefix ;;
slouken@5310
   830
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
slouken@5310
   831
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
slouken@5310
   832
  | --exec=* | --exe=* | --ex=*)
slouken@5310
   833
    exec_prefix=$ac_optarg ;;
slouken@5310
   834
slouken@5310
   835
  -gas | --gas | --ga | --g)
slouken@5310
   836
    # Obsolete; use --with-gas.
slouken@5310
   837
    with_gas=yes ;;
slouken@5310
   838
slouken@5310
   839
  -help | --help | --hel | --he | -h)
slouken@5310
   840
    ac_init_help=long ;;
slouken@5310
   841
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
slouken@5310
   842
    ac_init_help=recursive ;;
slouken@5310
   843
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
slouken@5310
   844
    ac_init_help=short ;;
slouken@5310
   845
slouken@5310
   846
  -host | --host | --hos | --ho)
slouken@5310
   847
    ac_prev=host_alias ;;
slouken@5310
   848
  -host=* | --host=* | --hos=* | --ho=*)
slouken@5310
   849
    host_alias=$ac_optarg ;;
slouken@5310
   850
slouken@5310
   851
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
slouken@5310
   852
    ac_prev=htmldir ;;
slouken@5310
   853
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
slouken@5310
   854
  | --ht=*)
slouken@5310
   855
    htmldir=$ac_optarg ;;
slouken@5310
   856
slouken@5310
   857
  -includedir | --includedir | --includedi | --included | --include \
slouken@5310
   858
  | --includ | --inclu | --incl | --inc)
slouken@5310
   859
    ac_prev=includedir ;;
slouken@5310
   860
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
slouken@5310
   861
  | --includ=* | --inclu=* | --incl=* | --inc=*)
slouken@5310
   862
    includedir=$ac_optarg ;;
slouken@5310
   863
slouken@5310
   864
  -infodir | --infodir | --infodi | --infod | --info | --inf)
slouken@5310
   865
    ac_prev=infodir ;;
slouken@5310
   866
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
slouken@5310
   867
    infodir=$ac_optarg ;;
slouken@5310
   868
slouken@5310
   869
  -libdir | --libdir | --libdi | --libd)
slouken@5310
   870
    ac_prev=libdir ;;
slouken@5310
   871
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
slouken@5310
   872
    libdir=$ac_optarg ;;
slouken@5310
   873
slouken@5310
   874
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
slouken@5310
   875
  | --libexe | --libex | --libe)
slouken@5310
   876
    ac_prev=libexecdir ;;
slouken@5310
   877
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
slouken@5310
   878
  | --libexe=* | --libex=* | --libe=*)
slouken@5310
   879
    libexecdir=$ac_optarg ;;
slouken@5310
   880
slouken@5310
   881
  -localedir | --localedir | --localedi | --localed | --locale)
slouken@5310
   882
    ac_prev=localedir ;;
slouken@5310
   883
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
slouken@5310
   884
    localedir=$ac_optarg ;;
slouken@5310
   885
slouken@5310
   886
  -localstatedir | --localstatedir | --localstatedi | --localstated \
slouken@5310
   887
  | --localstate | --localstat | --localsta | --localst | --locals)
slouken@5310
   888
    ac_prev=localstatedir ;;
slouken@5310
   889
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
slouken@5310
   890
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
slouken@5310
   891
    localstatedir=$ac_optarg ;;
slouken@5310
   892
slouken@5310
   893
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
slouken@5310
   894
    ac_prev=mandir ;;
slouken@5310
   895
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
slouken@5310
   896
    mandir=$ac_optarg ;;
slouken@5310
   897
slouken@5310
   898
  -nfp | --nfp | --nf)
slouken@5310
   899
    # Obsolete; use --without-fp.
slouken@5310
   900
    with_fp=no ;;
slouken@5310
   901
slouken@5310
   902
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
slouken@5310
   903
  | --no-cr | --no-c | -n)
slouken@5310
   904
    no_create=yes ;;
slouken@5310
   905
slouken@5310
   906
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
slouken@5310
   907
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
slouken@5310
   908
    no_recursion=yes ;;
slouken@5310
   909
slouken@5310
   910
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
slouken@5310
   911
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
slouken@5310
   912
  | --oldin | --oldi | --old | --ol | --o)
slouken@5310
   913
    ac_prev=oldincludedir ;;
slouken@5310
   914
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
slouken@5310
   915
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
slouken@5310
   916
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
slouken@5310
   917
    oldincludedir=$ac_optarg ;;
slouken@5310
   918
slouken@5310
   919
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
slouken@5310
   920
    ac_prev=prefix ;;
slouken@5310
   921
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
slouken@5310
   922
    prefix=$ac_optarg ;;
slouken@5310
   923
slouken@5310
   924
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
slouken@5310
   925
  | --program-pre | --program-pr | --program-p)
slouken@5310
   926
    ac_prev=program_prefix ;;
slouken@5310
   927
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
slouken@5310
   928
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
slouken@5310
   929
    program_prefix=$ac_optarg ;;
slouken@5310
   930
slouken@5310
   931
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
slouken@5310
   932
  | --program-suf | --program-su | --program-s)
slouken@5310
   933
    ac_prev=program_suffix ;;
slouken@5310
   934
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
slouken@5310
   935
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
slouken@5310
   936
    program_suffix=$ac_optarg ;;
slouken@5310
   937
slouken@5310
   938
  -program-transform-name | --program-transform-name \
slouken@5310
   939
  | --program-transform-nam | --program-transform-na \
slouken@5310
   940
  | --program-transform-n | --program-transform- \
slouken@5310
   941
  | --program-transform | --program-transfor \
slouken@5310
   942
  | --program-transfo | --program-transf \
slouken@5310
   943
  | --program-trans | --program-tran \
slouken@5310
   944
  | --progr-tra | --program-tr | --program-t)
slouken@5310
   945
    ac_prev=program_transform_name ;;
slouken@5310
   946
  -program-transform-name=* | --program-transform-name=* \
slouken@5310
   947
  | --program-transform-nam=* | --program-transform-na=* \
slouken@5310
   948
  | --program-transform-n=* | --program-transform-=* \
slouken@5310
   949
  | --program-transform=* | --program-transfor=* \
slouken@5310
   950
  | --program-transfo=* | --program-transf=* \
slouken@5310
   951
  | --program-trans=* | --program-tran=* \
slouken@5310
   952
  | --progr-tra=* | --program-tr=* | --program-t=*)
slouken@5310
   953
    program_transform_name=$ac_optarg ;;
slouken@5310
   954
slouken@5310
   955
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
slouken@5310
   956
    ac_prev=pdfdir ;;
slouken@5310
   957
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
slouken@5310
   958
    pdfdir=$ac_optarg ;;
slouken@5310
   959
slouken@5310
   960
  -psdir | --psdir | --psdi | --psd | --ps)
slouken@5310
   961
    ac_prev=psdir ;;
slouken@5310
   962
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
slouken@5310
   963
    psdir=$ac_optarg ;;
slouken@5310
   964
slouken@5310
   965
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
slouken@5310
   966
  | -silent | --silent | --silen | --sile | --sil)
slouken@5310
   967
    silent=yes ;;
slouken@5310
   968
slouken@5310
   969
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
slouken@5310
   970
    ac_prev=sbindir ;;
slouken@5310
   971
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
slouken@5310
   972
  | --sbi=* | --sb=*)
slouken@5310
   973
    sbindir=$ac_optarg ;;
slouken@5310
   974
slouken@5310
   975
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
slouken@5310
   976
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
slouken@5310
   977
  | --sharedst | --shareds | --shared | --share | --shar \
slouken@5310
   978
  | --sha | --sh)
slouken@5310
   979
    ac_prev=sharedstatedir ;;
slouken@5310
   980
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
slouken@5310
   981
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
slouken@5310
   982
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
slouken@5310
   983
  | --sha=* | --sh=*)
slouken@5310
   984
    sharedstatedir=$ac_optarg ;;
slouken@5310
   985
slouken@5310
   986
  -site | --site | --sit)
slouken@5310
   987
    ac_prev=site ;;
slouken@5310
   988
  -site=* | --site=* | --sit=*)
slouken@5310
   989
    site=$ac_optarg ;;
slouken@5310
   990
slouken@5310
   991
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
slouken@5310
   992
    ac_prev=srcdir ;;
slouken@5310
   993
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
slouken@5310
   994
    srcdir=$ac_optarg ;;
slouken@5310
   995
slouken@5310
   996
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
slouken@5310
   997
  | --syscon | --sysco | --sysc | --sys | --sy)
slouken@5310
   998
    ac_prev=sysconfdir ;;
slouken@5310
   999
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
slouken@5310
  1000
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
slouken@5310
  1001
    sysconfdir=$ac_optarg ;;
slouken@5310
  1002
slouken@5310
  1003
  -target | --target | --targe | --targ | --tar | --ta | --t)
slouken@5310
  1004
    ac_prev=target_alias ;;
slouken@5310
  1005
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
slouken@5310
  1006
    target_alias=$ac_optarg ;;
slouken@5310
  1007
slouken@5310
  1008
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
slouken@5310
  1009
    verbose=yes ;;
slouken@5310
  1010
slouken@5310
  1011
  -version | --version | --versio | --versi | --vers | -V)
slouken@5310
  1012
    ac_init_version=: ;;
slouken@5310
  1013
slouken@5310
  1014
  -with-* | --with-*)
icculus@6390
  1015
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
slouken@5310
  1016
    # Reject names that are not valid shell variable names.
icculus@6390
  1017
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
icculus@6390
  1018
      as_fn_error $? "invalid package name: $ac_useropt"
icculus@6390
  1019
    ac_useropt_orig=$ac_useropt
icculus@6390
  1020
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
icculus@6390
  1021
    case $ac_user_opts in
icculus@6390
  1022
      *"
icculus@6390
  1023
"with_$ac_useropt"
icculus@6390
  1024
"*) ;;
icculus@6390
  1025
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
icculus@6390
  1026
	 ac_unrecognized_sep=', ';;
icculus@6390
  1027
    esac
icculus@6390
  1028
    eval with_$ac_useropt=\$ac_optarg ;;
slouken@5310
  1029
slouken@5310
  1030
  -without-* | --without-*)
icculus@6390
  1031
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
slouken@5310
  1032
    # Reject names that are not valid shell variable names.
icculus@6390
  1033
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
icculus@6390
  1034
      as_fn_error $? "invalid package name: $ac_useropt"
icculus@6390
  1035
    ac_useropt_orig=$ac_useropt
icculus@6390
  1036
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
icculus@6390
  1037
    case $ac_user_opts in
icculus@6390
  1038
      *"
icculus@6390
  1039
"with_$ac_useropt"
icculus@6390
  1040
"*) ;;
icculus@6390
  1041
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
icculus@6390
  1042
	 ac_unrecognized_sep=', ';;
icculus@6390
  1043
    esac
icculus@6390
  1044
    eval with_$ac_useropt=no ;;
slouken@5310
  1045
slouken@5310
  1046
  --x)
slouken@5310
  1047
    # Obsolete; use --with-x.
slouken@5310
  1048
    with_x=yes ;;
slouken@5310
  1049
slouken@5310
  1050
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
slouken@5310
  1051
  | --x-incl | --x-inc | --x-in | --x-i)
slouken@5310
  1052
    ac_prev=x_includes ;;
slouken@5310
  1053
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
slouken@5310
  1054
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
slouken@5310
  1055
    x_includes=$ac_optarg ;;
slouken@5310
  1056
slouken@5310
  1057
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
slouken@5310
  1058
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
slouken@5310
  1059
    ac_prev=x_libraries ;;
slouken@5310
  1060
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
slouken@5310
  1061
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
slouken@5310
  1062
    x_libraries=$ac_optarg ;;
slouken@5310
  1063
icculus@6390
  1064
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
icculus@6390
  1065
Try \`$0 --help' for more information"
slouken@5310
  1066
    ;;
slouken@5310
  1067
slouken@5310
  1068
  *=*)
slouken@5310
  1069
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
slouken@5310
  1070
    # Reject names that are not valid shell variable names.
icculus@6390
  1071
    case $ac_envvar in #(
icculus@6390
  1072
      '' | [0-9]* | *[!_$as_cr_alnum]* )
icculus@6390
  1073
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
icculus@6390
  1074
    esac
slouken@5310
  1075
    eval $ac_envvar=\$ac_optarg
slouken@5310
  1076
    export $ac_envvar ;;
slouken@5310
  1077
slouken@5310
  1078
  *)
slouken@5310
  1079
    # FIXME: should be removed in autoconf 3.0.
icculus@6390
  1080
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
slouken@5310
  1081
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
icculus@6390
  1082
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
icculus@6390
  1083
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
slouken@5310
  1084
    ;;
slouken@5310
  1085
slouken@5310
  1086
  esac
slouken@5310
  1087
done
slouken@5310
  1088
slouken@5310
  1089
if test -n "$ac_prev"; then
slouken@5310
  1090
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
icculus@6390
  1091
  as_fn_error $? "missing argument to $ac_option"
slouken@5310
  1092
fi
slouken@5310
  1093
icculus@6390
  1094
if test -n "$ac_unrecognized_opts"; then
icculus@6390
  1095
  case $enable_option_checking in
icculus@6390
  1096
    no) ;;
icculus@6390
  1097
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
icculus@6390
  1098
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
icculus@6390
  1099
  esac
icculus@6390
  1100
fi
icculus@6390
  1101
icculus@6390
  1102
# Check all directory arguments for consistency.
slouken@5310
  1103
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
slouken@5310
  1104
		datadir sysconfdir sharedstatedir localstatedir includedir \
slouken@5310
  1105
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
slouken@5310
  1106
		libdir localedir mandir
slouken@5310
  1107
do
slouken@5310
  1108
  eval ac_val=\$$ac_var
icculus@6390
  1109
  # Remove trailing slashes.
icculus@6390
  1110
  case $ac_val in
icculus@6390
  1111
    */ )
icculus@6390
  1112
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
icculus@6390
  1113
      eval $ac_var=\$ac_val;;
icculus@6390
  1114
  esac
icculus@6390
  1115
  # Be sure to have absolute directory names.
slouken@5310
  1116
  case $ac_val in
slouken@5310
  1117
    [\\/$]* | ?:[\\/]* )  continue;;
slouken@5310
  1118
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
slouken@5310
  1119
  esac
icculus@6390
  1120
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
slouken@5310
  1121
done
slouken@5310
  1122
slouken@5310
  1123
# There might be people who depend on the old broken behavior: `$host'
slouken@5310
  1124
# used to hold the argument of --host etc.
slouken@5310
  1125
# FIXME: To remove some day.
slouken@5310
  1126
build=$build_alias
slouken@5310
  1127
host=$host_alias
slouken@5310
  1128
target=$target_alias
slouken@5310
  1129
slouken@5310
  1130
# FIXME: To remove some day.
slouken@5310
  1131
if test "x$host_alias" != x; then
slouken@5310
  1132
  if test "x$build_alias" = x; then
slouken@5310
  1133
    cross_compiling=maybe
slouken@5310
  1134
  elif test "x$build_alias" != "x$host_alias"; then
slouken@5310
  1135
    cross_compiling=yes
slouken@5310
  1136
  fi
slouken@5310
  1137
fi
slouken@5310
  1138
slouken@5310
  1139
ac_tool_prefix=
slouken@5310
  1140
test -n "$host_alias" && ac_tool_prefix=$host_alias-
slouken@5310
  1141
slouken@5310
  1142
test "$silent" = yes && exec 6>/dev/null
slouken@5310
  1143
slouken@5310
  1144
slouken@5310
  1145
ac_pwd=`pwd` && test -n "$ac_pwd" &&
slouken@5310
  1146
ac_ls_di=`ls -di .` &&
slouken@5310
  1147
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
icculus@6390
  1148
  as_fn_error $? "working directory cannot be determined"
slouken@5310
  1149
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
icculus@6390
  1150
  as_fn_error $? "pwd does not report name of working directory"
slouken@5310
  1151
slouken@5310
  1152
slouken@5310
  1153
# Find the source files, if location was not specified.
slouken@5310
  1154
if test -z "$srcdir"; then
slouken@5310
  1155
  ac_srcdir_defaulted=yes
slouken@5310
  1156
  # Try the directory containing this script, then the parent directory.
icculus@6390
  1157
  ac_confdir=`$as_dirname -- "$as_myself" ||
icculus@6390
  1158
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
icculus@6390
  1159
	 X"$as_myself" : 'X\(//\)[^/]' \| \
icculus@6390
  1160
	 X"$as_myself" : 'X\(//\)$' \| \
icculus@6390
  1161
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
icculus@6390
  1162
$as_echo X"$as_myself" |
slouken@5310
  1163
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
slouken@5310
  1164
	    s//\1/
slouken@5310
  1165
	    q
slouken@5310
  1166
	  }
slouken@5310
  1167
	  /^X\(\/\/\)[^/].*/{
slouken@5310
  1168
	    s//\1/
slouken@5310
  1169
	    q
slouken@5310
  1170
	  }
slouken@5310
  1171
	  /^X\(\/\/\)$/{
slouken@5310
  1172
	    s//\1/
slouken@5310
  1173
	    q
slouken@5310
  1174
	  }
slouken@5310
  1175
	  /^X\(\/\).*/{
slouken@5310
  1176
	    s//\1/
slouken@5310
  1177
	    q
slouken@5310
  1178
	  }
slouken@5310
  1179
	  s/.*/./; q'`
slouken@5310
  1180
  srcdir=$ac_confdir
slouken@5310
  1181
  if test ! -r "$srcdir/$ac_unique_file"; then
slouken@5310
  1182
    srcdir=..
slouken@5310
  1183
  fi
slouken@5310
  1184
else
slouken@5310
  1185
  ac_srcdir_defaulted=no
slouken@5310
  1186
fi
slouken@5310
  1187
if test ! -r "$srcdir/$ac_unique_file"; then
slouken@5310
  1188
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
icculus@6390
  1189
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
slouken@5310
  1190
fi
slouken@5310
  1191
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
slouken@5310
  1192
ac_abs_confdir=`(
icculus@6390
  1193
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
slouken@5310
  1194
	pwd)`
slouken@5310
  1195
# When building in place, set srcdir=.
slouken@5310
  1196
if test "$ac_abs_confdir" = "$ac_pwd"; then
slouken@5310
  1197
  srcdir=.
slouken@5310
  1198
fi
slouken@5310
  1199
# Remove unnecessary trailing slashes from srcdir.
slouken@5310
  1200
# Double slashes in file names in object file debugging info
slouken@5310
  1201
# mess up M-x gdb in Emacs.
slouken@5310
  1202
case $srcdir in
slouken@5310
  1203
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
slouken@5310
  1204
esac
slouken@5310
  1205
for ac_var in $ac_precious_vars; do
slouken@5310
  1206
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
slouken@5310
  1207
  eval ac_env_${ac_var}_value=\$${ac_var}
slouken@5310
  1208
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
slouken@5310
  1209
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
slouken@5310
  1210
done
slouken@5310
  1211
slouken@5310
  1212
#
slouken@5310
  1213
# Report the --help message.
slouken@5310
  1214
#
slouken@5310
  1215
if test "$ac_init_help" = "long"; then
slouken@5310
  1216
  # Omit some internal or obsolete options to make the list less imposing.
slouken@5310
  1217
  # This message is too long to be a string in the A/UX 3.1 sh.
slouken@5310
  1218
  cat <<_ACEOF
slouken@5310
  1219
\`configure' configures this package to adapt to many kinds of systems.
slouken@5310
  1220
slouken@5310
  1221
Usage: $0 [OPTION]... [VAR=VALUE]...
slouken@5310
  1222
slouken@5310
  1223
To assign environment variables (e.g., CC, CFLAGS...), specify them as
slouken@5310
  1224
VAR=VALUE.  See below for descriptions of some of the useful variables.
slouken@5310
  1225
slouken@5310
  1226
Defaults for the options are specified in brackets.
slouken@5310
  1227
slouken@5310
  1228
Configuration:
slouken@5310
  1229
  -h, --help              display this help and exit
slouken@5310
  1230
      --help=short        display options specific to this package
slouken@5310
  1231
      --help=recursive    display the short help of all the included packages
slouken@5310
  1232
  -V, --version           display version information and exit
icculus@6390
  1233
  -q, --quiet, --silent   do not print \`checking ...' messages
slouken@5310
  1234
      --cache-file=FILE   cache test results in FILE [disabled]
slouken@5310
  1235
  -C, --config-cache      alias for \`--cache-file=config.cache'
slouken@5310
  1236
  -n, --no-create         do not create output files
slouken@5310
  1237
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
slouken@5310
  1238
slouken@5310
  1239
Installation directories:
slouken@5310
  1240
  --prefix=PREFIX         install architecture-independent files in PREFIX
icculus@6390
  1241
                          [$ac_default_prefix]
slouken@5310
  1242
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
icculus@6390
  1243
                          [PREFIX]
slouken@5310
  1244
slouken@5310
  1245
By default, \`make install' will install all the files in
slouken@5310
  1246
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
slouken@5310
  1247
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
slouken@5310
  1248
for instance \`--prefix=\$HOME'.
slouken@5310
  1249
slouken@5310
  1250
For better control, use the options below.
slouken@5310
  1251
slouken@5310
  1252
Fine tuning of the installation directories:
icculus@6390
  1253
  --bindir=DIR            user executables [EPREFIX/bin]
icculus@6390
  1254
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
icculus@6390
  1255
  --libexecdir=DIR        program executables [EPREFIX/libexec]
icculus@6390
  1256
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
icculus@6390
  1257
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
icculus@6390
  1258
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
icculus@6390
  1259
  --libdir=DIR            object code libraries [EPREFIX/lib]
icculus@6390
  1260
  --includedir=DIR        C header files [PREFIX/include]
icculus@6390
  1261
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
icculus@6390
  1262
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
icculus@6390
  1263
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
icculus@6390
  1264
  --infodir=DIR           info documentation [DATAROOTDIR/info]
icculus@6390
  1265
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
icculus@6390
  1266
  --mandir=DIR            man documentation [DATAROOTDIR/man]
icculus@6390
  1267
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
icculus@6390
  1268
  --htmldir=DIR           html documentation [DOCDIR]
icculus@6390
  1269
  --dvidir=DIR            dvi documentation [DOCDIR]
icculus@6390
  1270
  --pdfdir=DIR            pdf documentation [DOCDIR]
icculus@6390
  1271
  --psdir=DIR             ps documentation [DOCDIR]
slouken@5310
  1272
_ACEOF
slouken@5310
  1273
slouken@5310
  1274
  cat <<\_ACEOF
slouken@5310
  1275
slouken@5310
  1276
X features:
slouken@5310
  1277
  --x-includes=DIR    X include files are in DIR
slouken@5310
  1278
  --x-libraries=DIR   X library files are in DIR
slouken@5310
  1279
slouken@5310
  1280
System types:
slouken@5310
  1281
  --build=BUILD     configure for building on BUILD [guessed]
slouken@5310
  1282
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
slouken@5310
  1283
_ACEOF
slouken@5310
  1284
fi
slouken@5310
  1285
slouken@5310
  1286
if test -n "$ac_init_help"; then
slouken@5310
  1287
slouken@5310
  1288
  cat <<\_ACEOF
slouken@5310
  1289
slouken@5310
  1290
Optional Features:
icculus@6390
  1291
  --disable-option-checking  ignore unrecognized --enable/--with options
slouken@5310
  1292
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
slouken@5310
  1293
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
slouken@5310
  1294
  --disable-sdltest       Do not try to compile and run a test SDL program
slouken@5310
  1295
slouken@5310
  1296
Optional Packages:
slouken@5310
  1297
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
slouken@5310
  1298
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
slouken@5310
  1299
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
slouken@5310
  1300
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
slouken@5310
  1301
  --with-x                use the X Window System
slouken@5310
  1302
slouken@5310
  1303
Some influential environment variables:
slouken@5310
  1304
  CC          C compiler command
slouken@5310
  1305
  CFLAGS      C compiler flags
slouken@5310
  1306
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
slouken@5310
  1307
              nonstandard directory <lib dir>
slouken@5310
  1308
  LIBS        libraries to pass to the linker, e.g. -l<library>
icculus@6390
  1309
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
slouken@5310
  1310
              you have headers in a nonstandard directory <include dir>
slouken@6250
  1311
  PKG_CONFIG  path to pkg-config utility
slouken@6250
  1312
  PKG_CONFIG_PATH
slouken@6250
  1313
              directories to add to pkg-config's search path
slouken@6250
  1314
  PKG_CONFIG_LIBDIR
slouken@6250
  1315
              path overriding pkg-config's built-in search path
slouken@6250
  1316
  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
slouken@6250
  1317
  SDL_LIBS    linker flags for SDL, overriding pkg-config
slouken@5310
  1318
  XMKMF       Path to xmkmf, Makefile generator for X Window System
slouken@5310
  1319
  CPP         C preprocessor
slouken@5310
  1320
slouken@5310
  1321
Use these variables to override the choices made by `configure' or to help
slouken@5310
  1322
it to find libraries and programs with nonstandard names/locations.
slouken@5310
  1323
icculus@6390
  1324
Report bugs to the package provider.
slouken@5310
  1325
_ACEOF
slouken@5310
  1326
ac_status=$?
slouken@5310
  1327
fi
slouken@5310
  1328
slouken@5310
  1329
if test "$ac_init_help" = "recursive"; then
slouken@5310
  1330
  # If there are subdirs, report their specific --help.
slouken@5310
  1331
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
icculus@6390
  1332
    test -d "$ac_dir" ||
icculus@6390
  1333
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
icculus@6390
  1334
      continue
slouken@5310
  1335
    ac_builddir=.
slouken@5310
  1336
slouken@5310
  1337
case "$ac_dir" in
slouken@5310
  1338
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
slouken@5310
  1339
*)
icculus@6390
  1340
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
slouken@5310
  1341
  # A ".." for each directory in $ac_dir_suffix.
icculus@6390
  1342
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
slouken@5310
  1343
  case $ac_top_builddir_sub in
slouken@5310
  1344
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
slouken@5310
  1345
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
slouken@5310
  1346
  esac ;;
slouken@5310
  1347
esac
slouken@5310
  1348
ac_abs_top_builddir=$ac_pwd
slouken@5310
  1349
ac_abs_builddir=$ac_pwd$ac_dir_suffix
slouken@5310
  1350
# for backward compatibility:
slouken@5310
  1351
ac_top_builddir=$ac_top_build_prefix
slouken@5310
  1352
slouken@5310
  1353
case $srcdir in
slouken@5310
  1354
  .)  # We are building in place.
slouken@5310
  1355
    ac_srcdir=.
slouken@5310
  1356
    ac_top_srcdir=$ac_top_builddir_sub
slouken@5310
  1357
    ac_abs_top_srcdir=$ac_pwd ;;
slouken@5310
  1358
  [\\/]* | ?:[\\/]* )  # Absolute name.
slouken@5310
  1359
    ac_srcdir=$srcdir$ac_dir_suffix;
slouken@5310
  1360
    ac_top_srcdir=$srcdir
slouken@5310
  1361
    ac_abs_top_srcdir=$srcdir ;;
slouken@5310
  1362
  *) # Relative name.
slouken@5310
  1363
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
slouken@5310
  1364
    ac_top_srcdir=$ac_top_build_prefix$srcdir
slouken@5310
  1365
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
slouken@5310
  1366
esac
slouken@5310
  1367
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
slouken@5310
  1368
slouken@5310
  1369
    cd "$ac_dir" || { ac_status=$?; continue; }
slouken@5310
  1370
    # Check for guested configure.
slouken@5310
  1371
    if test -f "$ac_srcdir/configure.gnu"; then
slouken@5310
  1372
      echo &&
slouken@5310
  1373
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
slouken@5310
  1374
    elif test -f "$ac_srcdir/configure"; then
slouken@5310
  1375
      echo &&
slouken@5310
  1376
      $SHELL "$ac_srcdir/configure" --help=recursive
slouken@5310
  1377
    else
icculus@6390
  1378
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
slouken@5310
  1379
    fi || ac_status=$?
slouken@5310
  1380
    cd "$ac_pwd" || { ac_status=$?; break; }
slouken@5310
  1381
  done
slouken@5310
  1382
fi
slouken@5310
  1383
slouken@5310
  1384
test -n "$ac_init_help" && exit $ac_status
slouken@5310
  1385
if $ac_init_version; then
slouken@5310
  1386
  cat <<\_ACEOF
slouken@5310
  1387
configure
slouken@6442
  1388
generated by GNU Autoconf 2.69
slouken@6442
  1389
slouken@6442
  1390
Copyright (C) 2012 Free Software Foundation, Inc.
slouken@5310
  1391
This configure script is free software; the Free Software Foundation
slouken@5310
  1392
gives unlimited permission to copy, distribute and modify it.
slouken@5310
  1393
_ACEOF
slouken@5310
  1394
  exit
slouken@5310
  1395
fi
icculus@6390
  1396
icculus@6390
  1397
## ------------------------ ##
icculus@6390
  1398
## Autoconf initialization. ##
icculus@6390
  1399
## ------------------------ ##
icculus@6390
  1400
icculus@6390
  1401
# ac_fn_c_try_compile LINENO
icculus@6390
  1402
# --------------------------
icculus@6390
  1403
# Try to compile conftest.$ac_ext, and return whether this succeeded.
icculus@6390
  1404
ac_fn_c_try_compile ()
icculus@6390
  1405
{
icculus@6390
  1406
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
icculus@6390
  1407
  rm -f conftest.$ac_objext
icculus@6390
  1408
  if { { ac_try="$ac_compile"
icculus@6390
  1409
case "(($ac_try" in
icculus@6390
  1410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  1411
  *) ac_try_echo=$ac_try;;
icculus@6390
  1412
esac
icculus@6390
  1413
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  1414
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  1415
  (eval "$ac_compile") 2>conftest.err
icculus@6390
  1416
  ac_status=$?
icculus@6390
  1417
  if test -s conftest.err; then
icculus@6390
  1418
    grep -v '^ *+' conftest.err >conftest.er1
icculus@6390
  1419
    cat conftest.er1 >&5
icculus@6390
  1420
    mv -f conftest.er1 conftest.err
icculus@6390
  1421
  fi
icculus@6390
  1422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  1423
  test $ac_status = 0; } && {
icculus@6390
  1424
	 test -z "$ac_c_werror_flag" ||
icculus@6390
  1425
	 test ! -s conftest.err
icculus@6390
  1426
       } && test -s conftest.$ac_objext; then :
icculus@6390
  1427
  ac_retval=0
icculus@6390
  1428
else
icculus@6390
  1429
  $as_echo "$as_me: failed program was:" >&5
icculus@6390
  1430
sed 's/^/| /' conftest.$ac_ext >&5
icculus@6390
  1431
icculus@6390
  1432
	ac_retval=1
icculus@6390
  1433
fi
icculus@6390
  1434
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
icculus@6390
  1435
  as_fn_set_status $ac_retval
icculus@6390
  1436
icculus@6390
  1437
} # ac_fn_c_try_compile
icculus@6390
  1438
icculus@6390
  1439
# ac_fn_c_try_run LINENO
icculus@6390
  1440
# ----------------------
icculus@6390
  1441
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
icculus@6390
  1442
# that executables *can* be run.
icculus@6390
  1443
ac_fn_c_try_run ()
icculus@6390
  1444
{
icculus@6390
  1445
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
icculus@6390
  1446
  if { { ac_try="$ac_link"
icculus@6390
  1447
case "(($ac_try" in
icculus@6390
  1448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  1449
  *) ac_try_echo=$ac_try;;
icculus@6390
  1450
esac
icculus@6390
  1451
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  1452
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  1453
  (eval "$ac_link") 2>&5
icculus@6390
  1454
  ac_status=$?
icculus@6390
  1455
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  1456
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
icculus@6390
  1457
  { { case "(($ac_try" in
icculus@6390
  1458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  1459
  *) ac_try_echo=$ac_try;;
icculus@6390
  1460
esac
icculus@6390
  1461
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  1462
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  1463
  (eval "$ac_try") 2>&5
icculus@6390
  1464
  ac_status=$?
icculus@6390
  1465
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  1466
  test $ac_status = 0; }; }; then :
icculus@6390
  1467
  ac_retval=0
icculus@6390
  1468
else
icculus@6390
  1469
  $as_echo "$as_me: program exited with status $ac_status" >&5
icculus@6390
  1470
       $as_echo "$as_me: failed program was:" >&5
icculus@6390
  1471
sed 's/^/| /' conftest.$ac_ext >&5
icculus@6390
  1472
icculus@6390
  1473
       ac_retval=$ac_status
icculus@6390
  1474
fi
icculus@6390
  1475
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
icculus@6390
  1476
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
icculus@6390
  1477
  as_fn_set_status $ac_retval
icculus@6390
  1478
icculus@6390
  1479
} # ac_fn_c_try_run
icculus@6390
  1480
icculus@6390
  1481
# ac_fn_c_try_link LINENO
icculus@6390
  1482
# -----------------------
icculus@6390
  1483
# Try to link conftest.$ac_ext, and return whether this succeeded.
icculus@6390
  1484
ac_fn_c_try_link ()
icculus@6390
  1485
{
icculus@6390
  1486
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
icculus@6390
  1487
  rm -f conftest.$ac_objext conftest$ac_exeext
icculus@6390
  1488
  if { { ac_try="$ac_link"
icculus@6390
  1489
case "(($ac_try" in
icculus@6390
  1490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  1491
  *) ac_try_echo=$ac_try;;
icculus@6390
  1492
esac
icculus@6390
  1493
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  1494
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  1495
  (eval "$ac_link") 2>conftest.err
icculus@6390
  1496
  ac_status=$?
icculus@6390
  1497
  if test -s conftest.err; then
icculus@6390
  1498
    grep -v '^ *+' conftest.err >conftest.er1
icculus@6390
  1499
    cat conftest.er1 >&5
icculus@6390
  1500
    mv -f conftest.er1 conftest.err
icculus@6390
  1501
  fi
icculus@6390
  1502
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  1503
  test $ac_status = 0; } && {
icculus@6390
  1504
	 test -z "$ac_c_werror_flag" ||
icculus@6390
  1505
	 test ! -s conftest.err
icculus@6390
  1506
       } && test -s conftest$ac_exeext && {
icculus@6390
  1507
	 test "$cross_compiling" = yes ||
slouken@6442
  1508
	 test -x conftest$ac_exeext
icculus@6390
  1509
       }; then :
icculus@6390
  1510
  ac_retval=0
icculus@6390
  1511
else
icculus@6390
  1512
  $as_echo "$as_me: failed program was:" >&5
icculus@6390
  1513
sed 's/^/| /' conftest.$ac_ext >&5
icculus@6390
  1514
icculus@6390
  1515
	ac_retval=1
icculus@6390
  1516
fi
icculus@6390
  1517
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
icculus@6390
  1518
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
icculus@6390
  1519
  # interfere with the next link command; also delete a directory that is
icculus@6390
  1520
  # left behind by Apple's compiler.  We do this before executing the actions.
icculus@6390
  1521
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
icculus@6390
  1522
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
icculus@6390
  1523
  as_fn_set_status $ac_retval
icculus@6390
  1524
icculus@6390
  1525
} # ac_fn_c_try_link
icculus@6390
  1526
icculus@6390
  1527
# ac_fn_c_try_cpp LINENO
icculus@6390
  1528
# ----------------------
icculus@6390
  1529
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
icculus@6390
  1530
ac_fn_c_try_cpp ()
icculus@6390
  1531
{
icculus@6390
  1532
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
icculus@6390
  1533
  if { { ac_try="$ac_cpp conftest.$ac_ext"
icculus@6390
  1534
case "(($ac_try" in
icculus@6390
  1535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  1536
  *) ac_try_echo=$ac_try;;
icculus@6390
  1537
esac
icculus@6390
  1538
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  1539
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  1540
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
icculus@6390
  1541
  ac_status=$?
icculus@6390
  1542
  if test -s conftest.err; then
icculus@6390
  1543
    grep -v '^ *+' conftest.err >conftest.er1
icculus@6390
  1544
    cat conftest.er1 >&5
icculus@6390
  1545
    mv -f conftest.er1 conftest.err
icculus@6390
  1546
  fi
icculus@6390
  1547
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  1548
  test $ac_status = 0; } > conftest.i && {
icculus@6390
  1549
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
icculus@6390
  1550
	 test ! -s conftest.err
icculus@6390
  1551
       }; then :
icculus@6390
  1552
  ac_retval=0
icculus@6390
  1553
else
icculus@6390
  1554
  $as_echo "$as_me: failed program was:" >&5
icculus@6390
  1555
sed 's/^/| /' conftest.$ac_ext >&5
icculus@6390
  1556
icculus@6390
  1557
    ac_retval=1
icculus@6390
  1558
fi
icculus@6390
  1559
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
icculus@6390
  1560
  as_fn_set_status $ac_retval
icculus@6390
  1561
icculus@6390
  1562
} # ac_fn_c_try_cpp
slouken@5310
  1563
cat >config.log <<_ACEOF
slouken@5310
  1564
This file contains any messages produced by compilers while
slouken@5310
  1565
running configure, to aid debugging if configure makes a mistake.
slouken@5310
  1566
slouken@5310
  1567
It was created by $as_me, which was
slouken@6442
  1568
generated by GNU Autoconf 2.69.  Invocation command line was
slouken@5310
  1569
slouken@5310
  1570
  $ $0 $@
slouken@5310
  1571
slouken@5310
  1572
_ACEOF
slouken@5310
  1573
exec 5>>config.log
slouken@5310
  1574
{
slouken@5310
  1575
cat <<_ASUNAME
slouken@5310
  1576
## --------- ##
slouken@5310
  1577
## Platform. ##
slouken@5310
  1578
## --------- ##
slouken@5310
  1579
slouken@5310
  1580
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
slouken@5310
  1581
uname -m = `(uname -m) 2>/dev/null || echo unknown`
slouken@5310
  1582
uname -r = `(uname -r) 2>/dev/null || echo unknown`
slouken@5310
  1583
uname -s = `(uname -s) 2>/dev/null || echo unknown`
slouken@5310
  1584
uname -v = `(uname -v) 2>/dev/null || echo unknown`
slouken@5310
  1585
slouken@5310
  1586
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
slouken@5310
  1587
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
slouken@5310
  1588
slouken@5310
  1589
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
slouken@5310
  1590
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
slouken@5310
  1591
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
slouken@5310
  1592
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
slouken@5310
  1593
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
slouken@5310
  1594
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
slouken@5310
  1595
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
slouken@5310
  1596
slouken@5310
  1597
_ASUNAME
slouken@5310
  1598
slouken@5310
  1599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  1600
for as_dir in $PATH
slouken@5310
  1601
do
slouken@5310
  1602
  IFS=$as_save_IFS
slouken@5310
  1603
  test -z "$as_dir" && as_dir=.
icculus@6390
  1604
    $as_echo "PATH: $as_dir"
icculus@6390
  1605
  done
slouken@5310
  1606
IFS=$as_save_IFS
slouken@5310
  1607
slouken@5310
  1608
} >&5
slouken@5310
  1609
slouken@5310
  1610
cat >&5 <<_ACEOF
slouken@5310
  1611
slouken@5310
  1612
slouken@5310
  1613
## ----------- ##
slouken@5310
  1614
## Core tests. ##
slouken@5310
  1615
## ----------- ##
slouken@5310
  1616
slouken@5310
  1617
_ACEOF
slouken@5310
  1618
slouken@5310
  1619
slouken@5310
  1620
# Keep a trace of the command line.
slouken@5310
  1621
# Strip out --no-create and --no-recursion so they do not pile up.
slouken@5310
  1622
# Strip out --silent because we don't want to record it for future runs.
slouken@5310
  1623
# Also quote any args containing shell meta-characters.
slouken@5310
  1624
# Make two passes to allow for proper duplicate-argument suppression.
slouken@5310
  1625
ac_configure_args=
slouken@5310
  1626
ac_configure_args0=
slouken@5310
  1627
ac_configure_args1=
slouken@5310
  1628
ac_must_keep_next=false
slouken@5310
  1629
for ac_pass in 1 2
slouken@5310
  1630
do
slouken@5310
  1631
  for ac_arg
slouken@5310
  1632
  do
slouken@5310
  1633
    case $ac_arg in
slouken@5310
  1634
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
slouken@5310
  1635
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
slouken@5310
  1636
    | -silent | --silent | --silen | --sile | --sil)
slouken@5310
  1637
      continue ;;
slouken@5310
  1638
    *\'*)
icculus@6390
  1639
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
slouken@5310
  1640
    esac
slouken@5310
  1641
    case $ac_pass in
icculus@6390
  1642
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
slouken@5310
  1643
    2)
icculus@6390
  1644
      as_fn_append ac_configure_args1 " '$ac_arg'"
slouken@5310
  1645
      if test $ac_must_keep_next = true; then
slouken@5310
  1646
	ac_must_keep_next=false # Got value, back to normal.
slouken@5310
  1647
      else
slouken@5310
  1648
	case $ac_arg in
slouken@5310
  1649
	  *=* | --config-cache | -C | -disable-* | --disable-* \
slouken@5310
  1650
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
slouken@5310
  1651
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
slouken@5310
  1652
	  | -with-* | --with-* | -without-* | --without-* | --x)
slouken@5310
  1653
	    case "$ac_configure_args0 " in
slouken@5310
  1654
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
slouken@5310
  1655
	    esac
slouken@5310
  1656
	    ;;
slouken@5310
  1657
	  -* ) ac_must_keep_next=true ;;
slouken@5310
  1658
	esac
slouken@5310
  1659
      fi
icculus@6390
  1660
      as_fn_append ac_configure_args " '$ac_arg'"
slouken@5310
  1661
      ;;
slouken@5310
  1662
    esac
slouken@5310
  1663
  done
slouken@5310
  1664
done
icculus@6390
  1665
{ ac_configure_args0=; unset ac_configure_args0;}
icculus@6390
  1666
{ ac_configure_args1=; unset ac_configure_args1;}
slouken@5310
  1667
slouken@5310
  1668
# When interrupted or exit'd, cleanup temporary files, and complete
slouken@5310
  1669
# config.log.  We remove comments because anyway the quotes in there
slouken@5310
  1670
# would cause problems or look ugly.
slouken@5310
  1671
# WARNING: Use '\'' to represent an apostrophe within the trap.
slouken@5310
  1672
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
slouken@5310
  1673
trap 'exit_status=$?
slouken@5310
  1674
  # Save into config.log some information that might help in debugging.
slouken@5310
  1675
  {
slouken@5310
  1676
    echo
slouken@5310
  1677
icculus@6390
  1678
    $as_echo "## ---------------- ##
slouken@5310
  1679
## Cache variables. ##
icculus@6390
  1680
## ---------------- ##"
slouken@5310
  1681
    echo
slouken@5310
  1682
    # The following way of writing the cache mishandles newlines in values,
slouken@5310
  1683
(
slouken@5310
  1684
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
slouken@5310
  1685
    eval ac_val=\$$ac_var
slouken@5310
  1686
    case $ac_val in #(
slouken@5310
  1687
    *${as_nl}*)
slouken@5310
  1688
      case $ac_var in #(
icculus@6390
  1689
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
icculus@6390
  1690
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
slouken@5310
  1691
      esac
slouken@5310
  1692
      case $ac_var in #(
slouken@5310
  1693
      _ | IFS | as_nl) ;; #(
icculus@6390
  1694
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
icculus@6390
  1695
      *) { eval $ac_var=; unset $ac_var;} ;;
slouken@5310
  1696
      esac ;;
slouken@5310
  1697
    esac
slouken@5310
  1698
  done
slouken@5310
  1699
  (set) 2>&1 |
slouken@5310
  1700
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
slouken@5310
  1701
    *${as_nl}ac_space=\ *)
slouken@5310
  1702
      sed -n \
slouken@5310
  1703
	"s/'\''/'\''\\\\'\'''\''/g;
slouken@5310
  1704
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
slouken@5310
  1705
      ;; #(
slouken@5310
  1706
    *)
slouken@5310
  1707
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
slouken@5310
  1708
      ;;
slouken@5310
  1709
    esac |
slouken@5310
  1710
    sort
slouken@5310
  1711
)
slouken@5310
  1712
    echo
slouken@5310
  1713
icculus@6390
  1714
    $as_echo "## ----------------- ##
slouken@5310
  1715
## Output variables. ##
icculus@6390
  1716
## ----------------- ##"
slouken@5310
  1717
    echo
slouken@5310
  1718
    for ac_var in $ac_subst_vars
slouken@5310
  1719
    do
slouken@5310
  1720
      eval ac_val=\$$ac_var
slouken@5310
  1721
      case $ac_val in
icculus@6390
  1722
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
slouken@5310
  1723
      esac
icculus@6390
  1724
      $as_echo "$ac_var='\''$ac_val'\''"
slouken@5310
  1725
    done | sort
slouken@5310
  1726
    echo
slouken@5310
  1727
slouken@5310
  1728
    if test -n "$ac_subst_files"; then
icculus@6390
  1729
      $as_echo "## ------------------- ##
slouken@5310
  1730
## File substitutions. ##
icculus@6390
  1731
## ------------------- ##"
slouken@5310
  1732
      echo
slouken@5310
  1733
      for ac_var in $ac_subst_files
slouken@5310
  1734
      do
slouken@5310
  1735
	eval ac_val=\$$ac_var
slouken@5310
  1736
	case $ac_val in
icculus@6390
  1737
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
slouken@5310
  1738
	esac
icculus@6390
  1739
	$as_echo "$ac_var='\''$ac_val'\''"
slouken@5310
  1740
      done | sort
slouken@5310
  1741
      echo
slouken@5310
  1742
    fi
slouken@5310
  1743
slouken@5310
  1744
    if test -s confdefs.h; then
icculus@6390
  1745
      $as_echo "## ----------- ##
slouken@5310
  1746
## confdefs.h. ##
icculus@6390
  1747
## ----------- ##"
slouken@5310
  1748
      echo
slouken@5310
  1749
      cat confdefs.h
slouken@5310
  1750
      echo
slouken@5310
  1751
    fi
slouken@5310
  1752
    test "$ac_signal" != 0 &&
icculus@6390
  1753
      $as_echo "$as_me: caught signal $ac_signal"
icculus@6390
  1754
    $as_echo "$as_me: exit $exit_status"
slouken@5310
  1755
  } >&5
slouken@5310
  1756
  rm -f core *.core core.conftest.* &&
slouken@5310
  1757
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
slouken@5310
  1758
    exit $exit_status
slouken@5310
  1759
' 0
slouken@5310
  1760
for ac_signal in 1 2 13 15; do
icculus@6390
  1761
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
slouken@5310
  1762
done
slouken@5310
  1763
ac_signal=0
slouken@5310
  1764
slouken@5310
  1765
# confdefs.h avoids OS command line length limits that DEFS can exceed.
slouken@5310
  1766
rm -f -r conftest* confdefs.h
slouken@5310
  1767
icculus@6390
  1768
$as_echo "/* confdefs.h */" > confdefs.h
icculus@6390
  1769
slouken@5310
  1770
# Predefined preprocessor variables.
slouken@5310
  1771
slouken@5310
  1772
cat >>confdefs.h <<_ACEOF
slouken@5310
  1773
#define PACKAGE_NAME "$PACKAGE_NAME"
slouken@5310
  1774
_ACEOF
slouken@5310
  1775
slouken@5310
  1776
cat >>confdefs.h <<_ACEOF
slouken@5310
  1777
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
slouken@5310
  1778
_ACEOF
slouken@5310
  1779
slouken@5310
  1780
cat >>confdefs.h <<_ACEOF
slouken@5310
  1781
#define PACKAGE_VERSION "$PACKAGE_VERSION"
slouken@5310
  1782
_ACEOF
slouken@5310
  1783
slouken@5310
  1784
cat >>confdefs.h <<_ACEOF
slouken@5310
  1785
#define PACKAGE_STRING "$PACKAGE_STRING"
slouken@5310
  1786
_ACEOF
slouken@5310
  1787
slouken@5310
  1788
cat >>confdefs.h <<_ACEOF
slouken@5310
  1789
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
slouken@5310
  1790
_ACEOF
slouken@5310
  1791
icculus@6390
  1792
cat >>confdefs.h <<_ACEOF
icculus@6390
  1793
#define PACKAGE_URL "$PACKAGE_URL"
icculus@6390
  1794
_ACEOF
icculus@6390
  1795
slouken@5310
  1796
slouken@5310
  1797
# Let the site file select an alternate cache file if it wants to.
icculus@6390
  1798
# Prefer an explicitly selected file to automatically selected ones.
icculus@6390
  1799
ac_site_file1=NONE
icculus@6390
  1800
ac_site_file2=NONE
slouken@5310
  1801
if test -n "$CONFIG_SITE"; then
icculus@6390
  1802
  # We do not want a PATH search for config.site.
icculus@6390
  1803
  case $CONFIG_SITE in #((
icculus@6390
  1804
    -*)  ac_site_file1=./$CONFIG_SITE;;
icculus@6390
  1805
    */*) ac_site_file1=$CONFIG_SITE;;
icculus@6390
  1806
    *)   ac_site_file1=./$CONFIG_SITE;;
icculus@6390
  1807
  esac
slouken@5310
  1808
elif test "x$prefix" != xNONE; then
icculus@6390
  1809
  ac_site_file1=$prefix/share/config.site
icculus@6390
  1810
  ac_site_file2=$prefix/etc/config.site
slouken@5310
  1811
else
icculus@6390
  1812
  ac_site_file1=$ac_default_prefix/share/config.site
icculus@6390
  1813
  ac_site_file2=$ac_default_prefix/etc/config.site
slouken@5310
  1814
fi
icculus@6390
  1815
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
slouken@5310
  1816
do
icculus@6390
  1817
  test "x$ac_site_file" = xNONE && continue
icculus@6390
  1818
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
icculus@6390
  1819
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
icculus@6390
  1820
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
slouken@5310
  1821
    sed 's/^/| /' "$ac_site_file" >&5
icculus@6390
  1822
    . "$ac_site_file" \
icculus@6390
  1823
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
icculus@6390
  1824
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
icculus@6390
  1825
as_fn_error $? "failed to load site script $ac_site_file
icculus@6390
  1826
See \`config.log' for more details" "$LINENO" 5; }
slouken@5310
  1827
  fi
slouken@5310
  1828
done
slouken@5310
  1829
slouken@5310
  1830
if test -r "$cache_file"; then
icculus@6390
  1831
  # Some versions of bash will fail to source /dev/null (special files
icculus@6390
  1832
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
icculus@6390
  1833
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
icculus@6390
  1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
icculus@6390
  1835
$as_echo "$as_me: loading cache $cache_file" >&6;}
slouken@5310
  1836
    case $cache_file in
slouken@5310
  1837
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
slouken@5310
  1838
      *)                      . "./$cache_file";;
slouken@5310
  1839
    esac
slouken@5310
  1840
  fi
slouken@5310
  1841
else
icculus@6390
  1842
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
icculus@6390
  1843
$as_echo "$as_me: creating cache $cache_file" >&6;}
slouken@5310
  1844
  >$cache_file
slouken@5310
  1845
fi
slouken@5310
  1846
slouken@5310
  1847
# Check that the precious variables saved in the cache have kept the same
slouken@5310
  1848
# value.
slouken@5310
  1849
ac_cache_corrupted=false
slouken@5310
  1850
for ac_var in $ac_precious_vars; do
slouken@5310
  1851
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
slouken@5310
  1852
  eval ac_new_set=\$ac_env_${ac_var}_set
slouken@5310
  1853
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
slouken@5310
  1854
  eval ac_new_val=\$ac_env_${ac_var}_value
slouken@5310
  1855
  case $ac_old_set,$ac_new_set in
slouken@5310
  1856
    set,)
icculus@6390
  1857
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
icculus@6390
  1858
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
slouken@5310
  1859
      ac_cache_corrupted=: ;;
slouken@5310
  1860
    ,set)
icculus@6390
  1861
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
icculus@6390
  1862
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
slouken@5310
  1863
      ac_cache_corrupted=: ;;
slouken@5310
  1864
    ,);;
slouken@5310
  1865
    *)
slouken@5310
  1866
      if test "x$ac_old_val" != "x$ac_new_val"; then
icculus@6390
  1867
	# differences in whitespace do not lead to failure.
icculus@6390
  1868
	ac_old_val_w=`echo x $ac_old_val`
icculus@6390
  1869
	ac_new_val_w=`echo x $ac_new_val`
icculus@6390
  1870
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
icculus@6390
  1871
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
icculus@6390
  1872
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
icculus@6390
  1873
	  ac_cache_corrupted=:
icculus@6390
  1874
	else
icculus@6390
  1875
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
icculus@6390
  1876
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
icculus@6390
  1877
	  eval $ac_var=\$ac_old_val
icculus@6390
  1878
	fi
icculus@6390
  1879
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
icculus@6390
  1880
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
icculus@6390
  1881
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
icculus@6390
  1882
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
slouken@5310
  1883
      fi;;
slouken@5310
  1884
  esac
slouken@5310
  1885
  # Pass precious variables to config.status.
slouken@5310
  1886
  if test "$ac_new_set" = set; then
slouken@5310
  1887
    case $ac_new_val in
icculus@6390
  1888
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
slouken@5310
  1889
    *) ac_arg=$ac_var=$ac_new_val ;;
slouken@5310
  1890
    esac
slouken@5310
  1891
    case " $ac_configure_args " in
slouken@5310
  1892
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
icculus@6390
  1893
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
slouken@5310
  1894
    esac
slouken@5310
  1895
  fi
slouken@5310
  1896
done
slouken@5310
  1897
if $ac_cache_corrupted; then
icculus@6390
  1898
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
icculus@6390
  1899
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
icculus@6390
  1900
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
icculus@6390
  1901
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
icculus@6390
  1902
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
slouken@5310
  1903
fi
icculus@6390
  1904
## -------------------- ##
icculus@6390
  1905
## Main body of script. ##
icculus@6390
  1906
## -------------------- ##
slouken@5310
  1907
slouken@5310
  1908
ac_ext=c
slouken@5310
  1909
ac_cpp='$CPP $CPPFLAGS'
slouken@5310
  1910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
slouken@5310
  1911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
slouken@5310
  1912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
slouken@5310
  1913
slouken@5310
  1914
slouken@5310
  1915
slouken@5310
  1916
ac_aux_dir=
slouken@5310
  1917
for ac_dir in $srcdir/../build-scripts; do
icculus@5876
  1918
  if test -f "$ac_dir/install-sh"; then
icculus@5876
  1919
    ac_aux_dir=$ac_dir
icculus@5876
  1920
    ac_install_sh="$ac_aux_dir/install-sh -c"
icculus@5876
  1921
    break
icculus@5876
  1922
  elif test -f "$ac_dir/install.sh"; then
icculus@5876
  1923
    ac_aux_dir=$ac_dir
icculus@5876
  1924
    ac_install_sh="$ac_aux_dir/install.sh -c"
icculus@5876
  1925
    break
icculus@5876
  1926
  elif test -f "$ac_dir/shtool"; then
icculus@5876
  1927
    ac_aux_dir=$ac_dir
icculus@5876
  1928
    ac_install_sh="$ac_aux_dir/shtool install -c"
icculus@5876
  1929
    break
icculus@5876
  1930
  fi
slouken@5310
  1931
done
slouken@5310
  1932
if test -z "$ac_aux_dir"; then
icculus@6390
  1933
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
slouken@5310
  1934
fi
slouken@5310
  1935
slouken@5310
  1936
# These three variables are undocumented and unsupported,
slouken@5310
  1937
# and are intended to be withdrawn in a future Autoconf release.
slouken@5310
  1938
# They can cause serious problems if a builder's source tree is in a directory
slouken@5310
  1939
# whose full name contains unusual characters.
slouken@5310
  1940
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
slouken@5310
  1941
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
slouken@5310
  1942
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
slouken@5310
  1943
slouken@5310
  1944
slouken@5310
  1945
# Make sure we can run config.sub.
slouken@5310
  1946
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
icculus@6390
  1947
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
icculus@6390
  1948
icculus@6390
  1949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
icculus@6390
  1950
$as_echo_n "checking build system type... " >&6; }
icculus@6390
  1951
if ${ac_cv_build+:} false; then :
icculus@6390
  1952
  $as_echo_n "(cached) " >&6
slouken@5310
  1953
else
slouken@5310
  1954
  ac_build_alias=$build_alias
slouken@5310
  1955
test "x$ac_build_alias" = x &&
slouken@5310
  1956
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
slouken@5310
  1957
test "x$ac_build_alias" = x &&
icculus@6390
  1958
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
slouken@5310
  1959
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
icculus@6390
  1960
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
slouken@5310
  1961
slouken@5310
  1962
fi
icculus@6390
  1963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
icculus@6390
  1964
$as_echo "$ac_cv_build" >&6; }
slouken@5310
  1965
case $ac_cv_build in
slouken@5310
  1966
*-*-*) ;;
icculus@6390
  1967
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
slouken@5310
  1968
esac
slouken@5310
  1969
build=$ac_cv_build
slouken@5310
  1970
ac_save_IFS=$IFS; IFS='-'
slouken@5310
  1971
set x $ac_cv_build
slouken@5310
  1972
shift
slouken@5310
  1973
build_cpu=$1
slouken@5310
  1974
build_vendor=$2
slouken@5310
  1975
shift; shift
slouken@5310
  1976
# Remember, the first character of IFS is used to create $*,
slouken@5310
  1977
# except with old shells:
slouken@5310
  1978
build_os=$*
slouken@5310
  1979
IFS=$ac_save_IFS
slouken@5310
  1980
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
slouken@5310
  1981
slouken@5310
  1982
icculus@6390
  1983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
icculus@6390
  1984
$as_echo_n "checking host system type... " >&6; }
icculus@6390
  1985
if ${ac_cv_host+:} false; then :
icculus@6390
  1986
  $as_echo_n "(cached) " >&6
slouken@5310
  1987
else
slouken@5310
  1988
  if test "x$host_alias" = x; then
slouken@5310
  1989
  ac_cv_host=$ac_cv_build
slouken@5310
  1990
else
slouken@5310
  1991
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
icculus@6390
  1992
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
slouken@5310
  1993
fi
slouken@5310
  1994
slouken@5310
  1995
fi
icculus@6390
  1996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
icculus@6390
  1997
$as_echo "$ac_cv_host" >&6; }
slouken@5310
  1998
case $ac_cv_host in
slouken@5310
  1999
*-*-*) ;;
icculus@6390
  2000
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
slouken@5310
  2001
esac
slouken@5310
  2002
host=$ac_cv_host
slouken@5310
  2003
ac_save_IFS=$IFS; IFS='-'
slouken@5310
  2004
set x $ac_cv_host
slouken@5310
  2005
shift
slouken@5310
  2006
host_cpu=$1
slouken@5310
  2007
host_vendor=$2
slouken@5310
  2008
shift; shift
slouken@5310
  2009
# Remember, the first character of IFS is used to create $*,
slouken@5310
  2010
# except with old shells:
slouken@5310
  2011
host_os=$*
slouken@5310
  2012
IFS=$ac_save_IFS
slouken@5310
  2013
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
slouken@5310
  2014
slouken@5310
  2015
slouken@5310
  2016
slouken@5310
  2017
slouken@5310
  2018
ac_ext=c
slouken@5310
  2019
ac_cpp='$CPP $CPPFLAGS'
slouken@5310
  2020
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
slouken@5310
  2021
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
slouken@5310
  2022
ac_compiler_gnu=$ac_cv_c_compiler_gnu
slouken@5310
  2023
if test -n "$ac_tool_prefix"; then
slouken@5310
  2024
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
slouken@5310
  2025
set dummy ${ac_tool_prefix}gcc; ac_word=$2
icculus@6390
  2026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
icculus@6390
  2027
$as_echo_n "checking for $ac_word... " >&6; }
icculus@6390
  2028
if ${ac_cv_prog_CC+:} false; then :
icculus@6390
  2029
  $as_echo_n "(cached) " >&6
slouken@5310
  2030
else
slouken@5310
  2031
  if test -n "$CC"; then
slouken@5310
  2032
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2033
else
slouken@5310
  2034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2035
for as_dir in $PATH
slouken@5310
  2036
do
slouken@5310
  2037
  IFS=$as_save_IFS
slouken@5310
  2038
  test -z "$as_dir" && as_dir=.
icculus@6390
  2039
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6442
  2040
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2041
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
icculus@6390
  2042
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2043
    break 2
slouken@5310
  2044
  fi
slouken@5310
  2045
done
icculus@6390
  2046
  done
slouken@5310
  2047
IFS=$as_save_IFS
slouken@5310
  2048
slouken@5310
  2049
fi
slouken@5310
  2050
fi
slouken@5310
  2051
CC=$ac_cv_prog_CC
slouken@5310
  2052
if test -n "$CC"; then
icculus@6390
  2053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
icculus@6390
  2054
$as_echo "$CC" >&6; }
slouken@5310
  2055
else
icculus@6390
  2056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2057
$as_echo "no" >&6; }
slouken@5310
  2058
fi
slouken@5310
  2059
slouken@5310
  2060
slouken@5310
  2061
fi
slouken@5310
  2062
if test -z "$ac_cv_prog_CC"; then
slouken@5310
  2063
  ac_ct_CC=$CC
slouken@5310
  2064
  # Extract the first word of "gcc", so it can be a program name with args.
slouken@5310
  2065
set dummy gcc; ac_word=$2
icculus@6390
  2066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
icculus@6390
  2067
$as_echo_n "checking for $ac_word... " >&6; }
icculus@6390
  2068
if ${ac_cv_prog_ac_ct_CC+:} false; then :
icculus@6390
  2069
  $as_echo_n "(cached) " >&6
slouken@5310
  2070
else
slouken@5310
  2071
  if test -n "$ac_ct_CC"; then
slouken@5310
  2072
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
slouken@5310
  2073
else
slouken@5310
  2074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2075
for as_dir in $PATH
slouken@5310
  2076
do
slouken@5310
  2077
  IFS=$as_save_IFS
slouken@5310
  2078
  test -z "$as_dir" && as_dir=.
icculus@6390
  2079
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6442
  2080
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2081
    ac_cv_prog_ac_ct_CC="gcc"
icculus@6390
  2082
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2083
    break 2
slouken@5310
  2084
  fi
slouken@5310
  2085
done
icculus@6390
  2086
  done
slouken@5310
  2087
IFS=$as_save_IFS
slouken@5310
  2088
slouken@5310
  2089
fi
slouken@5310
  2090
fi
slouken@5310
  2091
ac_ct_CC=$ac_cv_prog_ac_ct_CC
slouken@5310
  2092
if test -n "$ac_ct_CC"; then
icculus@6390
  2093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
icculus@6390
  2094
$as_echo "$ac_ct_CC" >&6; }
slouken@5310
  2095
else
icculus@6390
  2096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2097
$as_echo "no" >&6; }
slouken@5310
  2098
fi
slouken@5310
  2099
slouken@5310
  2100
  if test "x$ac_ct_CC" = x; then
slouken@5310
  2101
    CC=""
slouken@5310
  2102
  else
slouken@5310
  2103
    case $cross_compiling:$ac_tool_warned in
slouken@5310
  2104
yes:)
icculus@6390
  2105
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
icculus@6390
  2106
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
slouken@5310
  2107
ac_tool_warned=yes ;;
slouken@5310
  2108
esac
slouken@5310
  2109
    CC=$ac_ct_CC
slouken@5310
  2110
  fi
slouken@5310
  2111
else
slouken@5310
  2112
  CC="$ac_cv_prog_CC"
slouken@5310
  2113
fi
slouken@5310
  2114
slouken@5310
  2115
if test -z "$CC"; then
slouken@5310
  2116
          if test -n "$ac_tool_prefix"; then
slouken@5310
  2117
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
slouken@5310
  2118
set dummy ${ac_tool_prefix}cc; ac_word=$2
icculus@6390
  2119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
icculus@6390
  2120
$as_echo_n "checking for $ac_word... " >&6; }
icculus@6390
  2121
if ${ac_cv_prog_CC+:} false; then :
icculus@6390
  2122
  $as_echo_n "(cached) " >&6
slouken@5310
  2123
else
slouken@5310
  2124
  if test -n "$CC"; then
slouken@5310
  2125
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2126
else
slouken@5310
  2127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2128
for as_dir in $PATH
slouken@5310
  2129
do
slouken@5310
  2130
  IFS=$as_save_IFS
slouken@5310
  2131
  test -z "$as_dir" && as_dir=.
icculus@6390
  2132
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6442
  2133
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2134
    ac_cv_prog_CC="${ac_tool_prefix}cc"
icculus@6390
  2135
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2136
    break 2
slouken@5310
  2137
  fi
slouken@5310
  2138
done
icculus@6390
  2139
  done
slouken@5310
  2140
IFS=$as_save_IFS
slouken@5310
  2141
slouken@5310
  2142
fi
slouken@5310
  2143
fi
slouken@5310
  2144
CC=$ac_cv_prog_CC
slouken@5310
  2145
if test -n "$CC"; then
icculus@6390
  2146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
icculus@6390
  2147
$as_echo "$CC" >&6; }
slouken@5310
  2148
else
icculus@6390
  2149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2150
$as_echo "no" >&6; }
slouken@5310
  2151
fi
slouken@5310
  2152
slouken@5310
  2153
slouken@5310
  2154
  fi
slouken@5310
  2155
fi
slouken@5310
  2156
if test -z "$CC"; then
slouken@5310
  2157
  # Extract the first word of "cc", so it can be a program name with args.
slouken@5310
  2158
set dummy cc; ac_word=$2
icculus@6390
  2159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
icculus@6390
  2160
$as_echo_n "checking for $ac_word... " >&6; }
icculus@6390
  2161
if ${ac_cv_prog_CC+:} false; then :
icculus@6390
  2162
  $as_echo_n "(cached) " >&6
slouken@5310
  2163
else
slouken@5310
  2164
  if test -n "$CC"; then
slouken@5310
  2165
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2166
else
slouken@5310
  2167
  ac_prog_rejected=no
slouken@5310
  2168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2169
for as_dir in $PATH
slouken@5310
  2170
do
slouken@5310
  2171
  IFS=$as_save_IFS
slouken@5310
  2172
  test -z "$as_dir" && as_dir=.
icculus@6390
  2173
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6442
  2174
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2175
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
slouken@5310
  2176
       ac_prog_rejected=yes
slouken@5310
  2177
       continue
slouken@5310
  2178
     fi
slouken@5310
  2179
    ac_cv_prog_CC="cc"
icculus@6390
  2180
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2181
    break 2
slouken@5310
  2182
  fi
slouken@5310
  2183
done
icculus@6390
  2184
  done
slouken@5310
  2185
IFS=$as_save_IFS
slouken@5310
  2186
slouken@5310
  2187
if test $ac_prog_rejected = yes; then
slouken@5310
  2188
  # We found a bogon in the path, so make sure we never use it.
slouken@5310
  2189
  set dummy $ac_cv_prog_CC
slouken@5310
  2190
  shift
slouken@5310
  2191
  if test $# != 0; then
slouken@5310
  2192
    # We chose a different compiler from the bogus one.
slouken@5310
  2193
    # However, it has the same basename, so the bogon will be chosen
slouken@5310
  2194
    # first if we set CC to just the basename; use the full file name.
slouken@5310
  2195
    shift
slouken@5310
  2196
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
slouken@5310
  2197
  fi
slouken@5310
  2198
fi
slouken@5310
  2199
fi
slouken@5310
  2200
fi
slouken@5310
  2201
CC=$ac_cv_prog_CC
slouken@5310
  2202
if test -n "$CC"; then
icculus@6390
  2203
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
icculus@6390
  2204
$as_echo "$CC" >&6; }
slouken@5310
  2205
else
icculus@6390
  2206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2207
$as_echo "no" >&6; }
slouken@5310
  2208
fi
slouken@5310
  2209
slouken@5310
  2210
slouken@5310
  2211
fi
slouken@5310
  2212
if test -z "$CC"; then
slouken@5310
  2213
  if test -n "$ac_tool_prefix"; then
slouken@5310
  2214
  for ac_prog in cl.exe
slouken@5310
  2215
  do
slouken@5310
  2216
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
slouken@5310
  2217
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
icculus@6390
  2218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
icculus@6390
  2219
$as_echo_n "checking for $ac_word... " >&6; }
icculus@6390
  2220
if ${ac_cv_prog_CC+:} false; then :
icculus@6390
  2221
  $as_echo_n "(cached) " >&6
slouken@5310
  2222
else
slouken@5310
  2223
  if test -n "$CC"; then
slouken@5310
  2224
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2225
else
slouken@5310
  2226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2227
for as_dir in $PATH
slouken@5310
  2228
do
slouken@5310
  2229
  IFS=$as_save_IFS
slouken@5310
  2230
  test -z "$as_dir" && as_dir=.
icculus@6390
  2231
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6442
  2232
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2233
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
icculus@6390
  2234
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2235
    break 2
slouken@5310
  2236
  fi
slouken@5310
  2237
done
icculus@6390
  2238
  done
slouken@5310
  2239
IFS=$as_save_IFS
slouken@5310
  2240
slouken@5310
  2241
fi
slouken@5310
  2242
fi
slouken@5310
  2243
CC=$ac_cv_prog_CC
slouken@5310
  2244
if test -n "$CC"; then
icculus@6390
  2245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
icculus@6390
  2246
$as_echo "$CC" >&6; }
slouken@5310
  2247
else
icculus@6390
  2248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2249
$as_echo "no" >&6; }
slouken@5310
  2250
fi
slouken@5310
  2251
slouken@5310
  2252
slouken@5310
  2253
    test -n "$CC" && break
slouken@5310
  2254
  done
slouken@5310
  2255
fi
slouken@5310
  2256
if test -z "$CC"; then
slouken@5310
  2257
  ac_ct_CC=$CC
slouken@5310
  2258
  for ac_prog in cl.exe
slouken@5310
  2259
do
slouken@5310
  2260
  # Extract the first word of "$ac_prog", so it can be a program name with args.
slouken@5310
  2261
set dummy $ac_prog; ac_word=$2
icculus@6390
  2262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
icculus@6390
  2263
$as_echo_n "checking for $ac_word... " >&6; }
icculus@6390
  2264
if ${ac_cv_prog_ac_ct_CC+:} false; then :
icculus@6390
  2265
  $as_echo_n "(cached) " >&6
slouken@5310
  2266
else
slouken@5310
  2267
  if test -n "$ac_ct_CC"; then
slouken@5310
  2268
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
slouken@5310
  2269
else
slouken@5310
  2270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2271
for as_dir in $PATH
slouken@5310
  2272
do
slouken@5310
  2273
  IFS=$as_save_IFS
slouken@5310
  2274
  test -z "$as_dir" && as_dir=.
icculus@6390
  2275
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6442
  2276
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2277
    ac_cv_prog_ac_ct_CC="$ac_prog"
icculus@6390
  2278
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2279
    break 2
slouken@5310
  2280
  fi
slouken@5310
  2281
done
icculus@6390
  2282
  done
slouken@5310
  2283
IFS=$as_save_IFS
slouken@5310
  2284
slouken@5310
  2285
fi
slouken@5310
  2286
fi
slouken@5310
  2287
ac_ct_CC=$ac_cv_prog_ac_ct_CC
slouken@5310
  2288
if test -n "$ac_ct_CC"; then
icculus@6390
  2289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
icculus@6390
  2290
$as_echo "$ac_ct_CC" >&6; }
slouken@5310
  2291
else
icculus@6390
  2292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2293
$as_echo "no" >&6; }
slouken@5310
  2294
fi
slouken@5310
  2295
slouken@5310
  2296
slouken@5310
  2297
  test -n "$ac_ct_CC" && break
slouken@5310
  2298
done
slouken@5310
  2299
slouken@5310
  2300
  if test "x$ac_ct_CC" = x; then
slouken@5310
  2301
    CC=""
slouken@5310
  2302
  else
slouken@5310
  2303
    case $cross_compiling:$ac_tool_warned in
slouken@5310
  2304
yes:)
icculus@6390
  2305
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
icculus@6390
  2306
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
slouken@5310
  2307
ac_tool_warned=yes ;;
slouken@5310
  2308
esac
slouken@5310
  2309
    CC=$ac_ct_CC
slouken@5310
  2310
  fi
slouken@5310
  2311
fi
slouken@5310
  2312
slouken@5310
  2313
fi
slouken@5310
  2314
slouken@5310
  2315
icculus@6390
  2316
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
icculus@6390
  2317
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
icculus@6390
  2318
as_fn_error $? "no acceptable C compiler found in \$PATH
icculus@6390
  2319
See \`config.log' for more details" "$LINENO" 5; }
slouken@5310
  2320
slouken@5310
  2321
# Provide some information about the compiler.
icculus@6390
  2322
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
icculus@6390
  2323
set X $ac_compile
icculus@6390
  2324
ac_compiler=$2
icculus@6390
  2325
for ac_option in --version -v -V -qversion; do
icculus@6390
  2326
  { { ac_try="$ac_compiler $ac_option >&5"
slouken@5310
  2327
case "(($ac_try" in
slouken@5310
  2328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@5310
  2329
  *) ac_try_echo=$ac_try;;
slouken@5310
  2330
esac
icculus@6390
  2331
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  2332
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  2333
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
slouken@5310
  2334
  ac_status=$?
icculus@6390
  2335
  if test -s conftest.err; then
icculus@6390
  2336
    sed '10a\
icculus@6390
  2337
... rest of stderr output deleted ...
icculus@6390
  2338
         10q' conftest.err >conftest.er1
icculus@6390
  2339
    cat conftest.er1 >&5
icculus@6390
  2340
  fi
icculus@6390
  2341
  rm -f conftest.er1 conftest.err
icculus@6390
  2342
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  2343
  test $ac_status = 0; }
icculus@6390
  2344
done
icculus@6390
  2345
icculus@6390
  2346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
slouken@5310
  2347
/* end confdefs.h.  */
slouken@5310
  2348
slouken@5310
  2349
int
slouken@5310
  2350
main ()
slouken@5310
  2351
{
slouken@5310
  2352
slouken@5310
  2353
  ;
slouken@5310
  2354
  return 0;
slouken@5310
  2355
}
slouken@5310
  2356
_ACEOF
slouken@5310
  2357
ac_clean_files_save=$ac_clean_files
icculus@6390
  2358
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
slouken@5310
  2359
# Try to create an executable without -o first, disregard a.out.
slouken@5310
  2360
# It will help us diagnose broken compilers, and finding out an intuition
slouken@5310
  2361
# of exeext.
icculus@6390
  2362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
icculus@6390
  2363
$as_echo_n "checking whether the C compiler works... " >&6; }
icculus@6390
  2364
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
icculus@6390
  2365
icculus@6390
  2366
# The possible output files:
icculus@6390
  2367
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
icculus@6390
  2368
slouken@5310
  2369
ac_rmfiles=
slouken@5310
  2370
for ac_file in $ac_files
slouken@5310
  2371
do
slouken@5310
  2372
  case $ac_file in
icculus@6390
  2373
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
slouken@5310
  2374
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
slouken@5310
  2375
  esac
slouken@5310
  2376
done
slouken@5310
  2377
rm -f $ac_rmfiles
slouken@5310
  2378
icculus@6390
  2379
if { { ac_try="$ac_link_default"
slouken@5310
  2380
case "(($ac_try" in
slouken@5310
  2381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@5310
  2382
  *) ac_try_echo=$ac_try;;
slouken@5310
  2383
esac
icculus@6390
  2384
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  2385
$as_echo "$ac_try_echo"; } >&5
slouken@5310
  2386
  (eval "$ac_link_default") 2>&5
slouken@5310
  2387
  ac_status=$?
icculus@6390
  2388
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  2389
  test $ac_status = 0; }; then :
slouken@5310
  2390
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
slouken@5310
  2391
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
slouken@5310
  2392
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
slouken@5310
  2393
# so that the user can short-circuit this test for compilers unknown to
slouken@5310
  2394
# Autoconf.
slouken@5310
  2395
for ac_file in $ac_files ''
slouken@5310
  2396
do
slouken@5310
  2397
  test -f "$ac_file" || continue
slouken@5310
  2398
  case $ac_file in
icculus@6390
  2399
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
slouken@5310
  2400
	;;
slouken@5310
  2401
    [ab].out )
slouken@5310
  2402
	# We found the default executable, but exeext='' is most
slouken@5310
  2403
	# certainly right.
slouken@5310
  2404
	break;;
slouken@5310
  2405
    *.* )
icculus@6390
  2406
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
slouken@5310
  2407
	then :; else
slouken@5310
  2408
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
slouken@5310
  2409
	fi
slouken@5310
  2410
	# We set ac_cv_exeext here because the later test for it is not
slouken@5310
  2411
	# safe: cross compilers may not add the suffix if given an `-o'
slouken@5310
  2412
	# argument, so we may need to know it at that point already.
slouken@5310
  2413
	# Even if this section looks crufty: it has the advantage of
slouken@5310
  2414
	# actually working.
slouken@5310
  2415
	break;;
slouken@5310
  2416
    * )
slouken@5310
  2417
	break;;
slouken@5310
  2418
  esac
slouken@5310
  2419
done
slouken@5310
  2420
test "$ac_cv_exeext" = no && ac_cv_exeext=
slouken@5310
  2421
slouken@5310
  2422
else
slouken@5310
  2423
  ac_file=''
slouken@5310
  2424
fi
icculus@6390
  2425
if test -z "$ac_file"; then :
icculus@6390
  2426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
icculus@6390
  2427
$as_echo "no" >&6; }
icculus@6390
  2428
$as_echo "$as_me: failed program was:" >&5
slouken@5310
  2429
sed 's/^/| /' conftest.$ac_ext >&5
slouken@5310
  2430
icculus@6390
  2431
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
icculus@6390
  2432
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
icculus@6390
  2433
as_fn_error 77 "C compiler cannot create executables
icculus@6390
  2434
See \`config.log' for more details" "$LINENO" 5; }
icculus@6390
  2435
else
icculus@6390
  2436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
icculus@6390
  2437
$as_echo "yes" >&6; }
slouken@5310
  2438
fi
icculus@6390
  2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
icculus@6390
  2440
$as_echo_n "checking for C compiler default output file name... " >&6; }
icculus@6390
  2441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
icculus@6390
  2442
$as_echo "$ac_file" >&6; }
slouken@5310
  2443
ac_exeext=$ac_cv_exeext
slouken@5310
  2444
icculus@6390
  2445
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
slouken@5310
  2446
ac_clean_files=$ac_clean_files_save
icculus@6390
  2447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
icculus@6390
  2448
$as_echo_n "checking for suffix of executables... " >&6; }
icculus@6390
  2449
if { { ac_try="$ac_link"
slouken@5310
  2450
case "(($ac_try" in
slouken@5310
  2451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@5310
  2452
  *) ac_try_echo=$ac_try;;
slouken@5310
  2453
esac
icculus@6390
  2454
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  2455
$as_echo "$ac_try_echo"; } >&5
slouken@5310
  2456
  (eval "$ac_link") 2>&5
slouken@5310
  2457
  ac_status=$?
icculus@6390
  2458
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  2459
  test $ac_status = 0; }; then :
slouken@5310
  2460
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
slouken@5310
  2461
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
slouken@5310
  2462
# work properly (i.e., refer to `conftest.exe'), while it won't with
slouken@5310
  2463
# `rm'.
slouken@5310
  2464
for ac_file in conftest.exe conftest conftest.*; do
slouken@5310
  2465
  test -f "$ac_file" || continue
slouken@5310
  2466
  case $ac_file in
icculus@6390
  2467
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
slouken@5310
  2468
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
slouken@5310
  2469
	  break;;
slouken@5310
  2470
    * ) break;;
slouken@5310
  2471
  esac
slouken@5310
  2472
done
slouken@5310
  2473
else
icculus@6390
  2474
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
icculus@6390
  2475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
icculus@6390
  2476
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
icculus@6390
  2477
See \`config.log' for more details" "$LINENO" 5; }
slouken@5310
  2478
fi
icculus@6390
  2479
rm -f conftest conftest$ac_cv_exeext
icculus@6390
  2480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
icculus@6390
  2481
$as_echo "$ac_cv_exeext" >&6; }
slouken@5310
  2482
slouken@5310
  2483
rm -f conftest.$ac_ext
slouken@5310
  2484
EXEEXT=$ac_cv_exeext
slouken@5310
  2485
ac_exeext=$EXEEXT
icculus@6390
  2486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
icculus@6390
  2487
/* end confdefs.h.  */
icculus@6390
  2488
#include <stdio.h>
icculus@6390
  2489
int
icculus@6390
  2490
main ()
icculus@6390
  2491
{
icculus@6390
  2492
FILE *f = fopen ("conftest.out", "w");
icculus@6390
  2493
 return ferror (f) || fclose (f) != 0;
icculus@6390
  2494
icculus@6390
  2495
  ;
icculus@6390
  2496
  return 0;
icculus@6390
  2497
}
icculus@6390
  2498
_ACEOF
icculus@6390
  2499
ac_clean_files="$ac_clean_files conftest.out"
icculus@6390
  2500
# Check that the compiler produces executables we can run.  If not, either
icculus@6390
  2501
# the compiler is broken, or we cross compile.
icculus@6390
  2502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
icculus@6390
  2503
$as_echo_n "checking whether we are cross compiling... " >&6; }
icculus@6390
  2504
if test "$cross_compiling" != yes; then
icculus@6390
  2505
  { { ac_try="$ac_link"
icculus@6390
  2506
case "(($ac_try" in
icculus@6390
  2507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  2508
  *) ac_try_echo=$ac_try;;
icculus@6390
  2509
esac
icculus@6390
  2510
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  2511
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  2512
  (eval "$ac_link") 2>&5
icculus@6390
  2513
  ac_status=$?
icculus@6390
  2514
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  2515
  test $ac_status = 0; }
icculus@6390
  2516
  if { ac_try='./conftest$ac_cv_exeext'
icculus@6390
  2517
  { { case "(($ac_try" in
icculus@6390
  2518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
icculus@6390
  2519
  *) ac_try_echo=$ac_try;;
icculus@6390
  2520
esac
icculus@6390
  2521
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
icculus@6390
  2522
$as_echo "$ac_try_echo"; } >&5
icculus@6390
  2523
  (eval "$ac_try") 2>&5
icculus@6390
  2524
  ac_status=$?
icculus@6390
  2525
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
icculus@6390
  2526
  test $ac_status = 0; }; }; then
icculus@6390
  2527
    cross_compiling=no
icculus@6390
  2528
  else
icculus@6390
  2529
    if test "$cross_compiling" = maybe; then
icculus@6390
  2530
	cross_compiling=yes
icculus@6390
  2531
    else
icculus@6390
  2532
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
icculus@6390
  2533
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
icculus@6390
  2534
as_fn_error $? "cannot run C compiled programs.
icculus@6390
  2535
If you meant to cross compile, use \`--host'.
icculus@6390
  2536
See \`config.log' for more details" "$LINENO" 5; }
icculus@6390
  2537
    fi
icculus@6390
  2538
  fi
icculus@6390
  2539
fi
icculus@6390
  2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
icculus@6390
  2541
$as_echo "$cross_compiling" >&6; }
icculus@6390
  2542