configure 131 KB
Newer Older
1
#! /bin/sh
Sam Hocevar's avatar
   
Sam Hocevar committed
2

3
# Guess values for system-dependent variables and create Makefiles.
Sam Hocevar's avatar
   
Sam Hocevar committed
4
5
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
7
8
9
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

Sam Hocevar's avatar
   
Sam Hocevar committed
10
11
# Defaults:
ac_help=
12
ac_default_prefix=/usr/local
Sam Hocevar's avatar
   
Sam Hocevar committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Any additions from configure.in:
ac_help="$ac_help
  --disable-dummy         dummy module (default enabled)"
ac_help="$ac_help
  --disable-null          Null module (default enabled)"
ac_help="$ac_help
  --disable-rc            rc module (default enabled)"
ac_help="$ac_help
  --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)"
ac_help="$ac_help
  --disable-mmx           Disable MMX optimizations (default enabled for x86)"
ac_help="$ac_help
  --enable-altivec        Enable altivec optimizations (default disabled since it is broken)"
ac_help="$ac_help
  --disable-css           Disable DVD CSS decryption (default enabled)"
ac_help="$ac_help
  --enable-debug          Enable debug mode (default disabled)"
ac_help="$ac_help
  --enable-stats          Enable printing of statistics (default disabled)"
ac_help="$ac_help
  --enable-trace          Enable trace mode (default disabled)"
ac_help="$ac_help
  --disable-optimizations Disable compiler optimizations (default enabled)"
ac_help="$ac_help
  --disable-dsp           Linux /dev/dsp support (default enabled)"
ac_help="$ac_help
  --enable-esd            Esound library support (default disabled)"
ac_help="$ac_help
  --enable-darwin         Darwin sound support (default disabled)"
ac_help="$ac_help
  --enable-macosx         Mac OS X interface support (default enabled in Mac OS X)"
ac_help="$ac_help
  --enable-fb             Linux framebuffer support (default disabled)"
ac_help="$ac_help
  --with-ggi[=name]       GGI support (default disabled)"
ac_help="$ac_help
  --with-sdl[=name]       SDL support (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
50
51
ac_help="$ac_help
  --with-directx[=name]   Windows DirectX support (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ac_help="$ac_help
  --with-glide[=name]     Glide (3dfx) support (default disabled)"
ac_help="$ac_help
  --enable-ncurses        ncurses interface support (default disabled)"
ac_help="$ac_help
  --enable-qt             Qt interface support (default disabled)"
ac_help="$ac_help
  --enable-kde            KDE interface support (default disabled)"
ac_help="$ac_help
  --enable-gnome          Gnome interface support (default disabled)"
ac_help="$ac_help
  --disable-gtk           Gtk+ support (default enabled)"
ac_help="$ac_help
  --disable-x11           X11 support (default enabled)"
ac_help="$ac_help
  --disable-xvideo        XVideo support (default enabled)"
ac_help="$ac_help
  --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)"
70
71
72
73

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
Sam Hocevar's avatar
   
Sam Hocevar committed
74
75
build=NONE
cache_file=./config.cache
76
exec_prefix=NONE
Sam Hocevar's avatar
   
Sam Hocevar committed
77
host=NONE
78
no_create=
Sam Hocevar's avatar
   
Sam Hocevar committed
79
nonopt=NONE
80
81
82
83
84
85
86
87
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
Sam Hocevar's avatar
   
Sam Hocevar committed
88
target=NONE
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

Sam Hocevar's avatar
   
Sam Hocevar committed
105
106
107
108
109
110
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
111
112
113
114

ac_prev=
for ac_option
do
Sam Hocevar's avatar
   
Sam Hocevar committed
115

116
117
118
119
120
121
122
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

Sam Hocevar's avatar
   
Sam Hocevar committed
123
124
125
126
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
127
128
129

  # Accept the important Cygnus configure options, so we can diagnose typos.

Sam Hocevar's avatar
   
Sam Hocevar committed
130
  case "$ac_option" in
131
132
133
134

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
135
    bindir="$ac_optarg" ;;
136
137

  -build | --build | --buil | --bui | --bu)
Sam Hocevar's avatar
   
Sam Hocevar committed
138
    ac_prev=build ;;
139
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
140
    build="$ac_optarg" ;;
141
142
143
144
145
146

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
147
    cache_file="$ac_optarg" ;;
148
149
150
151
152

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
153
    datadir="$ac_optarg" ;;
154
155

  -disable-* | --disable-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
156
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
157
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
158
159
160
161
162
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
163
164

  -enable-* | --enable-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
165
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
166
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
167
168
169
170
171
172
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
173
174
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
   
Sam Hocevar committed
175
    eval "enable_${ac_feature}='$ac_optarg'" ;;
176
177
178
179
180
181
182
183

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
184
    exec_prefix="$ac_optarg" ;;
185
186
187
188
189

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

Sam Hocevar's avatar
   
Sam Hocevar committed
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;
244
245

  -host | --host | --hos | --ho)
Sam Hocevar's avatar
   
Sam Hocevar committed
246
    ac_prev=host ;;
247
  -host=* | --host=* | --hos=* | --ho=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
248
    host="$ac_optarg" ;;
249
250
251
252
253
254

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
255
    includedir="$ac_optarg" ;;
256
257
258
259

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
260
    infodir="$ac_optarg" ;;
261
262
263
264

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
265
    libdir="$ac_optarg" ;;
266
267
268
269
270
271

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
272
    libexecdir="$ac_optarg" ;;
273
274
275
276
277
278
279
280

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
281
    localstatedir="$ac_optarg" ;;
282
283
284
285

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
286
    mandir="$ac_optarg" ;;
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
307
    oldincludedir="$ac_optarg" ;;
308
309
310
311

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
312
    prefix="$ac_optarg" ;;
313
314
315
316
317
318

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
319
    program_prefix="$ac_optarg" ;;
320
321
322
323
324
325

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
326
    program_suffix="$ac_optarg" ;;
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
343
    program_transform_name="$ac_optarg" ;;
344
345
346
347
348
349
350
351
352

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
353
    sbindir="$ac_optarg" ;;
354
355
356
357
358
359
360
361
362
363

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
364
    sharedstatedir="$ac_optarg" ;;
365
366
367
368

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
369
    site="$ac_optarg" ;;
370
371
372
373

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
374
    srcdir="$ac_optarg" ;;
375
376
377
378
379
380

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
381
    sysconfdir="$ac_optarg" ;;
382
383

  -target | --target | --targe | --targ | --tar | --ta | --t)
Sam Hocevar's avatar
   
Sam Hocevar committed
384
    ac_prev=target ;;
385
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
386
    target="$ac_optarg" ;;
387
388
389
390

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

Sam Hocevar's avatar
   
Sam Hocevar committed
391
392
393
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
394
395

  -with-* | --with-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
396
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
398
399
400
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
401
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Sam Hocevar's avatar
   
Sam Hocevar committed
402
403
    case "$ac_option" in
      *=*) ;;
404
405
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
   
Sam Hocevar committed
406
    eval "with_${ac_package}='$ac_optarg'" ;;
407
408

  -without-* | --without-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
409
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
411
412
413
414
415
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
416
417
418
419
420
421
422
423
424
425

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
426
    x_includes="$ac_optarg" ;;
427
428
429
430
431
432

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
433
    x_libraries="$ac_optarg" ;;
434

Sam Hocevar's avatar
   
Sam Hocevar committed
435
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436
437
438
    ;;

  *)
Sam Hocevar's avatar
   
Sam Hocevar committed
439
440
441
442
443
444
445
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
446
447
448
449
450
451
    ;;

  esac
done

if test -n "$ac_prev"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
469
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
470
471
472
473
474
475
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
476

Sam Hocevar's avatar
   
Sam Hocevar committed
477
478
479
480
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
481
do
Sam Hocevar's avatar
   
Sam Hocevar committed
482
483
484
485
486
487
488
489
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490
491
492
  esac
done

Sam Hocevar's avatar
   
Sam Hocevar committed
493
494
495
496
497
498
499
500
501
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
502

Sam Hocevar's avatar
   
Sam Hocevar committed
503
504
505
506
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
507

Sam Hocevar's avatar
   
Sam Hocevar committed
508
509
510
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=src/interface/main.c
511
512
513
514
515
516

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
Sam Hocevar's avatar
   
Sam Hocevar committed
517
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518
519
520
521
522
523
524
525
526
527
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
Sam Hocevar's avatar
   
Sam Hocevar committed
528
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529
  else
Sam Hocevar's avatar
   
Sam Hocevar committed
530
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531
532
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
533
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534
535
536
537
538
539
540
541
542
543
544

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
545
    echo "loading site script $ac_site_file"
546
547
548
549
550
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
551
552
  echo "loading cache $cache_file"
  . $cache_file
553
else
Sam Hocevar's avatar
   
Sam Hocevar committed
554
555
  echo "creating cache $cache_file"
  > $cache_file
556
557
558
fi

ac_ext=c
Sam Hocevar's avatar
   
Sam Hocevar committed
559
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560
ac_cpp='$CPP $CPPFLAGS'
Sam Hocevar's avatar
   
Sam Hocevar committed
561
562
563
564
565
566
567
568
569
570
571
572
573
574
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
575
else
Sam Hocevar's avatar
   
Sam Hocevar committed
576
  ac_n= ac_c='\c' ac_t=
577
578
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
579
580


581

582
583
584
585
586
587
588
589
590
591
592
593
594
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
595
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
596
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
597
598
599
600
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.

601
602

# Make sure we can run config.sub.
Sam Hocevar's avatar
   
Sam Hocevar committed
603
604
605
606
607
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
608
echo "configure:609: checking host system type" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

628

Henri Fallon's avatar
   
Henri Fallon committed
629
VLC_VERSION=0.2.73
630

Sam Hocevar's avatar
   
Sam Hocevar committed
631
VLC_CODENAME=Ourumov
632

Sam Hocevar's avatar
   
Sam Hocevar committed
633

Sam Hocevar's avatar
   
Sam Hocevar committed
634
635
save_CFLAGS="${CFLAGS}"

Sam Hocevar's avatar
   
Sam Hocevar committed
636
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
637
echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
638
639
640
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
641
else
Sam Hocevar's avatar
   
Sam Hocevar committed
642
  cat > conftestmake <<\EOF
643
644
645
646
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Sam Hocevar's avatar
   
Sam Hocevar committed
647
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648
649
650
651
652
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
653
rm -f conftestmake
654
655
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
656
  echo "$ac_t""yes" 1>&6
657
658
  SET_MAKE=
else
Sam Hocevar's avatar
   
Sam Hocevar committed
659
  echo "$ac_t""no" 1>&6
660
661
662
  SET_MAKE="MAKE=${MAKE-make}"
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
663
# Extract the first word of "gcc", so it can be a program name with args.
664
set dummy gcc; ac_word=$2
Sam Hocevar's avatar
   
Sam Hocevar committed
665
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
666
echo "configure:667: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
667
668
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
669
670
671
672
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
673
674
675
676
677
678
679
680
681
682
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
683
684
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
685
CC="$ac_cv_prog_CC"
686
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
687
  echo "$ac_t""$CC" 1>&6
688
else
Sam Hocevar's avatar
   
Sam Hocevar committed
689
  echo "$ac_t""no" 1>&6
690
691
692
693
694
fi

if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
Sam Hocevar's avatar
   
Sam Hocevar committed
695
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
696
echo "configure:697: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
697
698
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
699
700
701
702
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
703
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
704
  ac_prog_rejected=no
Sam Hocevar's avatar
   
Sam Hocevar committed
705
706
707
708
709
710
711
712
713
714
715
716
717
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
718
719
720
721
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
Sam Hocevar's avatar
   
Sam Hocevar committed
722
  if test $# -gt 0; then
723
724
725
726
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
Sam Hocevar's avatar
   
Sam Hocevar committed
727
    set dummy "$ac_dir/$ac_word" "$@"
728
729
730
731
732
733
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
734
CC="$ac_cv_prog_CC"
735
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
736
  echo "$ac_t""$CC" 1>&6
737
else
Sam Hocevar's avatar
   
Sam Hocevar committed
738
  echo "$ac_t""no" 1>&6
739
740
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
741
742
743
744
745
746
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
747
echo "configure:748: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
748
749
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
750
751
752
753
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
754
755
756
757
758
759
760
761
762
763
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
764
765
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
766
CC="$ac_cv_prog_CC"
767
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
768
  echo "$ac_t""$CC" 1>&6
769
else
Sam Hocevar's avatar
   
Sam Hocevar committed
770
  echo "$ac_t""no" 1>&6
771
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
772
773
774
775
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
776
777
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
778
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
779
echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
780

Sam Hocevar's avatar
   
Sam Hocevar committed
781
782
783
784
785
786
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
787

Sam Hocevar's avatar
   
Sam Hocevar committed
788
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
789

Sam Hocevar's avatar
   
Sam Hocevar committed
790
#line 791 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
791
792
#include "confdefs.h"

Sam Hocevar's avatar
   
Sam Hocevar committed
793
794
main(){return(0);}
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
795
if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
   
Sam Hocevar committed
796
797
798
799
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
Sam Hocevar's avatar
   
Sam Hocevar committed
800
  else
Sam Hocevar's avatar
   
Sam Hocevar committed
801
    ac_cv_prog_cc_cross=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
802
  fi
Sam Hocevar's avatar
   
Sam Hocevar committed
803
804
805
806
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
807
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
808
809
810
811
812
813
814
815
816
817
818
819
820
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
821
echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
822
823
824
825
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
826
echo "configure:827: checking whether we are using GNU C" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
827
828
829
830
831
832
833
834
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
835
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Sam Hocevar's avatar
   
Sam Hocevar committed
836
  ac_cv_prog_gcc=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
837
else
Sam Hocevar's avatar
   
Sam Hocevar committed
838
839
  ac_cv_prog_gcc=no
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
840
841
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
842
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
843

Sam Hocevar's avatar
   
Sam Hocevar committed
844
845
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
846
else
Sam Hocevar's avatar
   
Sam Hocevar committed
847
  GCC=
Sam Hocevar's avatar
   
Sam Hocevar committed
848
849
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
850
851
852
853
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
854
echo "configure:855: checking whether ${CC-cc} accepts -g" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
855
856
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
857
else
Sam Hocevar's avatar
   
Sam Hocevar committed
858
859
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
860
861
  ac_cv_prog_cc_g=yes
else
Sam Hocevar's avatar
   
Sam Hocevar committed
862
  ac_cv_prog_cc_g=no
Sam Hocevar's avatar
   
Sam Hocevar committed
863
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
864
865
rm -f conftest*

Sam Hocevar's avatar
   
Sam Hocevar committed
866
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
867
868

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
869
if test "$ac_test_CFLAGS" = set; then
Sam Hocevar's avatar
   
Sam Hocevar committed
870
  CFLAGS="$ac_save_CFLAGS"
871
872
873
874
875
876
877
878
879
880
881
882
883
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
884

Sam Hocevar's avatar
   
Sam Hocevar committed
885
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
886
echo "configure:887: checking how to run the C preprocessor" >&5
887
888
889
890
891
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
892
893
894
895
896
897
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
898
  # On the NeXT, cc -E runs the code through the compiler's parser,
Sam Hocevar's avatar
   
Sam Hocevar committed
899
900
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
901
#line 902 "configure"
902
903
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
904
905
906
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
   
Sam Hocevar committed
907
{ (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
908
909
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
910
911
  :
else
Sam Hocevar's avatar
   
Sam Hocevar committed
912
913
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
914
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
915
916
917
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
918
#line 919 "configure"
919
#include "confdefs.h"
Sam Hocevar's avatar
   
Sam Hocevar committed
920
921
922
923
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
   
Sam Hocevar committed
924
{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
925
926
927
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
928
else
Sam Hocevar's avatar
   
Sam Hocevar committed
929
930
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
931
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
932
933
934
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
935
#line 936 "configure"
936
937
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
938
939
940
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
   
Sam Hocevar committed
941
{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
942
943
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
944
945
  :
else
Sam Hocevar's avatar
   
Sam Hocevar committed
946
947
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
948
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
949
950
  rm -rf conftest*
  CPP=/lib/cpp
951
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
952
rm -f conftest*
953
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
954
rm -f conftest*
955
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
956
957
958
959
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
960
else
Sam Hocevar's avatar
   
Sam Hocevar committed
961
  ac_cv_prog_CPP="$CPP"
962
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
963
echo "$ac_t""$CPP" 1>&6
964

Sam Hocevar's avatar
   
Sam Hocevar committed
965
966
967
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
968
echo "configure:969: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
969
970
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
971
972
973
974
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
975
976
977
978
979
980
981
982
983
984
985
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Sam Hocevar's avatar
   
Sam Hocevar committed
986
987
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
988
RANLIB="$ac_cv_prog_RANLIB"
Sam Hocevar's avatar
   
Sam Hocevar committed
989
if test -n "$RANLIB"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
990
  echo "$ac_t""$RANLIB" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
991
else
Sam Hocevar's avatar
   
Sam Hocevar committed
992
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
993
994
fi

995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
Sam Hocevar's avatar
   
Sam Hocevar committed
1007
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
1008
echo "configure:1009: checking for a BSD compatible install" >&5
1009
if test -z "$INSTALL"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1010
1011
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1012
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1013
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1014
1015
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
Sam Hocevar's avatar
   
Sam Hocevar committed
1016
1017
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1018
1019
1020
1021
1022
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
Sam Hocevar's avatar
   
Sam Hocevar committed
1023
        if test -f $ac_dir/$ac_prog; then
1024
	  if test $ac_prog = install &&
Sam Hocevar's avatar
   
Sam Hocevar committed
1025
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
	    # AIX install.  It has an incompatible calling convention.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
Sam Hocevar's avatar
   
Sam Hocevar committed
1037
  IFS="$ac_save_IFS"
1038
1039
1040

fi
  if test "${ac_cv_path_install+set}" = set; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1041
    INSTALL="$ac_cv_path_install"
1042
1043
1044
1045
1046
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
Sam Hocevar's avatar
   
Sam Hocevar committed
1047
    INSTALL="$ac_install_sh"
1048
1049
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1050
echo "$ac_t""$INSTALL" 1>&6
1051
1052
1053
1054
1055

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

Sam Hocevar's avatar
   
Sam Hocevar committed
1056
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1057
1058
1059

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

Sam Hocevar's avatar
   
Sam Hocevar committed
1060
1061

echo $ac_n "checking for working const""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
1062
echo "configure:1063: checking for working const" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1063
1064
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1065
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1066
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1067
#line 1068 "configure"
1068
#include "confdefs.h"
Sam Hocevar's avatar
   
Sam Hocevar committed
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093

int main() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
1094
}
Sam Hocevar's avatar
   
Sam Hocevar committed
1095
1096
1097
1098
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
1099
}
Sam Hocevar's avatar
   
Sam Hocevar committed
1100
1101
1102
1103
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
1104
}
Sam Hocevar's avatar
   
Sam Hocevar committed
1105
1106
1107
1108
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
Sam Hocevar's avatar
   
Sam Hocevar committed
1109
}
Sam Hocevar's avatar
   
Sam Hocevar committed
1110
1111
1112
1113
1114
1115
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1116
if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1117
  rm -rf conftest*
1118
1119
  ac_cv_c_const=yes
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1120
1121
1122
1123
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
1124
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1125
rm -f conftest*
1126
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1127

Sam Hocevar's avatar
   
Sam Hocevar committed
1128
1129
1130
1131
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
1132
1133
1134
1135
EOF

fi

Sam Hocevar's avatar
   
Sam Hocevar committed
1136

Sam Hocevar's avatar
   
Sam Hocevar committed
1137
if test x${cross_compiling} != xyes; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1138
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
1139
echo "configure:1140: checking whether byte ordering is bigendian" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1140
1141
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1142
1143
1144
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
Sam Hocevar's avatar
   
Sam Hocevar committed
1145
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1146
#line 1147 "configure"
1147
1148
1149
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
1150
int main() {
1151
1152
1153
1154

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
Sam Hocevar's avatar
   
Sam Hocevar committed
1155
1156
; return 0; }
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1157
if { (eval echo configure:1158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1158
  rm -rf conftest*
1159
  # It does; now see whether it defined to BIG_ENDIAN or not.
Sam Hocevar's avatar
   
Sam Hocevar committed
1160
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1161
#line 1162 "configure"
1162
1163
1164
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
1165
int main() {
1166
1167
1168
1169

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
Sam Hocevar's avatar
   
Sam Hocevar committed
1170
1171
; return 0; }
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1172
if { (eval echo configure:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1173
  rm -rf conftest*
1174
1175
  ac_cv_c_bigendian=yes
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1176
1177
1178
1179
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_bigendian=no
1180
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1181
rm -f conftest*
1182
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1183
1184
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1185
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1186
rm -f conftest*
1187
1188
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1189
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1190
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1191
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1192
#line 1193 "configure"
1193
#include "confdefs.h"
Sam Hocevar's avatar
   
Sam Hocevar committed
1194
main () {
1195
1196
1197
1198
1199
1200
1201
1202
1203
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
Sam Hocevar's avatar
   
Sam Hocevar committed
1204
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1205
if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Sam Hocevar's avatar
   
Sam Hocevar committed
1206
then
1207
1208
  ac_cv_c_bigendian=no
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1209
1210
1211
1212
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_bigendian=yes
1213
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1214
rm -fr conftest*
1215
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1216

1217
1218
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1219

Sam Hocevar's avatar
   
Sam Hocevar committed
1220
1221
1222
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF