~ubuntu-branches/ubuntu/feisty/penguin-command/feisty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Karl Bartel
  • Date: 2001-10-13 17:35:43 UTC
  • Revision ID: james.westby@ubuntu.com-20011013173543-dn27xb78b2gco6qi
Tags: upstream-1.6.2
ImportĀ upstreamĀ versionĀ 1.6.2

Show diffs side-by-side

added added

removed removed

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