configure 247 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
  --enable-dvd            DVD input module (default enabled)"
Stéphane Borel's avatar
Stéphane Borel committed
39
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
40
    --with-dvdcss=PATH    libdvdcss headers and libraries"
Sam Hocevar's avatar
 
Sam Hocevar committed
41 42
ac_help="$ac_help
    --with-dvdcss-tree=PATH libdvdcss tree for static linking"
43
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
44
  --enable-dvdread        dvdread input module (default disabled)"
Johan Bilien's avatar
Johan Bilien committed
45
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
46
    --with-dvdread=PATH   libdvdread headers and libraries"
47 48
ac_help="$ac_help
  --enable-dvbpsi        dvbpsi ts demux module (default disabled)"
49 50
ac_help="$ac_help
    --with-dvbpsi=PATH    libdvbpsi headers and libraries"
Sam Hocevar's avatar
 
Sam Hocevar committed
51
ac_help="$ac_help
52
  --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
53 54
ac_help="$ac_help
  --enable-satellite      satellite card support (default disabled)"
55 56
ac_help="$ac_help
  --enable-avi            AVI demux module (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
57
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
58
Codec plugins:"
Sam Hocevar's avatar
 
Sam Hocevar committed
59
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
60
  --enable-mad            libmad module (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
61
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
62
    --with-mad=PATH       path to libmad"
63 64 65 66
ac_help="$ac_help
  --enable-ffmpeg         ffmpeg codec (default disabled)"
ac_help="$ac_help
    --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
Sam Hocevar's avatar
 
Sam Hocevar committed
67
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
68
  --enable-a52            AC3 support with liba52 (default enabled)"
Gildas Bazin's avatar
 
Gildas Bazin committed
69 70
ac_help="$ac_help
    --with-a52-tree=PATH  a52dec tree for static linking "
Sam Hocevar's avatar
 
Sam Hocevar committed
71
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
72
  --enable-vorbis         Ogg/Vorbis decoder support (default enabled)"
73
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
74
Video plugins:"
Sam Hocevar's avatar
 
Sam Hocevar committed
75
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
76
  --enable-x11            X11 support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
77
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
78
  --enable-xvideo         XVideo support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
79
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
80
  --enable-sdl            SDL support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
81
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
82
    --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
83
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
84
  --enable-directx        Win32 DirectX support (default enabled on Win32)"
Gildas Bazin's avatar
 
Gildas Bazin committed
85
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
86
    --with-directx=PATH   Win32 DirectX headers and libraries"
Sam Hocevar's avatar
 
Sam Hocevar committed
87
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
88
  --enable-fb             Linux framebuffer support (default enabled on Linux)"
Sam Hocevar's avatar
 
Sam Hocevar committed
89 90
ac_help="$ac_help
  --enable-mga            Linux kernel Matrox support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
91
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
92
  --enable-ggi            GGI support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
93
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
94
    --with-ggi=PATH       path to libggi"
95
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
96
  --enable-glide          Glide (3dfx) support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
97
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
98
    --with-glide=PATH     path to libglide"
Sam Hocevar's avatar
 
Sam Hocevar committed
99 100
ac_help="$ac_help
  --enable-aa             aalib output (default disabled)"
Xavier Marchesini's avatar
 
Xavier Marchesini committed
101
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
102
Audio plugins:"
Sam Hocevar's avatar
 
Sam Hocevar committed
103
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
104
  --enable-dsp            Linux /dev/dsp support (enabled on Linux)"
Gildas Bazin's avatar
 
Gildas Bazin committed
105
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
106
  --enable-esd            Esound library support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
107
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
108
  --enable-arts           aRts sound server (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
109
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
110
  --enable-alsa           ALSA sound support for Linux (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
111
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
112
  --enable-waveout        Win32 waveOut module (default enabled on Win32)"
Sam Hocevar's avatar
 
Sam Hocevar committed
113
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
114 115
Interface plugins:"
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
116
  --enable-gtk            Gtk+ support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
117 118
ac_help="$ac_help
    --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
Sam Hocevar's avatar
 
Sam Hocevar committed
119 120 121
ac_help="$ac_help
  --enable-gnome          Gnome interface support (default disabled)"
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
122
  --enable-qt             Qt interface support (default disabled)"
123
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
124
  --enable-kde            KDE interface support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
125
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
126
  --enable-macosx         MacOS X support (default enabled on MacOS X)"
Sam Hocevar's avatar
 
Sam Hocevar committed
127
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
128 129
  --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)"
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
130 131 132
  --enable-intfwin        Win32 interface support (default disabled)"
ac_help="$ac_help
    --with-bcbuilder=PATH Borland C++ Builder installation path"
Sam Hocevar's avatar
 
Sam Hocevar committed
133 134
ac_help="$ac_help
  --enable-ncurses        ncurses interface support (default disabled)"
135 136
ac_help="$ac_help
  --enable-lirc           lirc support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
137
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
138 139 140 141 142
Misc options:"
ac_help="$ac_help
  --with-words=endianness set endianness (big or little)"
ac_help="$ac_help
  --enable-gprof          gprof profiling (default disabled)"
143
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
144
  --enable-cprof          cprof profiling (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
145
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
146 147 148 149 150
  --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)"
151 152 153 154

# 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
155 156
build=NONE
cache_file=./config.cache
157
exec_prefix=NONE
Sam Hocevar's avatar
 
Sam Hocevar committed
158
host=NONE
159
no_create=
Sam Hocevar's avatar
 
Sam Hocevar committed
160
nonopt=NONE
161 162 163 164 165 166 167 168
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
169
target=NONE
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
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
186 187 188 189 190 191
# 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
192 193 194 195

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

197 198 199 200 201 202 203
  # 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
204 205 206 207
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
208 209 210

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

Sam Hocevar's avatar
 
Sam Hocevar committed
211
  case "$ac_option" in
212 213 214 215

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
216
    bindir="$ac_optarg" ;;
217 218

  -build | --build | --buil | --bui | --bu)
Sam Hocevar's avatar
 
Sam Hocevar committed
219
    ac_prev=build ;;
220
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
221
    build="$ac_optarg" ;;
222 223 224 225 226 227

  -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
228
    cache_file="$ac_optarg" ;;
229 230 231 232 233

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
234
    datadir="$ac_optarg" ;;
235 236

  -disable-* | --disable-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
237
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
238
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
239 240 241 242 243
    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" ;;
244 245

  -enable-* | --enable-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
246
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
247
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
248 249 250 251 252 253
    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
      *=*) ;;
254 255
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
 
Sam Hocevar committed
256
    eval "enable_${ac_feature}='$ac_optarg'" ;;
257 258 259 260 261 262 263 264

  -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
265
    exec_prefix="$ac_optarg" ;;
266 267 268 269 270

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

Sam Hocevar's avatar
 
Sam Hocevar committed
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 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
  -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 ;;
325 326

  -host | --host | --hos | --ho)
Sam Hocevar's avatar
 
Sam Hocevar committed
327
    ac_prev=host ;;
328
  -host=* | --host=* | --hos=* | --ho=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
329
    host="$ac_optarg" ;;
330 331 332 333 334 335

  -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
336
    includedir="$ac_optarg" ;;
337 338 339 340

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
341
    infodir="$ac_optarg" ;;
342 343 344 345

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
346
    libdir="$ac_optarg" ;;
347 348 349 350 351 352

  -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
353
    libexecdir="$ac_optarg" ;;
354 355 356 357 358 359 360 361

  -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
362
    localstatedir="$ac_optarg" ;;
363 364 365 366

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
367
    mandir="$ac_optarg" ;;
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387

  -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
388
    oldincludedir="$ac_optarg" ;;
389 390 391 392

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
393
    prefix="$ac_optarg" ;;
394 395 396 397 398 399

  -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
400
    program_prefix="$ac_optarg" ;;
401 402 403 404 405 406

  -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
407
    program_suffix="$ac_optarg" ;;
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423

  -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
424
    program_transform_name="$ac_optarg" ;;
425 426 427 428 429 430 431 432 433

  -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
434
    sbindir="$ac_optarg" ;;
435 436 437 438 439 440 441 442 443 444

  -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
445
    sharedstatedir="$ac_optarg" ;;
446 447 448 449

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
450
    site="$ac_optarg" ;;
451 452 453 454

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
455
    srcdir="$ac_optarg" ;;
456 457 458 459 460 461

  -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
462
    sysconfdir="$ac_optarg" ;;
463 464

  -target | --target | --targe | --targ | --tar | --ta | --t)
Sam Hocevar's avatar
 
Sam Hocevar committed
465
    ac_prev=target ;;
466
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
467
    target="$ac_optarg" ;;
468 469 470 471

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

Sam Hocevar's avatar
 
Sam Hocevar committed
472 473 474
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
475 476

  -with-* | --with-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
477
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
478
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
479 480 481
    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
482
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Sam Hocevar's avatar
 
Sam Hocevar committed
483 484
    case "$ac_option" in
      *=*) ;;
485 486
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
 
Sam Hocevar committed
487
    eval "with_${ac_package}='$ac_optarg'" ;;
488 489

  -without-* | --without-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
490
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
491
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
492 493 494 495 496
    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" ;;
497 498 499 500 501 502 503 504 505 506

  --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
507
    x_includes="$ac_optarg" ;;
508 509 510 511 512 513

  -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
514
    x_libraries="$ac_optarg" ;;
515

Sam Hocevar's avatar
 
Sam Hocevar committed
516
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
517 518 519
    ;;

  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
520 521 522 523 524 525 526
    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"
527 528 529 530 531 532
    ;;

  esac
done

if test -n "$ac_prev"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549
  { 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
550
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
551 552 553 554 555 556
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
557

Sam Hocevar's avatar
 
Sam Hocevar committed
558 559 560 561
# 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
562
do
Sam Hocevar's avatar
 
Sam Hocevar committed
563 564 565 566 567 568 569 570
  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" ;;
571 572 573
  esac
done

Sam Hocevar's avatar
 
Sam Hocevar committed
574 575 576 577 578 579 580 581 582
# 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
583

Sam Hocevar's avatar
 
Sam Hocevar committed
584 585 586 587
# 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
588

Sam Hocevar's avatar
 
Sam Hocevar committed
589 590
# 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
591
ac_unique_file=include/main.h
592 593 594 595 596 597

# 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
598
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
599 600 601 602 603 604 605 606 607 608
  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
609
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
610
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
611
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
612 613
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
614
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
615 616 617 618 619 620 621 622 623 624 625

# 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
626
    echo "loading site script $ac_site_file"
627 628 629 630 631
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
632 633
  echo "loading cache $cache_file"
  . $cache_file
634
else
Sam Hocevar's avatar
 
Sam Hocevar committed
635 636
  echo "creating cache $cache_file"
  > $cache_file
637 638 639
fi

ac_ext=c
Sam Hocevar's avatar
 
Sam Hocevar committed
640
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
641
ac_cpp='$CPP $CPPFLAGS'
Sam Hocevar's avatar
 
Sam Hocevar committed
642 643 644 645 646 647 648 649 650 651 652 653 654 655
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
656
else
Sam Hocevar's avatar
 
Sam Hocevar committed
657
  ac_n= ac_c='\c' ac_t=
658 659
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
660 661


662 663 664 665 666 667 668 669 670 671 672 673 674
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
675
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
676
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
677 678 679 680
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.

681

682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702
# 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


703
# Make sure we can run config.sub.
Sam Hocevar's avatar
 
Sam Hocevar committed
704 705 706 707 708
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
Gildas Bazin's avatar
 
Gildas Bazin committed
709
echo "configure:710: checking host system type" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728

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

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

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
Gildas Bazin's avatar
 
Gildas Bazin committed
748
echo "configure:749: checking build system type" >&5
749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769

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}-

770

Sam Hocevar's avatar
 
Sam Hocevar committed
771
PACKAGE="vlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
772
VERSION="0.3.1"
Sam Hocevar's avatar
 
Sam Hocevar committed
773
CODENAME=Ourumov
Sam Hocevar's avatar
 
Sam Hocevar committed
774

Sam Hocevar's avatar
 
Sam Hocevar committed
775
save_CFLAGS="${CFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
776
save_CPPFLAGS="${CPPFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
777
save_LDFLAGS="${LDFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
778

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
921
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
922
echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923

Sam Hocevar's avatar
 
Sam Hocevar committed
924 925 926 927 928 929
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
930

Sam Hocevar's avatar
 
Sam Hocevar committed
931
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
932

Gildas Bazin's avatar
 
Gildas Bazin committed
933
#line 934 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
934 935
#include "confdefs.h"

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

Sam Hocevar's avatar
 
Sam Hocevar committed
985
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
986

Sam Hocevar's avatar
 
Sam Hocevar committed
987 988
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
989
else
Sam Hocevar's avatar
 
Sam Hocevar committed
990
  GCC=
Sam Hocevar's avatar
 
Sam Hocevar committed
991 992
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
993 994 995 996
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
997
echo "configure:998: checking whether ${CC-cc} accepts -g" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
998 999
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
1000
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1001 1002
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1003 1004
  ac_cv_prog_cc_g=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1005
  ac_cv_prog_cc_g=no
Sam Hocevar's avatar
 
Sam Hocevar committed
1006
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1007 1008
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
1009
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1010 1011

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1012
if test "$ac_test_CFLAGS" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1013
  CFLAGS="$ac_save_CFLAGS"
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026
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
1027

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


Gildas Bazin's avatar
 
Gildas Bazin committed
1109 1110 1111 1112 1113 1114 1115 1116 1117
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
Gildas Bazin's avatar
 
Gildas Bazin committed
1118
echo "configure:1119: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
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 1144 1145 1146 1147 1148 1149
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
Gildas Bazin's avatar
 
Gildas Bazin committed
1150
echo "configure:1151: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
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 1177 1178 1179 1180 1181
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
1182 1183 1184
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1185
echo "configure:1186: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
STRIP="$ac_cv_prog_STRIP"
if test -n "$STRIP"; then
  echo "$ac_t""$STRIP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_STRIP"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1217
echo "configure:1218: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="strip"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
fi
fi
STRIP="$ac_cv_prog_STRIP"
if test -n "$STRIP"; then
  echo "$ac_t""$STRIP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
  STRIP=":"
fi
fi

Gildas Bazin's avatar
 
Gildas Bazin committed
1249

Christophe Massiot's avatar
Christophe Massiot committed
1250 1251 1252
# Extract the first word of "gmake", so it can be a program name with args.
set dummy gmake; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1253
echo "configure:1254: checking for $ac_word" >&5
Christophe Massiot's avatar
Christophe Massiot committed
1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287
if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GMAKE" in
  /*)
  ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
  ;;
  *)
  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_path_GMAKE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
  ;;
esac
fi
GMAKE="$ac_cv_path_GMAKE"
if test -n "$GMAKE"; then
  echo "$ac_t""$GMAKE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "x$GMAKE" = "xno"; then
  echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1288
echo "configure:1289: checking whether GNU make is installed" >&5
Christophe Massiot's avatar
Christophe Massiot committed
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306
if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if make --version | grep -q -i gnu; then
         ac_cv_gmake="yes"
       else
         echo "This software needs you to install GNU make to compile properly."
         echo "You can get it from http://www.gnu.org/."
         exit
       fi
fi

echo "$ac_t""$ac_cv_gmake" 1>&6
  VLC_MAKE="make"
else
  VLC_MAKE="gmake"
fi

1307
ALL_LINGUAS="de en_GB fr ja no ru nl"
Sam Hocevar's avatar
Sam Hocevar committed
1308

Sam Hocevar's avatar
 
Sam Hocevar committed
1309
cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1310
#define VLC_PACKAGE "$PACKAGE"
Sam Hocevar's avatar
 
Sam Hocevar committed
1311 1312 1313
EOF

cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1314
#define VLC_VERSION "$VERSION"
Sam Hocevar's avatar
 
Sam Hocevar committed
1315 1316 1317 1318 1319
EOF

# 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
Gildas Bazin's avatar
 
Gildas Bazin committed
1320
echo "configure:1321: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348
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


        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1349
echo "configure:1350: checking for strerror in -lcposix" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1350 1351 1352 1353 1354 1355 1356
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcposix  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1357
#line 1358 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strerror();

int main() {
strerror()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1368
if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lcposix"
else
  echo "$ac_t""no" 1>&6
fi

  

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1391
echo "configure:1392: checking for ANSI C header files" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1392 1393 1394 1395
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1396
#line 1397 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1397 1398 1399 1400 1401 1402 1403
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
1404
{ (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1421
#line 1422 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1439
#line 1440 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1460
#line 1461 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1471
if { (eval echo configure:1472: \"$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
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

echo $ac_n "checking for working const""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1495
echo "configure:1496: checking for working const" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1496 1497 1498 1499
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1500
#line 1501 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1501 1502 1503 1504 1505
#include "confdefs.h"

int main() {

/* Ultrix mips cc rejects this.  */
Johan Bilien's avatar
Johan Bilien committed
1506
typedef int charset[2]; const charset x;
Sam Hocevar's avatar
 
Sam Hocevar committed
1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548
/* 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;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* 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;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1549
if { (eval echo configure:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569
  rm -rf conftest*
  ac_cv_c_const=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi

echo $ac_n "checking for inline""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1570
echo "configure:1571: checking for inline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1571 1572 1573 1574 1575 1576
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1577
#line 1578 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1578 1579 1580
#include "confdefs.h"

int main() {
Johan Bilien's avatar
Johan Bilien committed
1581
} $ac_kw foo() {
Sam Hocevar's avatar
 
Sam Hocevar committed
1582 1583
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1584
if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done

fi

echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
#define inline 
EOF
 ;;
  *)  cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

echo $ac_n "checking for off_t""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1610
echo "configure:1611: checking for off_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1611 1612 1613 1614
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1615
#line 1616 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_off_t=yes
else
  rm -rf conftest*
  ac_cv_type_off_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1643
echo "configure:1644: checking for size_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1644 1645 1646 1647
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1648
#line 1649 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1678
echo "configure:1679: checking for working alloca.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1679 1680 1681 1682
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1683
#line 1684 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1684 1685 1686
#include "confdefs.h"
#include <alloca.h>
int main() {
Johan Bilien's avatar
Johan Bilien committed
1687
char *p = alloca(2 * sizeof(int));
Sam Hocevar's avatar
 
Sam Hocevar committed
1688 1689
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1690
if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_alloca_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
EOF

fi

echo $ac_n "checking for alloca""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1711
echo "configure:1712: checking for alloca" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1712 1713 1714 1715
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1716
#line 1717 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743
#include "confdefs.h"

#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#    endif
#   endif
#  endif
# endif
#endif

int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1744
if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_alloca_works=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
EOF

fi

if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.${ac_objext}
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1776
echo "configure:1777: checking whether alloca needs Cray hooks" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1777 1778 1779 1780
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1781
#line 1782 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_os_cray=yes
else
  rm -rf conftest*
  ac_cv_os_cray=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1806
echo "configure:1807: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1807 1808 1809 1810
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1811
#line 1812 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1834
if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<EOF
#define CRAY_STACKSEG_END $ac_func
EOF

  break
else
  echo "$ac_t""no" 1>&6
fi

done
fi

echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1861
echo "configure:1862: checking stack direction for C alloca" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1862 1863 1864 1865 1866 1867 1868
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1869
#line 1870 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887
#include "confdefs.h"
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1888
if { (eval echo configure:1889: \"$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
1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912
then
  ac_cv_c_stack_direction=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF

fi

for ac_hdr in unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1913
echo "configure:1914: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1914 1915 1916 1917
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1918
#line 1919 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1919 1920 1921 1922
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
1923
{ (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

for ac_func in getpagesize
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
1952
echo "configure:1953: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1953 1954 1955 1956
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1957
#line 1958 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
1980
if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2005
echo "configure:2006: checking for working mmap" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2006 2007 2008 2009 2010 2011 2012
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2013
#line 2014 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042
#include "confdefs.h"

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
Johan Bilien's avatar
Johan Bilien committed
2043 2044 2045
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif
Sam Hocevar's avatar
 
Sam Hocevar committed
2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099

/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

int
main()
{
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
Johan Bilien's avatar
Johan Bilien committed
2100
	data = malloc(pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 0600);
	if (fd < 0)
		exit(1);
	if (write(fd, data, pagesize) != pagesize)
		exit(1);
	close(fd);

	/*
	 * Next, try to mmap the file at a fixed address which
	 * already has something else allocated at it.  If we can,
	 * also make sure that we see the same garbage.
	 */
	fd = open("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
Johan Bilien's avatar
Johan Bilien committed
2121
	data2 = malloc(2 * pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138
	if (!data2)
		exit(1);
	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data2 + i))
			exit(1);

	/*
	 * Finally, make sure that changes to the mapped area
	 * do not percolate back to the file as seen by read().
	 * (This is a bug on some variants of i386 svr4.0.)
	 */
	for (i = 0; i < pagesize; ++i)
		*(data2 + i) = *(data2 + i) + 1;
Johan Bilien's avatar
Johan Bilien committed
2139
	data3 = malloc(pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152
	if (!data3)
		exit(1);
	if (read(fd, data3, pagesize) != pagesize)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data3 + i))
			exit(1);
	close(fd);
	unlink("conftestmmap");
	exit(0);
}

EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2153
if { (eval echo configure:2154: \"$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
2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176
then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
EOF

fi


    echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2177
echo "configure:2178: checking whether we are using the GNU C Library 2.1 or newer" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2178 2179 2180 2181
if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2182
#line 2183 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217
#include "confdefs.h"

#include <features.h>
#ifdef __GNU_LIBRARY__
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  Lucky GNU user
 #endif
#endif
	
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "Lucky GNU user" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_gnu_library_2_1=yes
else
  rm -rf conftest*
  ac_cv_gnu_library_2_1=no
fi
rm -f conftest*

      
    
fi

echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
    
    GLIBC21="$ac_cv_gnu_library_2_1"
  

                                    
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
stdlib.h string.h unistd.h sys/param.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2218
echo "configure:2219: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2219 2220 2221 2222
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2223
#line 2224 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2224 2225 2226 2227
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
2228
{ (eval echo configure:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

   for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2259
echo "configure:2260: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2260 2261 2262 2263
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2264
#line 2265 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2287
if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


   
    
  # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
if test "${with_libiconv_prefix+set}" = set; then
  withval="$with_libiconv_prefix"
  
    for dir in `echo "$withval" | tr : ' '`; do
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
    done
   
fi


  echo $ac_n "checking for iconv""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2327
echo "configure:2328: checking for iconv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2328 2329 2330 2331 2332 2333 2334
if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
    am_cv_func_iconv="no, consider installing GNU libiconv"
    am_cv_lib_iconv=no
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2335
#line 2336 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2336 2337 2338 2339 2340 2341 2342 2343 2344
#include "confdefs.h"
#include <stdlib.h>
#include <iconv.h>
int main() {
iconv_t cd = iconv_open("","");
       iconv(cd,NULL,NULL,NULL,NULL);
       iconv_close(cd);
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2345
if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356
  rm -rf conftest*
  am_cv_func_iconv=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
    if test "$am_cv_func_iconv" != yes; then
      am_save_LIBS="$LIBS"
      LIBS="$LIBS -liconv"
      cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2357
#line 2358 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2358 2359 2360 2361 2362 2363 2364 2365 2366
#include "confdefs.h"
#include <stdlib.h>
#include <iconv.h>
int main() {
iconv_t cd = iconv_open("","");
         iconv(cd,NULL,NULL,NULL,NULL);
         iconv_close(cd);
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2367
if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387
  rm -rf conftest*
  am_cv_lib_iconv=yes
        am_cv_func_iconv=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
      LIBS="$am_save_LIBS"
    fi
  
fi

echo "$ac_t""$am_cv_func_iconv" 1>&6
  if test "$am_cv_func_iconv" = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_ICONV 1
EOF

    echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2388
echo "configure:2389: checking for iconv declaration" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2389 2390 2391 2392 2393
    if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
      cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2394
#line 2395 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412
#include "confdefs.h"

#include <stdlib.h>
#include <iconv.h>
extern
#ifdef __cplusplus
"C"
#endif
#if defined(__STDC__) || defined(__cplusplus)
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
#else
size_t iconv();
#endif

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2413
if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441
  rm -rf conftest*
  am_cv_proto_iconv_arg1=""
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  am_cv_proto_iconv_arg1="const"
fi
rm -f conftest*
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
fi

    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
    echo "$ac_t""${ac_t:-
         }$am_cv_proto_iconv" 1>&6
    cat >> confdefs.h <<EOF
#define ICONV_CONST $am_cv_proto_iconv_arg1
EOF

  fi
  LIBICONV=
  if test "$am_cv_lib_iconv" = yes; then
    LIBICONV="-liconv"
  fi
  

   
  echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2442
echo "configure:2443: checking for nl_langinfo and CODESET" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2443 2444 2445 2446
if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2447
#line 2448 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2448 2449 2450 2451 2452 2453
#include "confdefs.h"
#include <langinfo.h>
int main() {
char* cs = nl_langinfo(CODESET);
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2454
if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476
  rm -rf conftest*
  am_cv_langinfo_codeset=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  am_cv_langinfo_codeset=no
fi
rm -f conftest*
    
fi

echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
  if test $am_cv_langinfo_codeset = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1
EOF

  fi

   if test $ac_cv_header_locale_h = yes; then
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2477
echo "configure:2478: checking for LC_MESSAGES" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2478 2479 2480 2481
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2482
#line 2483 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2483 2484 2485 2486 2487 2488
#include "confdefs.h"
#include <locale.h>
int main() {
return LC_MESSAGES
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2489
if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509
  rm -rf conftest*
  am_cv_val_LC_MESSAGES=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  am_cv_val_LC_MESSAGES=no
fi
rm -f conftest*
fi

echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
    if test $am_cv_val_LC_MESSAGES = yes; then
      cat >> confdefs.h <<\EOF
#define HAVE_LC_MESSAGES 1
EOF

    fi
  fi
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2510
echo "configure:2511: checking whether NLS is requested" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531
        # Check whether --enable-nls or --disable-nls was given.
if test "${enable_nls+set}" = set; then
  enableval="$enable_nls"
  USE_NLS=$enableval
else
  USE_NLS=yes
fi

    echo "$ac_t""$USE_NLS" 1>&6
    

    BUILD_INCLUDED_LIBINTL=no
    USE_INCLUDED_LIBINTL=no
    INTLLIBS=

        if test "$USE_NLS" = "yes"; then
      cat >> confdefs.h <<\EOF
#define ENABLE_NLS 1
EOF

      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2532
echo "configure:2533: checking whether included gettext is requested" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551
      # Check whether --with-included-gettext or --without-included-gettext was given.
if test "${with_included_gettext+set}" = set; then
  withval="$with_included_gettext"
  nls_cv_force_use_gnu_gettext=$withval
else
  nls_cv_force_use_gnu_gettext=no
fi

      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6

      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
                        	CATOBJEXT=NONE

                
        

	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2552
echo "configure:2553: checking for libintl.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2553 2554 2555 2556
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2557
#line 2558 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2558 2559 2560 2561
#include "confdefs.h"
#include <libintl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
2562
{ (eval echo configure:2563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2579
echo "configure:2580: checking for GNU gettext in libc" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2580 2581 2582 2583
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2584
#line 2585 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2585 2586 2587 2588 2589 2590 2591 2592
#include "confdefs.h"
#include <libintl.h>
extern int _nl_msg_cat_cntr;
int main() {
bindtextdomain ("", "");
return (int) gettext ("") + _nl_msg_cat_cntr
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2593
if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608
  rm -rf conftest*
  gt_cv_func_gnugettext1_libc=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  gt_cv_func_gnugettext1_libc=no
fi
rm -f conftest*
fi

echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6

	   if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
	     echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2609
echo "configure:2610: checking for GNU gettext in libintl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2610 2611 2612 2613 2614 2615
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  gt_save_LIBS="$LIBS"
		LIBS="$LIBS -lintl $LIBICONV"
		cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2616
#line 2617 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2617 2618 2619 2620 2621 2622 2623 2624
#include "confdefs.h"
#include <libintl.h>
extern int _nl_msg_cat_cntr;
int main() {
bindtextdomain ("", "");
return (int) gettext ("") + _nl_msg_cat_cntr
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2625
if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657
  rm -rf conftest*
  gt_cv_func_gnugettext1_libintl=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  gt_cv_func_gnugettext1_libintl=no
fi
rm -f conftest*
		LIBS="$gt_save_LIBS"
fi

echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
	   fi

	   	   	   	   	   if test "$gt_cv_func_gnugettext1_libc" = "yes" \
	      || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
		   && test "$PACKAGE" != gettext; }; then
	     cat >> confdefs.h <<\EOF
#define HAVE_GETTEXT 1
EOF


	     if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
	       	       	       	       INTLLIBS="-lintl $LIBICONV"
	     fi

	     gt_save_LIBS="$LIBS"
	     LIBS="$LIBS $INTLLIBS"
	     for ac_func in dcgettext
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2658
echo "configure:2659: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2659 2660 2661 2662
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2663
#line 2664 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
2686
if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

	     LIBS="$gt_save_LIBS"

	     	     # Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2715
echo "configure:2716: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MSGFMT" in
  /*)
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
	break
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  ;;
esac
fi
MSGFMT="$ac_cv_path_MSGFMT"
if test "$MSGFMT" != ":"; then
  echo "$ac_t""$MSGFMT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

	     # Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2749
echo "configure:2750: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GMSGFMT" in
  /*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  ;;
  *)
  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_path_GMSGFMT="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
esac
fi
GMSGFMT="$ac_cv_path_GMSGFMT"
if test -n "$GMSGFMT"; then
  echo "$ac_t""$GMSGFMT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


	     	     # Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2786
echo "configure:2787: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$XGETTEXT" in
  /*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
	break
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  ;;
esac
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
if test "$XGETTEXT" != ":"; then
  echo "$ac_t""$XGETTEXT" 1>&6
2813
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2814
  echo "$ac_t""no" 1>&6
2815 2816
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2817 2818 2819 2820

	     CATOBJEXT=.gmo
	   fi
	
2821
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2822
  echo "$ac_t""no" 1>&6
2823 2824
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2825 2826 2827 2828 2829 2830 2831 2832 2833 2834

        if test "$CATOBJEXT" = "NONE"; then
	  	  	  nls_cv_use_gnu_gettext=yes
        fi
      fi

      if test "$nls_cv_use_gnu_gettext" = "yes"; then
                INTLOBJS="\$(GETTOBJS)"
        # Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
2835
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2836
echo "configure:2837: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2837
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2838 2839
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869
  case "$MSGFMT" in
  /*)
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
	break
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  ;;
esac
fi
MSGFMT="$ac_cv_path_MSGFMT"
if test "$MSGFMT" != ":"; then
  echo "$ac_t""$MSGFMT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

        # Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2870
echo "configure:2871: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2871 2872
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2873
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2874 2875 2876 2877 2878 2879 2880 2881
  case "$GMSGFMT" in
  /*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  ;;
  *)
2882 2883
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
Sam Hocevar's avatar
 
Sam Hocevar committed
2884
  for ac_dir in $ac_dummy; do 
2885 2886
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2887
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2888 2889 2890 2891
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
2892 2893 2894
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
esac
2895
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2896 2897 2898 2899 2900
GMSGFMT="$ac_cv_path_GMSGFMT"
if test -n "$GMSGFMT"; then
  echo "$ac_t""$GMSGFMT" 1>&6
else
  echo "$ac_t""no" 1>&6
2901
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2902 2903 2904 2905

        # Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2906
echo "configure:2907: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$XGETTEXT" in
  /*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
	break
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  ;;
esac
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
if test "$XGETTEXT" != ":"; then
  echo "$ac_t""$XGETTEXT" 1>&6
2933 2934 2935 2936
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2937 2938 2939 2940 2941 2942 2943
        
	BUILD_INCLUDED_LIBINTL=yes
	USE_INCLUDED_LIBINTL=yes
        CATOBJEXT=.gmo
	INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
	LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
      fi
2944

Sam Hocevar's avatar
 
Sam Hocevar committed
2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975
                  if test "$GMSGFMT" != ":"; then
			if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
	  : ;
	else
	  echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
	  GMSGFMT=":"
	fi
      fi

                  if test "$XGETTEXT" != ":"; then
			if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
	  : ;
	else
	  echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
	  XGETTEXT=":"
	fi
      fi

            POSUB=po
    fi
    


            if test "$PACKAGE" = gettext; then
      BUILD_INCLUDED_LIBINTL=yes
    fi

                                            for ac_prog in bison
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
2976
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
2977
echo "configure:2978: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2978
if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2979
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2980
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2981 2982
  if test -n "$INTLBISON"; then
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
Sam Hocevar's avatar
 
Sam Hocevar committed
2983
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2984 2985 2986 2987 2988
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2989
      ac_cv_prog_INTLBISON="$ac_prog"
Sam Hocevar's avatar
 
Sam Hocevar committed
2990 2991 2992 2993
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
2994 2995
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2996 2997 2998
INTLBISON="$ac_cv_prog_INTLBISON"
if test -n "$INTLBISON"; then
  echo "$ac_t""$INTLBISON" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2999
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3000
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3001 3002
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3003 3004 3005 3006 3007 3008 3009
test -n "$INTLBISON" && break
done

    if test -z "$INTLBISON"; then
      ac_verc_fail=yes
    else
            echo $ac_n "checking version of bison""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3010
echo "configure:3011: checking version of bison" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056
      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
      case $ac_prog_version in
        '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
        1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
           ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
        *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
      esac
      echo "$ac_t""$ac_prog_version" 1>&6
    fi
    if test $ac_verc_fail = yes; then
      INTLBISON=:
    fi

                for lang in $ALL_LINGUAS; do
      GMOFILES="$GMOFILES $lang.gmo"
      POFILES="$POFILES $lang.po"
    done

        
    
    
    
    
    
    
    
    

        nls_cv_header_intl=
    nls_cv_header_libgt=

        DATADIRNAME=share
    

        INSTOBJEXT=.mo
    

        GENCAT=gencat
    
  

   if test "x$CATOBJEXT" != "x"; then
     if test "x$ALL_LINGUAS" = "x"; then
       LINGUAS=
     else
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3057
echo "configure:3058: checking for catalogs to be installed" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091
       NEW_LINGUAS=
       for presentlang in $ALL_LINGUAS; do
         useit=no
         for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
           # Use the presentlang catalog if desiredlang is
           #   a. equal to presentlang, or
           #   b. a variant of presentlang (because in this case,
           #      presentlang can be used as a fallback for messages
           #      which are not translated in the desiredlang catalog).
           case "$desiredlang" in
             "$presentlang"*) useit=yes;;
           esac
         done
         if test $useit = yes; then
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
         fi
       done
       LINGUAS=$NEW_LINGUAS
       echo "$ac_t""$LINGUAS" 1>&6
     fi

          if test -n "$LINGUAS"; then
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
     fi
   fi

            MKINSTALLDIRS=
   if test -n "$ac_aux_dir"; then
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
   fi
   if test -z "$MKINSTALLDIRS"; then
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
   fi
   
3092

Sam Hocevar's avatar
 
Sam Hocevar committed
3093 3094 3095
      INTL_LIBTOOL_SUFFIX_PREFIX=
   
  
3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107

# 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
3108
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3109
echo "configure:3110: checking for a BSD compatible install" >&5
3110
if test -z "$INSTALL"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3111 3112
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3113
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3114
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
3115 3116
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
Sam Hocevar's avatar
 
Sam Hocevar committed
3117 3118
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3119 3120 3121 3122 3123
    *)
      # 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
3124
        if test -f $ac_dir/$ac_prog; then
3125
	  if test $ac_prog = install &&
Sam Hocevar's avatar
 
Sam Hocevar committed
3126
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137
	    # 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
3138
  IFS="$ac_save_IFS"
3139 3140 3141

fi
  if test "${ac_cv_path_install+set}" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3142
    INSTALL="$ac_cv_path_install"
3143 3144 3145 3146 3147
  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
3148
    INSTALL="$ac_install_sh"
3149 3150
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3151
echo "$ac_t""$INSTALL" 1>&6
3152 3153 3154 3155 3156

# 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
3157
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3158 3159 3160

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3161

Gildas Bazin's avatar
 
Gildas Bazin committed
3162 3163 3164 3165 3166 3167 3168 3169 3170
case x"${target_os}" in
  x)
    SYS=unknown
    ;;
  xlinux*)
    SYS=linux
    ;;
  xbsdi*)
    SYS=bsdi
Sam Hocevar's avatar
 
Sam Hocevar committed
3171 3172 3173 3174 3175 3176 3177
    save_CFLAGS="${save_CFLAGS} -pthread"
    dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
    vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
    ;;
  x*bsd*)
    SYS="${target_os}"
    save_CFLAGS="${save_CFLAGS} -pthread"
Gildas Bazin's avatar
 
Gildas Bazin committed
3178 3179 3180
    ;;
  xdarwin*)
    SYS=darwin
Sam Hocevar's avatar
 
Sam Hocevar committed
3181
    save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
Gildas Bazin's avatar
 
Gildas Bazin committed
3182 3183 3184 3185 3186 3187
    ;;
  x*mingw32*)
    SYS=mingw32
    # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
set dummy ${ac_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3188
echo "configure:3189: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$WINDRES"; then
  ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
WINDRES="$ac_cv_prog_WINDRES"
if test -n "$WINDRES"; then
  echo "$ac_t""$WINDRES" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_WINDRES"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "windres", so it can be a program name with args.
set dummy windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3220
echo "configure:3221: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$WINDRES"; then
  ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="windres"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
fi
fi
WINDRES="$ac_cv_prog_WINDRES"
if test -n "$WINDRES"; then
  echo "$ac_t""$WINDRES" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
  WINDRES=":"
fi
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3252
    save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
Sam Hocevar's avatar
 
Sam Hocevar committed
3253
    vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
Sam Hocevar's avatar
 
Sam Hocevar committed
3254 3255 3256
    vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
    ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
    rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
Gildas Bazin's avatar
 
Gildas Bazin committed
3257 3258 3259
    ;;
  x*nto*)
    SYS=nto
Sam Hocevar's avatar
 
Sam Hocevar committed
3260 3261
    x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
    xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
Gildas Bazin's avatar
 
Gildas Bazin committed
3262 3263 3264
    ;;
  xbeos)
    SYS=beos
Sam Hocevar's avatar
 
Sam Hocevar committed
3265
    save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
Sam Hocevar's avatar
 
Sam Hocevar committed
3266 3267 3268 3269
    vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
    plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
    beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
    ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
Gildas Bazin's avatar
 
Gildas Bazin committed
3270 3271
    ;;
  x*)
Sam Hocevar's avatar
 
Sam Hocevar committed
3272
    SYS="${target_os}"
Gildas Bazin's avatar
 
Gildas Bazin committed
3273 3274 3275
    ;;
esac

Sam Hocevar's avatar
 
Sam Hocevar committed
3276 3277 3278 3279 3280 3281 3282
if test x"${SYS}" = xmingw32
then
  plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
else
  plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
fi

3283
save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
3284

Sam Hocevar's avatar
 
Sam Hocevar committed
3285
for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3286
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3287
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3288
echo "configure:3289: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3289 3290
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3291
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3292
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3293
#line 3294 "configure"
3294 3295
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3296
    which can conflict with char $ac_func(); below.  */
3297 3298 3299
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3300 3301 3302 3303
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
3304 3305 3306 3307 3308 3309 3310

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3311
$ac_func();
3312 3313
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3314
; return 0; }
3315
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3316
if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3317 3318 3319 3320 3321 3322 3323 3324 3325 3326
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
3327

Sam Hocevar's avatar
 
Sam Hocevar committed
3328 3329 3330 3331 3332 3333 3334 3335 3336
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
3337 3338 3339
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3340

Sam Hocevar's avatar
 
Sam Hocevar committed
3341
echo $ac_n "checking for connect""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3342
echo "configure:3343: checking for connect" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3343 3344
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3345
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3346
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3347
#line 3348 "configure"
3348 3349
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3350
    which can conflict with char connect(); below.  */
3351 3352 3353
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3354 3355 3356 3357
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
3358 3359 3360 3361 3362 3363 3364

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3365
connect();
3366 3367
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3368 3369
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3370
if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383
  rm -rf conftest*
  eval "ac_cv_func_connect=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_connect=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  echo "$ac_t""yes" 1>&6
3384 3385
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3386
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3387

Sam Hocevar's avatar
 
Sam Hocevar committed
3388
  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3389
echo "configure:3390: checking for connect in -lsocket" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3390 3391 3392
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3393
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3394
  ac_save_LIBS="$LIBS"
3395
LIBS="-lsocket  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3396
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3397
#line 3398 "configure"
3398 3399 3400
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3401 3402 3403 3404 3405 3406 3407
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
connect()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3408
if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3423 3424
  ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
    vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
Sam Hocevar's avatar
 
Sam Hocevar committed
3425

Sam Hocevar's avatar
 
Sam Hocevar committed
3426 3427
else
  echo "$ac_t""no" 1>&6
3428 3429 3430 3431
fi

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3432
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3433
echo "configure:3434: checking for gethostbyname" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3434 3435
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3436
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3437
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3438
#line 3439 "configure"
3439 3440
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3441
    which can conflict with char gethostbyname(); below.  */
3442 3443 3444
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3445 3446 3447 3448
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
3449 3450 3451 3452 3453 3454 3455

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3456
gethostbyname();
3457 3458
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3459 3460
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3461
if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
3475 3476
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3477
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3478

Sam Hocevar's avatar
 
Sam Hocevar committed
3479
  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3480
echo "configure:3481: checking for gethostbyname in -lnsl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3481 3482 3483
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3484
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3485
  ac_save_LIBS="$LIBS"
3486
LIBS="-lnsl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3487
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3488
#line 3489 "configure"
3489 3490 3491
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3492 3493 3494 3495 3496 3497 3498
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3499
if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3514
  ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
Sam Hocevar's avatar
 
Sam Hocevar committed
3515 3516 3517 3518 3519 3520 3521 3522
else
  echo "$ac_t""no" 1>&6
fi


fi

echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3523
echo "configure:3524: checking for gethostbyname" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3524 3525 3526 3527
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3528
#line 3529 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
#endif

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3551
if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6

  echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3570
echo "configure:3571: checking for gethostbyname in -lbind" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3571 3572 3573 3574 3575 3576 3577
ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lbind  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3578
#line 3579 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3579 3580 3581 3582 3583 3584 3585 3586 3587 3588
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3589
if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3604
  ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
Sam Hocevar's avatar
 
Sam Hocevar committed
3605 3606
else
  echo "$ac_t""no" 1>&6
3607 3608
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3609

3610 3611
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3612
echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3613
echo "configure:3614: checking for nanosleep" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3614 3615
if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3616
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3617
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3618
#line 3619 "configure"
3619 3620
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3621
    which can conflict with char nanosleep(); below.  */
3622 3623 3624
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3625 3626 3627 3628
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
3629 3630 3631 3632 3633 3634 3635

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_nanosleep) || defined (__stub___nanosleep)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3636
nanosleep();
3637 3638
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3639 3640
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3641
if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654
  rm -rf conftest*
  eval "ac_cv_func_nanosleep=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_nanosleep=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
  echo "$ac_t""yes" 1>&6
3655 3656
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3657
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3658

Sam Hocevar's avatar
 
Sam Hocevar committed
3659
  echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3660
echo "configure:3661: checking for nanosleep in -lrt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3661 3662 3663
ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3664
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3665
  ac_save_LIBS="$LIBS"
3666
LIBS="-lrt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3667
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3668
#line 3669 "configure"
3669 3670 3671
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3672 3673 3674 3675 3676 3677 3678
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3679
if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3694
  vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3695
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3696
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3697

Sam Hocevar's avatar
 
Sam Hocevar committed
3698
    echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3699
echo "configure:3700: checking for nanosleep in -lposix4" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3700 3701 3702
ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3703
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3704
  ac_save_LIBS="$LIBS"
3705
LIBS="-lposix4  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3706
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3707
#line 3708 "configure"
3708 3709 3710
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3711 3712 3713 3714 3715 3716 3717
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3718
if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3733
  vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
Sam Hocevar's avatar
 
Sam Hocevar committed
3734 3735
else
  echo "$ac_t""no" 1>&6
3736 3737
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3738
  
3739 3740
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3741

3742 3743
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3744
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3745
echo "configure:3746: checking for inet_aton" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3746 3747
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3748
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3749
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3750
#line 3751 "configure"
3751 3752
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3753
    which can conflict with char inet_aton(); below.  */
3754 3755 3756
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3757 3758 3759 3760
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
3761 3762 3763 3764 3765 3766 3767

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3768
inet_aton();
3769 3770
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3771 3772
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3773
if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786
  rm -rf conftest*
  eval "ac_cv_func_inet_aton=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  echo "$ac_t""yes" 1>&6
3787 3788
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3789
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3790

Sam Hocevar's avatar
 
Sam Hocevar committed
3791
  echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3792
echo "configure:3793: checking for inet_aton in -lresolv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3793 3794 3795
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3796
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3797
  ac_save_LIBS="$LIBS"
3798
LIBS="-lresolv  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3799
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3800
#line 3801 "configure"
3801 3802 3803
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3804 3805 3806 3807 3808 3809 3810
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
inet_aton()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3811
if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3826
  ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3827 3828 3829 3830 3831 3832 3833 3834
else
  echo "$ac_t""no" 1>&6
fi


fi

echo $ac_n "checking for textdomain""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3835
echo "configure:3836: checking for textdomain" >&5
3836 3837 3838 3839
if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3840
#line 3841 "configure"
3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char textdomain(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char textdomain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_textdomain) || defined (__stub___textdomain)
choke me
#else
textdomain();
#endif

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3863
if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881
  rm -rf conftest*
  eval "ac_cv_func_textdomain=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_textdomain=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6

  echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3882
echo "configure:3883: checking for textdomain in -lintl" >&5
3883 3884 3885 3886 3887 3888 3889
ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lintl  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3890
#line 3891 "configure"
3891 3892 3893 3894 3895 3896 3897 3898 3899 3900
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char textdomain();

int main() {
textdomain()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3901
if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3916
  save_LDFLAGS="${save_LDFLAGS} -lintl"
Sam Hocevar's avatar
 
Sam Hocevar committed
3917 3918
else
  echo "$ac_t""no" 1>&6
3919 3920
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3921

3922 3923
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3924

Sam Hocevar's avatar
 
Sam Hocevar committed
3925
NEED_GETOPT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3926
echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3927
echo "configure:3928: checking for getopt_long" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3928 3929
if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3930
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3931
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3932
#line 3933 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3933 3934
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3935
    which can conflict with char getopt_long(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3936 3937 3938
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3939 3940 3941 3942
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3943 3944 3945 3946 3947 3948 3949

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3950
getopt_long();
Sam Hocevar's avatar
 
Sam Hocevar committed
3951 3952
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3953 3954
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3955
if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969
  rm -rf conftest*
  eval "ac_cv_func_getopt_long=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_getopt_long=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3970 3971 3972 3973
#define HAVE_GETOPT_LONG 1
EOF

else
Sam Hocevar's avatar
 
Sam Hocevar committed
3974 3975 3976
  echo "$ac_t""no" 1>&6
 # FreeBSD has a gnugetopt library for this:
  echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3977
echo "configure:3978: checking for getopt_long in -lgnugetopt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3978 3979 3980
ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3981
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3982
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3983
LIBS="-lgnugetopt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3984
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3985
#line 3986 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3986 3987 3988
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
3989 3990 3991 3992 3993
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
getopt_long()
Sam Hocevar's avatar
 
Sam Hocevar committed
3994
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3995
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3996
if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3997 3998
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
3999
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4000 4001
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4002 4003
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
4004
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4005 4006
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4007

4008
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4009 4010
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4011
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4012
#define HAVE_GETOPT_LONG 1
4013
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4014
 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
Sam Hocevar's avatar
 
Sam Hocevar committed
4015 4016 4017 4018
else
  echo "$ac_t""no" 1>&6
NEED_GETOPT=1
fi
4019 4020 4021

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4022

Sam Hocevar's avatar
 
Sam Hocevar committed
4023
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4024
echo "configure:4025: checking return type of signal handlers" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4025 4026
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4027
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4028
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4029
#line 4030 "configure"
4030 4031 4032 4033
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
Sam Hocevar's avatar
 
Sam Hocevar committed
4034
#undef signal
4035 4036 4037 4038 4039 4040 4041
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
4042
int main() {
4043
int i;
Sam Hocevar's avatar
 
Sam Hocevar committed
4044 4045
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4046
if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4047
  rm -rf conftest*
4048 4049
  ac_cv_type_signal=void
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4050 4051 4052 4053
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_signal=int
4054
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4055
rm -f conftest*
4056 4057
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4058 4059
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
4060 4061 4062
#define RETSIGTYPE $ac_cv_type_signal
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
4063 4064

echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4065
echo "configure:4066: checking for dlopen in -ldl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4066 4067 4068
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4069
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4070
  ac_save_LIBS="$LIBS"
4071
LIBS="-ldl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4072
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4073
#line 4074 "configure"
4074 4075 4076
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
4077 4078 4079 4080 4081 4082 4083
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {
dlopen()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4084
if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4099
  vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
4100 4101
else
  echo "$ac_t""no" 1>&6
4102 4103
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4104
echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4105
echo "configure:4106: checking for cos in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4106 4107 4108 4109 4110 4111 4112
ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4113
#line 4114 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4114 4115 4116 4117 4118 4119 4120 4121 4122 4123
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char cos();

int main() {
cos()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4124
if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4139 4140
  imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
  filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4141 4142 4143 4144
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4145
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4146
echo "configure:4147: checking for pow in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4147 4148 4149
ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4150
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4151
  ac_save_LIBS="$LIBS"
4152
LIBS="-lm  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4153
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4154
#line 4155 "configure"
4155 4156 4157
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
4158 4159 4160 4161 4162 4163 4164
    builtin and then its argument prototype would still apply.  */
char pow();

int main() {
pow()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4165
if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4180 4181 4182 4183
  imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
  imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
  imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
  chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4184

Sam Hocevar's avatar
 
Sam Hocevar committed
4185 4186
else
  echo "$ac_t""no" 1>&6
4187 4188
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4189

Sam Hocevar's avatar
 
Sam Hocevar committed
4190 4191 4192
THREAD_LIB=error
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4193
echo "configure:4194: checking for pthread_attr_init in -lpthread" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4194 4195
ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4196 4197
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4198 4199 4200
  ac_save_LIBS="$LIBS"
LIBS="-lpthread  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4201
#line 4202 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4202 4203 4204 4205 4206 4207 4208
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4209
pthread_attr_init()
Sam Hocevar's avatar
 
Sam Hocevar committed
4210 4211
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4212
if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4213
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4214
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4215 4216 4217 4218
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4219
  eval "ac_cv_lib_$ac_lib_var=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4220 4221
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4222
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4223

Sam Hocevar's avatar
 
Sam Hocevar committed
4224 4225
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4226
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4227
  THREAD_LIB="-lpthread"
Sam Hocevar's avatar
 
Sam Hocevar committed
4228 4229
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4230
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4231

Sam Hocevar's avatar
 
Sam Hocevar committed
4232 4233 4234
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4235
echo "configure:4236: checking for pthread_attr_init in -lpthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4236
ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4237 4238
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4239
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4240
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4241
LIBS="-lpthreads  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4242
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4243
#line 4244 "configure"
4244 4245 4246
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
4247 4248 4249 4250 4251 4252 4253
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4254
if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4269
  THREAD_LIB="-lpthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
4270 4271
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4272 4273
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4274 4275 4276
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4277
echo "configure:4278: checking for pthread_attr_init in -lc_r" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4278
ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4279 4280
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4281
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4282
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4283
LIBS="-lc_r  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4284
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4285
#line 4286 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4286
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4287 4288
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
4289 4290 4291 4292 4293 4294 4295
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4296
if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4311
  THREAD_LIB="-lc_r"
Sam Hocevar's avatar
 
Sam Hocevar committed
4312 4313
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4314
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4315

Sam Hocevar's avatar
 
Sam Hocevar committed
4316 4317 4318
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4319
echo "configure:4320: checking for pthread_attr_init" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4320
if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4321
  echo $ac_n "(cached) $ac_c" 1>&6
4322
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4323
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4324
#line 4325 "configure"
4325
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4326 4327 4328
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_attr_init(); below.  */
#include <assert.h>
4329 4330
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
4331 4332 4333 4334
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4335 4336 4337 4338 4339 4340 4341 4342 4343 4344

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
choke me
#else
pthread_attr_init();
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
4345 4346
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4347
if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4348
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4349
  eval "ac_cv_func_pthread_attr_init=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4350 4351 4352 4353
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4354
  eval "ac_cv_func_pthread_attr_init=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4355 4356 4357
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4358 4359

if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4360
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4361
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
4362 4363
else
  echo "$ac_t""no" 1>&6
4364 4365
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4366
  THREAD_LIB=""
Sam Hocevar's avatar
 
Sam Hocevar committed
4367
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4368 4369

echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4370
echo "configure:4371: checking for cthread_fork in -lthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4371 4372
ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4373
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4374
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4375 4376 4377
  ac_save_LIBS="$LIBS"
LIBS="-lthreads  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4378
#line 4379 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4379 4380 4381
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
4382
    builtin and then its argument prototype would still apply.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
4383
char cthread_fork();
Sam Hocevar's avatar
 
Sam Hocevar committed
4384 4385

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4386
cthread_fork()
Sam Hocevar's avatar
 
Sam Hocevar committed
4387 4388
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4389
if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4390
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4391
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4392 4393 4394 4395
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4396
  eval "ac_cv_lib_$ac_lib_var=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4397 4398
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4399
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4400

Sam Hocevar's avatar
 
Sam Hocevar committed
4401 4402
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4403
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4404
  THREAD_LIB="-lthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
4405 4406 4407
else
  echo "$ac_t""no" 1>&6
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4408 4409


Sam Hocevar's avatar
 
Sam Hocevar committed
4410
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4411
#line 4412 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4412 4413
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4414
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4415 4416
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pthread_cond_t" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4417 4418 4419
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4420 4421 4422 4423 4424 4425
#define PTHREAD_COND_T_IN_PTHREAD_H 1
EOF

fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
4426
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4427
#line 4428 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4428 4429
#include "confdefs.h"
#include <strings.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4430
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4431 4432
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "strncasecmp" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4433 4434 4435
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4436 4437 4438 4439 4440
#define STRNCASECMP_IN_STRINGS_H 1
EOF

fi
rm -f conftest*
4441

Sam Hocevar's avatar
 
Sam Hocevar committed
4442

Sam Hocevar's avatar
 
Sam Hocevar committed
4443
for ac_hdr in getopt.h strings.h
Christophe Massiot's avatar
Christophe Massiot committed
4444
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4445 4446
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4447
echo "configure:4448: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4448 4449 4450 4451
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4452
#line 4453 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4453
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4454 4455 4456
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4457
{ (eval echo configure:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4458 4459 4460 4461 4462 4463 4464
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Christophe Massiot's avatar
Christophe Massiot committed
4465
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4466 4467
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
4468
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4469
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
4470
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4471 4472 4473 4474 4475
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Christophe Massiot's avatar
Christophe Massiot committed
4476
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4477 4478 4479
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
4480 4481 4482
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4483
for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4484
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4485 4486
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4487
echo "configure:4488: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4488 4489 4490 4491
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4492
#line 4493 "configure"
4493
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4494 4495 4496
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4497
{ (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4498 4499 4500 4501 4502 4503 4504
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4505
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4506 4507
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4508
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4509
rm -f conftest*
4510
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4511 4512 4513 4514 4515
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4516
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4517 4518 4519
 
else
  echo "$ac_t""no" 1>&6
4520 4521 4522
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4523
for ac_hdr in dlfcn.h image.h
4524
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4525 4526
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4527
echo "configure:4528: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4528 4529 4530 4531
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4532
#line 4533 "configure"
4533
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4534 4535 4536
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4537
{ (eval echo configure:4538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4538 4539 4540 4541 4542 4543 4544
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4545
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4546 4547
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4548
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4549
rm -f conftest*
4550
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4551 4552 4553 4554 4555
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4556
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4557 4558 4559
 
else
  echo "$ac_t""no" 1>&6
4560 4561 4562
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4563
for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4564
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4565 4566
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4567
echo "configure:4568: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4568 4569 4570 4571
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4572
#line 4573 "configure"
4573
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4574 4575 4576
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4577
{ (eval echo configure:4578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4578 4579 4580 4581 4582 4583 4584
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4585
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4586 4587
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4588
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4589
rm -f conftest*
4590
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4591 4592 4593 4594 4595
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4596
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4597 4598 4599
 
else
  echo "$ac_t""no" 1>&6
4600 4601 4602
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4603
for ac_hdr in machine/param.h sys/shm.h
4604
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4605 4606
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4607
echo "configure:4608: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4608 4609 4610 4611
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4612
#line 4613 "configure"
4613
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4614 4615 4616
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4617
{ (eval echo configure:4618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4618 4619 4620 4621 4622 4623 4624
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4625
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4626 4627
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4628
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4629
rm -f conftest*
4630
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4631 4632 4633 4634 4635
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4636
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4637 4638 4639
 
else
  echo "$ac_t""no" 1>&6
4640 4641 4642
fi
done

4643
for ac_hdr in linux/version.h
4644 4645 4646
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4647
echo "configure:4648: checking for $ac_hdr" >&5
4648 4649 4650 4651
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4652
#line 4653 "configure"
4653 4654 4655 4656
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4657
{ (eval echo configure:4658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4683

Sam Hocevar's avatar
 
Sam Hocevar committed
4684
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4685
echo "configure:4686: checking whether time.h and sys/time.h may both be included" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4686 4687 4688 4689
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4690
#line 4691 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4691 4692 4693 4694 4695 4696 4697 4698
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4699
if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719
  rm -rf conftest*
  ac_cv_header_time=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi


Sam Hocevar's avatar
 
Sam Hocevar committed
4720
for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
Benoit Steiner's avatar
 
Benoit Steiner committed
4721
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4722 4723
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4724
echo "configure:4725: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4725 4726 4727 4728
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4729
#line 4730 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4730
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4731 4732 4733
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4734
{ (eval echo configure:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4735 4736 4737 4738 4739 4740 4741
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Christophe Massiot's avatar
Christophe Massiot committed
4742
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4743 4744
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
4745
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4746
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
4747
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4748 4749 4750 4751 4752
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Christophe Massiot's avatar
Christophe Massiot committed
4753
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4754 4755 4756
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
4757 4758 4759
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4760

Sam Hocevar's avatar
 
Sam Hocevar committed
4761 4762 4763 4764 4765 4766 4767 4768
if test x$SYS != xmingw32
then
  if test x$x_includes = xNONE; then
    x_includes=/usr/X11R6/include
  fi
  if test x$x_libraries = xNONE; then
    x_libraries=/usr/X11R6/lib
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4769
  CPPFLAGS="$save_CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4770 4771 4772 4773
  for ac_hdr in X11/extensions/dpms.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4774
echo "configure:4775: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4775 4776 4777 4778
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4779
#line 4780 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4780 4781 4782 4783
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4784
{ (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4806
#line 4807 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827
#include "confdefs.h"
#include <X11/extensions/dpms.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "DPMSInfo" >/dev/null 2>&1; then
  rm -rf conftest*
  
      cat >> confdefs.h <<\EOF
#define DPMSINFO_IN_DPMS_H 1
EOF

    
fi
rm -f conftest*

  
else
  echo "$ac_t""no" 1>&6
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4828
  CPPFLAGS="$save_CPPFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4829 4830
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4831
echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4832
echo "configure:4833: checking for ntohl in sys/param.h" >&5
4833 4834 4835 4836 4837
if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -Wall -Werror"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4838
#line 4839 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4839 4840
#include "confdefs.h"
#include <sys/param.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4841
int main() {
4842
void foo() { int meuh; ntohl(meuh); }
Sam Hocevar's avatar
 
Sam Hocevar committed
4843 4844
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4845
if { (eval echo configure:4846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4846
  rm -rf conftest*
4847
  ac_cv_c_ntohl_sys_param_h=yes
Christophe Massiot's avatar
Christophe Massiot committed
4848
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4849 4850 4851
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
4852
  ac_cv_c_ntohl_sys_param_h=no
Christophe Massiot's avatar
Christophe Massiot committed
4853
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4854
rm -f conftest*
4855 4856 4857 4858 4859 4860 4861 4862 4863
fi

echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
    cat >> confdefs.h <<\EOF
#define NTOHL_IN_SYS_PARAM_H 1
EOF

fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4864

Sam Hocevar's avatar
 
Sam Hocevar committed
4865
echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4866
echo "configure:4867: checking if \$CC accepts -finline-limit" >&5
4867 4868 4869 4870 4871
if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -finline-limit-30000"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4872
#line 4873 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4873 4874 4875 4876 4877 4878
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4879
if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4880
  rm -rf conftest*
4881
  ac_cv_c_inline_limit=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
4882 4883 4884 4885
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
4886
  ac_cv_c_inline_limit=no
Sam Hocevar's avatar
 
Sam Hocevar committed
4887 4888
fi
rm -f conftest*
4889
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4890

4891 4892 4893 4894 4895
echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
if test x"$ac_cv_c_inline_limit" != x"no"; then
    save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4896
echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4897
echo "configure:4898: checking if \$CC accepts -Wall -Winline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4898 4899 4900 4901 4902
if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -Wall -Winline"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4903
#line 4904 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4904 4905 4906 4907 4908 4909
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4910
if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926
  rm -rf conftest*
  ac_cv_c_Wall_Winline=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_Wall_Winline=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
if test x"$ac_cv_c_Wall_Winline" != x"no"; then
    save_CFLAGS="${save_CFLAGS} -Wall -Winline"
else
    echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4927
echo "configure:4928: checking if \$CC accepts -wall -winline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4928 4929 4930 4931 4932
if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -wall -winline"
         cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4933
#line 4934 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4934 4935 4936 4937 4938 4939
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4940
if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958
  rm -rf conftest*
  ac_cv_c_wall_winline=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_wall_winline=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
    if test x"$ac_cv_c_wall_winline" != x"no"; then
        save_CFLAGS="${save_CFLAGS} -wall -winline"
    fi
fi

echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4959
echo "configure:4960: checking if \$CC accepts -pipe" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4960 4961 4962 4963 4964
if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -pipe"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4965
#line 4966 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4966 4967 4968 4969 4970 4971
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4972
if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989
  rm -rf conftest*
  ac_cv_c_pipe=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_pipe=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_pipe" 1>&6
if test x"$ac_cv_c_pipe" != x"no"; then
    save_CFLAGS="${save_CFLAGS} -pipe"
fi

echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4990
echo "configure:4991: checking if \$CC accepts -O3" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4991 4992 4993 4994 4995
if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -O3"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4996
#line 4997 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4997 4998 4999 5000 5001 5002
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5003
if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019
  rm -rf conftest*
  ac_cv_c_o3=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_o3=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_o3" 1>&6
if test x"$ac_cv_c_o3" != x"no"; then
    CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
else
    echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5020
echo "configure:5021: checking if \$CC accepts -O2" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5021 5022 5023 5024 5025
if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -O2"
         cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5026
#line 5027 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5027 5028 5029 5030 5031 5032
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5033
if { (eval echo configure:5034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049
  rm -rf conftest*
  ac_cv_c_o2=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_o2=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_o2" 1>&6
    if test x"$ac_cv_c_o2" != x"no"; then
        CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
    else
        echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5050
echo "configure:5051: checking if \$CC accepts -O" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5051 5052 5053 5054 5055
if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -O"
             cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5056
#line 5057 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5057 5058 5059 5060 5061 5062
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5063
if { (eval echo configure:5064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082
  rm -rf conftest*
  ac_cv_c_o=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_o=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_o" 1>&6
        if test x"$ac_cv_c_o" != x"no"; then
            CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
        fi
    fi
fi

echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5083
echo "configure:5084: checking if \$CC accepts -ffast-math" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5084 5085 5086 5087 5088
if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -ffast-math"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5089
#line 5090 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5090 5091 5092 5093 5094 5095
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5096
if { (eval echo configure:5097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113
  rm -rf conftest*
  ac_cv_c_fast_math=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_fast_math=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_fast_math" 1>&6
if test x"$ac_cv_c_fast_math" != x"no"; then
    CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
fi

echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5114
echo "configure:5115: checking if \$CC accepts -funroll-loops" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5115 5116 5117 5118 5119
if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -funroll-loops"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5120
#line 5121 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5121 5122 5123 5124 5125 5126
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5127
if { (eval echo configure:5128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144
  rm -rf conftest*
  ac_cv_c_unroll_loops=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_unroll_loops=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
if test x"$ac_cv_c_unroll_loops" != x"no"; then
    CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
fi

echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5145
echo "configure:5146: checking if \$CC accepts -fomit-frame-pointer" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5146 5147 5148 5149 5150
if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5151
#line 5152 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5152 5153 5154 5155 5156 5157
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5158
if { (eval echo configure:5159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174
  rm -rf conftest*
  ac_cv_c_omit_frame_pointer=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_omit_frame_pointer=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
    CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
fi

Christophe Massiot's avatar
Christophe Massiot committed
5175
echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5176
echo "configure:5177: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5177 5178 5179
if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
Christophe Massiot's avatar
Christophe Massiot committed
5180
  CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5181
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5182
#line 5183 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5183 5184 5185 5186 5187 5188
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5189
if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5190
  rm -rf conftest*
5191
  ac_cv_ld_darwin=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5192 5193 5194 5195
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5196
  ac_cv_ld_darwin=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5197 5198
fi
rm -f conftest*
5199 5200 5201 5202
fi

echo "$ac_t""$ac_cv_ld_darwin" 1>&6
if test x"$ac_cv_ld_darwin" != x"no"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5203
    plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5204
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5205

Sam Hocevar's avatar
 
Sam Hocevar committed
5206
echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5207
echo "configure:5208: checking if \$CC accepts -shared" >&5
5208 5209 5210 5211 5212
if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -shared"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5213
#line 5214 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5214 5215 5216 5217 5218 5219
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5220
if { (eval echo configure:5221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5221
  rm -rf conftest*
5222
  ac_cv_ld_plugins=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5223 5224 5225 5226
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5227
  ac_cv_ld_plugins=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5228 5229
fi
rm -f conftest*
5230
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5231

5232 5233
echo "$ac_t""$ac_cv_ld_plugins" 1>&6
if test x"$ac_cv_ld_plugins" != x"no"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5234
    plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5235 5236
fi
        
5237
echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5238
echo "configure:5239: checking __attribute__ ((aligned ())) support" >&5
5239 5240 5241 5242
if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_attribute_aligned=0
Sam Hocevar's avatar
 
Sam Hocevar committed
5243
        CFLAGS="${save_CFLAGS} -Werror"
5244 5245
    for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5246
#line 5247 "configure"
5247 5248 5249 5250 5251 5252
#include "confdefs.h"

int main() {
static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5253
if { (eval echo configure:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271
  rm -rf conftest*
  ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
    done
fi

echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
if test x"$ac_cv_c_attribute_aligned" != x"0"; then
    cat >> confdefs.h <<EOF
#define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5272
CFLAGS="${save_CFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5273
CPPFLAGS="${save_CPPFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5274
LDFLAGS="${save_LDFLAGS}"
Christophe Massiot's avatar
Christophe Massiot committed
5275

Sam Hocevar's avatar
 
Sam Hocevar committed
5276
echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5277
echo "configure:5278: checking for boolean_t in sys/types.h" >&5
5278 5279 5280 5281
if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5282
#line 5283 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5283 5284
#include "confdefs.h"
#include <sys/types.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5285
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5286
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5287 5288
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5289
if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5290
  rm -rf conftest*
5291
  ac_cv_c_boolean_t_sys_types_h=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5292
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5293 5294 5295
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5296
  ac_cv_c_boolean_t_sys_types_h=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5297
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5298
rm -f conftest*
5299 5300 5301 5302 5303 5304 5305 5306 5307 5308
fi

echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
    cat >> confdefs.h <<\EOF
#define BOOLEAN_T_IN_SYS_TYPES_H 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5309
echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5310
echo "configure:5311: checking for boolean_t in pthread.h" >&5
5311 5312 5313 5314
if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5315
#line 5316 "configure"
5316 5317
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5318
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5319
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5320 5321
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5322
if { (eval echo configure:5323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5323
  rm -rf conftest*
5324
  ac_cv_c_boolean_t_pthread_h=yes
5325
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5326 5327 5328
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5329
  ac_cv_c_boolean_t_pthread_h=no
5330
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5331
rm -f conftest*
5332 5333 5334 5335 5336 5337 5338 5339 5340 5341
fi

echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
    cat >> confdefs.h <<\EOF
#define BOOLEAN_T_IN_PTHREAD_H 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5342
echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5343
echo "configure:5344: checking for boolean_t in cthreads.h" >&5
5344 5345 5346 5347
if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5348
#line 5349 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5349 5350 5351
#include "confdefs.h"
#include <cthreads.h>
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5352
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5353 5354
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5355
if { (eval echo configure:5356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5356
  rm -rf conftest*
5357
  ac_cv_c_boolean_t_cthreads_h=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5358 5359 5360 5361
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5362
  ac_cv_c_boolean_t_cthreads_h=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5363 5364
fi
rm -f conftest*
5365 5366 5367 5368 5369 5370 5371 5372 5373
fi

echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
    cat >> confdefs.h <<\EOF
#define BOOLEAN_T_IN_CTHREADS_H 1
EOF

fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5374

Sam Hocevar's avatar
 
Sam Hocevar committed
5375 5376 5377 5378 5379
case x"${target_cpu}" in
  x)
    ARCH=unknown
    ;;
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
5380
    ARCH="${target_cpu}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5381 5382
    ;;
esac
Sam Hocevar's avatar
 
Sam Hocevar committed
5383

Sam Hocevar's avatar
 
Sam Hocevar committed
5384
BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5385
PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
Sam Hocevar's avatar
 
Sam Hocevar committed
5386

Sam Hocevar's avatar
 
Sam Hocevar committed
5387
MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
Sam Hocevar's avatar
 
Sam Hocevar committed
5388 5389
MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
Gildas Bazin's avatar
 
Gildas Bazin committed
5390
SSE_MODULES="imdctsse downmixsse"
5391
ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5392

Sam Hocevar's avatar
 
Sam Hocevar committed
5393
echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5394
echo "configure:5395: checking if \$CC groks MMX inline assembly" >&5
5395 5396 5397 5398
if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5399
#line 5400 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5400 5401
#include "confdefs.h"

5402
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5403
void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5404 5405
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5406
if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5407
  rm -rf conftest*
5408
  ac_cv_mmx_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5409
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5410 5411 5412
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5413
  ac_cv_mmx_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5414
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5415
rm -f conftest*
5416 5417 5418 5419 5420 5421
fi

echo "$ac_t""$ac_cv_mmx_inline" 1>&6
if test x"$ac_cv_mmx_inline" != x"no"; then
  ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5422

Sam Hocevar's avatar
 
Sam Hocevar committed
5423
echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5424
echo "configure:5425: checking if \$CC groks MMX EXT inline assembly" >&5
5425 5426 5427 5428
if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5429
#line 5430 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5430 5431
#include "confdefs.h"

5432
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5433
void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5434 5435
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5436
if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5437
  rm -rf conftest*
5438
  ac_cv_mmxext_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5439
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5440 5441 5442
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5443
  ac_cv_mmxext_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5444
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5445
rm -f conftest*
5446 5447 5448 5449 5450 5451
fi

echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
if test x"$ac_cv_mmxext_inline" != x"no"; then
  ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5452

Sam Hocevar's avatar
 
Sam Hocevar committed
5453
echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5454
echo "configure:5455: checking if \$CC groks 3D Now! inline assembly" >&5
5455 5456 5457 5458
if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5459
#line 5460 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5460 5461
#include "confdefs.h"

5462
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5463
void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5464 5465
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5466
if { (eval echo configure:5467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5467
  rm -rf conftest*
5468
  ac_cv_3dnow_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5469 5470 5471 5472
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5473
  ac_cv_3dnow_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5474 5475
fi
rm -f conftest*
5476 5477 5478 5479
fi

echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
if test x"$ac_cv_3dnow_inline" != x"no"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5480
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5481
#define CAN_COMPILE_3DNOW 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5482 5483
EOF

5484 5485
  ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5486 5487

echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5488
echo "configure:5489: checking if \$CC groks SSE inline assembly" >&5
5489 5490 5491 5492
if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5493
#line 5494 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5494 5495
#include "confdefs.h"

5496
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5497
void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5498 5499
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5500
if { (eval echo configure:5501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5501
  rm -rf conftest*
5502
  ac_cv_sse_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5503 5504 5505 5506
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5507
  ac_cv_sse_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5508 5509
fi
rm -f conftest*
5510
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5511

5512
echo "$ac_t""$ac_cv_sse_inline" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
5513
if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5514
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5515
#define CAN_COMPILE_SSE 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5516 5517
EOF

5518 5519 5520
  ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
fi

Gildas Bazin's avatar
 
Gildas Bazin committed
5521 5522 5523
# don't try to grok altivec with native mingw32 it doesn't work right now
# we should be able to remove this test with future versions of mingw32
if test x$SYS != xmingw32; then
5524
echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5525
echo "configure:5526: checking if \$CC groks Altivec inline assembly" >&5
5526 5527 5528 5529
if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5530
#line 5531 "configure"
5531 5532
#include "confdefs.h"

5533
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5534
asm volatile("vperm 0,1,2,3");
5535 5536
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5537
if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5538
  rm -rf conftest*
5539
  ac_cv_altivec_inline=yes
5540 5541 5542 5543 5544 5545 5546
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  save_CFLAGS=$CFLAGS
          CFLAGS="$CFLAGS -Wa,-m7400"
          cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5547
#line 5548 "configure"
5548 5549 5550
#include "confdefs.h"

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5551
asm volatile("vperm 0,1,2,3");
5552 5553
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5554
if { (eval echo configure:5555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5555
  rm -rf conftest*
5556
  ac_cv_altivec_inline="-Wa,-m7400"
5557 5558 5559 5560
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5561
  ac_cv_altivec_inline=no
5562
fi
5563 5564 5565 5566
rm -f conftest*
          CFLAGS=$save_CFLAGS
         
fi
5567
rm -f conftest*
5568 5569 5570 5571
fi

echo "$ac_t""$ac_cv_altivec_inline" 1>&6
if test x"$ac_cv_altivec_inline" != x"no"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5572
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5573
#define CAN_COMPILE_ALTIVEC 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5574 5575
EOF

5576
  if test x"$ac_cv_altivec_inline" != x"yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5577 5578 5579 5580
    idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
    motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
    memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
    vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5581
  fi
5582 5583
  ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi
5584

5585
echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5586
echo "configure:5587: checking if \$CC groks Altivec C extensions" >&5
5587 5588 5589
if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
5590 5591 5592
  save_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS -faltivec"
     # Darwin test
5593
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5594
#line 5595 "configure"
5595
#include "confdefs.h"
5596

5597
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5598
vec_mtvscr((vector unsigned int)(0));
5599 5600
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5601
if { (eval echo configure:5602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5602 5603 5604 5605 5606 5607 5608 5609
  rm -rf conftest*
  ac_cv_c_altivec=-faltivec
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
        # Linux/PPC test
Sam Hocevar's avatar
 
Sam Hocevar committed
5610
        CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5611
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5612
#line 5613 "configure"
5613
#include "confdefs.h"
5614

5615
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5616
vec_mtvscr((vector unsigned int)(0));
5617 5618
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5619
if { (eval echo configure:5620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5620
  rm -rf conftest*
5621
  ac_cv_c_altivec="-fvec"
5622 5623 5624 5625 5626
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_altivec=no
5627 5628 5629
fi
rm -f conftest*
        
5630 5631 5632
fi
rm -f conftest*
     CFLAGS=$save_CFLAGS
5633
    
5634 5635 5636 5637 5638
fi

echo "$ac_t""$ac_cv_c_altivec" 1>&6
if test x"$ac_cv_c_altivec" != x"no"; then
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5639
#define CAN_COMPILE_C_ALTIVEC 1
5640 5641
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5642 5643 5644 5645
  idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
  motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
  memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
  vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5646
  ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5647 5648 5649
fi

echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5650
echo "configure:5651: checking if linker needs -framework vecLib" >&5
5651 5652 5653 5654 5655 5656
if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  save_LDFLAGS=$LDFLAGS
     LDFLAGS="$LDFLAGS -framework vecLib"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5657
#line 5658 "configure"
5658 5659 5660 5661 5662 5663
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5664
if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679
  rm -rf conftest*
  ac_cv_ld_altivec=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_ld_altivec=no
fi
rm -f conftest*
     LDFLAGS=$save_LDFLAGS
    
fi

echo "$ac_t""$ac_cv_ld_altivec" 1>&6
if test x"$ac_cv_ld_altivec" != x"no"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5680 5681 5682 5683
  idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
  motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
  memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
  vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5684
fi
Gildas Bazin's avatar
 
Gildas Bazin committed
5685
fi # end if mingw32
Sam Hocevar's avatar
 
Sam Hocevar committed
5686

5687

Sam Hocevar's avatar
 
Sam Hocevar committed
5688 5689 5690 5691 5692
# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5693

Sam Hocevar's avatar
 
Sam Hocevar committed
5694 5695 5696 5697 5698
# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5699

Sam Hocevar's avatar
 
Sam Hocevar committed
5700 5701 5702 5703 5704 5705 5706

# Check whether --with-tuning or --without-tuning was given.
if test "${with_tuning+set}" = set; then
  withval="$with_tuning"
  :
fi

5707 5708
if test "x$with_tuning" != "x"; then
    TUNING="$with_tuning"
Sam Hocevar's avatar
 
Sam Hocevar committed
5709
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724
    if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
    else
        if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
    fi
fi

if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
then
    ARCH="${ARCH} mmx"
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
fi

# Check whether --enable-optimizations or --disable-optimizations was given.
if test "${enable_optimizations+set}" = set; then
  enableval="$enable_optimizations"
5725
   if test x$enable_optimizations = xno; then OPTIMS=0; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
5726
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5727
   OPTIMS=1 
Sam Hocevar's avatar
 
Sam Hocevar committed
5728
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5729 5730 5731 5732 5733


# Check whether --enable-altivec or --disable-altivec was given.
if test "${enable_altivec+set}" = set; then
  enableval="$enable_altivec"
5734
   if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
Sam Hocevar's avatar
 
Sam Hocevar committed
5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
else
   if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
fi


DEBUG=0
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval="$enable_debug"
5746
   if test x$enable_debug = xyes; then DEBUG=1; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
5747 5748
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5749

Sam Hocevar's avatar
 
Sam Hocevar committed
5750
RELEASE=0
Sam Hocevar's avatar
 
Sam Hocevar committed
5751 5752 5753
# Check whether --enable-release or --disable-release was given.
if test "${enable_release+set}" = set; then
  enableval="$enable_release"
5754
   if test x$enable_release = xyes; then RELEASE=1; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
5755
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771
   VERSION="${VERSION}_`date +%Y-%m-%d`" 
fi



# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
fi


# Check whether --enable-dvd or --disable-dvd was given.
if test "${enable_dvd+set}" = set; then
  enableval="$enable_dvd"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
5772 5773
fi

5774
if test "x$enable_dvd" != "xno"
Sam Hocevar's avatar
 
Sam Hocevar committed
5775 5776 5777 5778 5779 5780
then
  # Check whether --with-dvdcss or --without-dvdcss was given.
if test "${with_dvdcss+set}" = set; then
  withval="$with_dvdcss"
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5781

Sam Hocevar's avatar
 
Sam Hocevar committed
5782 5783 5784 5785 5786 5787
  # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
if test "${with_dvdcss_tree+set}" = set; then
  withval="$with_dvdcss_tree"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5788
  case "x$with_dvdcss" in
Sam Hocevar's avatar
 
Sam Hocevar committed
5789
  x|xyes)
Sam Hocevar's avatar
 
Sam Hocevar committed
5790 5791 5792
    if test "x$with_dvdcss_tree" = x
    then
      for ac_hdr in dvdcss/dvdcss.h
5793
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5794 5795
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5796
echo "configure:5797: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5797 5798 5799 5800
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5801
#line 5802 "configure"
5802
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5803 5804 5805
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
5806
{ (eval echo configure:5807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5807 5808 5809 5810 5811 5812 5813
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
5814
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5815 5816
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
5817
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5818
rm -f conftest*
5819
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5820 5821 5822 5823 5824
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
5825
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5826
  PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
5827
          dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss" 
Sam Hocevar's avatar
 
Sam Hocevar committed
5828 5829
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
5830 5831
echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
          { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; } 
Sam Hocevar's avatar
 
Sam Hocevar committed
5832 5833 5834
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
5835 5836
    else
      echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5837
echo "configure:5838: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5838 5839 5840 5841 5842 5843 5844 5845 5846 5847
      real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
      if test "x$real_dvdcss_tree" = x
      then
                echo "$ac_t""no" 1>&6
        { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
      fi
      if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
      then
                echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
        BUILTINS="${BUILTINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
5848 5849
        dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
        dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
Sam Hocevar's avatar
 
Sam Hocevar committed
5850 5851 5852 5853 5854
      else
                echo "$ac_t""no" 1>&6
        { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
      fi
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5855 5856
  ;;
  xno)
Sam Hocevar's avatar
 
Sam Hocevar committed
5857
        PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
5858 5859
    dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
    dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
5860 5861
  ;;
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
5862
    echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5863
echo "configure:5864: checking for dvdcss headers in ${with_dvdcss}" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5864
    if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
Sam Hocevar's avatar
 
Sam Hocevar committed
5865
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
5866
            echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
5867
      PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
5868 5869
      dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
      dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
Sam Hocevar's avatar
 
Sam Hocevar committed
5870
    else
Sam Hocevar's avatar
 
Sam Hocevar committed
5871 5872
            echo "$ac_t""no" 1>&6
      { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883
    fi
  ;;
  esac
fi

# Check whether --enable-dvdread or --disable-dvdread was given.
if test "${enable_dvdread+set}" = set; then
  enableval="$enable_dvdread"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5884
if test "x$enable_dvdread" != "xno"
Sam Hocevar's avatar
 
Sam Hocevar committed
5885 5886 5887 5888 5889 5890 5891
then
  # Check whether --with-dvdread or --without-dvdread was given.
if test "${with_dvdread+set}" = set; then
  withval="$with_dvdread"
  :
fi

5892
  if test "x$with_dvdread" = x
Sam Hocevar's avatar
 
Sam Hocevar committed
5893 5894 5895 5896
  then
    test_LDFLAGS=""
    test_CFLAGS=""
  else
5897 5898
    test_LDFLAGS="-L${with_dvdread}/lib"
    test_CFLAGS="-I${with_dvdread}/include"
Sam Hocevar's avatar
 
Sam Hocevar committed
5899 5900 5901
  fi
  CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
  for ac_hdr in dvdread/dvd_reader.h
5902
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5903 5904
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5905
echo "configure:5906: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5906 5907 5908 5909
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5910
#line 5911 "configure"
5911
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5912 5913 5914
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
5915
{ (eval echo configure:5916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5916 5917 5918 5919 5920 5921 5922
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
5923
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5924 5925
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
5926
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5927
rm -f conftest*
5928
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5929 5930 5931 5932 5933
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
5934
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5935 5936
 
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5937
#line 5938 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5938 5939 5940 5941 5942 5943
#include "confdefs.h"
#include <dvdread/dvd_reader.h>
int main() {
void foo() { int i=DVD_VIDEO_LB_LEN; }
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5944
if { (eval echo configure:5945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955
  rm -rf conftest*
  
          PLUGINS="${PLUGINS} dvdread"
          dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
          dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
        
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5956
          if test "x$enable_dvdread" != x
Sam Hocevar's avatar
 
Sam Hocevar committed
5957 5958 5959 5960 5961 5962 5963
          then
            { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
          fi
        
fi
rm -f conftest*
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5964 5965
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
5966
if test "x$enable_dvdread" != x
Sam Hocevar's avatar
 
Sam Hocevar committed
5967
    then
5968
      if test "x$with_dvdread" != x
Sam Hocevar's avatar
 
Sam Hocevar committed
5969
      then
5970
        { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5971 5972 5973 5974 5975
      else
        { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
      fi
    fi
  
5976 5977 5978
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
5979
  CPPFLAGS="$save_CPPFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
5980 5981
fi

5982 5983 5984 5985 5986 5987
# Check whether --enable-dvbpsi or --disable-dvbpsi was given.
if test "${enable_dvbpsi+set}" = set; then
  enableval="$enable_dvbpsi"
  :
fi

5988
if test "x$enable_dvbpsi" != "xno"
5989
then
5990 5991 5992 5993 5994 5995
  # Check whether --with-dvbpsi or --without-dvbpsi was given.
if test "${with_dvbpsi+set}" = set; then
  withval="$with_dvbpsi"
  :
fi

5996
  if test "x$with_dvbpsi" = x
5997 5998 5999 6000
  then
    test_LDFLAGS=""
    test_CFLAGS=""
  else
6001 6002
    test_LDFLAGS="-L${with_dvbpsi}/lib"
    test_CFLAGS="-I${with_dvbpsi}/include"
6003 6004 6005 6006
  fi
  CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
  ac_safe=`echo "dvbpsi/dvbpsi.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dvbpsi/dvbpsi.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6007
echo "configure:6008: checking for dvbpsi/dvbpsi.h" >&5
6008 6009 6010 6011
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6012
#line 6013 "configure"
6013 6014 6015 6016
#include "confdefs.h"
#include <dvbpsi/dvbpsi.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6017
{ (eval echo configure:6018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
    PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
    mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
    mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
    
else
  echo "$ac_t""no" 1>&6

    if test "x$enable_dvbpsi" != x
    then
      { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org" 1>&2; exit 1; }
    fi
  
fi

  CPPFLAGS="$save_CPPFLAGS"
fi
 
Sam Hocevar's avatar
 
Sam Hocevar committed
6051 6052 6053 6054
# Check whether --enable-vcd or --disable-vcd was given.
if test "${enable_vcd+set}" = set; then
  enableval="$enable_vcd"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
6055 6056
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6057

Sam Hocevar's avatar
 
Sam Hocevar committed
6058 6059 6060
if test x$enable_vcd != xno
then
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6061
#line 6062 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6062 6063 6064 6065
#include "confdefs.h"
#include <linux/cdrom.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sam Hocevar's avatar
 
Sam Hocevar committed
6066
  egrep "cdrom_msf0" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6067 6068
  rm -rf conftest*
  
Sam Hocevar's avatar
 
Sam Hocevar committed
6069
    PLUGINS="${PLUGINS} vcd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6070 6071 6072 6073
  
fi
rm -f conftest*

6074 6075
  
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6076
#line 6077 "configure"
6077 6078 6079 6080 6081 6082 6083
#include "confdefs.h"
#include <sys/cdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ioc_toc_header " >/dev/null 2>&1; then
  rm -rf conftest*
  
6084
    PLUGINS="${PLUGINS} vcd"
6085 6086 6087 6088 6089 6090 6091 6092
    cat >> confdefs.h <<\EOF
#define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
EOF

  
fi
rm -f conftest*

6093
  
Sam Hocevar's avatar
 
Sam Hocevar committed
6094 6095 6096 6097
  if test "x${SYS}" = "xbsdi"
  then
    PLUGINS="${PLUGINS} vcd"
  fi
6098

Sam Hocevar's avatar
 
Sam Hocevar committed
6099 6100 6101
  if test "x${SYS}" = "xdarwin"
  then
    PLUGINS="${PLUGINS} vcd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6102
    vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation" 
Sam Hocevar's avatar
 
Sam Hocevar committed
6103
  fi
6104 6105
fi

Johan Bilien's avatar
Johan Bilien committed
6106 6107 6108 6109 6110
# Check whether --enable-satellite or --disable-satellite was given.
if test "${enable_satellite+set}" = set; then
  enableval="$enable_satellite"
   if test x$enable_satellite = xyes
    then
6111
      PLUGINS="${PLUGINS} satellite"
Johan Bilien's avatar
Johan Bilien committed
6112 6113 6114 6115
    fi
fi


6116
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6117
echo "configure:6118: checking for inet_pton" >&5
6118 6119 6120 6121
if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6122
#line 6123 "configure"
6123
#include "confdefs.h"
6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char inet_pton(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char inet_pton();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton();
#endif

; return 0; }
6144
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6145
if { (eval echo configure:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6146
  rm -rf conftest*
6147 6148 6149 6150 6151 6152
  eval "ac_cv_func_inet_pton=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_inet_pton=no"
6153 6154
fi
rm -f conftest*
6155 6156 6157 6158
fi

if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
6159
  PLUGINS="${PLUGINS} ipv6"
6160 6161 6162
else
  echo "$ac_t""no" 1>&6
fi
6163 6164


6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175
# Check whether --enable-avi or --disable-avi was given.
if test "${enable_avi+set}" = set; then
  enableval="$enable_avi"
  :
fi

if test x$enable_avi != xno
then
  PLUGINS="${PLUGINS} avi"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6176 6177 6178 6179

# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
Sam Hocevar's avatar
 
Sam Hocevar committed
6180 6181 6182
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6183

Sam Hocevar's avatar
 
Sam Hocevar committed
6184 6185 6186 6187
# Check whether --enable-mad or --disable-mad was given.
if test "${enable_mad+set}" = set; then
  enableval="$enable_mad"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
6188 6189
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6190
if test x$enable_mad = xyes
Sam Hocevar's avatar
 
Sam Hocevar committed
6191 6192
then
  PLUGINS="${PLUGINS} mad"
Sam Hocevar's avatar
 
Sam Hocevar committed
6193
  mad_LDFLAGS="${mad_LDFLAGS} -lmad"
Sam Hocevar's avatar
 
Sam Hocevar committed
6194
  # Check whether --with-mad or --without-mad was given.
Sam Hocevar's avatar
 
Sam Hocevar committed
6195 6196
if test "${with_mad+set}" = set; then
  withval="$with_mad"
6197
   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
Sam Hocevar's avatar
 
Sam Hocevar committed
6198
      then
6199 6200
        mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
        mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
6201 6202 6203 6204 6205
      fi 
fi

  save_CFLAGS=$CFLAGS
  save_LDFLAGS=$LDFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
6206 6207
  CFLAGS="$CFLAGS $mad_CFLAGS"
  LDFLAGS="$LDFLAGS $mad_LDFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
6208
  for ac_hdr in mad.h
6209 6210 6211
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6212
echo "configure:6213: checking for $ac_hdr" >&5
6213 6214 6215 6216
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6217
#line 6218 "configure"
6218 6219 6220 6221
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6222
{ (eval echo configure:6223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
echo "Cannot find development headers for libmad..."
Sam Hocevar's avatar
 
Sam Hocevar committed
6246 6247
    exit 1
  
6248 6249 6250
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
6251
  echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6252
echo "configure:6253: checking for mad_bit_init in -lmad" >&5
6253 6254 6255 6256 6257 6258 6259
ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lmad  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6260
#line 6261 "configure"
6261 6262 6263 6264 6265 6266 6267 6268 6269 6270
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mad_bit_init();

int main() {
mad_bit_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6271
if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lmad $LIBS"

else
  echo "$ac_t""no" 1>&6
 echo "Cannot find libmad library..."
Sam Hocevar's avatar
 
Sam Hocevar committed
6297 6298
    exit 1
  
6299 6300
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6301 6302
  CFLAGS=$save_CFLAGS
  LDFLAGS=$save_LDFLAGS
6303 6304
fi

6305 6306 6307 6308 6309 6310
# Check whether --enable-ffmpeg or --disable-ffmpeg was given.
if test "${enable_ffmpeg+set}" = set; then
  enableval="$enable_ffmpeg"
  :
fi

6311
if test "x$enable_ffmpeg" = "xyes"
6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323
then
  # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
if test "${with_ffmpeg_tree+set}" = set; then
  withval="$with_ffmpeg_tree"
  :
fi

  if test "x$with_ffmpeg_tree" = x
  then
    { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&2; exit 1; }
  else
    echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6324
echo "configure:6325: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344
    real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
    if test "x$real_ffmpeg_tree" = x
    then
            echo "$ac_t""no" 1>&6
      { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
    fi
    if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
    then
            echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
      BUILTINS="${BUILTINS} ffmpeg"
      ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
      ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
    else
            echo "$ac_t""no" 1>&6
      { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
    fi
  fi
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6345 6346
if test x$SYS = xbeos
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6347
    PLUGINS="${PLUGINS} beos"
Sam Hocevar's avatar
 
Sam Hocevar committed
6348
fi
6349

Sam Hocevar's avatar
 
Sam Hocevar committed
6350 6351 6352
# Check whether --enable-a52 or --disable-a52 was given.
if test "${enable_a52+set}" = set; then
  enableval="$enable_a52"
Sam Hocevar's avatar
 
Sam Hocevar committed
6353 6354
  :
fi
6355

Gildas Bazin's avatar
 
Gildas Bazin committed
6356 6357 6358 6359 6360 6361 6362 6363 6364
if test "x$enable_a52" != "xno"
then
  # Check whether --with-a52-tree or --without-a52-tree was given.
if test "${with_a52_tree+set}" = set; then
  withval="$with_a52_tree"
  :
fi

  if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
Sam Hocevar's avatar
 
Sam Hocevar committed
6365
  then
Gildas Bazin's avatar
 
Gildas Bazin committed
6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440
    real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
    if test "x$real_a52_tree" = x
    then
            echo "$ac_t""no" 1>&6
      { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
    fi
        echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
echo "configure:6374: checking for a52.h in ${real_a52_tree}/include" >&5
    if test -f ${real_a52_tree}/include/a52.h
    then
      echo "$ac_t""yes" 1>&6
      a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
      a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
      save_LDFLAGS=$LDFLAGS
      LDFLAGS="$a52_LDFLAGS $LDFLAGS"
      echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
echo "configure:6383: checking for a52_free in -la52" >&5
ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-la52 -lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6391 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char a52_free();

int main() {
a52_free()
; return 0; }
EOF
if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
        BUILTINS="${BUILTINS} a52"
        a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
        a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
        
else
  echo "$ac_t""no" 1>&6

        if test -f ${real_a52_tree}/liba52/.libs/liba52.a
        then
          { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
        else
          { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
        fi
      
fi

      LDFLAGS=$save_LDFLAGS
    else
      echo "$ac_t""no" 1>&6
      { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
    fi
  else     ac_safe=`echo "a52dec/a52.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for a52dec/a52.h""... $ac_c" 1>&6
echo "configure:6441: checking for a52dec/a52.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6441 6442 6443 6444
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6445
#line 6446 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6446
#include "confdefs.h"
Gildas Bazin's avatar
 
Gildas Bazin committed
6447
#include <a52dec/a52.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
6448 6449
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6450
{ (eval echo configure:6451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485
  
      echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
echo "configure:6469: checking for a52_free in -la52" >&5
ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-la52 -lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6477 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char a52_free();

int main() {
a52_free()
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6486
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506
if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
        BUILTINS="${BUILTINS} a52"
        a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
        a52_CFLAGS="${a52_CFLAGS}"
      
Sam Hocevar's avatar
 
Sam Hocevar committed
6507
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6508
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6509 6510
fi

Gildas Bazin's avatar
 
Gildas Bazin committed
6511 6512 6513 6514 6515 6516
    
else
  echo "$ac_t""no" 1>&6
fi

  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6517
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6518

Sam Hocevar's avatar
 
Sam Hocevar committed
6519 6520 6521 6522 6523 6524
# Check whether --enable-vorbis or --disable-vorbis was given.
if test "${enable_vorbis+set}" = set; then
  enableval="$enable_vorbis"
  :
fi

6525
if test "x$enable_vorbis" != "xno"
Sam Hocevar's avatar
 
Sam Hocevar committed
6526 6527 6528 6529 6530
then
  for ac_hdr in ogg/ogg.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6531
echo "configure:6532: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6532 6533 6534 6535
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6536
#line 6537 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6537 6538 6539 6540
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6541
{ (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
6562
        #PLUGINS="${PLUGINS} vorbis"
Sam Hocevar's avatar
 
Sam Hocevar committed
6563
    vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
Sam Hocevar's avatar
 
Sam Hocevar committed
6564 6565 6566 6567 6568 6569 6570 6571
   
else
  echo "$ac_t""no" 1>&6
fi
done

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6572

Sam Hocevar's avatar
 
Sam Hocevar committed
6573 6574 6575 6576
# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
6577 6578
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6579

Sam Hocevar's avatar
 
Sam Hocevar committed
6580 6581 6582 6583
# Check whether --enable-x11 or --disable-x11 was given.
if test "${enable_x11+set}" = set; then
  enableval="$enable_x11"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
6584 6585
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6586 6587 6588 6589 6590 6591 6592 6593
if test x$enable_x11 != xno &&
  (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
  if test x$x_includes = xNONE; then
    x_includes=/usr/X11R6/include
  fi
  if test x$x_libraries = xNONE; then
    x_libraries=/usr/X11R6/lib
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6594
  CPPFLAGS="$save_CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
6595
  for ac_hdr in X11/Xlib.h
6596
do
Sam Hocevar's avatar
 
Sam Hocevar committed
6597 6598
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6599
echo "configure:6600: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6600 6601 6602 6603
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6604
#line 6605 "configure"
6605
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6606 6607 6608
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6609
{ (eval echo configure:6610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6610 6611 6612 6613 6614 6615 6616
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
6617
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6618 6619
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
6620
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6621
rm -f conftest*
6622
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6623 6624 6625 6626 6627
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
6628
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
6629 6630
 
    PLUGINS="${PLUGINS} x11"
Sam Hocevar's avatar
 
Sam Hocevar committed
6631 6632
    x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
    x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
6633
  
Sam Hocevar's avatar
 
Sam Hocevar committed
6634 6635
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6636
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6637
done
Sam Hocevar's avatar
 
Sam Hocevar committed
6638

Sam Hocevar's avatar
 
Sam Hocevar committed
6639
  CPPFLAGS="$save_CPPFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
6640 6641
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6642 6643 6644
# Check whether --enable-xvideo or --disable-xvideo was given.
if test "${enable_xvideo+set}" = set; then
  enableval="$enable_xvideo"
6645 6646 6647
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6648 6649 6650 6651 6652 6653 6654 6655
if test x$enable_xvideo != xno &&
  (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
  if test x$x_includes = xNONE; then
    x_includes=/usr/X11R6/include
  fi
  if test x$x_libraries = xNONE; then
    x_libraries=/usr/X11R6/lib
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6656 6657
  save_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$save_CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
6658
  for ac_hdr in X11/extensions/Xv.h
6659 6660 6661
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6662
echo "configure:6663: checking for $ac_hdr" >&5
6663 6664 6665 6666
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6667
#line 6668 "configure"
6668 6669 6670 6671
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6672
{ (eval echo configure:6673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
Sam Hocevar's avatar
 
Sam Hocevar committed
6693
    save_CFLAGS=$CFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
6694 6695
    CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
    echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6696
echo "configure:6697: checking for XvSetPortAttribute in -lXv_pic" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6697 6698
ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Gildas Bazin's avatar
 
Gildas Bazin committed
6699 6700
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6701 6702 6703
  ac_save_LIBS="$LIBS"
LIBS="-lXv_pic  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6704
#line 6705 "configure"
Gildas Bazin's avatar
 
Gildas Bazin committed
6705
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6706 6707 6708 6709 6710 6711 6712 6713
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XvSetPortAttribute();

int main() {
XvSetPortAttribute()
; return 0; }
Gildas Bazin's avatar
 
Gildas Bazin committed
6714
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6715
if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Gildas Bazin's avatar
 
Gildas Bazin committed
6716
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6717
  eval "ac_cv_lib_$ac_lib_var=yes"
Gildas Bazin's avatar
 
Gildas Bazin committed
6718 6719 6720 6721
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6722
  eval "ac_cv_lib_$ac_lib_var=no"
Gildas Bazin's avatar
 
Gildas Bazin committed
6723 6724
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6725 6726
LIBS="$ac_save_LIBS"

Gildas Bazin's avatar
 
Gildas Bazin committed
6727
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6728
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Gildas Bazin's avatar
 
Gildas Bazin committed
6729
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6730 6731
  # We have Xv_pic, that's good, we can build an xvideo.so plugin !
      PLUGINS="${PLUGINS} xvideo"
Sam Hocevar's avatar
 
Sam Hocevar committed
6732 6733
      xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
      xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
6734 6735 6736 6737
else
  echo "$ac_t""no" 1>&6
# We don't have Xv_pic, let's make xvideo.a as builtin
      BUILTINS="${BUILTINS} xvideo"
Sam Hocevar's avatar
 
Sam Hocevar committed
6738 6739
      xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
      xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
6740 6741
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6742
    CFLAGS="$save_CFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
6743
  
Sam Hocevar's avatar
 
Sam Hocevar committed
6744
  CPPFLAGS="$save_CPPFLAGS"
Gildas Bazin's avatar
 
Gildas Bazin committed
6745 6746 6747 6748 6749 6750 6751
else
  echo "$ac_t""no" 1>&6
fi
done

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6752 6753 6754
# Check whether --enable-sdl or --disable-sdl was given.
if test "${enable_sdl+set}" = set; then
  enableval="$enable_sdl"
6755 6756 6757
  :
fi

6758
if test "x$enable_sdl" != "xno"
6759
then
6760 6761 6762 6763
  SDL_PATH=$PATH
  # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
if test "${with_sdl_config_path+set}" = set; then
  withval="$with_sdl_config_path"
Gildas Bazin's avatar
 
Gildas Bazin committed
6764
   if test "x$with_sdl_config_path" != "xno"
6765
      then
Gildas Bazin's avatar
 
Gildas Bazin committed
6766
        SDL_PATH="$with_sdl_config_path:$PATH"
6767 6768 6769
      fi 
fi

6770 6771
  # Extract the first word of "sdl12-config", so it can be a program name with args.
set dummy sdl12-config; ac_word=$2
6772
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6773
echo "configure:6774: checking for $ac_word" >&5
6774
if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6775 6776
  echo $ac_n "(cached) $ac_c" 1>&6
else
6777
  case "$SDL12_CONFIG" in
6778
  /*)
6779
  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6780 6781
  ;;
  ?:/*)			 
6782
  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6783 6784 6785
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
6786
  ac_dummy="$SDL_PATH"
6787 6788 6789
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
6790
      ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6791 6792 6793 6794
      break
    fi
  done
  IFS="$ac_save_ifs"
6795
  test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6796 6797 6798
  ;;
esac
fi
6799 6800 6801
SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
if test -n "$SDL12_CONFIG"; then
  echo "$ac_t""$SDL12_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6802
else
6803
  echo "$ac_t""no" 1>&6
6804
fi
6805

6806 6807
  SDL_CONFIG=${SDL12_CONFIG}
  SDL_HEADER="SDL12/SDL.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6808 6809
  if test x${SDL_CONFIG} = xno
  then
6810 6811 6812
    # Extract the first word of "sdl11-config", so it can be a program name with args.
set dummy sdl11-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6813
echo "configure:6814: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6814
if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6815 6816
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6817
  case "$SDL11_CONFIG" in
6818
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
6819
  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6820 6821
  ;;
  ?:/*)			 
Sam Hocevar's avatar
 
Sam Hocevar committed
6822
  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6823 6824 6825
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
6826
  ac_dummy="$SDL_PATH"
6827 6828 6829
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6830
      ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6831 6832 6833 6834
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
6835
  test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6836 6837
  ;;
esac
6838
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6839 6840 6841
SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
if test -n "$SDL11_CONFIG"; then
  echo "$ac_t""$SDL11_CONFIG" 1>&6
6842
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6843
  echo "$ac_t""no" 1>&6
6844 6845
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6846
    SDL_CONFIG=${SDL11_CONFIG}
6847 6848
    SDL_HEADER="SDL11/SDL.h"
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6849 6850
  if test x${SDL_CONFIG} = xno
  then
6851 6852
    # Extract the first word of "sdl-config", so it can be a program name with args.
set dummy sdl-config; ac_word=$2
6853
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6854
echo "configure:6855: checking for $ac_word" >&5
6855
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6856 6857
  echo $ac_n "(cached) $ac_c" 1>&6
else
6858
  case "$SDL_CONFIG" in
6859
  /*)
6860
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6861 6862
  ;;
  ?:/*)			 
6863
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6864 6865 6866
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
6867
  ac_dummy="$SDL_PATH"
6868 6869 6870
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
6871
      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6872 6873 6874 6875
      break
    fi
  done
  IFS="$ac_save_ifs"
6876
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6877 6878 6879
  ;;
esac
fi
6880 6881 6882
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
if test -n "$SDL_CONFIG"; then
  echo "$ac_t""$SDL_CONFIG" 1>&6
6883 6884
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6885 6886
fi

6887
    SDL_HEADER="SDL/SDL.h"
6888
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6889 6890
  if test x${SDL_CONFIG} != xno
  then
6891
    PLUGINS="${PLUGINS} sdl"
Sam Hocevar's avatar
 
Sam Hocevar committed
6892 6893 6894
    sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
    sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
    CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
6895
    for ac_hdr in ${SDL_HEADER}
6896
do
Sam Hocevar's avatar
 
Sam Hocevar committed
6897 6898
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6899
echo "configure:6900: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6900 6901 6902 6903
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6904
#line 6905 "configure"
6905
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6906 6907 6908
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6909
{ (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6910 6911 6912 6913 6914 6915 6916
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
6917
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6918 6919
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
6920
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6921
rm -f conftest*
6922
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6923 6924 6925 6926 6927
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
6928
EOF
6929 6930 6931 6932
 cat >> confdefs.h <<EOF
#define SDL_INCLUDE_FILE <${SDL_HEADER}>
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
6933 6934
else
  echo "$ac_t""no" 1>&6
6935 6936 6937 6938
{ echo "configure: error: The development package for SDL is not installed. 
Please install it and try again. Alternatively you can also configure with 
--disable-sdl." 1>&2; exit 1; }
      
6939 6940 6941
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
6942
    CPPFLAGS="$save_CPPFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
6943
    if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
Sam Hocevar's avatar
 
Sam Hocevar committed
6944
    then
6945 6946 6947
      { echo "configure: error: The development package for SDL is not installed.
Please install it and try again. Alternatively you can also configure with
--disable-sdl." 1>&2; exit 1; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6948
    fi
6949
  elif test "x$enable_sdl" =  "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
6950
  then
6951 6952 6953
    { echo "configure: error: I couldn't find the SDL package. You can download libSDL
from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
    " 1>&2; exit 1; }
6954 6955
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6956

6957 6958 6959
# Check whether --enable-directx or --disable-directx was given.
if test "${enable_directx+set}" = set; then
  enableval="$enable_directx"
6960
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
6961 6962
fi

6963
if test "x$enable_directx" != "xno"
6964
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6965
  if test x$SYS = xmingw32
6966
  then
Xavier Marchesini's avatar
 
Xavier Marchesini committed
6967 6968 6969
    # Check whether --with-directx or --without-directx was given.
if test "${with_directx+set}" = set; then
  withval="$with_directx"
Gildas Bazin's avatar
 
Gildas Bazin committed
6970 6971 6972
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6973
    if test "x$with_directx" = "x"
6974
    then
Gildas Bazin's avatar
 
Gildas Bazin committed
6975
      for ac_hdr in ddraw.h
Sam Hocevar's avatar
 
Sam Hocevar committed
6976 6977 6978
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6979
echo "configure:6980: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6980 6981 6982 6983
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6984
#line 6985 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6985 6986 6987 6988
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6989
{ (eval echo configure:6990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
7009
  PLUGINS="${PLUGINS} directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7010
        directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" 
Sam Hocevar's avatar
 
Sam Hocevar committed
7011 7012 7013 7014 7015
else
  echo "$ac_t""no" 1>&6
fi
done

7016
    else
7017
      echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7018
echo "configure:7019: checking for directX headers in ${with_directx}" >&5
7019
      if test -f ${with_directx}/ddraw.h
7020 7021
      then
        PLUGINS="${PLUGINS} directx"
7022 7023
        directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
        directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7024
        echo "$ac_t""yes" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7025
      else
7026
        echo "$ac_t""no" 1>&6
7027
        { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
Gildas Bazin's avatar
 
Gildas Bazin committed
7028
      fi
7029 7030
    fi
  fi
7031 7032
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7033 7034 7035
# Check whether --enable-fb or --disable-fb was given.
if test "${enable_fb+set}" = set; then
  enableval="$enable_fb"
Gildas Bazin's avatar
 
Gildas Bazin committed
7036 7037 7038
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7039 7040 7041 7042 7043 7044
    if test x$enable_fb != xno
    then
      for ac_hdr in linux/fb.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7045
echo "configure:7046: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7046 7047 7048 7049
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7050
#line 7051 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7051 7052 7053 7054
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7055
{ (eval echo configure:7056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
Gildas Bazin's avatar
 
Gildas Bazin committed
7068
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
        PLUGINS="${PLUGINS} fb"
      
else
  echo "$ac_t""no" 1>&6
fi
done
Gildas Bazin's avatar
 
Gildas Bazin committed
7082

Sam Hocevar's avatar
 
Sam Hocevar committed
7083 7084 7085 7086 7087 7088
    fi

# Check whether --enable-mga or --disable-mga was given.
if test "${enable_mga+set}" = set; then
  enableval="$enable_mga"
   if test x$enable_mga = xyes
Sam Hocevar's avatar
 
Sam Hocevar committed
7089
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7090
      PLUGINS="${PLUGINS} mga xmga"
Sam Hocevar's avatar
 
Sam Hocevar committed
7091
    fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
7092 7093 7094
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
7095 7096 7097 7098 7099 7100
# Check whether --enable-ggi or --disable-ggi was given.
if test "${enable_ggi+set}" = set; then
  enableval="$enable_ggi"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7101
if test x$enable_ggi = xyes
Sam Hocevar's avatar
 
Sam Hocevar committed
7102 7103
then
  PLUGINS="${PLUGINS} ggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
7104
  ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
7105 7106 7107
  # Check whether --with-ggi or --without-ggi was given.
if test "${with_ggi+set}" = set; then
  withval="$with_ggi"
7108
   if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
Sam Hocevar's avatar
 
Sam Hocevar committed
7109
      then
7110 7111
        CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
        ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122
      fi 
fi

fi

# Check whether --enable-glide or --disable-glide was given.
if test "${enable_glide+set}" = set; then
  enableval="$enable_glide"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7123
if test x$enable_glide = xyes
Sam Hocevar's avatar
 
Sam Hocevar committed
7124 7125
then
  PLUGINS="${PLUGINS} glide"
Sam Hocevar's avatar
 
Sam Hocevar committed
7126 7127
  glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
  glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
Sam Hocevar's avatar
 
Sam Hocevar committed
7128
  # Check whether --with-glide or --without-glide was given.
Christophe Massiot's avatar
Christophe Massiot committed
7129 7130
if test "${with_glide+set}" = set; then
  withval="$with_glide"
7131
   if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
Sam Hocevar's avatar
 
Sam Hocevar committed
7132
      then
7133 7134
        glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
        glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
7135
      fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
7136 7137
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7138
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7139

Sam Hocevar's avatar
 
Sam Hocevar committed
7140 7141 7142 7143 7144 7145 7146 7147 7148 7149
# Check whether --enable-aa or --disable-aa was given.
if test "${enable_aa+set}" = set; then
  enableval="$enable_aa"
  :
fi

if test x$enable_aa = xyes
then
  ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7150
echo "configure:7151: checking for aalib.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7151 7152 7153 7154
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7155
#line 7156 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7156 7157 7158 7159
#include "confdefs.h"
#include <aalib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7160
{ (eval echo configure:7161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  have_aa="true"
else
  echo "$ac_t""no" 1>&6
have_aa="false"
fi

  if test x$have_aa = xtrue
  then
    PLUGINS="${PLUGINS} aa"
Sam Hocevar's avatar
 
Sam Hocevar committed
7185
    aa_LDFLAGS="${aa_LDFLAGS} -laa"
Sam Hocevar's avatar
 
Sam Hocevar committed
7186 7187 7188
  fi
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7189 7190 7191 7192 7193

# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
7194 7195
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7196

Sam Hocevar's avatar
 
Sam Hocevar committed
7197 7198 7199 7200
# Check whether --enable-dsp or --disable-dsp was given.
if test "${enable_dsp+set}" = set; then
  enableval="$enable_dsp"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
7201 7202
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7203

Sam Hocevar's avatar
 
Sam Hocevar committed
7204 7205 7206 7207 7208 7209 7210
if test x$enable_dsp != xno &&
  (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
then
  for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7211
echo "configure:7212: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7212 7213 7214 7215
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7216
#line 7217 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7217 7218 7219 7220
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7221
{ (eval echo configure:7222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
    PLUGINS="${PLUGINS} dsp"
    echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7244
echo "configure:7245: checking for main in -lossaudio" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7245 7246 7247 7248 7249 7250 7251
ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lossaudio  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7252
#line 7253 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7253 7254 7255 7256 7257 7258
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7259
if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7274
  dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
Sam Hocevar's avatar
 
Sam Hocevar committed
7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294
else
  echo "$ac_t""no" 1>&6
fi

  
else
  echo "$ac_t""no" 1>&6
fi
done

fi

# Check whether --enable-esd or --disable-esd was given.
if test "${enable_esd+set}" = set; then
  enableval="$enable_esd"
  if test x$enable_esd = xyes
   then
     # Extract the first word of "esd-config", so it can be a program name with args.
set dummy esd-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7295
echo "configure:7296: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328
if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ESD_CONFIG" in
  /*)
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  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_path_ESD_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  ;;
esac
fi
ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
if test -n "$ESD_CONFIG"; then
  echo "$ac_t""$ESD_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

     if test x${ESD_CONFIG} != xno
7329
     then
Sam Hocevar's avatar
 
Sam Hocevar committed
7330
       PLUGINS="${PLUGINS} esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
7331 7332
       esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
       esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7333
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7334
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7335 7336
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7337

Sam Hocevar's avatar
 
Sam Hocevar committed
7338 7339 7340 7341 7342 7343 7344
# Check whether --enable-arts or --disable-arts was given.
if test "${enable_arts+set}" = set; then
  enableval="$enable_arts"
  if test x$enable_arts = xyes
   then
     # Extract the first word of "artsc-config", so it can be a program name with args.
set dummy artsc-config; ac_word=$2
7345
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7346
echo "configure:7347: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7347
if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7348 7349
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7350
  case "$ARTS_CONFIG" in
7351
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
7352
  ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7353 7354
  ;;
  ?:/*)			 
Sam Hocevar's avatar
 
Sam Hocevar committed
7355
  ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7356 7357 7358 7359 7360 7361 7362
  ;;
  *)
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
7363
      ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7364 7365 7366 7367
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
7368
  test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7369 7370 7371
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7372 7373 7374
ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
if test -n "$ARTS_CONFIG"; then
  echo "$ac_t""$ARTS_CONFIG" 1>&6
7375 7376 7377 7378
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7379 7380 7381
     if test x${ARTS_CONFIG} != xno
     then
       PLUGINS="${PLUGINS} arts"
Sam Hocevar's avatar
 
Sam Hocevar committed
7382 7383
       arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
       arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
Sam Hocevar's avatar
 
Sam Hocevar committed
7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395
     fi
   fi
fi


# Check whether --enable-alsa or --disable-alsa was given.
if test "${enable_alsa+set}" = set; then
  enableval="$enable_alsa"
  if test x$enable_alsa = xyes
   then
     ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7396
echo "configure:7397: checking for alsa/asoundlib.h" >&5
7397 7398 7399 7400
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7401
#line 7402 "configure"
7402
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7403
#include <alsa/asoundlib.h>
7404 7405
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7406
{ (eval echo configure:7407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7422
  echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7423
echo "configure:7424: checking for main in -lasound" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7424 7425 7426 7427 7428 7429 7430
ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lasound  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7431
#line 7432 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7432 7433 7434 7435 7436
#include "confdefs.h"

int main() {
main()
; return 0; }
7437
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7438
if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  have_alsa="true"
else
  echo "$ac_t""no" 1>&6
have_alsa="false"
fi

7459 7460
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7461
have_alsa="false"
7462 7463
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7464 7465 7466
     if test x$have_alsa = xtrue
     then
       PLUGINS="${PLUGINS} alsa"
Sam Hocevar's avatar
 
Sam Hocevar committed
7467
       alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478
     fi
   fi
fi


# Check whether --enable-waveout or --disable-waveout was given.
if test "${enable_waveout+set}" = set; then
  enableval="$enable_waveout"
  :
fi

7479
if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
Sam Hocevar's avatar
 
Sam Hocevar committed
7480 7481
  then
    PLUGINS="${PLUGINS} waveout"
Sam Hocevar's avatar
 
Sam Hocevar committed
7482
    waveout_LDFLAGS="-lwinmm"
Sam Hocevar's avatar
 
Sam Hocevar committed
7483 7484 7485 7486 7487 7488 7489
fi


# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
7490 7491
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7492

Sam Hocevar's avatar
 
Sam Hocevar committed
7493 7494 7495
# Check whether --enable-gtk or --disable-gtk was given.
if test "${enable_gtk+set}" = set; then
  enableval="$enable_gtk"
Sam Hocevar's avatar
 
Sam Hocevar committed
7496 7497
  :
fi
7498

Sam Hocevar's avatar
 
Sam Hocevar committed
7499 7500
if test x$enable_gtk != xno
then
7501 7502 7503 7504
  GTK_PATH=$PATH
  # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
if test "${with_gtk_config_path+set}" = set; then
  withval="$with_gtk_config_path"
Gildas Bazin's avatar
 
Gildas Bazin committed
7505
   if test "x$with_gtk_config_path" != "xno"
7506
      then
Gildas Bazin's avatar
 
Gildas Bazin committed
7507
        GTK_PATH="$with_gtk_config_path:$PATH"
7508 7509 7510
      fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7511
  # look for gtk-config
Sam Hocevar's avatar
 
Sam Hocevar committed
7512 7513
  # Extract the first word of "gtk12-config", so it can be a program name with args.
set dummy gtk12-config; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
7514
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7515
echo "configure:7516: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553
if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GTK12_CONFIG" in
  /*)
  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$GTK_PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
  ;;
esac
fi
GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
if test -n "$GTK12_CONFIG"; then
  echo "$ac_t""$GTK12_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  GTK_CONFIG=${GTK12_CONFIG}
  if test x${GTK_CONFIG} = xno
  then
    # Extract the first word of "gtk-config", so it can be a program name with args.
set dummy gtk-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7554
echo "configure:7555: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7555 7556
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7557
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7558 7559
  case "$GTK_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
7560 7561
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
7562 7563 7564
  ?:/*)			 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
7565
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
7566
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7567
  ac_dummy="$GTK_PATH"
Sam Hocevar's avatar
 
Sam Hocevar committed
7568 7569 7570 7571 7572 7573 7574 7575
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
7576 7577 7578 7579
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7580
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
7581
if test -n "$GTK_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7582
  echo "$ac_t""$GTK_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7583
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7584
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7585 7586
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7587 7588
  fi
  if test x${GTK_CONFIG} != xno
Sam Hocevar's avatar
 
Sam Hocevar committed
7589
  then
Sam Hocevar's avatar
 
Sam Hocevar committed
7590 7591 7592 7593
    if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
    then
      { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7594 7595
    gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
    gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
7596
    # now look for the gtk.h header
Sam Hocevar's avatar
 
Sam Hocevar committed
7597
    CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
7598 7599
    ac_cv_gtk_headers=yes
    for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7600 7601 7602
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7603
echo "configure:7604: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7604 7605 7606 7607
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7608
#line 7609 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7609 7610 7611 7612
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7613
{ (eval echo configure:7614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7636
ac_cv_gtk_headers=no
Sam Hocevar's avatar
 
Sam Hocevar committed
7637 7638
      echo "Cannot find gtk development headers."
    
Sam Hocevar's avatar
 
Sam Hocevar committed
7639 7640 7641
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7642 7643 7644 7645 7646
    if test "x$ac_cv_gtk_headers" = xyes
    then
      PLUGINS="${PLUGINS} gtk"
      ALIASES="${ALIASES} gvlc"
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7647
    CPPFLAGS="$save_CPPFLAGS"
7648
  fi
7649
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7650

Sam Hocevar's avatar
 
Sam Hocevar committed
7651 7652 7653 7654 7655 7656 7657 7658
# Check whether --enable-gnome or --disable-gnome was given.
if test "${enable_gnome+set}" = set; then
  enableval="$enable_gnome"
  if test x$enable_gnome = xyes; then
    # look for gnome-config
    # Extract the first word of "gnome-config", so it can be a program name with args.
set dummy gnome-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7659
echo "configure:7660: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689
if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GNOME_CONFIG" in
  /*)
  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  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_path_GNOME_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
  ;;
esac
fi
GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
if test -n "$GNOME_CONFIG"; then
  echo "$ac_t""$GNOME_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7690
fi
Henri Fallon's avatar
 
Henri Fallon committed
7691

Sam Hocevar's avatar
 
Sam Hocevar committed
7692 7693
    if test -x ${GNOME_CONFIG}
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7694 7695
       gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
       gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
7696 7697
    fi
    # now look for the gnome.h header
Sam Hocevar's avatar
 
Sam Hocevar committed
7698
    CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
7699
    for ac_hdr in gnome.h
7700
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7701 7702
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7703
echo "configure:7704: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7704 7705 7706 7707
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7708
#line 7709 "configure"
7709
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7710 7711 7712
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7713
{ (eval echo configure:7714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7714 7715 7716 7717 7718 7719 7720
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
7721
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7722 7723
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
7724
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7725
rm -f conftest*
7726
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7727 7728 7729 7730 7731
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
7732
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7733
 
Sam Hocevar's avatar
 
Sam Hocevar committed
7734 7735 7736
      PLUGINS="${PLUGINS} gnome"
      ALIASES="${ALIASES} gnome-vlc"
     
Sam Hocevar's avatar
 
Sam Hocevar committed
7737 7738
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7739
{ echo "configure: error: Can't find gnome headers. Please install the gnome
Sam Hocevar's avatar
 
Sam Hocevar committed
7740
developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7741
     
7742 7743 7744
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7745
    CPPFLAGS="$save_CPPFLAGS"
Sam Hocevar's avatar
 
Sam Hocevar committed
7746
  fi
7747
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7748

Sam Hocevar's avatar
 
Sam Hocevar committed
7749 7750 7751 7752 7753 7754 7755

# Check whether --enable-qt or --disable-qt was given.
if test "${enable_qt+set}" = set; then
  enableval="$enable_qt"
  if test x$enable_qt = xyes; then
     PLUGINS="${PLUGINS} qt"
     ALIASES="${ALIASES} qvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7756 7757
     qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
     qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
Sam Hocevar's avatar
 
Sam Hocevar committed
7758 7759 7760 7761 7762 7763 7764
     if test -x ${QTDIR}/bin/moc
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7765
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7766

Sam Hocevar's avatar
 
Sam Hocevar committed
7767 7768 7769 7770 7771 7772 7773

# Check whether --enable-kde or --disable-kde was given.
if test "${enable_kde+set}" = set; then
  enableval="$enable_kde"
  if test x$enable_kde = xyes; then
     PLUGINS="${PLUGINS} kde"
     ALIASES="${ALIASES} kvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7774 7775 7776
     kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
     kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
     kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
Sam Hocevar's avatar
 
Sam Hocevar committed
7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792
     if test -x ${QTDIR}/bin/moc
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
   fi
fi


# Check whether --enable-macosx or --disable-macosx was given.
if test "${enable_macosx+set}" = set; then
  enableval="$enable_macosx"
  if test x$enable_macosx = xyes
   then
     BUILTINS="${BUILTINS} macosx"
7793
     macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7794 7795
     macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
     LDFLAGS="${LDFLAGS} -ObjC"
Sam Hocevar's avatar
 
Sam Hocevar committed
7796 7797 7798
   fi
else
  for ac_hdr in Cocoa/Cocoa.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7799
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7800 7801
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7802
echo "configure:7803: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7803 7804 7805 7806
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7807
#line 7808 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7808
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7809 7810 7811
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7812
{ (eval echo configure:7813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7813 7814 7815 7816 7817 7818 7819
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7820
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7821 7822
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
7823
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7824
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
7825
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7826 7827 7828 7829 7830
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Sam Hocevar's avatar
 
Sam Hocevar committed
7831
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7832
 BUILTINS="${BUILTINS} macosx"
7833
     macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7834 7835
     macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
     LDFLAGS="${LDFLAGS} -ObjC"
Sam Hocevar's avatar
 
Sam Hocevar committed
7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856
   
else
  echo "$ac_t""no" 1>&6
fi
done

fi


# Check whether --enable-qnx or --disable-qnx was given.
if test "${enable_qnx+set}" = set; then
  enableval="$enable_qnx"
  :
fi

    if test x$enable_qnx != xno
    then
      for ac_hdr in Ph.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7857
echo "configure:7858: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7858
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7859 7860
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7861
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7862
#line 7863 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7863
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7864
#include <$ac_hdr>
Sam Hocevar's avatar
 
Sam Hocevar committed
7865
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7866
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7867
{ (eval echo configure:7868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7868 7869
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7870
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
7871
  eval "ac_cv_header_$ac_safe=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7872
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7873
  echo "$ac_err" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7874 7875 7876
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
7877
  eval "ac_cv_header_$ac_safe=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
7878 7879 7880
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7881
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7882
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7883 7884 7885 7886 7887 7888
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
        PLUGINS="${PLUGINS} qnx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7889
        qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
Sam Hocevar's avatar
 
Sam Hocevar committed
7890
      
Sam Hocevar's avatar
 
Sam Hocevar committed
7891 7892 7893
else
  echo "$ac_t""no" 1>&6
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7894
done
Sam Hocevar's avatar
 
Sam Hocevar committed
7895

Sam Hocevar's avatar
 
Sam Hocevar committed
7896 7897
    fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7898 7899 7900
# Check whether --enable-intfwin or --disable-intfwin was given.
if test "${enable_intfwin+set}" = set; then
  enableval="$enable_intfwin"
7901
   if test "x$enable_intfwin" != "xno"
Sam Hocevar's avatar
 
Sam Hocevar committed
7902 7903 7904 7905 7906 7907 7908 7909
  then
    # Check whether --with-bcbuilder or --without-bcbuilder was given.
if test "${with_bcbuilder+set}" = set; then
  withval="$with_bcbuilder"
  :
fi

    if test "x$with_bcbuilder" != "x"
Sam Hocevar's avatar
 
Sam Hocevar committed
7910
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7911 7912 7913 7914
      BCBUILDER="$with_bcbuilder"
    fi
    PLUGINS="${PLUGINS} intfwin"
  fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
7915
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7916

Sam Hocevar's avatar
 
Sam Hocevar committed
7917 7918 7919 7920 7921 7922

# Check whether --enable-ncurses or --disable-ncurses was given.
if test "${enable_ncurses+set}" = set; then
  enableval="$enable_ncurses"
  if test x$enable_ncurses = xyes; then
     PLUGINS="${PLUGINS} ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7923
     ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7924
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7925
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7926

Sam Hocevar's avatar
 
Sam Hocevar committed
7927

7928 7929 7930 7931 7932 7933 7934 7935 7936 7937
# Check whether --enable-lirc or --disable-lirc was given.
if test "${enable_lirc+set}" = set; then
  enableval="$enable_lirc"
  :
fi

if test x$enable_lirc = xyes
then
  ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7938
echo "configure:7939: checking for lirc/lirc_client.h" >&5
7939 7940 7941 7942
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7943
#line 7944 "configure"
7944 7945 7946 7947
#include "confdefs.h"
#include <lirc/lirc_client.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7948
{ (eval echo configure:7949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7965
echo "configure:7966: checking for lirc_init in -llirc_client" >&5
7966 7967 7968 7969 7970 7971 7972
ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-llirc_client  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7973
#line 7974 "configure"
7974 7975 7976 7977 7978 7979 7980 7981 7982 7983
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char lirc_init();

int main() {
lirc_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7984
if { (eval echo configure:7985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  have_lirc="true"
else
  echo "$ac_t""no" 1>&6
have_lirc="false"
fi

else
  echo "$ac_t""no" 1>&6
have_lirc="false"
fi

  if test x$have_lirc = xtrue
  then
    PLUGINS="${PLUGINS} lirc"
Sam Hocevar's avatar
 
Sam Hocevar committed
8013
    lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8014 8015 8016
  fi
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029
# Check whether --with- or --without- was given.
if test "${with_+set}" = set; then
  withval="$with_"
  :
fi


# Check whether --with-words or --without-words was given.
if test "${with_words+set}" = set; then
  withval="$with_words"
  :
fi

8030
  case "x$with_words" in
Sam Hocevar's avatar
 
Sam Hocevar committed
8031 8032 8033 8034 8035 8036 8037 8038
    xbig)
      ac_cv_c_bigendian=yes
      ;;
    xlittle)
      ac_cv_c_bigendian=no
      ;;
    *)
                  echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
8039
echo "configure:8040: checking whether the byte order is big-endian" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8040
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8041 8042
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055
  ac_cv_c_bigendian=unknown
        cat >conftest.c <<EOF
        short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
        short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
        void _a(void) { char*s = (char*)am; s = (char *)ai; }
        short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
        short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
        void _e(void) { char*s = (char*)em; s = (char*)ei; }
        int main(void) { _a(); _e(); return 0; }
EOF
        
        if test -f conftest.c
        then 
Sam Hocevar's avatar
 
Sam Hocevar committed
8056
          if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
Sam Hocevar's avatar
 
Sam Hocevar committed
8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090
              && test -f conftest.o
          then
            if test "`strings conftest.o | grep BIGenDianSyS`"
            then
              ac_cv_c_bigendian=yes
            fi
            if test "`strings conftest.o | grep LiTTleEnDian`"
            then
              ac_cv_c_bigendian=no
            fi
          fi
        fi
      
fi

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
      if test x$ac_cv_c_bigendian = xunknown
      then
        { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
      fi
      ;;
  esac
if test $ac_cv_c_bigendian = yes
then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi

GPROF=0
# Check whether --enable-gprof or --disable-gprof was given.
if test "${enable_gprof+set}" = set; then
  enableval="$enable_gprof"
8091
   if test "x$enable_gprof" = "xyes"; then GPROF=1; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
8092 8093 8094 8095 8096 8097 8098
fi


CPROF=0
# Check whether --enable-cprof or --disable-cprof was given.
if test "${enable_cprof+set}" = set; then
  enableval="$enable_cprof"
8099
   if test "x$enable_cprof" = "xyes";
Sam Hocevar's avatar
 
Sam Hocevar committed
8100
  then
Sam Hocevar's avatar
 
Sam Hocevar committed
8101
    LDFLAGS="${LDFLAGS} -lcprof"
Sam Hocevar's avatar
 
Sam Hocevar committed
8102 8103 8104 8105 8106 8107 8108 8109 8110
    CPROF=1
  fi

fi


# Check whether --enable-pth or --disable-pth was given.
if test "${enable_pth+set}" = set; then
  enableval="$enable_pth"
8111
   if test "x$enable_pth" = "xyes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8112
    echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
8113
echo "configure:8114: checking for pth_init in -lpth" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8114 8115 8116 8117 8118 8119 8120
ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lpth  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8121
#line 8122 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
8122
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
8123 8124 8125 8126 8127 8128 8129 8130
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pth_init();

int main() {
pth_init()
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
8131
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8132
if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8133
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
8134
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
8135 8136
else
  echo "configure: failed program was:" >&5
Henri Fallon's avatar
 
Henri Fallon committed
8137
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8138
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
8139
  eval "ac_cv_lib_$ac_lib_var=no"
Henri Fallon's avatar
 
Henri Fallon committed
8140
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8141
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
8142 8143
LIBS="$ac_save_LIBS"

Henri Fallon's avatar
 
Henri Fallon committed
8144
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8145
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8146
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159
    ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lpth $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8160
#line 8161 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183
#include "confdefs.h"
#include <pth.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pth_init" >/dev/null 2>&1; then
  rm -rf conftest*
  
      cat >> confdefs.h <<\EOF
#define PTH_INIT_IN_PTH_H 1
EOF

    THREAD_LIB="-lpth"
    fi
fi
rm -f conftest*


fi


# Check whether --enable-st or --disable-st was given.
if test "${enable_st+set}" = set; then
  enableval="$enable_st"
8184
   if test "x$enable_st" = "xyes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8185
    echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
8186
echo "configure:8187: checking for st_init in -lst" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8187
ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
8188 8189
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Henri Fallon's avatar
 
Henri Fallon committed
8190
else
Sam Hocevar's avatar
 
Sam Hocevar committed
8191
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
8192
LIBS="-lst  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
8193
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8194
#line 8195 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
8195
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
8196 8197 8198 8199
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char st_init();
Henri Fallon's avatar
 
Henri Fallon committed
8200

Sam Hocevar's avatar
 
Sam Hocevar committed
8201
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
8202
st_init()
Sam Hocevar's avatar
 
Sam Hocevar committed
8203 8204
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8205
if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
8220 8221 8222 8223 8224 8225 8226
    ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lst $LIBS"
Henri Fallon's avatar
 
Henri Fallon committed
8227 8228

else
Sam Hocevar's avatar
 
Sam Hocevar committed
8229
  echo "$ac_t""no" 1>&6
Henri Fallon's avatar
 
Henri Fallon committed
8230
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8231

Sam Hocevar's avatar
 
Sam Hocevar committed
8232
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8233
#line 8234 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246
#include "confdefs.h"
#include <st.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "st_init" >/dev/null 2>&1; then
  rm -rf conftest*
  
      cat >> confdefs.h <<\EOF
#define ST_INIT_IN_ST_H 1
EOF

    THREAD_LIB="-lst"
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8247
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8248
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
8249

Sam Hocevar's avatar
 
Sam Hocevar committed
8250

8251 8252
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8253

Sam Hocevar's avatar
 
Sam Hocevar committed
8254
LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8255

8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266
# Check whether --enable-plugins or --disable-plugins was given.
if test "${enable_plugins+set}" = set; then
  enableval="$enable_plugins"
  if test x$enable_plugins = xno
   then
     BUILTINS="${BUILTINS} ${PLUGINS}"
     PLUGINS=
   fi
fi


Xavier Marchesini's avatar
 
Xavier Marchesini committed
8267
if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8268 8269 8270 8271 8272 8273 8274
then
  echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
  echo "as built-in"
  BUILTINS="${BUILTINS} ${PLUGINS}"
  PLUGINS=
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8275
cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8276
#define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
Sam Hocevar's avatar
 
Sam Hocevar committed
8277 8278 8279
EOF

cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8280
#define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
Sam Hocevar's avatar
 
Sam Hocevar committed
8281 8282 8283
EOF


Sam Hocevar's avatar
 
Sam Hocevar committed
8284
VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
Sam Hocevar's avatar
 
Sam Hocevar committed
8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298
cat >> confdefs.h <<EOF
#define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
EOF

cat >> confdefs.h <<EOF
#define MODULE_SYMBOL $VLC_SYMBOL
EOF


DATA_PATH="${ac_tool_prefix}/share/videolan"

PLUGIN_PATH="${ac_tool_prefix}/share/videolan"


8299

8300 8301 8302 8303 8304





Henri Fallon's avatar
 
Henri Fallon committed
8305 8306 8307



Christophe Massiot's avatar
Christophe Massiot committed
8308 8309 8310



Sam Hocevar's avatar
 
Sam Hocevar committed
8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324














Sam Hocevar's avatar
 
Sam Hocevar committed
8325

Sam Hocevar's avatar
 
Sam Hocevar committed
8326

Sam Hocevar's avatar
 
Sam Hocevar committed
8327 8328 8329 8330




Sam Hocevar's avatar
 
Sam Hocevar committed
8331

Sam Hocevar's avatar
 
Sam Hocevar committed
8332 8333


8334

Sam Hocevar's avatar
 
Sam Hocevar committed
8335

Sam Hocevar's avatar
 
Sam Hocevar committed
8336

Sam Hocevar's avatar
 
Sam Hocevar committed
8337

Sam Hocevar's avatar
 
Sam Hocevar committed
8338

Sam Hocevar's avatar
 
Sam Hocevar committed
8339

Sam Hocevar's avatar
 
Sam Hocevar committed
8340 8341 8342



Sam Hocevar's avatar
 
Sam Hocevar committed
8343

Sam Hocevar's avatar
 
Sam Hocevar committed
8344

Sam Hocevar's avatar
 
Sam Hocevar committed
8345

Sam Hocevar's avatar
 
Sam Hocevar committed
8346

Sam Hocevar's avatar
 
Sam Hocevar committed
8347

Sam Hocevar's avatar
 
Sam Hocevar committed
8348 8349


8350

Sam Hocevar's avatar
 
Sam Hocevar committed
8351

Sam Hocevar's avatar
 
Sam Hocevar committed
8352 8353 8354



8355 8356


Sam Hocevar's avatar
 
Sam Hocevar committed
8357 8358 8359



Stéphane Borel's avatar
Stéphane Borel committed
8360 8361 8362



8363

8364

8365

Sam Hocevar's avatar
 
Sam Hocevar committed
8366 8367 8368 8369 8370 8371 8372 8373 8374









8375

Sam Hocevar's avatar
 
Sam Hocevar committed
8376 8377


Sam Hocevar's avatar
 
Sam Hocevar committed
8378

Sam Hocevar's avatar
 
Sam Hocevar committed
8379

8380 8381


Sam Hocevar's avatar
 
Sam Hocevar committed
8382 8383


8384 8385


8386 8387


Sam Hocevar's avatar
 
Sam Hocevar committed
8388

Gildas Bazin's avatar
 
Gildas Bazin committed
8389

8390

Sam Hocevar's avatar
 
Sam Hocevar committed
8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436

trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
8437
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8438
rm -f confcache
8439

Sam Hocevar's avatar
 
Sam Hocevar committed
8440
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
Sam Hocevar's avatar
 
Sam Hocevar committed
8441

Sam Hocevar's avatar
 
Sam Hocevar committed
8442 8443 8444
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8445

Sam Hocevar's avatar
 
Sam Hocevar committed
8446 8447 8448 8449 8450 8451 8452 8453 8454 8455
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H
8456

Sam Hocevar's avatar
 
Sam Hocevar committed
8457 8458
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
8459

Sam Hocevar's avatar
 
Sam Hocevar committed
8460 8461 8462 8463 8464 8465 8466 8467
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8468
#
Sam Hocevar's avatar
 
Sam Hocevar committed
8469
# $0 $ac_configure_args
8470
#
Sam Hocevar's avatar
 
Sam Hocevar committed
8471 8472
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
8473

Sam Hocevar's avatar
 
Sam Hocevar committed
8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
Sam Hocevar's avatar
 
Sam Hocevar committed
8492

Sam Hocevar's avatar
 
Sam Hocevar committed
8493
trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8494
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8495
cat >> $CONFIG_STATUS <<EOF
8496

Sam Hocevar's avatar
 
Sam Hocevar committed
8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
8530 8531 8532 8533 8534 8535 8536 8537 8538 8539
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8540 8541 8542 8543
s%@SET_MAKE@%$SET_MAKE%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@RANLIB@%$RANLIB%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8544
s%@STRIP@%$STRIP%g
Christophe Massiot's avatar
Christophe Massiot committed
8545
s%@GMAKE@%$GMAKE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567
s%@ALLOCA@%$ALLOCA%g
s%@GLIBC21@%$GLIBC21%g
s%@LIBICONV@%$LIBICONV%g
s%@USE_NLS@%$USE_NLS%g
s%@MSGFMT@%$MSGFMT%g
s%@GMSGFMT@%$GMSGFMT%g
s%@XGETTEXT@%$XGETTEXT%g
s%@INTLBISON@%$INTLBISON%g
s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
s%@CATALOGS@%$CATALOGS%g
s%@CATOBJEXT@%$CATOBJEXT%g
s%@GMOFILES@%$GMOFILES%g
s%@INTLLIBS@%$INTLLIBS%g
s%@INTLOBJS@%$INTLOBJS%g
s%@POFILES@%$POFILES%g
s%@POSUB@%$POSUB%g
s%@DATADIRNAME@%$DATADIRNAME%g
s%@INSTOBJEXT@%$INSTOBJEXT%g
s%@GENCAT@%$GENCAT%g
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8568 8569 8570
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
8571
s%@WINDRES@%$WINDRES%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8572
s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8573 8574
s%@SDL11_CONFIG@%$SDL11_CONFIG%g
s%@SDL_CONFIG@%$SDL_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8575 8576
s%@ESD_CONFIG@%$ESD_CONFIG%g
s%@ARTS_CONFIG@%$ARTS_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8577
s%@GTK12_CONFIG@%$GTK12_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8578
s%@GTK_CONFIG@%$GTK_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8579
s%@GNOME_CONFIG@%$GNOME_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8580 8581
s%@DATA_PATH@%$DATA_PATH%g
s%@PLUGIN_PATH@%$PLUGIN_PATH%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8582 8583 8584 8585 8586 8587
s%@SYS@%$SYS%g
s%@ARCH@%$ARCH%g
s%@PLUGINS@%$PLUGINS%g
s%@BUILTINS@%$BUILTINS%g
s%@ALIASES@%$ALIASES%g
s%@DEBUG@%$DEBUG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8588
s%@ASM@%$ASM%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8589 8590
s%@CPROF@%$CPROF%g
s%@GPROF@%$GPROF%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8591
s%@OPTIMS@%$OPTIMS%g
8592
s%@TUNING@%$TUNING%g
8593
s%@RELEASE@%$RELEASE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8594
s%@MOC@%$MOC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8595
s%@BCBUILDER@%$BCBUILDER%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8596 8597
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8598
s%@NEED_GETOPT@%$NEED_GETOPT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8599 8600
s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8601 8602 8603
s%@vlc_CFLAGS@%$vlc_CFLAGS%g
s%@plugins_CFLAGS@%$plugins_CFLAGS%g
s%@builtins_CFLAGS@%$builtins_CFLAGS%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8604
s%@a52_CFLAGS@%$a52_CFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8605 8606 8607
s%@arts_CFLAGS@%$arts_CFLAGS%g
s%@dvd_CFLAGS@%$dvd_CFLAGS%g
s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8608
s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8609 8610
s%@directx_CFLAGS@%$directx_CFLAGS%g
s%@esd_CFLAGS@%$esd_CFLAGS%g
8611
s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637
s%@glide_CFLAGS@%$glide_CFLAGS%g
s%@gnome_CFLAGS@%$gnome_CFLAGS%g
s%@gtk_CFLAGS@%$gtk_CFLAGS%g
s%@kde_CFLAGS@%$kde_CFLAGS%g
s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
s%@macosx_CFLAGS@%$macosx_CFLAGS%g
s%@mad_CFLAGS@%$mad_CFLAGS%g
s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
s%@qt_CFLAGS@%$qt_CFLAGS%g
s%@sdl_CFLAGS@%$sdl_CFLAGS%g
s%@x11_CFLAGS@%$x11_CFLAGS%g
s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
s%@a52_LDFLAGS@%$a52_LDFLAGS%g
s%@aa_LDFLAGS@%$aa_LDFLAGS%g
s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
s%@arts_LDFLAGS@%$arts_LDFLAGS%g
s%@beos_LDFLAGS@%$beos_LDFLAGS%g
s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
s%@directx_LDFLAGS@%$directx_LDFLAGS%g
s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8638
s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8639 8640
s%@esd_LDFLAGS@%$esd_LDFLAGS%g
s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8641
s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666
s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
s%@glide_LDFLAGS@%$glide_LDFLAGS%g
s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
s%@kde_LDFLAGS@%$kde_LDFLAGS%g
s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
s%@mad_LDFLAGS@%$mad_LDFLAGS%g
s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
s%@qt_LDFLAGS@%$qt_LDFLAGS%g
s%@rc_LDFLAGS@%$rc_LDFLAGS%g
s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
s%@x11_LDFLAGS@%$x11_LDFLAGS%g
s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692

CEOF
EOF

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
Sam Hocevar's avatar
 
Sam Hocevar committed
8693
    else
Sam Hocevar's avatar
 
Sam Hocevar committed
8694
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8695
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8696 8697 8698
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
8699
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8700 8701 8702 8703 8704
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
8705

Sam Hocevar's avatar
 
Sam Hocevar committed
8706 8707
cat >> $CONFIG_STATUS <<EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8708
CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8709
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8710 8711
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8712
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
8713 8714 8715 8716
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
8717 8718
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8719
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Sam Hocevar's avatar
 
Sam Hocevar committed
8720

Sam Hocevar's avatar
 
Sam Hocevar committed
8721 8722 8723 8724 8725 8726
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8727
    # A "../" for each directory in $ac_dir_suffix.
Sam Hocevar's avatar
 
Sam Hocevar committed
8728
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8729 8730 8731 8732
  else
    ac_dir_suffix= ac_dots=
  fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8733 8734 8735 8736 8737
  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8738
  *) # Relative path.
Sam Hocevar's avatar
 
Sam Hocevar committed
8739 8740
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
8741 8742
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8743 8744 8745
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8746 8747
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8748 8749 8750 8751 8752 8753 8754 8755
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
8756

Sam Hocevar's avatar
 
Sam Hocevar committed
8757 8758 8759 8760 8761 8762 8763 8764 8765
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
8766 8767 8768 8769 8770

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
Sam Hocevar's avatar
 
Sam Hocevar committed
8771 8772 8773 8774 8775 8776 8777
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
8778
ac_uC=' '
Sam Hocevar's avatar
 
Sam Hocevar committed
8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/defs.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8794
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
8795 8796 8797 8798
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
8799 8800
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8801 8802 8803 8804 8805
  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
8806 8807 8808

EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
8820
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8821 8822
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
8823 8824 8825 8826

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
Sam Hocevar's avatar
 
Sam Hocevar committed
8827 8828
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8829 8830
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8831 8832
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
8833 8834

rm -f conftest.tail
Sam Hocevar's avatar
 
Sam Hocevar committed
8835
while :
8836
do
Sam Hocevar's avatar
 
Sam Hocevar committed
8837 8838 8839 8840 8841 8842
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8843
  echo 'CEOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8844 8845 8846 8847 8848 8849 8850
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
8851
done
Sam Hocevar's avatar
 
Sam Hocevar committed
8852 8853 8854 8855 8856 8857 8858 8859 8860 8861
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
8862
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
8863 8864
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8865
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8866 8867
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
8868
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8869 8870
    rm -f $ac_file
    mv conftest.h $ac_file
8871
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8872 8873
fi; done

8874
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8875
cat >> $CONFIG_STATUS <<EOF
8876

Sam Hocevar's avatar
 
Sam Hocevar committed
8877

Sam Hocevar's avatar
 
Sam Hocevar committed
8878 8879
EOF
cat >> $CONFIG_STATUS <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908
for ac_file in $CONFIG_FILES; do
        # Support "outfile[:infile[:infile...]]"
        case "$ac_file" in
          *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
        esac
        # PO directories have a Makefile.in generated from Makefile.in.in.
        case "$ac_file" in */Makefile.in)
          # Adjust a relative srcdir.
          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
          ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
          # In autoconf-2.13 it is called $ac_given_srcdir.
          # In autoconf-2.50 it is called $srcdir.
          test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
          case "$ac_given_srcdir" in
            .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
            /*) top_srcdir="$ac_given_srcdir" ;;
            *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
          esac
          if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
            rm -f "$ac_dir/POTFILES"
            test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
            sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
            test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
            sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
          fi
          ;;
        esac
      done
8909

Sam Hocevar's avatar
 
Sam Hocevar committed
8910
exit 0
8911 8912
EOF
chmod +x $CONFIG_STATUS
Sam Hocevar's avatar
 
Sam Hocevar committed
8913 8914 8915
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

8916

8917
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8918
vlc configuration
Sam Hocevar's avatar
 
Sam Hocevar committed
8919
--------------------
Sam Hocevar's avatar
 
Sam Hocevar committed
8920
vlc version           : ${VERSION}
Sam Hocevar's avatar
 
Sam Hocevar committed
8921 8922
system                : ${SYS}
architecture          : ${ARCH}
8923
optimizations         : ${OPTIMS}
Sam Hocevar's avatar
 
Sam Hocevar committed
8924
tuning                : ${TUNING}
8925
debug mode            : ${DEBUG}
Sam Hocevar's avatar
 
Sam Hocevar committed
8926
release               : ${RELEASE}
Sam Hocevar's avatar
 
Sam Hocevar committed
8927
cprof/gprof support   : ${CPROF}/${GPROF}
Sam Hocevar's avatar
 
Sam Hocevar committed
8928
need builtin getopt   : ${NEED_GETOPT}
Sam Hocevar's avatar
 
Sam Hocevar committed
8929
built-in modules      :${BUILTINS}
8930
plug-in modules       :${PLUGINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
8931
vlc aliases           :${ALIASES}
Sam Hocevar's avatar
 
Sam Hocevar committed
8932

Sam Hocevar's avatar
 
Sam Hocevar committed
8933 8934
You may now tune Makefile.opts at your convenience, for instance to choose
which modules get compiled as plugins.
Sam Hocevar's avatar
 
Sam Hocevar committed
8935 8936

To build vlc and its plugins, type \`$VLC_MAKE'.
Sam Hocevar's avatar
 
Sam Hocevar committed
8937
"
8938