configure
author Sam Lantinga <slouken@lokigames.com>
Thu, 10 Aug 2000 06:05:39 +0000
changeset 0 76be7dab668c
child 2 e273b0e38b8b
permissions -rwxr-xr-x
Initial revision
slouken@0
     1
#! /bin/sh
slouken@0
     2
slouken@0
     3
# Guess values for system-dependent variables and create Makefiles.
slouken@0
     4
# Generated automatically using autoconf version 2.13 
slouken@0
     5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
slouken@0
     6
#
slouken@0
     7
# This configure script is free software; the Free Software Foundation
slouken@0
     8
# gives unlimited permission to copy, distribute and modify it.
slouken@0
     9
slouken@0
    10
# Defaults:
slouken@0
    11
ac_help=
slouken@0
    12
ac_default_prefix=/usr/local
slouken@0
    13
# Any additions from configure.in:
slouken@0
    14
ac_help="$ac_help
slouken@0
    15
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
slouken@0
    16
ac_help="$ac_help
slouken@0
    17
  --enable-static[=PKGS]  build static libraries [default=yes]"
slouken@0
    18
ac_help="$ac_help
slouken@0
    19
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
slouken@0
    20
ac_help="$ac_help
slouken@0
    21
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
slouken@0
    22
ac_help="$ac_help
slouken@0
    23
  --disable-libtool-lock  avoid locking (might break parallel builds)"
slouken@0
    24
ac_help="$ac_help
slouken@0
    25
  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
slouken@0
    26
ac_help="$ac_help
slouken@0
    27
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)"
slouken@0
    28
ac_help="$ac_help
slouken@0
    29
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
slouken@0
    30
ac_help="$ac_help
slouken@0
    31
  --disable-sdltest       Do not try to compile and run a test SDL program"
slouken@0
    32
ac_help="$ac_help
slouken@0
    33
  --enable-bmp            support loading BMP images [default=yes]"
slouken@0
    34
ac_help="$ac_help
slouken@0
    35
  --enable-gif            support loading GIF images [default=yes]"
slouken@0
    36
ac_help="$ac_help
slouken@0
    37
  --enable-jpg            support loading JPG images [default=yes]"
slouken@0
    38
ac_help="$ac_help
slouken@0
    39
  --enable-pcx            support loading PCX images [default=yes]"
slouken@0
    40
ac_help="$ac_help
slouken@0
    41
  --enable-png            support loading PNG images [default=yes]"
slouken@0
    42
ac_help="$ac_help
slouken@0
    43
  --enable-ppm            support loading PPM images [default=yes]"
slouken@0
    44
ac_help="$ac_help
slouken@0
    45
  --enable-tga            support loading TGA images [default=yes]"
slouken@0
    46
ac_help="$ac_help
slouken@0
    47
  --enable-tif            support loading TIF images [default=yes]"
slouken@0
    48
slouken@0
    49
# Initialize some variables set by options.
slouken@0
    50
# The variables have the same names as the options, with
slouken@0
    51
# dashes changed to underlines.
slouken@0
    52
build=NONE
slouken@0
    53
cache_file=./config.cache
slouken@0
    54
exec_prefix=NONE
slouken@0
    55
host=NONE
slouken@0
    56
no_create=
slouken@0
    57
nonopt=NONE
slouken@0
    58
no_recursion=
slouken@0
    59
prefix=NONE
slouken@0
    60
program_prefix=NONE
slouken@0
    61
program_suffix=NONE
slouken@0
    62
program_transform_name=s,x,x,
slouken@0
    63
silent=
slouken@0
    64
site=
slouken@0
    65
srcdir=
slouken@0
    66
target=NONE
slouken@0
    67
verbose=
slouken@0
    68
x_includes=NONE
slouken@0
    69
x_libraries=NONE
slouken@0
    70
bindir='${exec_prefix}/bin'
slouken@0
    71
sbindir='${exec_prefix}/sbin'
slouken@0
    72
libexecdir='${exec_prefix}/libexec'
slouken@0
    73
datadir='${prefix}/share'
slouken@0
    74
sysconfdir='${prefix}/etc'
slouken@0
    75
sharedstatedir='${prefix}/com'
slouken@0
    76
localstatedir='${prefix}/var'
slouken@0
    77
libdir='${exec_prefix}/lib'
slouken@0
    78
includedir='${prefix}/include'
slouken@0
    79
oldincludedir='/usr/include'
slouken@0
    80
infodir='${prefix}/info'
slouken@0
    81
mandir='${prefix}/man'
slouken@0
    82
slouken@0
    83
# Initialize some other variables.
slouken@0
    84
subdirs=
slouken@0
    85
MFLAGS= MAKEFLAGS=
slouken@0
    86
SHELL=${CONFIG_SHELL-/bin/sh}
slouken@0
    87
# Maximum number of lines to put in a shell here document.
slouken@0
    88
ac_max_here_lines=12
slouken@0
    89
slouken@0
    90
ac_prev=
slouken@0
    91
for ac_option
slouken@0
    92
do
slouken@0
    93
slouken@0
    94
  # If the previous option needs an argument, assign it.
slouken@0
    95
  if test -n "$ac_prev"; then
slouken@0
    96
    eval "$ac_prev=\$ac_option"
slouken@0
    97
    ac_prev=
slouken@0
    98
    continue
slouken@0
    99
  fi
slouken@0
   100
slouken@0
   101
  case "$ac_option" in
slouken@0
   102
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
slouken@0
   103
  *) ac_optarg= ;;
slouken@0
   104
  esac
slouken@0
   105
slouken@0
   106
  # Accept the important Cygnus configure options, so we can diagnose typos.
slouken@0
   107
slouken@0
   108
  case "$ac_option" in
slouken@0
   109
slouken@0
   110
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
slouken@0
   111
    ac_prev=bindir ;;
slouken@0
   112
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
slouken@0
   113
    bindir="$ac_optarg" ;;
slouken@0
   114
slouken@0
   115
  -build | --build | --buil | --bui | --bu)
slouken@0
   116
    ac_prev=build ;;
slouken@0
   117
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
slouken@0
   118
    build="$ac_optarg" ;;
slouken@0
   119
slouken@0
   120
  -cache-file | --cache-file | --cache-fil | --cache-fi \
slouken@0
   121
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
slouken@0
   122
    ac_prev=cache_file ;;
slouken@0
   123
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
slouken@0
   124
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
slouken@0
   125
    cache_file="$ac_optarg" ;;
slouken@0
   126
slouken@0
   127
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
slouken@0
   128
    ac_prev=datadir ;;
slouken@0
   129
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
slouken@0
   130
  | --da=*)
slouken@0
   131
    datadir="$ac_optarg" ;;
slouken@0
   132
slouken@0
   133
  -disable-* | --disable-*)
slouken@0
   134
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
slouken@0
   135
    # Reject names that are not valid shell variable names.
slouken@0
   136
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
slouken@0
   137
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
slouken@0
   138
    fi
slouken@0
   139
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
slouken@0
   140
    eval "enable_${ac_feature}=no" ;;
slouken@0
   141
slouken@0
   142
  -enable-* | --enable-*)
slouken@0
   143
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
slouken@0
   144
    # Reject names that are not valid shell variable names.
slouken@0
   145
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
slouken@0
   146
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
slouken@0
   147
    fi
slouken@0
   148
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
slouken@0
   149
    case "$ac_option" in
slouken@0
   150
      *=*) ;;
slouken@0
   151
      *) ac_optarg=yes ;;
slouken@0
   152
    esac
slouken@0
   153
    eval "enable_${ac_feature}='$ac_optarg'" ;;
slouken@0
   154
slouken@0
   155
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
slouken@0
   156
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
slouken@0
   157
  | --exec | --exe | --ex)
slouken@0
   158
    ac_prev=exec_prefix ;;
slouken@0
   159
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
slouken@0
   160
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
slouken@0
   161
  | --exec=* | --exe=* | --ex=*)
slouken@0
   162
    exec_prefix="$ac_optarg" ;;
slouken@0
   163
slouken@0
   164
  -gas | --gas | --ga | --g)
slouken@0
   165
    # Obsolete; use --with-gas.
slouken@0
   166
    with_gas=yes ;;
slouken@0
   167
slouken@0
   168
  -help | --help | --hel | --he)
slouken@0
   169
    # Omit some internal or obsolete options to make the list less imposing.
slouken@0
   170
    # This message is too long to be a string in the A/UX 3.1 sh.
slouken@0
   171
    cat << EOF
slouken@0
   172
Usage: configure [options] [host]
slouken@0
   173
Options: [defaults in brackets after descriptions]
slouken@0
   174
Configuration:
slouken@0
   175
  --cache-file=FILE       cache test results in FILE
slouken@0
   176
  --help                  print this message
slouken@0
   177
  --no-create             do not create output files
slouken@0
   178
  --quiet, --silent       do not print \`checking...' messages
slouken@0
   179
  --version               print the version of autoconf that created configure
slouken@0
   180
Directory and file names:
slouken@0
   181
  --prefix=PREFIX         install architecture-independent files in PREFIX
slouken@0
   182
                          [$ac_default_prefix]
slouken@0
   183
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
slouken@0
   184
                          [same as prefix]
slouken@0
   185
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
slouken@0
   186
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
slouken@0
   187
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
slouken@0
   188
  --datadir=DIR           read-only architecture-independent data in DIR
slouken@0
   189
                          [PREFIX/share]
slouken@0
   190
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
slouken@0
   191
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
slouken@0
   192
                          [PREFIX/com]
slouken@0
   193
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
slouken@0
   194
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
slouken@0
   195
  --includedir=DIR        C header files in DIR [PREFIX/include]
slouken@0
   196
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
slouken@0
   197
  --infodir=DIR           info documentation in DIR [PREFIX/info]
slouken@0
   198
  --mandir=DIR            man documentation in DIR [PREFIX/man]
slouken@0
   199
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
slouken@0
   200
  --program-prefix=PREFIX prepend PREFIX to installed program names
slouken@0
   201
  --program-suffix=SUFFIX append SUFFIX to installed program names
slouken@0
   202
  --program-transform-name=PROGRAM
slouken@0
   203
                          run sed PROGRAM on installed program names
slouken@0
   204
EOF
slouken@0
   205
    cat << EOF
slouken@0
   206
Host type:
slouken@0
   207
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
slouken@0
   208
  --host=HOST             configure for HOST [guessed]
slouken@0
   209
  --target=TARGET         configure for TARGET [TARGET=HOST]
slouken@0
   210
Features and packages:
slouken@0
   211
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
slouken@0
   212
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
slouken@0
   213
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
slouken@0
   214
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
slouken@0
   215
  --x-includes=DIR        X include files are in DIR
slouken@0
   216
  --x-libraries=DIR       X library files are in DIR
slouken@0
   217
EOF
slouken@0
   218
    if test -n "$ac_help"; then
slouken@0
   219
      echo "--enable and --with options recognized:$ac_help"
slouken@0
   220
    fi
slouken@0
   221
    exit 0 ;;
slouken@0
   222
slouken@0
   223
  -host | --host | --hos | --ho)
slouken@0
   224
    ac_prev=host ;;
slouken@0
   225
  -host=* | --host=* | --hos=* | --ho=*)
slouken@0
   226
    host="$ac_optarg" ;;
slouken@0
   227
slouken@0
   228
  -includedir | --includedir | --includedi | --included | --include \
slouken@0
   229
  | --includ | --inclu | --incl | --inc)
slouken@0
   230
    ac_prev=includedir ;;
slouken@0
   231
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
slouken@0
   232
  | --includ=* | --inclu=* | --incl=* | --inc=*)
slouken@0
   233
    includedir="$ac_optarg" ;;
slouken@0
   234
slouken@0
   235
  -infodir | --infodir | --infodi | --infod | --info | --inf)
slouken@0
   236
    ac_prev=infodir ;;
slouken@0
   237
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
slouken@0
   238
    infodir="$ac_optarg" ;;
slouken@0
   239
slouken@0
   240
  -libdir | --libdir | --libdi | --libd)
slouken@0
   241
    ac_prev=libdir ;;
slouken@0
   242
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
slouken@0
   243
    libdir="$ac_optarg" ;;
slouken@0
   244
slouken@0
   245
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
slouken@0
   246
  | --libexe | --libex | --libe)
slouken@0
   247
    ac_prev=libexecdir ;;
slouken@0
   248
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
slouken@0
   249
  | --libexe=* | --libex=* | --libe=*)
slouken@0
   250
    libexecdir="$ac_optarg" ;;
slouken@0
   251
slouken@0
   252
  -localstatedir | --localstatedir | --localstatedi | --localstated \
slouken@0
   253
  | --localstate | --localstat | --localsta | --localst \
slouken@0
   254
  | --locals | --local | --loca | --loc | --lo)
slouken@0
   255
    ac_prev=localstatedir ;;
slouken@0
   256
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
slouken@0
   257
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
slouken@0
   258
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
slouken@0
   259
    localstatedir="$ac_optarg" ;;
slouken@0
   260
slouken@0
   261
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
slouken@0
   262
    ac_prev=mandir ;;
slouken@0
   263
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
slouken@0
   264
    mandir="$ac_optarg" ;;
slouken@0
   265
slouken@0
   266
  -nfp | --nfp | --nf)
slouken@0
   267
    # Obsolete; use --without-fp.
slouken@0
   268
    with_fp=no ;;
slouken@0
   269
slouken@0
   270
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
slouken@0
   271
  | --no-cr | --no-c)
slouken@0
   272
    no_create=yes ;;
slouken@0
   273
slouken@0
   274
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
slouken@0
   275
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
slouken@0
   276
    no_recursion=yes ;;
slouken@0
   277
slouken@0
   278
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
slouken@0
   279
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
slouken@0
   280
  | --oldin | --oldi | --old | --ol | --o)
slouken@0
   281
    ac_prev=oldincludedir ;;
slouken@0
   282
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
slouken@0
   283
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
slouken@0
   284
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
slouken@0
   285
    oldincludedir="$ac_optarg" ;;
slouken@0
   286
slouken@0
   287
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
slouken@0
   288
    ac_prev=prefix ;;
slouken@0
   289
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
slouken@0
   290
    prefix="$ac_optarg" ;;
slouken@0
   291
slouken@0
   292
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
slouken@0
   293
  | --program-pre | --program-pr | --program-p)
slouken@0
   294
    ac_prev=program_prefix ;;
slouken@0
   295
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
slouken@0
   296
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
slouken@0
   297
    program_prefix="$ac_optarg" ;;
slouken@0
   298
slouken@0
   299
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
slouken@0
   300
  | --program-suf | --program-su | --program-s)
slouken@0
   301
    ac_prev=program_suffix ;;
slouken@0
   302
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
slouken@0
   303
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
slouken@0
   304
    program_suffix="$ac_optarg" ;;
slouken@0
   305
slouken@0
   306
  -program-transform-name | --program-transform-name \
slouken@0
   307
  | --program-transform-nam | --program-transform-na \
slouken@0
   308
  | --program-transform-n | --program-transform- \
slouken@0
   309
  | --program-transform | --program-transfor \
slouken@0
   310
  | --program-transfo | --program-transf \
slouken@0
   311
  | --program-trans | --program-tran \
slouken@0
   312
  | --progr-tra | --program-tr | --program-t)
slouken@0
   313
    ac_prev=program_transform_name ;;
slouken@0
   314
  -program-transform-name=* | --program-transform-name=* \
slouken@0
   315
  | --program-transform-nam=* | --program-transform-na=* \
slouken@0
   316
  | --program-transform-n=* | --program-transform-=* \
slouken@0
   317
  | --program-transform=* | --program-transfor=* \
slouken@0
   318
  | --program-transfo=* | --program-transf=* \
slouken@0
   319
  | --program-trans=* | --program-tran=* \
slouken@0
   320
  | --progr-tra=* | --program-tr=* | --program-t=*)
slouken@0
   321
    program_transform_name="$ac_optarg" ;;
slouken@0
   322
slouken@0
   323
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
slouken@0
   324
  | -silent | --silent | --silen | --sile | --sil)
slouken@0
   325
    silent=yes ;;
slouken@0
   326
slouken@0
   327
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
slouken@0
   328
    ac_prev=sbindir ;;
slouken@0
   329
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
slouken@0
   330
  | --sbi=* | --sb=*)
slouken@0
   331
    sbindir="$ac_optarg" ;;
slouken@0
   332
slouken@0
   333
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
slouken@0
   334
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
slouken@0
   335
  | --sharedst | --shareds | --shared | --share | --shar \
slouken@0
   336
  | --sha | --sh)
slouken@0
   337
    ac_prev=sharedstatedir ;;
slouken@0
   338
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
slouken@0
   339
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
slouken@0
   340
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
slouken@0
   341
  | --sha=* | --sh=*)
slouken@0
   342
    sharedstatedir="$ac_optarg" ;;
slouken@0
   343
slouken@0
   344
  -site | --site | --sit)
slouken@0
   345
    ac_prev=site ;;
slouken@0
   346
  -site=* | --site=* | --sit=*)
slouken@0
   347
    site="$ac_optarg" ;;
slouken@0
   348
slouken@0
   349
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
slouken@0
   350
    ac_prev=srcdir ;;
slouken@0
   351
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
slouken@0
   352
    srcdir="$ac_optarg" ;;
slouken@0
   353
slouken@0
   354
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
slouken@0
   355
  | --syscon | --sysco | --sysc | --sys | --sy)
slouken@0
   356
    ac_prev=sysconfdir ;;
slouken@0
   357
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
slouken@0
   358
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
slouken@0
   359
    sysconfdir="$ac_optarg" ;;
slouken@0
   360
slouken@0
   361
  -target | --target | --targe | --targ | --tar | --ta | --t)
slouken@0
   362
    ac_prev=target ;;
slouken@0
   363
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
slouken@0
   364
    target="$ac_optarg" ;;
slouken@0
   365
slouken@0
   366
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
slouken@0
   367
    verbose=yes ;;
slouken@0
   368
slouken@0
   369
  -version | --version | --versio | --versi | --vers)
slouken@0
   370
    echo "configure generated by autoconf version 2.13"
slouken@0
   371
    exit 0 ;;
slouken@0
   372
slouken@0
   373
  -with-* | --with-*)
slouken@0
   374
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
slouken@0
   375
    # Reject names that are not valid shell variable names.
slouken@0
   376
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
slouken@0
   377
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
slouken@0
   378
    fi
slouken@0
   379
    ac_package=`echo $ac_package| sed 's/-/_/g'`
slouken@0
   380
    case "$ac_option" in
slouken@0
   381
      *=*) ;;
slouken@0
   382
      *) ac_optarg=yes ;;
slouken@0
   383
    esac
slouken@0
   384
    eval "with_${ac_package}='$ac_optarg'" ;;
slouken@0
   385
slouken@0
   386
  -without-* | --without-*)
slouken@0
   387
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
slouken@0
   388
    # Reject names that are not valid shell variable names.
slouken@0
   389
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
slouken@0
   390
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
slouken@0
   391
    fi
slouken@0
   392
    ac_package=`echo $ac_package| sed 's/-/_/g'`
slouken@0
   393
    eval "with_${ac_package}=no" ;;
slouken@0
   394
slouken@0
   395
  --x)
slouken@0
   396
    # Obsolete; use --with-x.
slouken@0
   397
    with_x=yes ;;
slouken@0
   398
slouken@0
   399
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
slouken@0
   400
  | --x-incl | --x-inc | --x-in | --x-i)
slouken@0
   401
    ac_prev=x_includes ;;
slouken@0
   402
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
slouken@0
   403
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
slouken@0
   404
    x_includes="$ac_optarg" ;;
slouken@0
   405
slouken@0
   406
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
slouken@0
   407
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
slouken@0
   408
    ac_prev=x_libraries ;;
slouken@0
   409
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
slouken@0
   410
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
slouken@0
   411
    x_libraries="$ac_optarg" ;;
slouken@0
   412
slouken@0
   413
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
slouken@0
   414
    ;;
slouken@0
   415
slouken@0
   416
  *)
slouken@0
   417
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
slouken@0
   418
      echo "configure: warning: $ac_option: invalid host type" 1>&2
slouken@0
   419
    fi
slouken@0
   420
    if test "x$nonopt" != xNONE; then
slouken@0
   421
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
slouken@0
   422
    fi
slouken@0
   423
    nonopt="$ac_option"
slouken@0
   424
    ;;
slouken@0
   425
slouken@0
   426
  esac
slouken@0
   427
done
slouken@0
   428
slouken@0
   429
if test -n "$ac_prev"; then
slouken@0
   430
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
slouken@0
   431
fi
slouken@0
   432
slouken@0
   433
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
slouken@0
   434
slouken@0
   435
# File descriptor usage:
slouken@0
   436
# 0 standard input
slouken@0
   437
# 1 file creation
slouken@0
   438
# 2 errors and warnings
slouken@0
   439
# 3 some systems may open it to /dev/tty
slouken@0
   440
# 4 used on the Kubota Titan
slouken@0
   441
# 6 checking for... messages and results
slouken@0
   442
# 5 compiler messages saved in config.log
slouken@0
   443
if test "$silent" = yes; then
slouken@0
   444
  exec 6>/dev/null
slouken@0
   445
else
slouken@0
   446
  exec 6>&1
slouken@0
   447
fi
slouken@0
   448
exec 5>./config.log
slouken@0
   449
slouken@0
   450
echo "\
slouken@0
   451
This file contains any messages produced by compilers while
slouken@0
   452
running configure, to aid debugging if configure makes a mistake.
slouken@0
   453
" 1>&5
slouken@0
   454
slouken@0
   455
# Strip out --no-create and --no-recursion so they do not pile up.
slouken@0
   456
# Also quote any args containing shell metacharacters.
slouken@0
   457
ac_configure_args=
slouken@0
   458
for ac_arg
slouken@0
   459
do
slouken@0
   460
  case "$ac_arg" in
slouken@0
   461
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
slouken@0
   462
  | --no-cr | --no-c) ;;
slouken@0
   463
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
slouken@0
   464
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
slouken@0
   465
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
slouken@0
   466
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
slouken@0
   467
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
slouken@0
   468
  esac
slouken@0
   469
done
slouken@0
   470
slouken@0
   471
# NLS nuisances.
slouken@0
   472
# Only set these to C if already set.  These must not be set unconditionally
slouken@0
   473
# because not all systems understand e.g. LANG=C (notably SCO).
slouken@0
   474
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
slouken@0
   475
# Non-C LC_CTYPE values break the ctype check.
slouken@0
   476
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
slouken@0
   477
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
slouken@0
   478
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
slouken@0
   479
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
slouken@0
   480
slouken@0
   481
# confdefs.h avoids OS command line length limits that DEFS can exceed.
slouken@0
   482
rm -rf conftest* confdefs.h
slouken@0
   483
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
slouken@0
   484
echo > confdefs.h
slouken@0
   485
slouken@0
   486
# A filename unique to this package, relative to the directory that
slouken@0
   487
# configure is in, which we can look for to find out if srcdir is correct.
slouken@0
   488
ac_unique_file=README
slouken@0
   489
slouken@0
   490
# Find the source files, if location was not specified.
slouken@0
   491
if test -z "$srcdir"; then
slouken@0
   492
  ac_srcdir_defaulted=yes
slouken@0
   493
  # Try the directory containing this script, then its parent.
slouken@0
   494
  ac_prog=$0
slouken@0
   495
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
slouken@0
   496
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
slouken@0
   497
  srcdir=$ac_confdir
slouken@0
   498
  if test ! -r $srcdir/$ac_unique_file; then
slouken@0
   499
    srcdir=..
slouken@0
   500
  fi
slouken@0
   501
else
slouken@0
   502
  ac_srcdir_defaulted=no
slouken@0
   503
fi
slouken@0
   504
if test ! -r $srcdir/$ac_unique_file; then
slouken@0
   505
  if test "$ac_srcdir_defaulted" = yes; then
slouken@0
   506
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
slouken@0
   507
  else
slouken@0
   508
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
slouken@0
   509
  fi
slouken@0
   510
fi
slouken@0
   511
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
slouken@0
   512
slouken@0
   513
# Prefer explicitly selected file to automatically selected ones.
slouken@0
   514
if test -z "$CONFIG_SITE"; then
slouken@0
   515
  if test "x$prefix" != xNONE; then
slouken@0
   516
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
slouken@0
   517
  else
slouken@0
   518
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
slouken@0
   519
  fi
slouken@0
   520
fi
slouken@0
   521
for ac_site_file in $CONFIG_SITE; do
slouken@0
   522
  if test -r "$ac_site_file"; then
slouken@0
   523
    echo "loading site script $ac_site_file"
slouken@0
   524
    . "$ac_site_file"
slouken@0
   525
  fi
slouken@0
   526
done
slouken@0
   527
slouken@0
   528
if test -r "$cache_file"; then
slouken@0
   529
  echo "loading cache $cache_file"
slouken@0
   530
  . $cache_file
slouken@0
   531
else
slouken@0
   532
  echo "creating cache $cache_file"
slouken@0
   533
  > $cache_file
slouken@0
   534
fi
slouken@0
   535
slouken@0
   536
ac_ext=c
slouken@0
   537
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
   538
ac_cpp='$CPP $CPPFLAGS'
slouken@0
   539
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
   540
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
   541
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
   542
slouken@0
   543
ac_exeext=
slouken@0
   544
ac_objext=o
slouken@0
   545
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
slouken@0
   546
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
slouken@0
   547
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
slouken@0
   548
    ac_n= ac_c='
slouken@0
   549
' ac_t='	'
slouken@0
   550
  else
slouken@0
   551
    ac_n=-n ac_c= ac_t=
slouken@0
   552
  fi
slouken@0
   553
else
slouken@0
   554
  ac_n= ac_c='\c' ac_t=
slouken@0
   555
fi
slouken@0
   556
slouken@0
   557
slouken@0
   558
slouken@0
   559
slouken@0
   560
# Making releases:
slouken@0
   561
#   MICRO_VERSION += 1;
slouken@0
   562
#   INTERFACE_AGE += 1;
slouken@0
   563
#   BINARY_AGE += 1;
slouken@0
   564
# if any functions have been added, set INTERFACE_AGE to 0.
slouken@0
   565
# if backwards compatibility has been broken,
slouken@0
   566
# set BINARY_AGE and INTERFACE_AGE to 0.
slouken@0
   567
slouken@0
   568
MAJOR_VERSION=1
slouken@0
   569
MINOR_VERSION=0
slouken@0
   570
MICRO_VERSION=9
slouken@0
   571
INTERFACE_AGE=0
slouken@0
   572
BINARY_AGE=9
slouken@0
   573
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
slouken@0
   574
slouken@0
   575
slouken@0
   576
slouken@0
   577
slouken@0
   578
slouken@0
   579
slouken@0
   580
slouken@0
   581
slouken@0
   582
# libtool versioning
slouken@0
   583
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
slouken@0
   584
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
slouken@0
   585
LT_REVISION=$INTERFACE_AGE
slouken@0
   586
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
slouken@0
   587
slouken@0
   588
slouken@0
   589
slouken@0
   590
slouken@0
   591
slouken@0
   592
slouken@0
   593
ac_aux_dir=
slouken@0
   594
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
slouken@0
   595
  if test -f $ac_dir/install-sh; then
slouken@0
   596
    ac_aux_dir=$ac_dir
slouken@0
   597
    ac_install_sh="$ac_aux_dir/install-sh -c"
slouken@0
   598
    break
slouken@0
   599
  elif test -f $ac_dir/install.sh; then
slouken@0
   600
    ac_aux_dir=$ac_dir
slouken@0
   601
    ac_install_sh="$ac_aux_dir/install.sh -c"
slouken@0
   602
    break
slouken@0
   603
  fi
slouken@0
   604
done
slouken@0
   605
if test -z "$ac_aux_dir"; then
slouken@0
   606
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
slouken@0
   607
fi
slouken@0
   608
ac_config_guess=$ac_aux_dir/config.guess
slouken@0
   609
ac_config_sub=$ac_aux_dir/config.sub
slouken@0
   610
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
slouken@0
   611
slouken@0
   612
# Find a good install program.  We prefer a C program (faster),
slouken@0
   613
# so one script is as good as another.  But avoid the broken or
slouken@0
   614
# incompatible versions:
slouken@0
   615
# SysV /etc/install, /usr/sbin/install
slouken@0
   616
# SunOS /usr/etc/install
slouken@0
   617
# IRIX /sbin/install
slouken@0
   618
# AIX /bin/install
slouken@0
   619
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
slouken@0
   620
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
slouken@0
   621
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
slouken@0
   622
# ./install, which can be erroneously created by make from ./install.sh.
slouken@0
   623
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
slouken@0
   624
echo "configure:625: checking for a BSD compatible install" >&5
slouken@0
   625
if test -z "$INSTALL"; then
slouken@0
   626
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
slouken@0
   627
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   628
else
slouken@0
   629
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
slouken@0
   630
  for ac_dir in $PATH; do
slouken@0
   631
    # Account for people who put trailing slashes in PATH elements.
slouken@0
   632
    case "$ac_dir/" in
slouken@0
   633
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
slouken@0
   634
    *)
slouken@0
   635
      # OSF1 and SCO ODT 3.0 have their own names for install.
slouken@0
   636
      # Don't use installbsd from OSF since it installs stuff as root
slouken@0
   637
      # by default.
slouken@0
   638
      for ac_prog in ginstall scoinst install; do
slouken@0
   639
        if test -f $ac_dir/$ac_prog; then
slouken@0
   640
	  if test $ac_prog = install &&
slouken@0
   641
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
slouken@0
   642
	    # AIX install.  It has an incompatible calling convention.
slouken@0
   643
	    :
slouken@0
   644
	  else
slouken@0
   645
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
slouken@0
   646
	    break 2
slouken@0
   647
	  fi
slouken@0
   648
	fi
slouken@0
   649
      done
slouken@0
   650
      ;;
slouken@0
   651
    esac
slouken@0
   652
  done
slouken@0
   653
  IFS="$ac_save_IFS"
slouken@0
   654
slouken@0
   655
fi
slouken@0
   656
  if test "${ac_cv_path_install+set}" = set; then
slouken@0
   657
    INSTALL="$ac_cv_path_install"
slouken@0
   658
  else
slouken@0
   659
    # As a last resort, use the slow shell script.  We don't cache a
slouken@0
   660
    # path for INSTALL within a source directory, because that will
slouken@0
   661
    # break other packages using the cache if that directory is
slouken@0
   662
    # removed, or if the path is relative.
slouken@0
   663
    INSTALL="$ac_install_sh"
slouken@0
   664
  fi
slouken@0
   665
fi
slouken@0
   666
echo "$ac_t""$INSTALL" 1>&6
slouken@0
   667
slouken@0
   668
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
slouken@0
   669
# It thinks the first close brace ends the variable substitution.
slouken@0
   670
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
slouken@0
   671
slouken@0
   672
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
slouken@0
   673
slouken@0
   674
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
slouken@0
   675
slouken@0
   676
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
slouken@0
   677
echo "configure:678: checking whether build environment is sane" >&5
slouken@0
   678
# Just in case
slouken@0
   679
sleep 1
slouken@0
   680
echo timestamp > conftestfile
slouken@0
   681
# Do `set' in a subshell so we don't clobber the current shell's
slouken@0
   682
# arguments.  Must try -L first in case configure is actually a
slouken@0
   683
# symlink; some systems play weird games with the mod time of symlinks
slouken@0
   684
# (eg FreeBSD returns the mod time of the symlink's containing
slouken@0
   685
# directory).
slouken@0
   686
if (
slouken@0
   687
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
slouken@0
   688
   if test "$*" = "X"; then
slouken@0
   689
      # -L didn't work.
slouken@0
   690
      set X `ls -t $srcdir/configure conftestfile`
slouken@0
   691
   fi
slouken@0
   692
   if test "$*" != "X $srcdir/configure conftestfile" \
slouken@0
   693
      && test "$*" != "X conftestfile $srcdir/configure"; then
slouken@0
   694
slouken@0
   695
      # If neither matched, then we have a broken ls.  This can happen
slouken@0
   696
      # if, for instance, CONFIG_SHELL is bash and it inherits a
slouken@0
   697
      # broken ls alias from the environment.  This has actually
slouken@0
   698
      # happened.  Such a system could not be considered "sane".
slouken@0
   699
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
slouken@0
   700
alias in your environment" 1>&2; exit 1; }
slouken@0
   701
   fi
slouken@0
   702
slouken@0
   703
   test "$2" = conftestfile
slouken@0
   704
   )
slouken@0
   705
then
slouken@0
   706
   # Ok.
slouken@0
   707
   :
slouken@0
   708
else
slouken@0
   709
   { echo "configure: error: newly created file is older than distributed files!
slouken@0
   710
Check your system clock" 1>&2; exit 1; }
slouken@0
   711
fi
slouken@0
   712
rm -f conftest*
slouken@0
   713
echo "$ac_t""yes" 1>&6
slouken@0
   714
if test "$program_transform_name" = s,x,x,; then
slouken@0
   715
  program_transform_name=
slouken@0
   716
else
slouken@0
   717
  # Double any \ or $.  echo might interpret backslashes.
slouken@0
   718
  cat <<\EOF_SED > conftestsed
slouken@0
   719
s,\\,\\\\,g; s,\$,$$,g
slouken@0
   720
EOF_SED
slouken@0
   721
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
slouken@0
   722
  rm -f conftestsed
slouken@0
   723
fi
slouken@0
   724
test "$program_prefix" != NONE &&
slouken@0
   725
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
slouken@0
   726
# Use a double $ so make ignores it.
slouken@0
   727
test "$program_suffix" != NONE &&
slouken@0
   728
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
slouken@0
   729
slouken@0
   730
# sed with no file args requires a program.
slouken@0
   731
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
slouken@0
   732
slouken@0
   733
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
slouken@0
   734
echo "configure:735: checking whether ${MAKE-make} sets \${MAKE}" >&5
slouken@0
   735
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
slouken@0
   736
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
slouken@0
   737
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   738
else
slouken@0
   739
  cat > conftestmake <<\EOF
slouken@0
   740
all:
slouken@0
   741
	@echo 'ac_maketemp="${MAKE}"'
slouken@0
   742
EOF
slouken@0
   743
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
slouken@0
   744
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
slouken@0
   745
if test -n "$ac_maketemp"; then
slouken@0
   746
  eval ac_cv_prog_make_${ac_make}_set=yes
slouken@0
   747
else
slouken@0
   748
  eval ac_cv_prog_make_${ac_make}_set=no
slouken@0
   749
fi
slouken@0
   750
rm -f conftestmake
slouken@0
   751
fi
slouken@0
   752
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
slouken@0
   753
  echo "$ac_t""yes" 1>&6
slouken@0
   754
  SET_MAKE=
slouken@0
   755
else
slouken@0
   756
  echo "$ac_t""no" 1>&6
slouken@0
   757
  SET_MAKE="MAKE=${MAKE-make}"
slouken@0
   758
fi
slouken@0
   759
slouken@0
   760
slouken@0
   761
PACKAGE=SDL_image
slouken@0
   762
slouken@0
   763
VERSION=$VERSION
slouken@0
   764
slouken@0
   765
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
slouken@0
   766
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
slouken@0
   767
fi
slouken@0
   768
cat >> confdefs.h <<EOF
slouken@0
   769
#define PACKAGE "$PACKAGE"
slouken@0
   770
EOF
slouken@0
   771
slouken@0
   772
cat >> confdefs.h <<EOF
slouken@0
   773
#define VERSION "$VERSION"
slouken@0
   774
EOF
slouken@0
   775
slouken@0
   776
slouken@0
   777
slouken@0
   778
missing_dir=`cd $ac_aux_dir && pwd`
slouken@0
   779
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
slouken@0
   780
echo "configure:781: checking for working aclocal" >&5
slouken@0
   781
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   782
# an executable is not found, even if stderr is redirected.
slouken@0
   783
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   784
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   785
   ACLOCAL=aclocal
slouken@0
   786
   echo "$ac_t""found" 1>&6
slouken@0
   787
else
slouken@0
   788
   ACLOCAL="$missing_dir/missing aclocal"
slouken@0
   789
   echo "$ac_t""missing" 1>&6
slouken@0
   790
fi
slouken@0
   791
slouken@0
   792
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
slouken@0
   793
echo "configure:794: checking for working autoconf" >&5
slouken@0
   794
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   795
# an executable is not found, even if stderr is redirected.
slouken@0
   796
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   797
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   798
   AUTOCONF=autoconf
slouken@0
   799
   echo "$ac_t""found" 1>&6
slouken@0
   800
else
slouken@0
   801
   AUTOCONF="$missing_dir/missing autoconf"
slouken@0
   802
   echo "$ac_t""missing" 1>&6
slouken@0
   803
fi
slouken@0
   804
slouken@0
   805
echo $ac_n "checking for working automake""... $ac_c" 1>&6
slouken@0
   806
echo "configure:807: checking for working automake" >&5
slouken@0
   807
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   808
# an executable is not found, even if stderr is redirected.
slouken@0
   809
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   810
if (automake --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   811
   AUTOMAKE=automake
slouken@0
   812
   echo "$ac_t""found" 1>&6
slouken@0
   813
else
slouken@0
   814
   AUTOMAKE="$missing_dir/missing automake"
slouken@0
   815
   echo "$ac_t""missing" 1>&6
slouken@0
   816
fi
slouken@0
   817
slouken@0
   818
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
slouken@0
   819
echo "configure:820: checking for working autoheader" >&5
slouken@0
   820
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   821
# an executable is not found, even if stderr is redirected.
slouken@0
   822
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   823
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   824
   AUTOHEADER=autoheader
slouken@0
   825
   echo "$ac_t""found" 1>&6
slouken@0
   826
else
slouken@0
   827
   AUTOHEADER="$missing_dir/missing autoheader"
slouken@0
   828
   echo "$ac_t""missing" 1>&6
slouken@0
   829
fi
slouken@0
   830
slouken@0
   831
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
slouken@0
   832
echo "configure:833: checking for working makeinfo" >&5
slouken@0
   833
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   834
# an executable is not found, even if stderr is redirected.
slouken@0
   835
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   836
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   837
   MAKEINFO=makeinfo
slouken@0
   838
   echo "$ac_t""found" 1>&6
slouken@0
   839
else
slouken@0
   840
   MAKEINFO="$missing_dir/missing makeinfo"
slouken@0
   841
   echo "$ac_t""missing" 1>&6
slouken@0
   842
fi
slouken@0
   843
slouken@0
   844
slouken@0
   845
slouken@0
   846
slouken@0
   847
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
slouken@0
   848
echo "configure:849: checking whether ${MAKE-make} sets \${MAKE}" >&5
slouken@0
   849
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
slouken@0
   850
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
slouken@0
   851
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   852
else
slouken@0
   853
  cat > conftestmake <<\EOF
slouken@0
   854
all:
slouken@0
   855
	@echo 'ac_maketemp="${MAKE}"'
slouken@0
   856
EOF
slouken@0
   857
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
slouken@0
   858
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
slouken@0
   859
if test -n "$ac_maketemp"; then
slouken@0
   860
  eval ac_cv_prog_make_${ac_make}_set=yes
slouken@0
   861
else
slouken@0
   862
  eval ac_cv_prog_make_${ac_make}_set=no
slouken@0
   863
fi
slouken@0
   864
rm -f conftestmake
slouken@0
   865
fi
slouken@0
   866
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
slouken@0
   867
  echo "$ac_t""yes" 1>&6
slouken@0
   868
  SET_MAKE=
slouken@0
   869
else
slouken@0
   870
  echo "$ac_t""no" 1>&6
slouken@0
   871
  SET_MAKE="MAKE=${MAKE-make}"
slouken@0
   872
fi
slouken@0
   873
slouken@0
   874
# Extract the first word of "gcc", so it can be a program name with args.
slouken@0
   875
set dummy gcc; ac_word=$2
slouken@0
   876
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@0
   877
echo "configure:878: checking for $ac_word" >&5
slouken@0
   878
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   879
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   880
else
slouken@0
   881
  if test -n "$CC"; then
slouken@0
   882
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   883
else
slouken@0
   884
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   885
  ac_dummy="$PATH"
slouken@0
   886
  for ac_dir in $ac_dummy; do
slouken@0
   887
    test -z "$ac_dir" && ac_dir=.
slouken@0
   888
    if test -f $ac_dir/$ac_word; then
slouken@0
   889
      ac_cv_prog_CC="gcc"
slouken@0
   890
      break
slouken@0
   891
    fi
slouken@0
   892
  done
slouken@0
   893
  IFS="$ac_save_ifs"
slouken@0
   894
fi
slouken@0
   895
fi
slouken@0
   896
CC="$ac_cv_prog_CC"
slouken@0
   897
if test -n "$CC"; then
slouken@0
   898
  echo "$ac_t""$CC" 1>&6
slouken@0
   899
else
slouken@0
   900
  echo "$ac_t""no" 1>&6
slouken@0
   901
fi
slouken@0
   902
slouken@0
   903
if test -z "$CC"; then
slouken@0
   904
  # Extract the first word of "cc", so it can be a program name with args.
slouken@0
   905
set dummy cc; ac_word=$2
slouken@0
   906
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@0
   907
echo "configure:908: checking for $ac_word" >&5
slouken@0
   908
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   909
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   910
else
slouken@0
   911
  if test -n "$CC"; then
slouken@0
   912
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   913
else
slouken@0
   914
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   915
  ac_prog_rejected=no
slouken@0
   916
  ac_dummy="$PATH"
slouken@0
   917
  for ac_dir in $ac_dummy; do
slouken@0
   918
    test -z "$ac_dir" && ac_dir=.
slouken@0
   919
    if test -f $ac_dir/$ac_word; then
slouken@0
   920
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
slouken@0
   921
        ac_prog_rejected=yes
slouken@0
   922
	continue
slouken@0
   923
      fi
slouken@0
   924
      ac_cv_prog_CC="cc"
slouken@0
   925
      break
slouken@0
   926
    fi
slouken@0
   927
  done
slouken@0
   928
  IFS="$ac_save_ifs"
slouken@0
   929
if test $ac_prog_rejected = yes; then
slouken@0
   930
  # We found a bogon in the path, so make sure we never use it.
slouken@0
   931
  set dummy $ac_cv_prog_CC
slouken@0
   932
  shift
slouken@0
   933
  if test $# -gt 0; then
slouken@0
   934
    # We chose a different compiler from the bogus one.
slouken@0
   935
    # However, it has the same basename, so the bogon will be chosen
slouken@0
   936
    # first if we set CC to just the basename; use the full file name.
slouken@0
   937
    shift
slouken@0
   938
    set dummy "$ac_dir/$ac_word" "$@"
slouken@0
   939
    shift
slouken@0
   940
    ac_cv_prog_CC="$@"
slouken@0
   941
  fi
slouken@0
   942
fi
slouken@0
   943
fi
slouken@0
   944
fi
slouken@0
   945
CC="$ac_cv_prog_CC"
slouken@0
   946
if test -n "$CC"; then
slouken@0
   947
  echo "$ac_t""$CC" 1>&6
slouken@0
   948
else
slouken@0
   949
  echo "$ac_t""no" 1>&6
slouken@0
   950
fi
slouken@0
   951
slouken@0
   952
  if test -z "$CC"; then
slouken@0
   953
    case "`uname -s`" in
slouken@0
   954
    *win32* | *WIN32*)
slouken@0
   955
      # Extract the first word of "cl", so it can be a program name with args.
slouken@0
   956
set dummy cl; ac_word=$2
slouken@0
   957
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@0
   958
echo "configure:959: checking for $ac_word" >&5
slouken@0
   959
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   960
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   961
else
slouken@0
   962
  if test -n "$CC"; then
slouken@0
   963
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   964
else
slouken@0
   965
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   966
  ac_dummy="$PATH"
slouken@0
   967
  for ac_dir in $ac_dummy; do
slouken@0
   968
    test -z "$ac_dir" && ac_dir=.
slouken@0
   969
    if test -f $ac_dir/$ac_word; then
slouken@0
   970
      ac_cv_prog_CC="cl"
slouken@0
   971
      break
slouken@0
   972
    fi
slouken@0
   973
  done
slouken@0
   974
  IFS="$ac_save_ifs"
slouken@0
   975
fi
slouken@0
   976
fi
slouken@0
   977
CC="$ac_cv_prog_CC"
slouken@0
   978
if test -n "$CC"; then
slouken@0
   979
  echo "$ac_t""$CC" 1>&6
slouken@0
   980
else
slouken@0
   981
  echo "$ac_t""no" 1>&6
slouken@0
   982
fi
slouken@0
   983
 ;;
slouken@0
   984
    esac
slouken@0
   985
  fi
slouken@0
   986
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
slouken@0
   987
fi
slouken@0
   988
slouken@0
   989
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
slouken@0
   990
echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
slouken@0
   991
slouken@0
   992
ac_ext=c
slouken@0
   993
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
   994
ac_cpp='$CPP $CPPFLAGS'
slouken@0
   995
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
   996
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
   997
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
   998
slouken@0
   999
cat > conftest.$ac_ext << EOF
slouken@0
  1000
slouken@0
  1001
#line 1002 "configure"
slouken@0
  1002
#include "confdefs.h"
slouken@0
  1003
slouken@0
  1004
main(){return(0);}
slouken@0
  1005
EOF
slouken@0
  1006
if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1007
  ac_cv_prog_cc_works=yes
slouken@0
  1008
  # If we can't run a trivial program, we are probably using a cross compiler.
slouken@0
  1009
  if (./conftest; exit) 2>/dev/null; then
slouken@0
  1010
    ac_cv_prog_cc_cross=no
slouken@0
  1011
  else
slouken@0
  1012
    ac_cv_prog_cc_cross=yes
slouken@0
  1013
  fi
slouken@0
  1014
else
slouken@0
  1015
  echo "configure: failed program was:" >&5
slouken@0
  1016
  cat conftest.$ac_ext >&5
slouken@0
  1017
  ac_cv_prog_cc_works=no
slouken@0
  1018
fi
slouken@0
  1019
rm -fr conftest*
slouken@0
  1020
ac_ext=c
slouken@0
  1021
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
  1022
ac_cpp='$CPP $CPPFLAGS'
slouken@0
  1023
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
  1024
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
  1025
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
  1026
slouken@0
  1027
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
slouken@0
  1028
if test $ac_cv_prog_cc_works = no; then
slouken@0
  1029
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
slouken@0
  1030
fi
slouken@0
  1031
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
slouken@0
  1032
echo "configure:1033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
slouken@0
  1033
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
slouken@0
  1034
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
  1035
slouken@0
  1036
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
slouken@0
  1037
echo "configure:1038: checking whether we are using GNU C" >&5
slouken@0
  1038
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
slouken@0
  1039
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1040
else
slouken@0
  1041
  cat > conftest.c <<EOF
slouken@0
  1042
#ifdef __GNUC__
slouken@0
  1043
  yes;
slouken@0
  1044
#endif
slouken@0
  1045
EOF
slouken@0
  1046
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
slouken@0
  1047
  ac_cv_prog_gcc=yes
slouken@0
  1048
else
slouken@0
  1049
  ac_cv_prog_gcc=no
slouken@0
  1050
fi
slouken@0
  1051
fi
slouken@0
  1052
slouken@0
  1053
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
slouken@0
  1054
slouken@0
  1055
if test $ac_cv_prog_gcc = yes; then
slouken@0
  1056
  GCC=yes
slouken@0
  1057
else
slouken@0
  1058
  GCC=
slouken@0
  1059
fi
slouken@0
  1060
slouken@0
  1061
ac_test_CFLAGS="${CFLAGS+set}"
slouken@0
  1062
ac_save_CFLAGS="$CFLAGS"
slouken@0
  1063
CFLAGS=
slouken@0
  1064
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
slouken@0
  1065
echo "configure:1066: checking whether ${CC-cc} accepts -g" >&5
slouken@0
  1066
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
slouken@0
  1067
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1068
else
slouken@0
  1069
  echo 'void f(){}' > conftest.c
slouken@0
  1070
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
slouken@0
  1071
  ac_cv_prog_cc_g=yes
slouken@0
  1072
else
slouken@0
  1073
  ac_cv_prog_cc_g=no
slouken@0
  1074
fi
slouken@0
  1075
rm -f conftest*
slouken@0
  1076
slouken@0
  1077
fi
slouken@0
  1078
slouken@0
  1079
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
slouken@0
  1080
if test "$ac_test_CFLAGS" = set; then
slouken@0
  1081
  CFLAGS="$ac_save_CFLAGS"
slouken@0
  1082
elif test $ac_cv_prog_cc_g = yes; then
slouken@0
  1083
  if test "$GCC" = yes; then
slouken@0
  1084
    CFLAGS="-g -O2"
slouken@0
  1085
  else
slouken@0
  1086
    CFLAGS="-g"
slouken@0
  1087
  fi
slouken@0
  1088
else
slouken@0
  1089
  if test "$GCC" = yes; then
slouken@0
  1090
    CFLAGS="-O2"
slouken@0
  1091
  else
slouken@0
  1092
    CFLAGS=
slouken@0
  1093
  fi
slouken@0
  1094
fi
slouken@0
  1095
slouken@0
  1096
# Check whether --enable-shared or --disable-shared was given.
slouken@0
  1097
if test "${enable_shared+set}" = set; then
slouken@0
  1098
  enableval="$enable_shared"
slouken@0
  1099
  p=${PACKAGE-default}
slouken@0
  1100
case "$enableval" in
slouken@0
  1101
yes) enable_shared=yes ;;
slouken@0
  1102
no) enable_shared=no ;;
slouken@0
  1103
*)
slouken@0
  1104
  enable_shared=no
slouken@0
  1105
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1106
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1107
  for pkg in $enableval; do
slouken@0
  1108
    if test "X$pkg" = "X$p"; then
slouken@0
  1109
      enable_shared=yes
slouken@0
  1110
    fi
slouken@0
  1111
  done
slouken@0
  1112
  IFS="$ac_save_ifs"
slouken@0
  1113
  ;;
slouken@0
  1114
esac
slouken@0
  1115
else
slouken@0
  1116
  enable_shared=yes
slouken@0
  1117
fi
slouken@0
  1118
slouken@0
  1119
# Check whether --enable-static or --disable-static was given.
slouken@0
  1120
if test "${enable_static+set}" = set; then
slouken@0
  1121
  enableval="$enable_static"
slouken@0
  1122
  p=${PACKAGE-default}
slouken@0
  1123
case "$enableval" in
slouken@0
  1124
yes) enable_static=yes ;;
slouken@0
  1125
no) enable_static=no ;;
slouken@0
  1126
*)
slouken@0
  1127
  enable_static=no
slouken@0
  1128
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1129
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1130
  for pkg in $enableval; do
slouken@0
  1131
    if test "X$pkg" = "X$p"; then
slouken@0
  1132
      enable_static=yes
slouken@0
  1133
    fi
slouken@0
  1134
  done
slouken@0
  1135
  IFS="$ac_save_ifs"
slouken@0
  1136
  ;;
slouken@0
  1137
esac
slouken@0
  1138
else
slouken@0
  1139
  enable_static=yes
slouken@0
  1140
fi
slouken@0
  1141
slouken@0
  1142
# Check whether --enable-fast-install or --disable-fast-install was given.
slouken@0
  1143
if test "${enable_fast_install+set}" = set; then
slouken@0
  1144
  enableval="$enable_fast_install"
slouken@0
  1145
  p=${PACKAGE-default}
slouken@0
  1146
case "$enableval" in
slouken@0
  1147
yes) enable_fast_install=yes ;;
slouken@0
  1148
no) enable_fast_install=no ;;
slouken@0
  1149
*)
slouken@0
  1150
  enable_fast_install=no
slouken@0
  1151
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1152
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1153
  for pkg in $enableval; do
slouken@0
  1154
    if test "X$pkg" = "X$p"; then
slouken@0
  1155
      enable_fast_install=yes
slouken@0
  1156
    fi
slouken@0
  1157
  done
slouken@0
  1158
  IFS="$ac_save_ifs"
slouken@0
  1159
  ;;
slouken@0
  1160
esac
slouken@0
  1161
else
slouken@0
  1162
  enable_fast_install=yes
slouken@0
  1163
fi
slouken@0
  1164
slouken@0
  1165
slouken@0
  1166
# Make sure we can run config.sub.
slouken@0
  1167
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
slouken@0
  1168
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
slouken@0
  1169
fi
slouken@0
  1170
slouken@0
  1171
echo $ac_n "checking host system type""... $ac_c" 1>&6
slouken@0
  1172
echo "configure:1173: checking host system type" >&5
slouken@0
  1173
slouken@0
  1174
host_alias=$host
slouken@0
  1175
case "$host_alias" in
slouken@0
  1176
NONE)
slouken@0
  1177
  case $nonopt in
slouken@0
  1178
  NONE)
slouken@0
  1179
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
slouken@0
  1180
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
slouken@0
  1181
    fi ;;
slouken@0
  1182
  *) host_alias=$nonopt ;;
slouken@0
  1183
  esac ;;
slouken@0
  1184
esac
slouken@0
  1185
slouken@0
  1186
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
slouken@0
  1187
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1188
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1189
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1190
echo "$ac_t""$host" 1>&6
slouken@0
  1191
slouken@0
  1192
echo $ac_n "checking build system type""... $ac_c" 1>&6
slouken@0
  1193
echo "configure:1194: checking build system type" >&5
slouken@0
  1194
slouken@0
  1195
build_alias=$build
slouken@0
  1196
case "$build_alias" in
slouken@0
  1197
NONE)
slouken@0
  1198
  case $nonopt in
slouken@0
  1199
  NONE) build_alias=$host_alias ;;
slouken@0
  1200
  *) build_alias=$nonopt ;;
slouken@0
  1201
  esac ;;
slouken@0
  1202
esac
slouken@0
  1203
slouken@0
  1204
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
slouken@0
  1205
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1206
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1207
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1208
echo "$ac_t""$build" 1>&6
slouken@0
  1209
slouken@0
  1210
# Check whether --with-gnu-ld or --without-gnu-ld was given.
slouken@0
  1211
if test "${with_gnu_ld+set}" = set; then
slouken@0
  1212
  withval="$with_gnu_ld"
slouken@0
  1213
  test "$withval" = no || with_gnu_ld=yes
slouken@0
  1214
else
slouken@0
  1215
  with_gnu_ld=no
slouken@0
  1216
fi
slouken@0
  1217
slouken@0
  1218
ac_prog=ld
slouken@0
  1219
if test "$ac_cv_prog_gcc" = yes; then
slouken@0
  1220
  # Check if gcc -print-prog-name=ld gives a path.
slouken@0
  1221
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
slouken@0
  1222
echo "configure:1223: checking for ld used by GCC" >&5
slouken@0
  1223
  case $host in
slouken@0
  1224
  *-*-mingw*)
slouken@0
  1225
    # gcc leaves a trailing carriage return which upsets mingw
slouken@0
  1226
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
slouken@0
  1227
  *)
slouken@0
  1228
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
slouken@0
  1229
  esac
slouken@0
  1230
  case "$ac_prog" in
slouken@0
  1231
    # Accept absolute paths.
slouken@0
  1232
    [\\/]* | [A-Za-z]:[\\/]*)
slouken@0
  1233
      re_direlt='/[^/][^/]*/\.\./'
slouken@0
  1234
      # Canonicalize the path of ld
slouken@0
  1235
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
slouken@0
  1236
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
slouken@0
  1237
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
slouken@0
  1238
      done
slouken@0
  1239
      test -z "$LD" && LD="$ac_prog"
slouken@0
  1240
      ;;
slouken@0
  1241
  "")
slouken@0
  1242
    # If it fails, then pretend we aren't using GCC.
slouken@0
  1243
    ac_prog=ld
slouken@0
  1244
    ;;
slouken@0
  1245
  *)
slouken@0
  1246
    # If it is relative, then search for the first ld in PATH.
slouken@0
  1247
    with_gnu_ld=unknown
slouken@0
  1248
    ;;
slouken@0
  1249
  esac
slouken@0
  1250
elif test "$with_gnu_ld" = yes; then
slouken@0
  1251
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
slouken@0
  1252
echo "configure:1253: checking for GNU ld" >&5
slouken@0
  1253
else
slouken@0
  1254
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
slouken@0
  1255
echo "configure:1256: checking for non-GNU ld" >&5
slouken@0
  1256
fi
slouken@0
  1257
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
slouken@0
  1258
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1259
else
slouken@0
  1260
  if test -z "$LD"; then
slouken@0
  1261
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
slouken@0
  1262
  for ac_dir in $PATH; do
slouken@0
  1263
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1264
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
slouken@0
  1265
      ac_cv_path_LD="$ac_dir/$ac_prog"
slouken@0
  1266
      # Check to see if the program is GNU ld.  I'd rather use --version,
slouken@0
  1267
      # but apparently some GNU ld's only accept -v.
slouken@0
  1268
      # Break only if it was the GNU/non-GNU ld that we prefer.
slouken@0
  1269
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
slouken@0
  1270
	test "$with_gnu_ld" != no && break
slouken@0
  1271
      else
slouken@0
  1272
	test "$with_gnu_ld" != yes && break
slouken@0
  1273
      fi
slouken@0
  1274
    fi
slouken@0
  1275
  done
slouken@0
  1276
  IFS="$ac_save_ifs"
slouken@0
  1277
else
slouken@0
  1278
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
slouken@0
  1279
fi
slouken@0
  1280
fi
slouken@0
  1281
slouken@0
  1282
LD="$ac_cv_path_LD"
slouken@0
  1283
if test -n "$LD"; then
slouken@0
  1284
  echo "$ac_t""$LD" 1>&6
slouken@0
  1285
else
slouken@0
  1286
  echo "$ac_t""no" 1>&6
slouken@0
  1287
fi
slouken@0
  1288
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
slouken@0
  1289
slouken@0
  1290
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
slouken@0
  1291
echo "configure:1292: checking if the linker ($LD) is GNU ld" >&5
slouken@0
  1292
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
slouken@0
  1293
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1294
else
slouken@0
  1295
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
slouken@0
  1296
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
slouken@0
  1297
  ac_cv_prog_gnu_ld=yes
slouken@0
  1298
else
slouken@0
  1299
  ac_cv_prog_gnu_ld=no
slouken@0
  1300
fi
slouken@0
  1301
fi
slouken@0
  1302
slouken@0
  1303
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
slouken@0
  1304
slouken@0
  1305
slouken@0
  1306
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
slouken@0
  1307
echo "configure:1308: checking for BSD-compatible nm" >&5
slouken@0
  1308
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
slouken@0
  1309
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1310
else
slouken@0
  1311
  if test -n "$NM"; then
slouken@0
  1312
  # Let the user override the test.
slouken@0
  1313
  ac_cv_path_NM="$NM"
slouken@0
  1314
else
slouken@0
  1315
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
slouken@0
  1316
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
slouken@0
  1317
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1318
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
slouken@0
  1319
      # Check to see if the nm accepts a BSD-compat flag.
slouken@0
  1320
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
slouken@0
  1321
      #   nm: unknown option "B" ignored
slouken@0
  1322
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
slouken@0
  1323
	ac_cv_path_NM="$ac_dir/nm -B"
slouken@0
  1324
	break
slouken@0
  1325
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
slouken@0
  1326
	ac_cv_path_NM="$ac_dir/nm -p"
slouken@0
  1327
	break
slouken@0
  1328
      else
slouken@0
  1329
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
slouken@0
  1330
	continue # so that we can try to find one that supports BSD flags
slouken@0
  1331
      fi
slouken@0
  1332
    fi
slouken@0
  1333
  done
slouken@0
  1334
  IFS="$ac_save_ifs"
slouken@0
  1335
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
slouken@0
  1336
fi
slouken@0
  1337
fi
slouken@0
  1338
slouken@0
  1339
NM="$ac_cv_path_NM"
slouken@0
  1340
echo "$ac_t""$NM" 1>&6
slouken@0
  1341
slouken@0
  1342
slouken@0
  1343
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
slouken@0
  1344
echo "configure:1345: checking whether ln -s works" >&5
slouken@0
  1345
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
slouken@0
  1346
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1347
else
slouken@0
  1348
  rm -f conftestdata
slouken@0
  1349
if ln -s X conftestdata 2>/dev/null
slouken@0
  1350
then
slouken@0
  1351
  rm -f conftestdata
slouken@0
  1352
  ac_cv_prog_LN_S="ln -s"
slouken@0
  1353
else
slouken@0
  1354
  ac_cv_prog_LN_S=ln
slouken@0
  1355
fi
slouken@0
  1356
fi
slouken@0
  1357
LN_S="$ac_cv_prog_LN_S"
slouken@0
  1358
if test "$ac_cv_prog_LN_S" = "ln -s"; then
slouken@0
  1359
  echo "$ac_t""yes" 1>&6
slouken@0
  1360
else
slouken@0
  1361
  echo "$ac_t""no" 1>&6
slouken@0
  1362
fi
slouken@0
  1363
slouken@0
  1364
if test $host != $build; then
slouken@0
  1365
  ac_tool_prefix=${host_alias}-
slouken@0
  1366
else
slouken@0
  1367
  ac_tool_prefix=
slouken@0
  1368
fi
slouken@0
  1369
slouken@0
  1370
slouken@0
  1371
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
slouken@0
  1372
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
slouken@0
  1373
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@0
  1374
echo "configure:1375: checking for $ac_word" >&5
slouken@0
  1375
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
slouken@0
  1376
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1377
else
slouken@0
  1378
  if test -n "$RANLIB"; then
slouken@0
  1379
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
slouken@0
  1380
else
slouken@0
  1381
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1382
  ac_dummy="$PATH"
slouken@0
  1383
  for ac_dir in $ac_dummy; do
slouken@0
  1384
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1385
    if test -f $ac_dir/$ac_word; then
slouken@0
  1386
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
slouken@0
  1387
      break
slouken@0
  1388
    fi
slouken@0
  1389
  done
slouken@0
  1390
  IFS="$ac_save_ifs"
slouken@0
  1391
fi
slouken@0
  1392
fi
slouken@0
  1393
RANLIB="$ac_cv_prog_RANLIB"
slouken@0
  1394
if test -n "$RANLIB"; then
slouken@0
  1395
  echo "$ac_t""$RANLIB" 1>&6
slouken@0
  1396
else
slouken@0
  1397
  echo "$ac_t""no" 1>&6
slouken@0
  1398
fi
slouken@0
  1399
slouken@0
  1400
slouken@0
  1401
if test -z "$ac_cv_prog_RANLIB"; then
slouken@0
  1402
if test -n "$ac_tool_prefix"; then
slouken@0
  1403
  # Extract the first word of "ranlib", so it can be a program name with args.
slouken@0
  1404
set dummy ranlib; ac_word=$2
slouken@0
  1405
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@0
  1406
echo "configure:1407: checking for $ac_word" >&5
slouken@0
  1407
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
slouken@0
  1408
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1409
else
slouken@0
  1410
  if test -n "$RANLIB"; then
slouken@0
  1411
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
slouken@0
  1412
else
slouken@0
  1413
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1414
  ac_dummy="$PATH"
slouken@0
  1415
  for ac_dir in $ac_dummy; do
slouken@0
  1416
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1417
    if test -f $ac_dir/$ac_word; then
slouken@0
  1418
      ac_cv_prog_RANLIB="ranlib"
slouken@0
  1419
      break
slouken@0
  1420
    fi
slouken@0
  1421
  done
slouken@0
  1422
  IFS="$ac_save_ifs"
slouken@0
  1423
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
slouken@0
  1424
fi
slouken@0
  1425
fi
slouken@0
  1426
RANLIB="$ac_cv_prog_RANLIB"
slouken@0
  1427
if test -n "$RANLIB"; then
slouken@0
  1428
  echo "$ac_t""$RANLIB" 1>&6
slouken@0
  1429
else
slouken@0
  1430
  echo "$ac_t""no" 1>&6
slouken@0
  1431
fi
slouken@0
  1432
slouken@0
  1433
else
slouken@0
  1434
  RANLIB=":"
slouken@0
  1435
fi
slouken@0
  1436
fi
slouken@0
  1437
slouken@0
  1438
slouken@0
  1439
# Check for any special flags to pass to ltconfig.
slouken@0
  1440
libtool_flags="--cache-file=$cache_file"
slouken@0
  1441
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
slouken@0
  1442
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
slouken@0
  1443
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
slouken@0
  1444
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
slouken@0
  1445
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
slouken@0
  1446
slouken@0
  1447
slouken@0
  1448
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
slouken@0
  1449
if test "${enable_libtool_lock+set}" = set; then
slouken@0
  1450
  enableval="$enable_libtool_lock"
slouken@0
  1451
  :
slouken@0
  1452
fi
slouken@0
  1453
slouken@0
  1454
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
slouken@0
  1455
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
slouken@0
  1456
slouken@0
  1457
# Check whether --with-pic or --without-pic was given.
slouken@0
  1458
if test "${with_pic+set}" = set; then
slouken@0
  1459
  withval="$with_pic"
slouken@0
  1460
  pic_mode="$withval"
slouken@0
  1461
else
slouken@0
  1462
  pic_mode=default
slouken@0
  1463
fi
slouken@0
  1464
slouken@0
  1465
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
slouken@0
  1466
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
slouken@0
  1467
slouken@0
  1468
# Some flags need to be propagated to the compiler or linker for good
slouken@0
  1469
# libtool support.
slouken@0
  1470
case "$host" in
slouken@0
  1471
*-*-irix6*)
slouken@0
  1472
  # Find out which ABI we are using.
slouken@0
  1473
  echo '#line 1474 "configure"' > conftest.$ac_ext
slouken@0
  1474
  if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
slouken@0
  1475
    case "`/usr/bin/file conftest.o`" in
slouken@0
  1476
    *32-bit*)
slouken@0
  1477
      LD="${LD-ld} -32"
slouken@0
  1478
      ;;
slouken@0
  1479
    *N32*)
slouken@0
  1480
      LD="${LD-ld} -n32"
slouken@0
  1481
      ;;
slouken@0
  1482
    *64-bit*)
slouken@0
  1483
      LD="${LD-ld} -64"
slouken@0
  1484
      ;;
slouken@0
  1485
    esac
slouken@0
  1486
  fi
slouken@0
  1487
  rm -rf conftest*
slouken@0
  1488
  ;;
slouken@0
  1489
slouken@0
  1490
*-*-sco3.2v5*)
slouken@0
  1491
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
slouken@0
  1492
  SAVE_CFLAGS="$CFLAGS"
slouken@0
  1493
  CFLAGS="$CFLAGS -belf"
slouken@0
  1494
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
slouken@0
  1495
echo "configure:1496: checking whether the C compiler needs -belf" >&5
slouken@0
  1496
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
slouken@0
  1497
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1498
else
slouken@0
  1499
  cat > conftest.$ac_ext <<EOF
slouken@0
  1500
#line 1501 "configure"
slouken@0
  1501
#include "confdefs.h"
slouken@0
  1502
slouken@0
  1503
int main() {
slouken@0
  1504
slouken@0
  1505
; return 0; }
slouken@0
  1506
EOF
slouken@0
  1507
if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1508
  rm -rf conftest*
slouken@0
  1509
  lt_cv_cc_needs_belf=yes
slouken@0
  1510
else
slouken@0
  1511
  echo "configure: failed program was:" >&5
slouken@0
  1512
  cat conftest.$ac_ext >&5
slouken@0
  1513
  rm -rf conftest*
slouken@0
  1514
  lt_cv_cc_needs_belf=no
slouken@0
  1515
fi
slouken@0
  1516
rm -f conftest*
slouken@0
  1517
fi
slouken@0
  1518
slouken@0
  1519
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
slouken@0
  1520
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
slouken@0
  1521
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
slouken@0
  1522
    CFLAGS="$SAVE_CFLAGS"
slouken@0
  1523
  fi
slouken@0
  1524
  ;;
slouken@0
  1525
slouken@0
  1526
slouken@0
  1527
esac
slouken@0
  1528
slouken@0
  1529
slouken@0
  1530
# Save cache, so that ltconfig can load it
slouken@0
  1531
cat > confcache <<\EOF
slouken@0
  1532
# This file is a shell script that caches the results of configure
slouken@0
  1533
# tests run on this system so they can be shared between configure
slouken@0
  1534
# scripts and configure runs.  It is not useful on other systems.
slouken@0
  1535
# If it contains results you don't want to keep, you may remove or edit it.
slouken@0
  1536
#
slouken@0
  1537
# By default, configure uses ./config.cache as the cache file,
slouken@0
  1538
# creating it if it does not exist already.  You can give configure
slouken@0
  1539
# the --cache-file=FILE option to use a different cache file; that is
slouken@0
  1540
# what configure does when it calls configure scripts in
slouken@0
  1541
# subdirectories, so they share the cache.
slouken@0
  1542
# Giving --cache-file=/dev/null disables caching, for debugging configure.
slouken@0
  1543
# config.status only pays attention to the cache file if you give it the
slouken@0
  1544
# --recheck option to rerun configure.
slouken@0
  1545
#
slouken@0
  1546
EOF
slouken@0
  1547
# The following way of writing the cache mishandles newlines in values,
slouken@0
  1548
# but we know of no workaround that is simple, portable, and efficient.
slouken@0
  1549
# So, don't put newlines in cache variables' values.
slouken@0
  1550
# Ultrix sh set writes to stderr and can't be redirected directly,
slouken@0
  1551
# and sets the high bit in the cache file unless we assign to the vars.
slouken@0
  1552
(set) 2>&1 |
slouken@0
  1553
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
slouken@0
  1554
  *ac_space=\ *)
slouken@0
  1555
    # `set' does not quote correctly, so add quotes (double-quote substitution
slouken@0
  1556
    # turns \\\\ into \\, and sed turns \\ into \).
slouken@0
  1557
    sed -n \
slouken@0
  1558
      -e "s/'/'\\\\''/g" \
slouken@0
  1559
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
slouken@0
  1560
    ;;
slouken@0
  1561
  *)
slouken@0
  1562
    # `set' quotes correctly as required by POSIX, so do not add quotes.
slouken@0
  1563
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
slouken@0
  1564
    ;;
slouken@0
  1565
  esac >> confcache
slouken@0
  1566
if cmp -s $cache_file confcache; then
slouken@0
  1567
  :
slouken@0
  1568
else
slouken@0
  1569
  if test -w $cache_file; then
slouken@0
  1570
    echo "updating cache $cache_file"
slouken@0
  1571
    cat confcache > $cache_file
slouken@0
  1572
  else
slouken@0
  1573
    echo "not updating unwritable cache $cache_file"
slouken@0
  1574
  fi
slouken@0
  1575
fi
slouken@0
  1576
rm -f confcache
slouken@0
  1577
slouken@0
  1578
slouken@0
  1579
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
slouken@0
  1580
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
slouken@0
  1581
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
slouken@0
  1582
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
slouken@0
  1583
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
slouken@0
  1584
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
slouken@0
  1585
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
slouken@0
  1586
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
slouken@0
  1587
slouken@0
  1588
# Reload cache, that may have been modified by ltconfig
slouken@0
  1589
if test -r "$cache_file"; then
slouken@0
  1590
  echo "loading cache $cache_file"
slouken@0
  1591
  . $cache_file
slouken@0
  1592
else
slouken@0
  1593
  echo "creating cache $cache_file"
slouken@0
  1594
  > $cache_file
slouken@0
  1595
fi
slouken@0
  1596
slouken@0
  1597
slouken@0
  1598
# This can be used to rebuild libtool when needed
slouken@0
  1599
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
slouken@0
  1600
slouken@0
  1601
# Always use our own libtool.
slouken@0
  1602
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
slouken@0
  1603
slouken@0
  1604
# Redirect the config.log output again, so that the ltconfig log is not
slouken@0
  1605
# clobbered by the next message.
slouken@0
  1606
exec 5>>./config.log
slouken@0
  1607
slouken@0
  1608
# Find a good install program.  We prefer a C program (faster),
slouken@0
  1609
# so one script is as good as another.  But avoid the broken or
slouken@0
  1610
# incompatible versions:
slouken@0
  1611
# SysV /etc/install, /usr/sbin/install
slouken@0
  1612
# SunOS /usr/etc/install
slouken@0
  1613
# IRIX /sbin/install
slouken@0
  1614
# AIX /bin/install
slouken@0
  1615
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
slouken@0
  1616
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
slouken@0
  1617
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
slouken@0
  1618
# ./install, which can be erroneously created by make from ./install.sh.
slouken@0
  1619
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
slouken@0
  1620
echo "configure:1621: checking for a BSD compatible install" >&5
slouken@0
  1621
if test -z "$INSTALL"; then
slouken@0
  1622
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
slouken@0
  1623
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1624
else
slouken@0
  1625
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
slouken@0
  1626
  for ac_dir in $PATH; do
slouken@0
  1627
    # Account for people who put trailing slashes in PATH elements.
slouken@0
  1628
    case "$ac_dir/" in
slouken@0
  1629
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
slouken@0
  1630
    *)
slouken@0
  1631
      # OSF1 and SCO ODT 3.0 have their own names for install.
slouken@0
  1632
      # Don't use installbsd from OSF since it installs stuff as root
slouken@0
  1633
      # by default.
slouken@0
  1634
      for ac_prog in ginstall scoinst install; do
slouken@0
  1635
        if test -f $ac_dir/$ac_prog; then
slouken@0
  1636
	  if test $ac_prog = install &&
slouken@0
  1637
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
slouken@0
  1638
	    # AIX install.  It has an incompatible calling convention.
slouken@0
  1639
	    :
slouken@0
  1640
	  else
slouken@0
  1641
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
slouken@0
  1642
	    break 2
slouken@0
  1643
	  fi
slouken@0
  1644
	fi
slouken@0
  1645
      done
slouken@0
  1646
      ;;
slouken@0
  1647
    esac
slouken@0
  1648
  done
slouken@0
  1649
  IFS="$ac_save_IFS"
slouken@0
  1650
slouken@0
  1651
fi
slouken@0
  1652
  if test "${ac_cv_path_install+set}" = set; then
slouken@0
  1653
    INSTALL="$ac_cv_path_install"
slouken@0
  1654
  else
slouken@0
  1655
    # As a last resort, use the slow shell script.  We don't cache a
slouken@0
  1656
    # path for INSTALL within a source directory, because that will
slouken@0
  1657
    # break other packages using the cache if that directory is
slouken@0
  1658
    # removed, or if the path is relative.
slouken@0
  1659
    INSTALL="$ac_install_sh"
slouken@0
  1660
  fi
slouken@0
  1661
fi
slouken@0
  1662
echo "$ac_t""$INSTALL" 1>&6
slouken@0
  1663
slouken@0
  1664
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
slouken@0
  1665
# It thinks the first close brace ends the variable substitution.
slouken@0
  1666
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
slouken@0
  1667
slouken@0
  1668
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
slouken@0
  1669
slouken@0
  1670
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
slouken@0
  1671
slouken@0
  1672
slouken@0
  1673
echo $ac_n "checking target system type""... $ac_c" 1>&6
slouken@0
  1674
echo "configure:1675: checking target system type" >&5
slouken@0
  1675
slouken@0
  1676
target_alias=$target
slouken@0
  1677
case "$target_alias" in
slouken@0
  1678
NONE)
slouken@0
  1679
  case $nonopt in
slouken@0
  1680
  NONE) target_alias=$host_alias ;;
slouken@0
  1681
  *) target_alias=$nonopt ;;
slouken@0
  1682
  esac ;;
slouken@0
  1683
esac
slouken@0
  1684
slouken@0
  1685
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
slouken@0
  1686
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1687
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1688
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1689
echo "$ac_t""$target" 1>&6
slouken@0
  1690
slouken@0
  1691
case "$target" in
slouken@0
  1692
    alpha*-*-linux*)
slouken@0
  1693
        CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
slouken@0
  1694
        ;;
slouken@0
  1695
esac
slouken@0
  1696
slouken@0
  1697
SDL_VERSION=1.1.3
slouken@0
  1698
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
slouken@0
  1699
if test "${with_sdl_prefix+set}" = set; then
slouken@0
  1700
  withval="$with_sdl_prefix"
slouken@0
  1701
  sdl_prefix="$withval"
slouken@0
  1702
else
slouken@0
  1703
  sdl_prefix=""
slouken@0
  1704
fi
slouken@0
  1705
slouken@0
  1706
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
slouken@0
  1707
if test "${with_sdl_exec_prefix+set}" = set; then
slouken@0
  1708
  withval="$with_sdl_exec_prefix"
slouken@0
  1709
  sdl_exec_prefix="$withval"
slouken@0
  1710
else
slouken@0
  1711
  sdl_exec_prefix=""
slouken@0
  1712
fi
slouken@0
  1713
slouken@0
  1714
# Check whether --enable-sdltest or --disable-sdltest was given.
slouken@0
  1715
if test "${enable_sdltest+set}" = set; then
slouken@0
  1716
  enableval="$enable_sdltest"
slouken@0
  1717
  :
slouken@0
  1718
else
slouken@0
  1719
  enable_sdltest=yes
slouken@0
  1720
fi
slouken@0
  1721
slouken@0
  1722
slouken@0
  1723
  if test x$sdl_exec_prefix != x ; then
slouken@0
  1724
     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
slouken@0
  1725
     if test x${SDL_CONFIG+set} != xset ; then
slouken@0
  1726
        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
slouken@0
  1727
     fi
slouken@0
  1728
  fi
slouken@0
  1729
  if test x$sdl_prefix != x ; then
slouken@0
  1730
     sdl_args="$sdl_args --prefix=$sdl_prefix"
slouken@0
  1731
     if test x${SDL_CONFIG+set} != xset ; then
slouken@0
  1732
        SDL_CONFIG=$sdl_prefix/bin/sdl-config
slouken@0
  1733
     fi
slouken@0
  1734
  fi
slouken@0
  1735
slouken@0
  1736
  # Extract the first word of "sdl-config", so it can be a program name with args.
slouken@0
  1737
set dummy sdl-config; ac_word=$2
slouken@0
  1738
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@0
  1739
echo "configure:1740: checking for $ac_word" >&5
slouken@0
  1740
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
slouken@0
  1741
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1742
else
slouken@0
  1743
  case "$SDL_CONFIG" in
slouken@0
  1744
  /*)
slouken@0
  1745
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
slouken@0
  1746
  ;;
slouken@0
  1747
  ?:/*)			 
slouken@0
  1748
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
slouken@0
  1749
  ;;
slouken@0
  1750
  *)
slouken@0
  1751
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1752
  ac_dummy="$PATH"
slouken@0
  1753
  for ac_dir in $ac_dummy; do 
slouken@0
  1754
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1755
    if test -f $ac_dir/$ac_word; then
slouken@0
  1756
      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
slouken@0
  1757
      break
slouken@0
  1758
    fi
slouken@0
  1759
  done
slouken@0
  1760
  IFS="$ac_save_ifs"
slouken@0
  1761
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
slouken@0
  1762
  ;;
slouken@0
  1763
esac
slouken@0
  1764
fi
slouken@0
  1765
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
slouken@0
  1766
if test -n "$SDL_CONFIG"; then
slouken@0
  1767
  echo "$ac_t""$SDL_CONFIG" 1>&6
slouken@0
  1768
else
slouken@0
  1769
  echo "$ac_t""no" 1>&6
slouken@0
  1770
fi
slouken@0
  1771
slouken@0
  1772
  min_sdl_version=$SDL_VERSION
slouken@0
  1773
  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
slouken@0
  1774
echo "configure:1775: checking for SDL - version >= $min_sdl_version" >&5
slouken@0
  1775
  no_sdl=""
slouken@0
  1776
  if test "$SDL_CONFIG" = "no" ; then
slouken@0
  1777
    no_sdl=yes
slouken@0
  1778
  else
slouken@0
  1779
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
slouken@0
  1780
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
slouken@0
  1781
slouken@0
  1782
    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
slouken@0
  1783
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
slouken@0
  1784
    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
slouken@0
  1785
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
slouken@0
  1786
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
slouken@0
  1787
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
slouken@0
  1788
    if test "x$enable_sdltest" = "xyes" ; then
slouken@0
  1789
      ac_save_CFLAGS="$CFLAGS"
slouken@0
  1790
      ac_save_LIBS="$LIBS"
slouken@0
  1791
      CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  1792
      LIBS="$LIBS $SDL_LIBS"
slouken@0
  1793
      rm -f conf.sdltest
slouken@0
  1794
      if test "$cross_compiling" = yes; then
slouken@0
  1795
  echo $ac_n "cross compiling; assumed OK... $ac_c"
slouken@0
  1796
else
slouken@0
  1797
  cat > conftest.$ac_ext <<EOF
slouken@0
  1798
#line 1799 "configure"
slouken@0
  1799
#include "confdefs.h"
slouken@0
  1800
slouken@0
  1801
#include <stdio.h>
slouken@0
  1802
#include <stdlib.h>
slouken@0
  1803
#include <string.h>
slouken@0
  1804
#include <SDL/SDL.h>
slouken@0
  1805
slouken@0
  1806
char*
slouken@0
  1807
my_strdup (char *str)
slouken@0
  1808
{
slouken@0
  1809
  char *new_str;
slouken@0
  1810
  
slouken@0
  1811
  if (str)
slouken@0
  1812
    {
slouken@0
  1813
      new_str = malloc ((strlen (str) + 1) * sizeof(char));
slouken@0
  1814
      strcpy (new_str, str);
slouken@0
  1815
    }
slouken@0
  1816
  else
slouken@0
  1817
    new_str = NULL;
slouken@0
  1818
  
slouken@0
  1819
  return new_str;
slouken@0
  1820
}
slouken@0
  1821
slouken@0
  1822
int main ()
slouken@0
  1823
{
slouken@0
  1824
  int major, minor, micro;
slouken@0
  1825
  char *tmp_version;
slouken@0
  1826
slouken@0
  1827
  system ("touch conf.sdltest");
slouken@0
  1828
slouken@0
  1829
  /* HP/UX 9 (%@#!) writes to sscanf strings */
slouken@0
  1830
  tmp_version = my_strdup("$min_sdl_version");
slouken@0
  1831
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
slouken@0
  1832
     printf("%s, bad version string\n", "$min_sdl_version");
slouken@0
  1833
     exit(1);
slouken@0
  1834
   }
slouken@0
  1835
slouken@0
  1836
   if (($sdl_major_version > major) ||
slouken@0
  1837
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
slouken@0
  1838
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
slouken@0
  1839
    {
slouken@0
  1840
      return 0;
slouken@0
  1841
    }
slouken@0
  1842
  else
slouken@0
  1843
    {
slouken@0
  1844
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
slouken@0
  1845
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
slouken@0
  1846
      printf("*** best to upgrade to the required version.\n");
slouken@0
  1847
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
slouken@0
  1848
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
slouken@0
  1849
      printf("*** config.cache before re-running configure\n");
slouken@0
  1850
      return 1;
slouken@0
  1851
    }
slouken@0
  1852
}
slouken@0
  1853
slouken@0
  1854
slouken@0
  1855
EOF
slouken@0
  1856
if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
slouken@0
  1857
then
slouken@0
  1858
  :
slouken@0
  1859
else
slouken@0
  1860
  echo "configure: failed program was:" >&5
slouken@0
  1861
  cat conftest.$ac_ext >&5
slouken@0
  1862
  rm -fr conftest*
slouken@0
  1863
  no_sdl=yes
slouken@0
  1864
fi
slouken@0
  1865
rm -fr conftest*
slouken@0
  1866
fi
slouken@0
  1867
slouken@0
  1868
       CFLAGS="$ac_save_CFLAGS"
slouken@0
  1869
       LIBS="$ac_save_LIBS"
slouken@0
  1870
     fi
slouken@0
  1871
  fi
slouken@0
  1872
  if test "x$no_sdl" = x ; then
slouken@0
  1873
     echo "$ac_t""yes" 1>&6
slouken@0
  1874
     :     
slouken@0
  1875
  else
slouken@0
  1876
     echo "$ac_t""no" 1>&6
slouken@0
  1877
     if test "$SDL_CONFIG" = "no" ; then
slouken@0
  1878
       echo "*** The sdl-config script installed by SDL could not be found"
slouken@0
  1879
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
slouken@0
  1880
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
slouken@0
  1881
       echo "*** full path to sdl-config."
slouken@0
  1882
     else
slouken@0
  1883
       if test -f conf.sdltest ; then
slouken@0
  1884
        :
slouken@0
  1885
       else
slouken@0
  1886
          echo "*** Could not run SDL test program, checking why..."
slouken@0
  1887
          CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  1888
          LIBS="$LIBS $SDL_LIBS"
slouken@0
  1889
          cat > conftest.$ac_ext <<EOF
slouken@0
  1890
#line 1891 "configure"
slouken@0
  1891
#include "confdefs.h"
slouken@0
  1892
slouken@0
  1893
#include <stdio.h>
slouken@0
  1894
#include <SDL/SDL.h>
slouken@0
  1895
slouken@0
  1896
int main() {
slouken@0
  1897
 return 0; 
slouken@0
  1898
; return 0; }
slouken@0
  1899
EOF
slouken@0
  1900
if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1901
  rm -rf conftest*
slouken@0
  1902
   echo "*** The test program compiled, but did not run. This usually means"
slouken@0
  1903
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
slouken@0
  1904
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
slouken@0
  1905
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
slouken@0
  1906
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
slouken@0
  1907
          echo "*** is required on your system"
slouken@0
  1908
	  echo "***"
slouken@0
  1909
          echo "*** If you have an old version installed, it is best to remove it, although"
slouken@0
  1910
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
slouken@0
  1911
else
slouken@0
  1912
  echo "configure: failed program was:" >&5
slouken@0
  1913
  cat conftest.$ac_ext >&5
slouken@0
  1914
  rm -rf conftest*
slouken@0
  1915
   echo "*** The test program failed to compile or link. See the file config.log for the"
slouken@0
  1916
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
slouken@0
  1917
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
slouken@0
  1918
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
slouken@0
  1919
fi
slouken@0
  1920
rm -f conftest*
slouken@0
  1921
          CFLAGS="$ac_save_CFLAGS"
slouken@0
  1922
          LIBS="$ac_save_LIBS"
slouken@0
  1923
       fi
slouken@0
  1924
     fi
slouken@0
  1925
     SDL_CFLAGS=""
slouken@0
  1926
     SDL_LIBS=""
slouken@0
  1927
     { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
slouken@0
  1928
slouken@0
  1929
  fi
slouken@0
  1930
  
slouken@0
  1931
  
slouken@0
  1932
  rm -f conf.sdltest
slouken@0
  1933
slouken@0
  1934
CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  1935
IMG_LIBS="$IMG_LIBS $SDL_LIBS"
slouken@0
  1936
slouken@0
  1937
# Check whether --enable-bmp or --disable-bmp was given.
slouken@0
  1938
if test "${enable_bmp+set}" = set; then
slouken@0
  1939
  enableval="$enable_bmp"
slouken@0
  1940
  :
slouken@0
  1941
else
slouken@0
  1942
  enable_bmp=yes
slouken@0
  1943
fi
slouken@0
  1944
slouken@0
  1945
if test x$enable_bmp = xyes; then
slouken@0
  1946
    CFLAGS="$CFLAGS -DLOAD_BMP"
slouken@0
  1947
fi
slouken@0
  1948
# Check whether --enable-gif or --disable-gif was given.
slouken@0
  1949
if test "${enable_gif+set}" = set; then
slouken@0
  1950
  enableval="$enable_gif"
slouken@0
  1951
  :
slouken@0
  1952
else
slouken@0
  1953
  enable_gif=yes
slouken@0
  1954
fi
slouken@0
  1955
slouken@0
  1956
if test x$enable_gif = xyes; then
slouken@0
  1957
    CFLAGS="$CFLAGS -DLOAD_GIF"
slouken@0
  1958
fi
slouken@0
  1959
# Check whether --enable-jpg or --disable-jpg was given.
slouken@0
  1960
if test "${enable_jpg+set}" = set; then
slouken@0
  1961
  enableval="$enable_jpg"
slouken@0
  1962
  :
slouken@0
  1963
else
slouken@0
  1964
  enable_jpg=yes
slouken@0
  1965
fi
slouken@0
  1966
slouken@0
  1967
if test x$enable_jpg = xyes; then
slouken@0
  1968
    echo $ac_n "checking for jpeg_CreateDecompress in -ljpeg""... $ac_c" 1>&6
slouken@0
  1969
echo "configure:1970: checking for jpeg_CreateDecompress in -ljpeg" >&5
slouken@0
  1970
ac_lib_var=`echo jpeg'_'jpeg_CreateDecompress | sed 'y%./+-%__p_%'`
slouken@0
  1971
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
slouken@0
  1972
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1973
else
slouken@0
  1974
  ac_save_LIBS="$LIBS"
slouken@0
  1975
LIBS="-ljpeg  $LIBS"
slouken@0
  1976
cat > conftest.$ac_ext <<EOF
slouken@0
  1977
#line 1978 "configure"
slouken@0
  1978
#include "confdefs.h"
slouken@0
  1979
/* Override any gcc2 internal prototype to avoid an error.  */
slouken@0
  1980
/* We use char because int might match the return type of a gcc2
slouken@0
  1981
    builtin and then its argument prototype would still apply.  */
slouken@0
  1982
char jpeg_CreateDecompress();
slouken@0
  1983
slouken@0
  1984
int main() {
slouken@0
  1985
jpeg_CreateDecompress()
slouken@0
  1986
; return 0; }
slouken@0
  1987
EOF
slouken@0
  1988
if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1989
  rm -rf conftest*
slouken@0
  1990
  eval "ac_cv_lib_$ac_lib_var=yes"
slouken@0
  1991
else
slouken@0
  1992
  echo "configure: failed program was:" >&5
slouken@0
  1993
  cat conftest.$ac_ext >&5
slouken@0
  1994
  rm -rf conftest*
slouken@0
  1995
  eval "ac_cv_lib_$ac_lib_var=no"
slouken@0
  1996
fi
slouken@0
  1997
rm -f conftest*
slouken@0
  1998
LIBS="$ac_save_LIBS"
slouken@0
  1999
slouken@0
  2000
fi
slouken@0
  2001
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
slouken@0
  2002
  echo "$ac_t""yes" 1>&6
slouken@0
  2003
  have_libjpeg=yes
slouken@0
  2004
else
slouken@0
  2005
  echo "$ac_t""no" 1>&6
slouken@0
  2006
fi
slouken@0
  2007
slouken@0
  2008
    if test x$have_libjpeg = xyes; then
slouken@0
  2009
        CFLAGS="$CFLAGS -DLOAD_JPG"
slouken@0
  2010
        IMG_LIBS="$IMG_LIBS -ljpeg"
slouken@0
  2011
    else
slouken@0
  2012
        echo "configure: warning: *** Unable to find JPEG library (http://www.ijg.org/)
slouken@0
  2013
]" 1>&2
slouken@0
  2014
        echo "configure: warning: JPG image loading disabled" 1>&2
slouken@0
  2015
    fi
slouken@0
  2016
fi
slouken@0
  2017
# Check whether --enable-pcx or --disable-pcx was given.
slouken@0
  2018
if test "${enable_pcx+set}" = set; then
slouken@0
  2019
  enableval="$enable_pcx"
slouken@0
  2020
  :
slouken@0
  2021
else
slouken@0
  2022
  enable_pcx=yes
slouken@0
  2023
fi
slouken@0
  2024
slouken@0
  2025
if test x$enable_pcx = xyes; then
slouken@0
  2026
    CFLAGS="$CFLAGS -DLOAD_PCX"
slouken@0
  2027
fi
slouken@0
  2028
# Check whether --enable-png or --disable-png was given.
slouken@0
  2029
if test "${enable_png+set}" = set; then
slouken@0
  2030
  enableval="$enable_png"
slouken@0
  2031
  :
slouken@0
  2032
else
slouken@0
  2033
  enable_png=yes
slouken@0
  2034
fi
slouken@0
  2035
slouken@0
  2036
if test x$enable_png = xyes; then
slouken@0
  2037
    echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
slouken@0
  2038
echo "configure:2039: checking for png_create_read_struct in -lpng" >&5
slouken@0
  2039
ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
slouken@0
  2040
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
slouken@0
  2041
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  2042
else
slouken@0
  2043
  ac_save_LIBS="$LIBS"
slouken@0
  2044
LIBS="-lpng -lz $LIBS"
slouken@0
  2045
cat > conftest.$ac_ext <<EOF
slouken@0
  2046
#line 2047 "configure"
slouken@0
  2047
#include "confdefs.h"
slouken@0
  2048
/* Override any gcc2 internal prototype to avoid an error.  */
slouken@0
  2049
/* We use char because int might match the return type of a gcc2
slouken@0
  2050
    builtin and then its argument prototype would still apply.  */
slouken@0
  2051
char png_create_read_struct();
slouken@0
  2052
slouken@0
  2053
int main() {
slouken@0
  2054
png_create_read_struct()
slouken@0
  2055
; return 0; }
slouken@0
  2056
EOF
slouken@0
  2057
if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  2058
  rm -rf conftest*
slouken@0
  2059
  eval "ac_cv_lib_$ac_lib_var=yes"
slouken@0
  2060
else
slouken@0
  2061
  echo "configure: failed program was:" >&5
slouken@0
  2062
  cat conftest.$ac_ext >&5
slouken@0
  2063
  rm -rf conftest*
slouken@0
  2064
  eval "ac_cv_lib_$ac_lib_var=no"
slouken@0
  2065
fi
slouken@0
  2066
rm -f conftest*
slouken@0
  2067
LIBS="$ac_save_LIBS"
slouken@0
  2068
slouken@0
  2069
fi
slouken@0
  2070
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
slouken@0
  2071
  echo "$ac_t""yes" 1>&6
slouken@0
  2072
  have_libpng=yes
slouken@0
  2073
else
slouken@0
  2074
  echo "$ac_t""no" 1>&6
slouken@0
  2075
fi
slouken@0
  2076
slouken@0
  2077
    if test x$have_libpng != xyes; then
slouken@0
  2078
        echo "configure: warning: 
slouken@0
  2079
*** Unable to find PNG library (http://www.cdrom.com/pub/png/)
slouken@0
  2080
" 1>&2
slouken@0
  2081
    fi
slouken@0
  2082
    echo $ac_n "checking for uncompress in -lz""... $ac_c" 1>&6
slouken@0
  2083
echo "configure:2084: checking for uncompress in -lz" >&5
slouken@0
  2084
ac_lib_var=`echo z'_'uncompress | sed 'y%./+-%__p_%'`
slouken@0
  2085
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
slouken@0
  2086
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  2087
else
slouken@0
  2088
  ac_save_LIBS="$LIBS"
slouken@0
  2089
LIBS="-lz  $LIBS"
slouken@0
  2090
cat > conftest.$ac_ext <<EOF
slouken@0
  2091
#line 2092 "configure"
slouken@0
  2092
#include "confdefs.h"
slouken@0
  2093
/* Override any gcc2 internal prototype to avoid an error.  */
slouken@0
  2094
/* We use char because int might match the return type of a gcc2
slouken@0
  2095
    builtin and then its argument prototype would still apply.  */
slouken@0
  2096
char uncompress();
slouken@0
  2097
slouken@0
  2098
int main() {
slouken@0
  2099
uncompress()
slouken@0
  2100
; return 0; }
slouken@0
  2101
EOF
slouken@0
  2102
if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  2103
  rm -rf conftest*
slouken@0
  2104
  eval "ac_cv_lib_$ac_lib_var=yes"
slouken@0
  2105
else
slouken@0
  2106
  echo "configure: failed program was:" >&5
slouken@0
  2107
  cat conftest.$ac_ext >&5
slouken@0
  2108
  rm -rf conftest*
slouken@0
  2109
  eval "ac_cv_lib_$ac_lib_var=no"
slouken@0
  2110
fi
slouken@0
  2111
rm -f conftest*
slouken@0
  2112
LIBS="$ac_save_LIBS"
slouken@0
  2113
slouken@0
  2114
fi
slouken@0
  2115
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
slouken@0
  2116
  echo "$ac_t""yes" 1>&6
slouken@0
  2117
  have_libz=yes
slouken@0
  2118
else
slouken@0
  2119
  echo "$ac_t""no" 1>&6
slouken@0
  2120
fi
slouken@0
  2121
slouken@0
  2122
    if test x$have_libz != xyes; then
slouken@0
  2123
        echo "configure: warning: 
slouken@0
  2124
*** Unable to find Zlib library (http://www.cdrom.com/pub/infozip/zlib/)
slouken@0
  2125
" 1>&2
slouken@0
  2126
    fi
slouken@0
  2127
    if test x$have_libpng = xyes -a x$have_libz = xyes; then
slouken@0
  2128
        CFLAGS="$CFLAGS -DLOAD_PNG"
slouken@0
  2129
        IMG_LIBS="$IMG_LIBS -lpng -lz"
slouken@0
  2130
    else
slouken@0
  2131
        echo "configure: warning: PNG image loading disabled" 1>&2
slouken@0
  2132
    fi
slouken@0
  2133
fi
slouken@0
  2134
# Check whether --enable-ppm or --disable-ppm was given.
slouken@0
  2135
if test "${enable_ppm+set}" = set; then
slouken@0
  2136
  enableval="$enable_ppm"
slouken@0
  2137
  :
slouken@0
  2138
else
slouken@0
  2139
  enable_ppm=yes
slouken@0
  2140
fi
slouken@0
  2141
slouken@0
  2142
if test x$enable_ppm = xyes; then
slouken@0
  2143
    CFLAGS="$CFLAGS -DLOAD_PPM"
slouken@0
  2144
fi
slouken@0
  2145
# Check whether --enable-tga or --disable-tga was given.
slouken@0
  2146
if test "${enable_tga+set}" = set; then
slouken@0
  2147
  enableval="$enable_tga"
slouken@0
  2148
  :
slouken@0
  2149
else
slouken@0
  2150
  enable_tga=yes
slouken@0
  2151
fi
slouken@0
  2152
slouken@0
  2153
if test x$enable_tga = xyes; then
slouken@0
  2154
    CFLAGS="$CFLAGS -DLOAD_TGA"
slouken@0
  2155
fi
slouken@0
  2156
# Check whether --enable-tif or --disable-tif was given.
slouken@0
  2157
if test "${enable_tif+set}" = set; then
slouken@0
  2158
  enableval="$enable_tif"
slouken@0
  2159
  :
slouken@0
  2160
else
slouken@0
  2161
  enable_tif=yes
slouken@0
  2162
fi
slouken@0
  2163
slouken@0
  2164
if test x$enable_tif = xyes; then
slouken@0
  2165
    echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
slouken@0
  2166
echo "configure:2167: checking for TIFFClientOpen in -ltiff" >&5
slouken@0
  2167
ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
slouken@0
  2168
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
slouken@0
  2169
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  2170
else
slouken@0
  2171
  ac_save_LIBS="$LIBS"
slouken@0
  2172
LIBS="-ltiff  $LIBS"
slouken@0
  2173
cat > conftest.$ac_ext <<EOF
slouken@0
  2174
#line 2175 "configure"
slouken@0
  2175
#include "confdefs.h"
slouken@0
  2176
/* Override any gcc2 internal prototype to avoid an error.  */
slouken@0
  2177
/* We use char because int might match the return type of a gcc2
slouken@0
  2178
    builtin and then its argument prototype would still apply.  */
slouken@0
  2179
char TIFFClientOpen();
slouken@0
  2180
slouken@0
  2181
int main() {
slouken@0
  2182
TIFFClientOpen()
slouken@0
  2183
; return 0; }
slouken@0
  2184
EOF
slouken@0
  2185
if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  2186
  rm -rf conftest*
slouken@0
  2187
  eval "ac_cv_lib_$ac_lib_var=yes"
slouken@0
  2188
else
slouken@0
  2189
  echo "configure: failed program was:" >&5
slouken@0
  2190
  cat conftest.$ac_ext >&5
slouken@0
  2191
  rm -rf conftest*
slouken@0
  2192
  eval "ac_cv_lib_$ac_lib_var=no"
slouken@0
  2193
fi
slouken@0
  2194
rm -f conftest*
slouken@0
  2195
LIBS="$ac_save_LIBS"
slouken@0
  2196
slouken@0
  2197
fi
slouken@0
  2198
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
slouken@0
  2199
  echo "$ac_t""yes" 1>&6
slouken@0
  2200
  have_libtiff=yes
slouken@0
  2201
else
slouken@0
  2202
  echo "$ac_t""no" 1>&6
slouken@0
  2203
fi
slouken@0
  2204
slouken@0
  2205
    if test x$have_libtiff = xyes; then
slouken@0
  2206
        CFLAGS="$CFLAGS -DLOAD_TIF"
slouken@0
  2207
        IMG_LIBS="$IMG_LIBS -ltiff"
slouken@0
  2208
    else
slouken@0
  2209
        echo "configure: warning: *** Unable to find Tiff library (ftp://ftp.sgi.com/graphics/tiff/)
slouken@0
  2210
]" 1>&2
slouken@0
  2211
        echo "configure: warning: TIF image loading disabled" 1>&2
slouken@0
  2212
    fi
slouken@0
  2213
fi
slouken@0
  2214
slouken@0
  2215
slouken@0
  2216
# Finally create all the generated files
slouken@0
  2217
trap '' 1 2 15
slouken@0
  2218
cat > confcache <<\EOF
slouken@0
  2219
# This file is a shell script that caches the results of configure
slouken@0
  2220
# tests run on this system so they can be shared between configure
slouken@0
  2221
# scripts and configure runs.  It is not useful on other systems.
slouken@0
  2222
# If it contains results you don't want to keep, you may remove or edit it.
slouken@0
  2223
#
slouken@0
  2224
# By default, configure uses ./config.cache as the cache file,
slouken@0
  2225
# creating it if it does not exist already.  You can give configure
slouken@0
  2226
# the --cache-file=FILE option to use a different cache file; that is
slouken@0
  2227
# what configure does when it calls configure scripts in
slouken@0
  2228
# subdirectories, so they share the cache.
slouken@0
  2229
# Giving --cache-file=/dev/null disables caching, for debugging configure.
slouken@0
  2230
# config.status only pays attention to the cache file if you give it the
slouken@0
  2231
# --recheck option to rerun configure.
slouken@0
  2232
#
slouken@0
  2233
EOF
slouken@0
  2234
# The following way of writing the cache mishandles newlines in values,
slouken@0
  2235
# but we know of no workaround that is simple, portable, and efficient.
slouken@0
  2236
# So, don't put newlines in cache variables' values.
slouken@0
  2237
# Ultrix sh set writes to stderr and can't be redirected directly,
slouken@0
  2238
# and sets the high bit in the cache file unless we assign to the vars.
slouken@0
  2239
(set) 2>&1 |
slouken@0
  2240
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
slouken@0
  2241
  *ac_space=\ *)
slouken@0
  2242
    # `set' does not quote correctly, so add quotes (double-quote substitution
slouken@0
  2243
    # turns \\\\ into \\, and sed turns \\ into \).
slouken@0
  2244
    sed -n \
slouken@0
  2245
      -e "s/'/'\\\\''/g" \
slouken@0
  2246
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
slouken@0
  2247
    ;;
slouken@0
  2248
  *)
slouken@0
  2249
    # `set' quotes correctly as required by POSIX, so do not add quotes.
slouken@0
  2250
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
slouken@0
  2251
    ;;
slouken@0
  2252
  esac >> confcache
slouken@0
  2253
if cmp -s $cache_file confcache; then
slouken@0
  2254
  :
slouken@0
  2255
else
slouken@0
  2256
  if test -w $cache_file; then
slouken@0
  2257
    echo "updating cache $cache_file"
slouken@0
  2258
    cat confcache > $cache_file
slouken@0
  2259
  else
slouken@0
  2260
    echo "not updating unwritable cache $cache_file"
slouken@0
  2261
  fi
slouken@0
  2262
fi
slouken@0
  2263
rm -f confcache
slouken@0
  2264
slouken@0
  2265
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
slouken@0
  2266
slouken@0
  2267
test "x$prefix" = xNONE && prefix=$ac_default_prefix
slouken@0
  2268
# Let make expand exec_prefix.
slouken@0
  2269
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
slouken@0
  2270
slouken@0
  2271
# Any assignment to VPATH causes Sun make to only execute
slouken@0
  2272
# the first set of double-colon rules, so remove it if not needed.
slouken@0
  2273
# If there is a colon in the path, we need to keep it.
slouken@0
  2274
if test "x$srcdir" = x.; then
slouken@0
  2275
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
slouken@0
  2276
fi
slouken@0
  2277
slouken@0
  2278
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
slouken@0
  2279
slouken@0
  2280
# Transform confdefs.h into DEFS.
slouken@0
  2281
# Protect against shell expansion while executing Makefile rules.
slouken@0
  2282
# Protect against Makefile macro expansion.
slouken@0
  2283
cat > conftest.defs <<\EOF
slouken@0
  2284
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
slouken@0
  2285
s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
slouken@0
  2286
s%\[%\\&%g
slouken@0
  2287
s%\]%\\&%g
slouken@0
  2288
s%\$%$$%g
slouken@0
  2289
EOF
slouken@0
  2290
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
slouken@0
  2291
rm -f conftest.defs
slouken@0
  2292
slouken@0
  2293
slouken@0
  2294
# Without the "./", some shells look in PATH for config.status.
slouken@0
  2295
: ${CONFIG_STATUS=./config.status}
slouken@0
  2296
slouken@0
  2297
echo creating $CONFIG_STATUS
slouken@0
  2298
rm -f $CONFIG_STATUS
slouken@0
  2299
cat > $CONFIG_STATUS <<EOF
slouken@0
  2300
#! /bin/sh
slouken@0
  2301
# Generated automatically by configure.
slouken@0
  2302
# Run this file to recreate the current configuration.
slouken@0
  2303
# This directory was configured as follows,
slouken@0
  2304
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
slouken@0
  2305
#
slouken@0
  2306
# $0 $ac_configure_args
slouken@0
  2307
#
slouken@0
  2308
# Compiler output produced by configure, useful for debugging
slouken@0
  2309
# configure, is in ./config.log if it exists.
slouken@0
  2310
slouken@0
  2311
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
slouken@0
  2312
for ac_option
slouken@0
  2313
do
slouken@0
  2314
  case "\$ac_option" in
slouken@0
  2315
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
slouken@0
  2316
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
slouken@0
  2317
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
slouken@0
  2318
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
slouken@0
  2319
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
slouken@0
  2320
    exit 0 ;;
slouken@0
  2321
  -help | --help | --hel | --he | --h)
slouken@0
  2322
    echo "\$ac_cs_usage"; exit 0 ;;
slouken@0
  2323
  *) echo "\$ac_cs_usage"; exit 1 ;;
slouken@0
  2324
  esac
slouken@0
  2325
done
slouken@0
  2326
slouken@0
  2327
ac_given_srcdir=$srcdir
slouken@0
  2328
ac_given_INSTALL="$INSTALL"
slouken@0
  2329
slouken@0
  2330
trap 'rm -fr `echo "
slouken@0
  2331
Makefile
slouken@0
  2332
SDL_image.spec
slouken@0
  2333
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
slouken@0
  2334
EOF
slouken@0
  2335
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2336
slouken@0
  2337
# Protect against being on the right side of a sed subst in config.status.
slouken@0
  2338
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
slouken@0
  2339
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
slouken@0
  2340
$ac_vpsub
slouken@0
  2341
$extrasub
slouken@0
  2342
s%@SHELL@%$SHELL%g
slouken@0
  2343
s%@CFLAGS@%$CFLAGS%g
slouken@0
  2344
s%@CPPFLAGS@%$CPPFLAGS%g
slouken@0
  2345
s%@CXXFLAGS@%$CXXFLAGS%g
slouken@0
  2346
s%@FFLAGS@%$FFLAGS%g
slouken@0
  2347
s%@DEFS@%$DEFS%g
slouken@0
  2348
s%@LDFLAGS@%$LDFLAGS%g
slouken@0
  2349
s%@LIBS@%$LIBS%g
slouken@0
  2350
s%@exec_prefix@%$exec_prefix%g
slouken@0
  2351
s%@prefix@%$prefix%g
slouken@0
  2352
s%@program_transform_name@%$program_transform_name%g
slouken@0
  2353
s%@bindir@%$bindir%g
slouken@0
  2354
s%@sbindir@%$sbindir%g
slouken@0
  2355
s%@libexecdir@%$libexecdir%g
slouken@0
  2356
s%@datadir@%$datadir%g
slouken@0
  2357
s%@sysconfdir@%$sysconfdir%g
slouken@0
  2358
s%@sharedstatedir@%$sharedstatedir%g
slouken@0
  2359
s%@localstatedir@%$localstatedir%g
slouken@0
  2360
s%@libdir@%$libdir%g
slouken@0
  2361
s%@includedir@%$includedir%g
slouken@0
  2362
s%@oldincludedir@%$oldincludedir%g
slouken@0
  2363
s%@infodir@%$infodir%g
slouken@0
  2364
s%@mandir@%$mandir%g
slouken@0
  2365
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
slouken@0
  2366
s%@MINOR_VERSION@%$MINOR_VERSION%g
slouken@0
  2367
s%@MICRO_VERSION@%$MICRO_VERSION%g
slouken@0
  2368
s%@INTERFACE_AGE@%$INTERFACE_AGE%g
slouken@0
  2369
s%@BINARY_AGE@%$BINARY_AGE%g
slouken@0
  2370
s%@VERSION@%$VERSION%g
slouken@0
  2371
s%@LT_RELEASE@%$LT_RELEASE%g
slouken@0
  2372
s%@LT_CURRENT@%$LT_CURRENT%g
slouken@0
  2373
s%@LT_REVISION@%$LT_REVISION%g
slouken@0
  2374
s%@LT_AGE@%$LT_AGE%g
slouken@0
  2375
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
slouken@0
  2376
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
slouken@0
  2377
s%@INSTALL_DATA@%$INSTALL_DATA%g
slouken@0
  2378
s%@PACKAGE@%$PACKAGE%g
slouken@0
  2379
s%@ACLOCAL@%$ACLOCAL%g
slouken@0
  2380
s%@AUTOCONF@%$AUTOCONF%g
slouken@0
  2381
s%@AUTOMAKE@%$AUTOMAKE%g
slouken@0
  2382
s%@AUTOHEADER@%$AUTOHEADER%g
slouken@0
  2383
s%@MAKEINFO@%$MAKEINFO%g
slouken@0
  2384
s%@SET_MAKE@%$SET_MAKE%g
slouken@0
  2385
s%@CC@%$CC%g
slouken@0
  2386
s%@host@%$host%g
slouken@0
  2387
s%@host_alias@%$host_alias%g
slouken@0
  2388
s%@host_cpu@%$host_cpu%g
slouken@0
  2389
s%@host_vendor@%$host_vendor%g
slouken@0
  2390
s%@host_os@%$host_os%g
slouken@0
  2391
s%@build@%$build%g
slouken@0
  2392
s%@build_alias@%$build_alias%g
slouken@0
  2393
s%@build_cpu@%$build_cpu%g
slouken@0
  2394
s%@build_vendor@%$build_vendor%g
slouken@0
  2395
s%@build_os@%$build_os%g
slouken@0
  2396
s%@LD@%$LD%g
slouken@0
  2397
s%@NM@%$NM%g
slouken@0
  2398
s%@LN_S@%$LN_S%g
slouken@0
  2399
s%@RANLIB@%$RANLIB%g
slouken@0
  2400
s%@LIBTOOL@%$LIBTOOL%g
slouken@0
  2401
s%@target@%$target%g
slouken@0
  2402
s%@target_alias@%$target_alias%g
slouken@0
  2403
s%@target_cpu@%$target_cpu%g
slouken@0
  2404
s%@target_vendor@%$target_vendor%g
slouken@0
  2405
s%@target_os@%$target_os%g
slouken@0
  2406
s%@SDL_CONFIG@%$SDL_CONFIG%g
slouken@0
  2407
s%@SDL_CFLAGS@%$SDL_CFLAGS%g
slouken@0
  2408
s%@SDL_LIBS@%$SDL_LIBS%g
slouken@0
  2409
s%@IMG_LIBS@%$IMG_LIBS%g
slouken@0
  2410
slouken@0
  2411
CEOF
slouken@0
  2412
EOF
slouken@0
  2413
slouken@0
  2414
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2415
slouken@0
  2416
# Split the substitutions into bite-sized pieces for seds with
slouken@0
  2417
# small command number limits, like on Digital OSF/1 and HP-UX.
slouken@0
  2418
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
slouken@0
  2419
ac_file=1 # Number of current file.
slouken@0
  2420
ac_beg=1 # First line for current file.
slouken@0
  2421
ac_end=$ac_max_sed_cmds # Line after last line for current file.
slouken@0
  2422
ac_more_lines=:
slouken@0
  2423
ac_sed_cmds=""
slouken@0
  2424
while $ac_more_lines; do
slouken@0
  2425
  if test $ac_beg -gt 1; then
slouken@0
  2426
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
slouken@0
  2427
  else
slouken@0
  2428
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
slouken@0
  2429
  fi
slouken@0
  2430
  if test ! -s conftest.s$ac_file; then
slouken@0
  2431
    ac_more_lines=false
slouken@0
  2432
    rm -f conftest.s$ac_file
slouken@0
  2433
  else
slouken@0
  2434
    if test -z "$ac_sed_cmds"; then
slouken@0
  2435
      ac_sed_cmds="sed -f conftest.s$ac_file"
slouken@0
  2436
    else
slouken@0
  2437
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
slouken@0
  2438
    fi
slouken@0
  2439
    ac_file=`expr $ac_file + 1`
slouken@0
  2440
    ac_beg=$ac_end
slouken@0
  2441
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
slouken@0
  2442
  fi
slouken@0
  2443
done
slouken@0
  2444
if test -z "$ac_sed_cmds"; then
slouken@0
  2445
  ac_sed_cmds=cat
slouken@0
  2446
fi
slouken@0
  2447
EOF
slouken@0
  2448
slouken@0
  2449
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2450
slouken@0
  2451
CONFIG_FILES=\${CONFIG_FILES-"Makefile
slouken@0
  2452
SDL_image.spec
slouken@0
  2453
"}
slouken@0
  2454
EOF
slouken@0
  2455
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2456
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
slouken@0
  2457
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
slouken@0
  2458
  case "$ac_file" in
slouken@0
  2459
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
slouken@0
  2460
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
slouken@0
  2461
  *) ac_file_in="${ac_file}.in" ;;
slouken@0
  2462
  esac
slouken@0
  2463
slouken@0
  2464
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
slouken@0
  2465
slouken@0
  2466
  # Remove last slash and all that follows it.  Not all systems have dirname.
slouken@0
  2467
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
slouken@0
  2468
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
slouken@0
  2469
    # The file is in a subdirectory.
slouken@0
  2470
    test ! -d "$ac_dir" && mkdir "$ac_dir"
slouken@0
  2471
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
slouken@0
  2472
    # A "../" for each directory in $ac_dir_suffix.
slouken@0
  2473
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
slouken@0
  2474
  else
slouken@0
  2475
    ac_dir_suffix= ac_dots=
slouken@0
  2476
  fi
slouken@0
  2477
slouken@0
  2478
  case "$ac_given_srcdir" in
slouken@0
  2479
  .)  srcdir=.
slouken@0
  2480
      if test -z "$ac_dots"; then top_srcdir=.
slouken@0
  2481
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
slouken@0
  2482
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
slouken@0
  2483
  *) # Relative path.
slouken@0
  2484
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
slouken@0
  2485
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
slouken@0
  2486
  esac
slouken@0
  2487
slouken@0
  2488
  case "$ac_given_INSTALL" in
slouken@0
  2489
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
slouken@0
  2490
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
slouken@0
  2491
  esac
slouken@0
  2492
slouken@0
  2493
  echo creating "$ac_file"
slouken@0
  2494
  rm -f "$ac_file"
slouken@0
  2495
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
slouken@0
  2496
  case "$ac_file" in
slouken@0
  2497
  *Makefile*) ac_comsub="1i\\
slouken@0
  2498
# $configure_input" ;;
slouken@0
  2499
  *) ac_comsub= ;;
slouken@0
  2500
  esac
slouken@0
  2501
slouken@0
  2502
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
slouken@0
  2503
  sed -e "$ac_comsub
slouken@0
  2504
s%@configure_input@%$configure_input%g
slouken@0
  2505
s%@srcdir@%$srcdir%g
slouken@0
  2506
s%@top_srcdir@%$top_srcdir%g
slouken@0
  2507
s%@INSTALL@%$INSTALL%g
slouken@0
  2508
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
slouken@0
  2509
fi; done
slouken@0
  2510
rm -f conftest.s*
slouken@0
  2511
slouken@0
  2512
EOF
slouken@0
  2513
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2514
slouken@0
  2515
EOF
slouken@0
  2516
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2517
slouken@0
  2518
exit 0
slouken@0
  2519
EOF
slouken@0
  2520
chmod +x $CONFIG_STATUS
slouken@0
  2521
rm -fr confdefs* $ac_clean_files
slouken@0
  2522
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
slouken@0
  2523