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