configure 242 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
# Any additions from configure.in:
Sam Hocevar's avatar
   
Sam Hocevar committed
14
15
16
17
18
19
ac_help="$ac_help
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
ac_help="$ac_help
  --disable-nls           do not use Native Language Support"
ac_help="$ac_help
  --with-included-gettext use the GNU gettext library included here"
20
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
21
"
Sam Hocevar's avatar
   
Sam Hocevar committed
22
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
23
Optimization options:"
Sam Hocevar's avatar
   
Sam Hocevar committed
24
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
25
26
  --with-tuning=ARCH      enable special tuning for an architecture
                          (default i686 on IA-32 and 750 on PPC)"
Sam Hocevar's avatar
   
Sam Hocevar committed
27
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
28
  --disable-optimizations disable compiler optimizations (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
29
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
30
  --disable-altivec       disable altivec optimizations (default enabled on PPC)"
Sam Hocevar's avatar
   
Sam Hocevar committed
31
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
32
  --enable-debug          debug mode (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
33
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
34
  --enable-release        activate extra optimizations (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
35
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
36
Input plugins:"
Sam Hocevar's avatar
   
Sam Hocevar committed
37
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
38
39
40
  --with-dvdcss[=name]    use libdvdcss, either 'yes', 'no', 'local-static',
                          'local-shared', or a path to another libdvdcss such
                          as '/usr/local' (default 'local-static')"
Stéphane Borel's avatar
Stéphane Borel committed
41
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
42
  --with-dvdread[=name]   use libdvdread, same options as dvdcss (default 'no')"
43
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
44
  --enable-vcd            VCD support for Linux (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
45
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
46
Codec plugins:"
Sam Hocevar's avatar
   
Sam Hocevar committed
47
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
48
  --enable-mad            libmad module (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
49
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
50
    --with-mad=PATH       path to libmad"
Sam Hocevar's avatar
   
Sam Hocevar committed
51
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
52
  --disable-a52           AC3 support with liba52 (default enabled)"
53
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
54
Video plugins:"
Sam Hocevar's avatar
   
Sam Hocevar committed
55
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
56
  --disable-x11           X11 support (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
57
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
58
  --disable-xvideo        XVideo support (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
59
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
60
  --disable-sdl           SDL support (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
61
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
62
    --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
63
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
64
  --enable-directx        Win32 DirectX support (default enabled on Win32)"
gbazin's avatar
   
gbazin committed
65
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
66
    --with-directx=PATH   Win32 DirectX headers and libraries"
Sam Hocevar's avatar
   
Sam Hocevar committed
67
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
68
  --enable-fb             Linux framebuffer support (default enabled on Linux)"
Sam Hocevar's avatar
   
Sam Hocevar committed
69
70
ac_help="$ac_help
  --enable-mga            Linux kernel Matrox support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
71
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
72
  --enable-ggi            GGI support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
73
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
74
    --with-ggi=PATH       path to libggi"
75
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
76
  --enable-glide          Glide (3dfx) support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
77
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
78
    --with-glide=PATH     path to libglide"
Xavier Marchesini's avatar
   
Xavier Marchesini committed
79
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
80
Audio plugins:"
Sam Hocevar's avatar
   
Sam Hocevar committed
81
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
82
  --enable-dsp            Linux /dev/dsp support (enabled on Linux)"
gbazin's avatar
   
gbazin committed
83
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
84
  --enable-esd            Esound library support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
85
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
86
  --enable-arts           aRts sound server (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
87
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
88
  --enable-alsa           ALSA sound support for Linux (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
89
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
90
  --enable-waveout        Win32 waveOut module (default enabled on Win32)"
Sam Hocevar's avatar
   
Sam Hocevar committed
91
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
92
93
94
95
96
Interface plugins:"
ac_help="$ac_help
  --disable-gtk           Gtk+ support (default enabled)"
ac_help="$ac_help
    --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
Sam Hocevar's avatar
   
Sam Hocevar committed
97
98
99
ac_help="$ac_help
  --enable-gnome          Gnome interface support (default disabled)"
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
100
  --enable-qt             Qt interface support (default disabled)"
101
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
102
  --enable-kde            KDE interface support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
103
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
104
  --enable-macosx         MacOS X support (default enabled on MacOS X)"
Sam Hocevar's avatar
   
Sam Hocevar committed
105
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
106
107
108
109
110
  --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)"
ac_help="$ac_help
  --enable-win32          Win32 interface support (default disabled)"
ac_help="$ac_help
  --enable-ncurses        ncurses interface support (default disabled)"
111
112
ac_help="$ac_help
  --enable-lirc           lirc support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
113
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
114
115
116
117
118
119
120
Misc options:"
ac_help="$ac_help
  --with-words=endianness set endianness (big or little)"
ac_help="$ac_help
  --with-dll-path=PATH    path to Win32 DLLs (default search in \$PWD)"
ac_help="$ac_help
  --enable-gprof          gprof profiling (default disabled)"
121
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
122
  --enable-cprof          cprof profiling (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
123
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
124
125
126
127
128
  --enable-pth            GNU Pth support (default disabled)"
ac_help="$ac_help
  --enable-st             State Threads (default disabled)"
ac_help="$ac_help
  --disable-plugins       make all plug-ins built-in (default plug-ins enabled)"
129
130
131
132

# 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
133
134
build=NONE
cache_file=./config.cache
135
exec_prefix=NONE
Sam Hocevar's avatar
   
Sam Hocevar committed
136
host=NONE
137
no_create=
Sam Hocevar's avatar
   
Sam Hocevar committed
138
nonopt=NONE
139
140
141
142
143
144
145
146
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
147
target=NONE
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
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
164
165
166
167
168
169
# 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
170
171
172
173

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

175
176
177
178
179
180
181
  # 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
182
183
184
185
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
186
187
188

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

Sam Hocevar's avatar
   
Sam Hocevar committed
189
  case "$ac_option" in
190
191
192
193

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
194
    bindir="$ac_optarg" ;;
195
196

  -build | --build | --buil | --bui | --bu)
Sam Hocevar's avatar
   
Sam Hocevar committed
197
    ac_prev=build ;;
198
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
199
    build="$ac_optarg" ;;
200
201
202
203
204
205

  -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
206
    cache_file="$ac_optarg" ;;
207
208
209
210
211

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
212
    datadir="$ac_optarg" ;;
213
214

  -disable-* | --disable-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
215
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
216
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
217
218
219
220
221
    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" ;;
222
223

  -enable-* | --enable-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
224
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
225
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
226
227
228
229
230
231
    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
      *=*) ;;
232
233
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
   
Sam Hocevar committed
234
    eval "enable_${ac_feature}='$ac_optarg'" ;;
235
236
237
238
239
240
241
242

  -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
243
    exec_prefix="$ac_optarg" ;;
244
245
246
247
248

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

Sam Hocevar's avatar
   
Sam Hocevar committed
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
  -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 ;;
303
304

  -host | --host | --hos | --ho)
Sam Hocevar's avatar
   
Sam Hocevar committed
305
    ac_prev=host ;;
306
  -host=* | --host=* | --hos=* | --ho=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
307
    host="$ac_optarg" ;;
308
309
310
311
312
313

  -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
314
    includedir="$ac_optarg" ;;
315
316
317
318

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
319
    infodir="$ac_optarg" ;;
320
321
322
323

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
324
    libdir="$ac_optarg" ;;
325
326
327
328
329
330

  -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
331
    libexecdir="$ac_optarg" ;;
332
333
334
335
336
337
338
339

  -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
340
    localstatedir="$ac_optarg" ;;
341
342
343
344

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
345
    mandir="$ac_optarg" ;;
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365

  -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
366
    oldincludedir="$ac_optarg" ;;
367
368
369
370

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
371
    prefix="$ac_optarg" ;;
372
373
374
375
376
377

  -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
378
    program_prefix="$ac_optarg" ;;
379
380
381
382
383
384

  -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
385
    program_suffix="$ac_optarg" ;;
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401

  -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
402
    program_transform_name="$ac_optarg" ;;
403
404
405
406
407
408
409
410
411

  -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
412
    sbindir="$ac_optarg" ;;
413
414
415
416
417
418
419
420
421
422

  -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
423
    sharedstatedir="$ac_optarg" ;;
424
425
426
427

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
428
    site="$ac_optarg" ;;
429
430
431
432

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
433
    srcdir="$ac_optarg" ;;
434
435
436
437
438
439

  -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
440
    sysconfdir="$ac_optarg" ;;
441
442

  -target | --target | --targe | --targ | --tar | --ta | --t)
Sam Hocevar's avatar
   
Sam Hocevar committed
443
    ac_prev=target ;;
444
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
445
    target="$ac_optarg" ;;
446
447
448
449

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

Sam Hocevar's avatar
   
Sam Hocevar committed
450
451
452
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
453
454

  -with-* | --with-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
455
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
456
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
457
458
459
    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
460
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Sam Hocevar's avatar
   
Sam Hocevar committed
461
462
    case "$ac_option" in
      *=*) ;;
463
464
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
   
Sam Hocevar committed
465
    eval "with_${ac_package}='$ac_optarg'" ;;
466
467

  -without-* | --without-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
468
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
469
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
470
471
472
473
474
    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" ;;
475
476
477
478
479
480
481
482
483
484

  --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
485
    x_includes="$ac_optarg" ;;
486
487
488
489
490
491

  -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
492
    x_libraries="$ac_optarg" ;;
493

Sam Hocevar's avatar
   
Sam Hocevar committed
494
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
495
496
497
    ;;

  *)
Sam Hocevar's avatar
   
Sam Hocevar committed
498
499
500
501
502
503
504
    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"
505
506
507
508
509
510
    ;;

  esac
done

if test -n "$ac_prev"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
  { 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
528
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
529
530
531
532
533
534
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
535

Sam Hocevar's avatar
   
Sam Hocevar committed
536
537
538
539
# 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
540
do
Sam Hocevar's avatar
   
Sam Hocevar committed
541
542
543
544
545
546
547
548
  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" ;;
549
550
551
  esac
done

Sam Hocevar's avatar
   
Sam Hocevar committed
552
553
554
555
556
557
558
559
560
# 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
561

Sam Hocevar's avatar
   
Sam Hocevar committed
562
563
564
565
# 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
566

Sam Hocevar's avatar
   
Sam Hocevar committed
567
568
# 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.
Sam Hocevar's avatar
   
Sam Hocevar committed
569
ac_unique_file=include/main.h
570
571
572
573
574
575

# 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
576
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
577
578
579
580
581
582
583
584
585
586
  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
587
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
588
  else
Sam Hocevar's avatar
   
Sam Hocevar committed
589
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
590
591
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
592
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
593
594
595
596
597
598
599
600
601
602
603

# 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
604
    echo "loading site script $ac_site_file"
605
606
607
608
609
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
610
611
  echo "loading cache $cache_file"
  . $cache_file
612
else
Sam Hocevar's avatar
   
Sam Hocevar committed
613
614
  echo "creating cache $cache_file"
  > $cache_file
615
616
617
fi

ac_ext=c
Sam Hocevar's avatar
   
Sam Hocevar committed
618
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
619
ac_cpp='$CPP $CPPFLAGS'
Sam Hocevar's avatar
   
Sam Hocevar committed
620
621
622
623
624
625
626
627
628
629
630
631
632
633
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
634
else
Sam Hocevar's avatar
   
Sam Hocevar committed
635
  ac_n= ac_c='\c' ac_t=
636
637
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
638
639


640

641
642
643
644
645
646
647
648
649
650
651
652
653
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
654
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
655
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
656
657
658
659
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.

660

661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac


682
# Make sure we can run config.sub.
Sam Hocevar's avatar
   
Sam Hocevar committed
683
684
685
686
687
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
688
echo "configure:689: checking host system type" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707

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

708
echo $ac_n "checking target system type""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
709
echo "configure:710: checking target system type" >&5
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
727
echo "configure:728: checking build system type" >&5
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-

749

Sam Hocevar's avatar
   
Sam Hocevar committed
750
751
752
HAVE_VLC=0
if test -r src/interface/main.c; then
  HAVE_VLC=1
753
  VLC_VERSION="0.2.92-dev"
Sam Hocevar's avatar
   
Sam Hocevar committed
754
755
  VLC_CODENAME=Ourumov
fi
756

Sam Hocevar's avatar
   
Sam Hocevar committed
757
758
759
HAVE_LIBDVDCSS=0
if test -r extras/libdvdcss/libdvdcss.c; then
  HAVE_LIBDVDCSS=1
760
  LIBDVDCSS_VERSION="1.0.1-dev"
Sam Hocevar's avatar
   
Sam Hocevar committed
761
  
762
763
764
765
766
767
  if test -r extras/libdvdcss/csskeys.h; then
    cat >> confdefs.h <<\EOF
#define HAVE_CSSKEYS 1
EOF

  fi
Sam Hocevar's avatar
   
Sam Hocevar committed
768
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
769

Sam Hocevar's avatar
   
Sam Hocevar committed
770
save_CFLAGS="${CFLAGS}"
Sam Hocevar's avatar
   
Sam Hocevar committed
771
save_LDFLAGS="${LDFLAGS}"
Sam Hocevar's avatar
   
Sam Hocevar committed
772

Sam Hocevar's avatar
   
Sam Hocevar committed
773
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
774
echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
775
776
777
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
778
else
Sam Hocevar's avatar
   
Sam Hocevar committed
779
  cat > conftestmake <<\EOF
780
781
782
783
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Sam Hocevar's avatar
   
Sam Hocevar committed
784
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785
786
787
788
789
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
790
rm -f conftestmake
791
792
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
793
  echo "$ac_t""yes" 1>&6
794
795
  SET_MAKE=
else
Sam Hocevar's avatar
   
Sam Hocevar committed
796
  echo "$ac_t""no" 1>&6
797
798
799
  SET_MAKE="MAKE=${MAKE-make}"
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
800
# Extract the first word of "gcc", so it can be a program name with args.
801
set dummy gcc; ac_word=$2
Sam Hocevar's avatar
   
Sam Hocevar committed
802
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
803
echo "configure:804: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
804
805
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
806
807
808
809
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
810
811
812
813
814
815
816
817
818
819
  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"
820
821
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
822
CC="$ac_cv_prog_CC"
823
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
824
  echo "$ac_t""$CC" 1>&6
825
else
Sam Hocevar's avatar
   
Sam Hocevar committed
826
  echo "$ac_t""no" 1>&6
827
828
829
830
831
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
832
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
833
echo "configure:834: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
834
835
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
836
837
838
839
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
840
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
841
  ac_prog_rejected=no
Sam Hocevar's avatar
   
Sam Hocevar committed
842
843
844
845
846
847
848
849
850
851
852
853
854
  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"
855
856
857
858
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
859
  if test $# -gt 0; then
860
861
862
863
    # 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
864
    set dummy "$ac_dir/$ac_word" "$@"
865
866
867
868
869
870
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
871
CC="$ac_cv_prog_CC"
872
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
873
  echo "$ac_t""$CC" 1>&6
874
else
Sam Hocevar's avatar
   
Sam Hocevar committed
875
  echo "$ac_t""no" 1>&6
876
877
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
878
879
880
881
882
883
  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
884
echo "configure:885: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
885
886
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
887
888
889
890
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
891
892
893
894
895
896
897
898
899
900
  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"
901
902
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
903
CC="$ac_cv_prog_CC"
904
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
905
  echo "$ac_t""$CC" 1>&6
906
else
Sam Hocevar's avatar
   
Sam Hocevar committed
907
  echo "$ac_t""no" 1>&6
908
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
909
910
911
912
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
913
914
fi

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

Sam Hocevar's avatar
   
Sam Hocevar committed
918
919
920
921
922
923
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
924

Sam Hocevar's avatar
   
Sam Hocevar committed
925
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
926

Sam Hocevar's avatar
   
Sam Hocevar committed
927
#line 928 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
928
929
#include "confdefs.h"

Sam Hocevar's avatar
   
Sam Hocevar committed
930
931
main(){return(0);}
EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
932
if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
   
Sam Hocevar committed
933
934
935
936
  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
937
  else
Sam Hocevar's avatar
   
Sam Hocevar committed
938
    ac_cv_prog_cc_cross=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
939
  fi
Sam Hocevar's avatar
   
Sam Hocevar committed
940
941
942
943
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
944
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
945
946
947
948
949
950
951
952
953
954
955
956
957
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
958
echo "configure:959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
959
960
961
962
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
963
echo "configure:964: checking whether we are using GNU C" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
964
965
966
967
968
969
970
971
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
972
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Sam Hocevar's avatar
   
Sam Hocevar committed
973
  ac_cv_prog_gcc=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
974
else
Sam Hocevar's avatar
   
Sam Hocevar committed
975
976
  ac_cv_prog_gcc=no
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
977
978
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
979
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
980

Sam Hocevar's avatar
   
Sam Hocevar committed
981
982
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
983
else
Sam Hocevar's avatar
   
Sam Hocevar committed
984
  GCC=
Sam Hocevar's avatar
   
Sam Hocevar committed
985
986
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
987
988
989
990
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
991
echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
992
993
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
994
else
Sam Hocevar's avatar
   
Sam Hocevar committed
995
996
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
997
998
  ac_cv_prog_cc_g=yes
else
Sam Hocevar's avatar
   
Sam Hocevar committed
999
  ac_cv_prog_cc_g=no
Sam Hocevar's avatar
   
Sam Hocevar committed
1000
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1001
1002
rm -f conftest*

Sam Hocevar's avatar
   
Sam Hocevar committed
1003
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1004
1005

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006
if test "$ac_test_CFLAGS" = set; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1007
  CFLAGS="$ac_save_CFLAGS"
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
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
1021

Sam Hocevar's avatar
   
Sam Hocevar committed
1022
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
1023
echo "configure:1024: checking how to run the C preprocessor" >&5
1024
1025
1026
1027
1028
# 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
1029
1030
1031
1032
1033
1034
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"
1035
  # On the NeXT, cc -E runs the code through the compiler's parser,
Sam Hocevar's avatar
   
Sam Hocevar committed
1036
1037
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1038
#line 1039 "configure"
1039
1040
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
1041
1042
1043
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
   
Sam Hocevar committed
1044
{ (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1045
1046
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
1047
1048
  :
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1049
1050
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1051
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1052
1053
1054
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1055
#line 1056 "configure"
1056
#include "confdefs.h"
Sam Hocevar's avatar
   
Sam Hocevar committed
1057
1058
1059
1060
#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
1061
{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1062
1063
1064
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
1065
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1066
1067
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1068
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1069
1070
1071
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1072
#line 1073 "configure"
1073
1074
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
1075
1076
1077
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
   
Sam Hocevar committed
1078
{ (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1079
1080
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
1081
1082
  :
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1083
1084
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1085
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1086
1087
  rm -rf conftest*
  CPP=/lib/cpp
1088
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1089
rm -f conftest*
1090
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1091
rm -f conftest*
1092
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1093
1094
1095
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1096
1097
1098
1099
1100
1101
1102
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6


gbazin's avatar
   
gbazin committed
1103
1104
1105
1106
1107
1108
1109
1110
1111
if test $host != $build; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
1112
echo "configure:1113: checking for $ac_word" >&5
gbazin's avatar
   
gbazin committed
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  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="${ac_tool_prefix}ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
  # 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
1144
echo "configure:1145: checking for $ac_word" >&5
gbazin's avatar
   
gbazin committed
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  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=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
  RANLIB=":"
fi
fi


Sam Hocevar's avatar
   
Sam Hocevar committed
1177
ALL_LINGUAS="de fr no ru"
Sam Hocevar's avatar
Sam Hocevar committed