test/configure
author Sam Lantinga <slouken@libsdl.org>
Sun, 08 Jan 2012 02:23:37 -0500
changeset 6188 e82023802002
parent 6102 bf7254ec1bf9
child 6250 cce0ddcf6747
permissions -rwxr-xr-x
Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11

Scott Percival 2011-07-03 06:41:51 PDT

This submission is aimed at making life easier for OpenGL ES capable devices
running a X11 stack (e.g. Maemo, Meego, TrimSlice, other ARM SoC boards not
running Android). SDL's Pandora support already has the neccesary GLES-to-X11
glue code, however it's all ghetto'd off in Makefile.pandora and not very
flexible.

The patch:
- adds an awesome --enable-video-opengles option to configure
- re-modifies the opengles and opengles2 SDL_renderers to use function pointers
- no idea why this was removed?
- for SDL_Renderers, links in libGLESv1_CM, libGLES_CM (for PowerVR fans) or
libGLESv2 at runtime
- links in libEGL.so at runtime - the old code made an assumption that
eglFunctions could be pulled from the active GLES library, PowerVR for one
doesn't let you do that with their libGLESv2
- allows you to pick which of GLES v1 or v2 to load via
SDL_GL_CONTEXT_MAJOR_VERSION

So far I've tested this on a Nokia N900 (OMAP 3430/SGX 530 running Maemo 5) and
a Toshiba AC100 (Tegra 2 running Ubuntu 10.10). I haven't tested it on... well,
everything that isn't those two, such as a Pandora, iOS or Android device. The
Pandora specific code should be kept intact (fingers crossed), and nothing
painfully drastic has been added to the SDL_renderers. The library loading
sequence in SDL_x11opengles has been updated to accomodate both NVIDIA's
propensity to let developers get away with murder and PowerVR's alternative of
punishing every missed step.

The test apps work okay with GLES or GLES2 as the renderer. For some reason
alpha blending doesn't seem to work on the Tegra 2; last week NVIDIA pushed out
a new set of X11 GLES drivers, so I'll try and investigate once I upgrade
those. Also, this patch adds things to configure.in, include/SDL_config.h.in
and test/configure.in. I didn't know what the policy was re. committing
generated spaghetti from autotools, so ./autogen.sh has to be run again. Sorry.

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