configure 236 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 21
ac_help="$ac_help
  --with-words=endianness Set endianness (big or little)"
Sam Hocevar's avatar
 
Sam Hocevar committed
22
ac_help="$ac_help
23 24
  --with-tuning=[arch]    Enable special tuning for an architecture
                          (default i686 on IA-32 and 750 on PPC)"
25 26
ac_help="$ac_help
  --enable-release        Activate extra optimizations (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
27
ac_help="$ac_help
28
  --disable-altivec       Disable altivec optimizations (default enabled on PPC)"
Sam Hocevar's avatar
 
Sam Hocevar committed
29 30 31 32
ac_help="$ac_help
  --enable-debug          Enable debug mode (default disabled)"
ac_help="$ac_help
  --enable-trace          Enable trace mode (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
33
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
34 35 36
  --enable-gprof          Enable gprof profiling (default disabled)"
ac_help="$ac_help
  --enable-cprof          Enable cprof profiling (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
37 38
ac_help="$ac_help
  --disable-optimizations Disable compiler optimizations (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
39 40
ac_help="$ac_help
  --enable-pth            Enable GNU Pth support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
41
ac_help="$ac_help
42 43 44 45
  --with-dvdcss[=name]    way to use libdvdcss, either 'yes' or 'no',
                          or 'local-static', 'local-shared', or a path to
                          another libdvdcss such as '/usr/local'
                          (default 'local-static')"
Stéphane Borel's avatar
Stéphane Borel committed
46
ac_help="$ac_help
47 48
  --with-dvdread[=name]   way to use libdvdread,
                          same options as --with-dvdcss (default no)"
49
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
50
  --enable-vcd            VCD support for Linux (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
51 52 53 54 55
ac_help="$ac_help
  --disable-dummy         dummy module (default enabled)"
ac_help="$ac_help
  --disable-null          Null module (default enabled)"
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
56
  --disable-rc            Remote Control module (default enabled)"
57
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
58
  --with-mad[=PATH]       libmad module (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
59 60 61 62
ac_help="$ac_help
  --disable-dsp           Linux /dev/dsp support (default enabled)"
ac_help="$ac_help
  --enable-esd            Esound library support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
63 64
ac_help="$ac_help
  --enable-arts           aRts sound server (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
65
ac_help="$ac_help
66
  --enable-macosx         MacOS X support (default enabled on MacOS X)"
67
ac_help="$ac_help
68
  --disable-qnx           QNX RTOS support (default enabled on QNX RTOS)"
Gildas Bazin's avatar
 
Gildas Bazin committed
69
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
70
  --disable-a52           AC3 support with liba52 (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
71 72
ac_help="$ac_help
  --enable-fb             Linux framebuffer support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
73 74
ac_help="$ac_help
  --enable-mga            Linux kernel Matrox support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
75 76 77
ac_help="$ac_help
  --with-ggi[=name]       GGI support (default disabled)"
ac_help="$ac_help
78
  --disable-sdl           SDL support (default enabled)"
79 80
ac_help="$ac_help
  --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
Sam Hocevar's avatar
 
Sam Hocevar committed
81
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
82
  --disable-directx       Win32 DirectX support (default enabled on Win32)"
Xavier Marchesini's avatar
 
Xavier Marchesini committed
83
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
84
  --with-directx-path=path Win32 DirectX headers and libraries"
Sam Hocevar's avatar
 
Sam Hocevar committed
85
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
86 87 88
  --disable-waveout       Win32 waveOut module (default enabled on Win32)"
ac_help="$ac_help
  --enable-win32          Win32 interface support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
89 90 91 92 93 94 95 96 97 98 99 100
ac_help="$ac_help
  --with-glide[=name]     Glide (3dfx) support (default disabled)"
ac_help="$ac_help
  --enable-ncurses        ncurses interface support (default disabled)"
ac_help="$ac_help
  --enable-qt             Qt interface support (default disabled)"
ac_help="$ac_help
  --enable-kde            KDE interface support (default disabled)"
ac_help="$ac_help
  --enable-gnome          Gnome interface support (default disabled)"
ac_help="$ac_help
  --disable-gtk           Gtk+ support (default enabled)"
101 102
ac_help="$ac_help
  --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
Sam Hocevar's avatar
 
Sam Hocevar committed
103 104 105 106
ac_help="$ac_help
  --disable-x11           X11 support (default enabled)"
ac_help="$ac_help
  --disable-xvideo        XVideo support (default enabled)"
107 108
ac_help="$ac_help
  --enable-lirc           lirc support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
109
ac_help="$ac_help
110 111
  --enable-alsa           Alsa sound drivers support (Only for linux)
                          (default disabled)"
112 113
ac_help="$ac_help
  --disable-plugins       Make all plug-ins built-in (default plug-ins enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
114 115
ac_help="$ac_help
  --with-dll-path=path    Path to Win32 DLLs (default search in \$PWD)"
116 117 118 119

# 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
120 121
build=NONE
cache_file=./config.cache
122
exec_prefix=NONE
Sam Hocevar's avatar
 
Sam Hocevar committed
123
host=NONE
124
no_create=
Sam Hocevar's avatar
 
Sam Hocevar committed
125
nonopt=NONE
126 127 128 129 130 131 132 133
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
134
target=NONE
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
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
151 152 153 154 155 156
# 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
157 158 159 160

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

162 163 164 165 166 167 168
  # 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
169 170 171 172
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
173 174 175

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

Sam Hocevar's avatar
 
Sam Hocevar committed
176
  case "$ac_option" in
177 178 179 180

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
181
    bindir="$ac_optarg" ;;
182 183

  -build | --build | --buil | --bui | --bu)
Sam Hocevar's avatar
 
Sam Hocevar committed
184
    ac_prev=build ;;
185
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
186
    build="$ac_optarg" ;;
187 188 189 190 191 192

  -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
193
    cache_file="$ac_optarg" ;;
194 195 196 197 198

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
199
    datadir="$ac_optarg" ;;
200 201

  -disable-* | --disable-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
202
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
203
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
204 205 206 207 208
    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" ;;
209 210

  -enable-* | --enable-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
211
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
212
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
213 214 215 216 217 218
    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
      *=*) ;;
219 220
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
 
Sam Hocevar committed
221
    eval "enable_${ac_feature}='$ac_optarg'" ;;
222 223 224 225 226 227 228 229

  -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
230
    exec_prefix="$ac_optarg" ;;
231 232 233 234 235

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

Sam Hocevar's avatar
 
Sam Hocevar committed
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
  -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 ;;
290 291

  -host | --host | --hos | --ho)
Sam Hocevar's avatar
 
Sam Hocevar committed
292
    ac_prev=host ;;
293
  -host=* | --host=* | --hos=* | --ho=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
294
    host="$ac_optarg" ;;
295 296 297 298 299 300

  -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
301
    includedir="$ac_optarg" ;;
302 303 304 305

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
306
    infodir="$ac_optarg" ;;
307 308 309 310

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
311
    libdir="$ac_optarg" ;;
312 313 314 315 316 317

  -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
318
    libexecdir="$ac_optarg" ;;
319 320 321 322 323 324 325 326

  -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
327
    localstatedir="$ac_optarg" ;;
328 329 330 331

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
332
    mandir="$ac_optarg" ;;
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352

  -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
353
    oldincludedir="$ac_optarg" ;;
354 355 356 357

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
358
    prefix="$ac_optarg" ;;
359 360 361 362 363 364

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

  -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
372
    program_suffix="$ac_optarg" ;;
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388

  -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
389
    program_transform_name="$ac_optarg" ;;
390 391 392 393 394 395 396 397 398

  -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
399
    sbindir="$ac_optarg" ;;
400 401 402 403 404 405 406 407 408 409

  -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
410
    sharedstatedir="$ac_optarg" ;;
411 412 413 414

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
415
    site="$ac_optarg" ;;
416 417 418 419

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
420
    srcdir="$ac_optarg" ;;
421 422 423 424 425 426

  -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
427
    sysconfdir="$ac_optarg" ;;
428 429

  -target | --target | --targe | --targ | --tar | --ta | --t)
Sam Hocevar's avatar
 
Sam Hocevar committed
430
    ac_prev=target ;;
431
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
432
    target="$ac_optarg" ;;
433 434 435 436

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

Sam Hocevar's avatar
 
Sam Hocevar committed
437 438 439
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
440 441

  -with-* | --with-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
442
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
443
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
444 445 446
    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
447
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Sam Hocevar's avatar
 
Sam Hocevar committed
448 449
    case "$ac_option" in
      *=*) ;;
450 451
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
 
Sam Hocevar committed
452
    eval "with_${ac_package}='$ac_optarg'" ;;
453 454

  -without-* | --without-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
455
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
456
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
457 458 459 460 461
    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" ;;
462 463 464 465 466 467 468 469 470 471

  --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
472
    x_includes="$ac_optarg" ;;
473 474 475 476 477 478

  -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
479
    x_libraries="$ac_optarg" ;;
480

Sam Hocevar's avatar
 
Sam Hocevar committed
481
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482 483 484
    ;;

  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
485 486 487 488 489 490 491
    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"
492 493 494 495 496 497
    ;;

  esac
done

if test -n "$ac_prev"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514
  { 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
515
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
516 517 518 519 520 521
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
522

Sam Hocevar's avatar
 
Sam Hocevar committed
523 524 525 526
# 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
527
do
Sam Hocevar's avatar
 
Sam Hocevar committed
528 529 530 531 532 533 534 535
  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" ;;
536 537 538
  esac
done

Sam Hocevar's avatar
 
Sam Hocevar committed
539 540 541 542 543 544 545 546 547
# 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
548

Sam Hocevar's avatar
 
Sam Hocevar committed
549 550 551 552
# 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
553

Sam Hocevar's avatar
 
Sam Hocevar committed
554 555
# 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
556
ac_unique_file=include/main.h
557 558 559 560 561 562

# 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
563
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
564 565 566 567 568 569 570 571 572 573
  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
574
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
575
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
576
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
577 578
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
579
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
580 581 582 583 584 585 586 587 588 589 590

# 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
591
    echo "loading site script $ac_site_file"
592 593 594 595 596
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
597 598
  echo "loading cache $cache_file"
  . $cache_file
599
else
Sam Hocevar's avatar
 
Sam Hocevar committed
600 601
  echo "creating cache $cache_file"
  > $cache_file
602 603 604
fi

ac_ext=c
Sam Hocevar's avatar
 
Sam Hocevar committed
605
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
606
ac_cpp='$CPP $CPPFLAGS'
Sam Hocevar's avatar
 
Sam Hocevar committed
607 608 609 610 611 612 613 614 615 616 617 618 619 620
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
621
else
Sam Hocevar's avatar
 
Sam Hocevar committed
622
  ac_n= ac_c='\c' ac_t=
623 624
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
625 626


627

628 629 630 631 632 633 634 635 636 637 638 639 640
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
641
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
642
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
643 644 645 646
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.

647

648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
# 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


669
# Make sure we can run config.sub.
Sam Hocevar's avatar
 
Sam Hocevar committed
670 671 672 673 674
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
675
echo "configure:676: checking host system type" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694

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

695
echo $ac_n "checking target system type""... $ac_c" 1>&6
696
echo "configure:697: checking target system type" >&5
697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713

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
714
echo "configure:715: checking build system type" >&5
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735

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

736

Sam Hocevar's avatar
 
Sam Hocevar committed
737 738 739
HAVE_VLC=0
if test -r src/interface/main.c; then
  HAVE_VLC=1
740
  VLC_VERSION="0.2.92-dev"
Sam Hocevar's avatar
 
Sam Hocevar committed
741 742
  VLC_CODENAME=Ourumov
fi
743

Sam Hocevar's avatar
 
Sam Hocevar committed
744 745 746
HAVE_LIBDVDCSS=0
if test -r extras/libdvdcss/libdvdcss.c; then
  HAVE_LIBDVDCSS=1
747
  LIBDVDCSS_VERSION="1.0.1-dev"
Sam Hocevar's avatar
 
Sam Hocevar committed
748
  
749 750 751 752 753 754
  if test -r extras/libdvdcss/csskeys.h; then
    cat >> confdefs.h <<\EOF
#define HAVE_CSSKEYS 1
EOF

  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
755
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
756

Sam Hocevar's avatar
 
Sam Hocevar committed
757
save_CFLAGS="${CFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
758
save_LDFLAGS="${LDFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
759

Sam Hocevar's avatar
 
Sam Hocevar committed
760
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
761
echo "configure:762: checking whether ${MAKE-make} sets \${MAKE}" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
762 763 764
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
765
else
Sam Hocevar's avatar
 
Sam Hocevar committed
766
  cat > conftestmake <<\EOF
767 768 769 770
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Sam Hocevar's avatar
 
Sam Hocevar committed
771
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
772 773 774 775 776
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
777
rm -f conftestmake
778 779
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
780
  echo "$ac_t""yes" 1>&6
781 782
  SET_MAKE=
else
Sam Hocevar's avatar
 
Sam Hocevar committed
783
  echo "$ac_t""no" 1>&6
784 785 786
  SET_MAKE="MAKE=${MAKE-make}"
fi

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

Sam Hocevar's avatar
 
Sam Hocevar committed
865 866 867 868 869 870
  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
871
echo "configure:872: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
872 873
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
874 875 876 877
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
878 879 880 881 882 883 884 885 886 887
  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"
888 889
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
890
CC="$ac_cv_prog_CC"
891
if test -n "$CC"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
892
  echo "$ac_t""$CC" 1>&6
893
else
Sam Hocevar's avatar
 
Sam Hocevar committed
894
  echo "$ac_t""no" 1>&6
895
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
896 897 898 899
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900 901
fi

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

Sam Hocevar's avatar
 
Sam Hocevar committed
905 906 907 908 909 910
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
911

Sam Hocevar's avatar
 
Sam Hocevar committed
912
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
913

914
#line 915 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
915 916
#include "confdefs.h"

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

Sam Hocevar's avatar
 
Sam Hocevar committed
966
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
967

Sam Hocevar's avatar
 
Sam Hocevar committed
968 969
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
970
else
Sam Hocevar's avatar
 
Sam Hocevar committed
971
  GCC=
Sam Hocevar's avatar
 
Sam Hocevar committed
972 973
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
974 975 976 977
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
978
echo "configure:979: checking whether ${CC-cc} accepts -g" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
979 980
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
981
else
Sam Hocevar's avatar
 
Sam Hocevar committed
982 983
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
984 985
  ac_cv_prog_cc_g=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
986
  ac_cv_prog_cc_g=no
Sam Hocevar's avatar
 
Sam Hocevar committed
987
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
988 989
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
990
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
991 992

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
993
if test "$ac_test_CFLAGS" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
994
  CFLAGS="$ac_save_CFLAGS"
995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
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
1008

Sam Hocevar's avatar
 
Sam Hocevar committed
1009
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010
echo "configure:1011: checking how to run the C preprocessor" >&5
1011 1012 1013 1014 1015
# 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
1016 1017 1018 1019 1020 1021
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"
1022
  # On the NeXT, cc -E runs the code through the compiler's parser,
Sam Hocevar's avatar
 
Sam Hocevar committed
1023 1024
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
1025
#line 1026 "configure"
1026 1027
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
1028 1029 1030
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031
{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1032 1033
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
1034 1035
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1036 1037
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1038
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1039 1040 1041
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
1042
#line 1043 "configure"
1043
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
1044 1045 1046 1047
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048
{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1049 1050 1051
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
1052
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1053 1054
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1055
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1056 1057 1058
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
1059
#line 1060 "configure"
1060 1061
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
1062 1063 1064
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065
{ (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1066 1067
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
1068 1069
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1070 1071
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1072
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1073 1074
  rm -rf conftest*
  CPP=/lib/cpp
1075
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1076
rm -f conftest*
1077
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1078
rm -f conftest*
1079
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1080 1081 1082
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1083 1084 1085 1086 1087 1088 1089
  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
1090 1091 1092 1093 1094 1095 1096 1097 1098
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
1099
echo "configure:1100: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130
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
1131
echo "configure:1132: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163
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
1164
ALL_LINGUAS="de fr ru"
Sam Hocevar's avatar
Sam Hocevar committed
1165

Sam Hocevar's avatar
 
Sam Hocevar committed
1166
cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1167
#define PACKAGE "vlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
1168 1169 1170
EOF

cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1171
#define VERSION "$VLC_VERSION"
Sam Hocevar's avatar
 
Sam Hocevar committed
1172 1173 1174 1175 1176
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
1177
echo "configure:1178: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205
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
1206
echo "configure:1207: checking for strerror in -lcposix" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1207 1208 1209 1210 1211 1212 1213
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
1214
#line 1215 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
#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
1225
if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247
  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
1248
echo "configure:1249: checking for ANSI C header files" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1249 1250 1251 1252
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
1253
#line 1254 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1254 1255 1256 1257 1258 1259 1260
#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"
1261
{ (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277
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
1278
#line 1279 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295
#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
1296
#line 1297 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316
#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
1317
#line 1318 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327
#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
1328
if { (eval echo configure:1329: \"$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
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351
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
1352
echo "configure:1353: checking for working const" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1353 1354 1355 1356
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
1357
#line 1358 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
#include "confdefs.h"

int main() {

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

  *t++ = 0;
}
{ /* 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
1406
if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426
  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
1427
echo "configure:1428: checking for inline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1428 1429 1430 1431 1432 1433
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
1434
#line 1435 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1435 1436 1437 1438 1439 1440
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
1441
if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466
  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
1467
echo "configure:1468: checking for off_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1468 1469 1470 1471
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
1472
#line 1473 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499
#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
1500
echo "configure:1501: checking for size_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1501 1502 1503 1504
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
1505
#line 1506 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1506 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
#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
1535
echo "configure:1536: checking for working alloca.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1536 1537 1538 1539
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
1540
#line 1541 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1541 1542 1543 1544 1545 1546
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
1547
if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567
  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
1568
echo "configure:1569: checking for alloca" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1569 1570 1571 1572
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
1573
#line 1574 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600
#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
1601
if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632
  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
1633
echo "configure:1634: checking whether alloca needs Cray hooks" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1634 1635 1636 1637
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
1638
#line 1639 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662
#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
1663
echo "configure:1664: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1664 1665 1666 1667
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
1668
#line 1669 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690
#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
1691
if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717
  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
1718
echo "configure:1719: checking stack direction for C alloca" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1719 1720 1721 1722 1723 1724 1725
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
1726
#line 1727 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744
#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
1745
if { (eval echo configure:1746: \"$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
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769
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
1770
echo "configure:1771: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1771 1772 1773 1774
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
1775
#line 1776 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1776 1777 1778 1779
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1780
{ (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808
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
1809
echo "configure:1810: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1810 1811 1812 1813
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
1814
#line 1815 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836
#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
1837
if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861
  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
1862
echo "configure:1863: checking for working mmap" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1863 1864 1865 1866 1867 1868 1869
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
1870
#line 1871 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 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 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009
#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
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif

/* 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.
	 */
	data = malloc(pagesize);
	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);
	data2 = malloc(2 * pagesize);
	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;
	data3 = malloc(pagesize);
	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
2010
if { (eval echo configure:2011: \"$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
2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033
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
2034
echo "configure:2035: checking whether we are using the GNU C Library 2.1 or newer" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2035 2036 2037 2038
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
2039
#line 2040 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2040 2041 2042 2043 2044 2045 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
#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
2075
echo "configure:2076: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2076 2077 2078 2079
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
2080
#line 2081 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2081 2082 2083 2084
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2085
{ (eval echo configure:2086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115
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
2116
echo "configure:2117: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2117 2118 2119 2120
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
2121
#line 2122 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143
#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
2144
if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183
  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
2184
echo "configure:2185: checking for iconv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2185 2186 2187 2188 2189 2190 2191
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
2192
#line 2193 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2193 2194 2195 2196 2197 2198 2199 2200 2201
#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
2202
if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213
  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
2214
#line 2215 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2215 2216 2217 2218 2219 2220 2221 2222 2223
#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
2224
if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244
  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
2245
echo "configure:2246: checking for iconv declaration" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2246 2247 2248 2249 2250
    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
2251
#line 2252 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269
#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
2270
if { (eval echo configure:2271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298
  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
2299
echo "configure:2300: checking for nl_langinfo and CODESET" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2300 2301 2302 2303
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
2304
#line 2305 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2305 2306 2307 2308 2309 2310
#include "confdefs.h"
#include <langinfo.h>
int main() {
char* cs = nl_langinfo(CODESET);
; return 0; }
EOF
2311
if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333
  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
2334
echo "configure:2335: checking for LC_MESSAGES" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2335 2336 2337 2338
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
2339
#line 2340 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2340 2341 2342 2343 2344 2345
#include "confdefs.h"
#include <locale.h>
int main() {
return LC_MESSAGES
; return 0; }
EOF
2346
if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366
  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
2367
echo "configure:2368: checking whether NLS is requested" >&5
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 2388
        # 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
2389
echo "configure:2390: checking whether included gettext is requested" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408
      # 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
2409
echo "configure:2410: checking for libintl.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2410 2411 2412 2413
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
2414
#line 2415 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2415 2416 2417 2418
#include "confdefs.h"
#include <libintl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2419
{ (eval echo configure:2420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435
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
2436
echo "configure:2437: checking for GNU gettext in libc" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2437 2438 2439 2440
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
2441
#line 2442 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2442 2443 2444 2445 2446 2447 2448 2449
#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
2450
if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465
  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
2466
echo "configure:2467: checking for GNU gettext in libintl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2467 2468 2469 2470 2471 2472
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
2473
#line 2474 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2474 2475 2476 2477 2478 2479 2480 2481
#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
2482
if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514
  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
2515
echo "configure:2516: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2516 2517 2518 2519
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
2520
#line 2521 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542
#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
2543
if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571
  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
2572
echo "configure:2573: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605
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
2606
echo "configure:2607: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642
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
2643
echo "configure:2644: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669
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
2670
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2671
  echo "$ac_t""no" 1>&6
2672 2673
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2674 2675 2676 2677

	     CATOBJEXT=.gmo
	   fi
	
2678
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2679
  echo "$ac_t""no" 1>&6
2680 2681
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2682 2683 2684 2685 2686 2687 2688 2689 2690 2691

        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
2692
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2693
echo "configure:2694: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2694
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2695 2696
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726
  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
2727
echo "configure:2728: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2728 2729
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2730
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2731 2732 2733 2734 2735 2736 2737 2738
  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.
  ;;
  *)
2739 2740
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
Sam Hocevar's avatar
 
Sam Hocevar committed
2741
  for ac_dir in $ac_dummy; do 
2742 2743
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2744
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2745 2746 2747 2748
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
2749 2750 2751
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
esac
2752
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2753 2754 2755 2756 2757
GMSGFMT="$ac_cv_path_GMSGFMT"
if test -n "$GMSGFMT"; then
  echo "$ac_t""$GMSGFMT" 1>&6
else
  echo "$ac_t""no" 1>&6
2758
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2759 2760 2761 2762

        # 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
2763
echo "configure:2764: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789
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
2790 2791 2792 2793
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2794 2795 2796 2797 2798 2799 2800
        
	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
2801

Sam Hocevar's avatar
 
Sam Hocevar committed
2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832
                  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
2833
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834
echo "configure:2835: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2835
if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2836
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2837
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2838 2839
  if test -n "$INTLBISON"; then
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
Sam Hocevar's avatar
 
Sam Hocevar committed
2840
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2841 2842 2843 2844 2845
  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
2846
      ac_cv_prog_INTLBISON="$ac_prog"
Sam Hocevar's avatar
 
Sam Hocevar committed
2847 2848 2849 2850
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
2851 2852
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2853 2854 2855
INTLBISON="$ac_cv_prog_INTLBISON"
if test -n "$INTLBISON"; then
  echo "$ac_t""$INTLBISON" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2856
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2857
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2858 2859
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2860 2861 2862 2863 2864 2865 2866
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
2867
echo "configure:2868: checking version of bison" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913
      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
2914
echo "configure:2915: checking for catalogs to be installed" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948
       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
   
2949

Sam Hocevar's avatar
 
Sam Hocevar committed
2950 2951 2952
      INTL_LIBTOOL_SUFFIX_PREFIX=
   
  
2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964

# 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
2965
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2966
echo "configure:2967: checking for a BSD compatible install" >&5
2967
if test -z "$INSTALL"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2968 2969
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2970
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2971
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
2972 2973
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
Sam Hocevar's avatar
 
Sam Hocevar committed
2974 2975
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2976 2977 2978 2979 2980
    *)
      # 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
2981
        if test -f $ac_dir/$ac_prog; then
2982
	  if test $ac_prog = install &&
Sam Hocevar's avatar
 
Sam Hocevar committed
2983
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
	    # 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
2995
  IFS="$ac_save_IFS"
2996 2997 2998

fi
  if test "${ac_cv_path_install+set}" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2999
    INSTALL="$ac_cv_path_install"
3000 3001 3002 3003 3004
  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
3005
    INSTALL="$ac_install_sh"
3006 3007
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3008
echo "$ac_t""$INSTALL" 1>&6
3009 3010 3011 3012 3013

# 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
3014
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3015 3016 3017

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3018

Sam Hocevar's avatar
 
Sam Hocevar committed
3019
# Check whether --with-words or --without-words was given.
3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032
if test "${with_words+set}" = set; then
  withval="$with_words"
  :
fi

  case "x$withval" in
    xbig)
      ac_cv_c_bigendian=yes
      ;;
    xlittle)
      ac_cv_c_bigendian=no
      ;;
    *)
3033
                  echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
3034
echo "configure:3035: checking whether the byte order is big-endian" >&5
3035 3036 3037 3038
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_bigendian=unknown
3039 3040 3041 3042 3043 3044 3045 3046 3047
        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
3048 3049 3050 3051 3052
        
        if test -f conftest.c
        then 
          if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
              && test -f conftest.o
3053
          then
3054 3055 3056 3057 3058 3059 3060 3061
            if test `grep -l BIGenDianSyS conftest.o`
            then
              ac_cv_c_bigendian=yes
            fi
            if test `grep -l LiTTleEnDian conftest.o`
            then
              ac_cv_c_bigendian=no
            fi
3062 3063
          fi
        fi
3064 3065 3066 3067
      
fi

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3068 3069 3070 3071 3072 3073
      if test $ac_cv_c_bigendian = xunknown
      then
        { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
      fi
      ;;
  esac
3074 3075 3076 3077 3078 3079 3080
if test $ac_cv_c_bigendian = yes
then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi
3081

Sam Hocevar's avatar
 
Sam Hocevar committed
3082
for ac_func in gettimeofday select strerror strtod strtol isatty
3083
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3084
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3085
echo "configure:3086: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3086 3087
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3088
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3089
  cat > conftest.$ac_ext <<EOF
3090
#line 3091 "configure"
3091 3092
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3093
    which can conflict with char $ac_func(); below.  */
3094 3095 3096
#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
3097 3098 3099 3100
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
3101 3102 3103 3104 3105 3106 3107

/* 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
3108
$ac_func();
3109 3110
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3111
; return 0; }
3112
EOF
3113
if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3114 3115 3116 3117 3118 3119 3120 3121 3122 3123
  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
3124

Sam Hocevar's avatar
 
Sam Hocevar committed
3125 3126 3127 3128 3129 3130 3131 3132 3133
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
3134 3135 3136
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3137
echo $ac_n "checking for connect""... $ac_c" 1>&6
3138
echo "configure:3139: checking for connect" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3139 3140
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3141
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3142
  cat > conftest.$ac_ext <<EOF
3143
#line 3144 "configure"
3144 3145
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3146
    which can conflict with char connect(); below.  */
3147 3148 3149
#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
3150 3151 3152 3153
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
3154 3155 3156 3157 3158 3159 3160

/* 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
3161
connect();
3162 3163
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3164 3165
; return 0; }
EOF
3166
if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179
  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
3180 3181
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3182
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3183

Sam Hocevar's avatar
 
Sam Hocevar committed
3184
  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3185
echo "configure:3186: checking for connect in -lsocket" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3186 3187 3188
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
3189
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3190
  ac_save_LIBS="$LIBS"
3191
LIBS="-lsocket  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3192
cat > conftest.$ac_ext <<EOF
3193
#line 3194 "configure"
3194 3195 3196
#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
3197 3198 3199 3200 3201 3202 3203
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
connect()
; return 0; }
EOF
3204
if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218
  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
3219
  LIB="${LIB} -lsocket"
Sam Hocevar's avatar
 
Sam Hocevar committed
3220 3221
else
  echo "$ac_t""no" 1>&6
3222 3223
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3224

3225 3226
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3227
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3228
echo "configure:3229: checking for gethostbyname" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3229 3230
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3231
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3232
  cat > conftest.$ac_ext <<EOF
3233
#line 3234 "configure"
3234 3235
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3236
    which can conflict with char gethostbyname(); below.  */
3237 3238 3239
#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
3240 3241 3242 3243
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
3244 3245 3246 3247 3248 3249 3250

/* 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
3251
gethostbyname();
3252 3253
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3254 3255
; return 0; }
EOF
3256
if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269
  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
3270 3271
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3272
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3273

Sam Hocevar's avatar
 
Sam Hocevar committed
3274
  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3275
echo "configure:3276: checking for gethostbyname in -lnsl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3276 3277 3278
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
3279
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3280
  ac_save_LIBS="$LIBS"
3281
LIBS="-lnsl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3282
cat > conftest.$ac_ext <<EOF
3283
#line 3284 "configure"
3284 3285 3286
#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
3287 3288 3289 3290 3291 3292 3293
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
3294
if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308
  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
3309
  LIB="${LIB} -lnsl"
Sam Hocevar's avatar
 
Sam Hocevar committed
3310 3311
else
  echo "$ac_t""no" 1>&6
3312 3313
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3314

3315 3316
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3317
echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3318
echo "configure:3319: checking for nanosleep" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3319 3320
if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3321
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3322
  cat > conftest.$ac_ext <<EOF
3323
#line 3324 "configure"
3324 3325
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3326
    which can conflict with char nanosleep(); below.  */
3327 3328 3329
#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
3330 3331 3332 3333
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
3334 3335 3336 3337 3338 3339 3340

/* 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
3341
nanosleep();
3342 3343
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3344 3345
; return 0; }
EOF
3346
if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359
  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
3360 3361
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3362
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3363

Sam Hocevar's avatar
 
Sam Hocevar committed
3364
  echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3365
echo "configure:3366: checking for nanosleep in -lrt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3366 3367 3368
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
3369
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3370
  ac_save_LIBS="$LIBS"
3371
LIBS="-lrt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3372
cat > conftest.$ac_ext <<EOF
3373
#line 3374 "configure"
3374 3375 3376
#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
3377 3378 3379 3380 3381 3382 3383
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
3384
if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398
  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
3399
  LIB="${LIB} -lrt"
3400
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3401
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3402

Sam Hocevar's avatar
 
Sam Hocevar committed
3403
    echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3404
echo "configure:3405: checking for nanosleep in -lposix4" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3405 3406 3407
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
3408
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3409
  ac_save_LIBS="$LIBS"
3410
LIBS="-lposix4  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3411
cat > conftest.$ac_ext <<EOF
3412
#line 3413 "configure"
3413 3414 3415
#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
3416 3417 3418 3419 3420 3421 3422
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
3423
if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437
  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
3438
  LIB="${LIB} -lposix4"
Sam Hocevar's avatar
 
Sam Hocevar committed
3439 3440
else
  echo "$ac_t""no" 1>&6
3441 3442
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3443
  
3444 3445
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3446

3447 3448 3449 3450
fi

for ac_func in usleep
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3451
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3452
echo "configure:3453: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3453 3454 3455 3456
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
3457
#line 3458 "configure"
3458 3459
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3460
    which can conflict with char $ac_func(); below.  */
3461 3462 3463
#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
3464 3465 3466 3467
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
3468 3469 3470 3471 3472

/* 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)
Sam Hocevar's avatar
 
Sam Hocevar committed
3473 3474
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3475
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
3476
#endif
3477

Sam Hocevar's avatar
 
Sam Hocevar committed
3478
; return 0; }
3479
EOF
3480
if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3481 3482 3483 3484 3485 3486 3487 3488 3489 3490
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
3491

Sam Hocevar's avatar
 
Sam Hocevar committed
3492 3493 3494 3495 3496 3497 3498 3499 3500
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
3501 3502 3503
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3504
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3505
echo "configure:3506: checking for inet_aton" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3506 3507
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3508
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3509
  cat > conftest.$ac_ext <<EOF
3510
#line 3511 "configure"
3511 3512
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3513
    which can conflict with char inet_aton(); below.  */
3514 3515 3516
#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
3517 3518 3519 3520
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
3521 3522 3523 3524 3525 3526 3527

/* 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
3528
inet_aton();
3529 3530
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3531 3532
; return 0; }
EOF
3533
if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546
  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
3547 3548
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3549
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3550

Sam Hocevar's avatar
 
Sam Hocevar committed
3551
  echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3552
echo "configure:3553: checking for inet_aton in -lresolv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3553 3554 3555
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
3556
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3557
  ac_save_LIBS="$LIBS"
3558
LIBS="-lresolv  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3559
cat > conftest.$ac_ext <<EOF
3560
#line 3561 "configure"
3561 3562 3563
#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
3564 3565 3566 3567 3568 3569 3570
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
inet_aton()
; return 0; }
EOF
3571
if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585
  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
3586
  LIB="${LIB} -lresolv"
Sam Hocevar's avatar
 
Sam Hocevar committed
3587 3588
else
  echo "$ac_t""no" 1>&6
3589 3590
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3591

3592 3593
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3594 3595
for ac_func in vasprintf
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3596
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3597
echo "configure:3598: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3598 3599 3600 3601
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
3602
#line 3603 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3603 3604
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3605
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3606 3607 3608
#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
3609 3610 3611 3612
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3613 3614 3615 3616 3617 3618 3619

/* 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
3620
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
3621 3622
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3623
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3624
EOF
3625
if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3626 3627 3628 3629 3630 3631 3632 3633 3634 3635
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
3636

Sam Hocevar's avatar
 
Sam Hocevar committed
3637 3638 3639 3640 3641 3642 3643 3644 3645
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3646 3647 3648
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3649 3650
for ac_func in swab
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3651
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3652
echo "configure:3653: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3653 3654 3655 3656
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
3657
#line 3658 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679
#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
3680
if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703
  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

3704
for ac_func in memalign valloc
3705 3706
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3707
echo "configure:3708: checking for $ac_func" >&5
3708 3709 3710 3711
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
3712
#line 3713 "configure"
3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734
#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
3735
if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758
  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

Sam Hocevar's avatar
 
Sam Hocevar committed
3759 3760 3761 3762

for ac_func in sigrelse
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763
echo "configure:3764: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3764 3765 3766 3767
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
3768
#line 3769 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3769 3770
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3771
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3772 3773 3774
#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
3775 3776 3777 3778
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3779 3780 3781 3782 3783 3784 3785

/* 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
3786
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
3787 3788
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3789
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3790
EOF
3791
if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3792 3793 3794 3795 3796 3797 3798 3799 3800 3801
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
3802

Sam Hocevar's avatar
 
Sam Hocevar committed
3803 3804 3805 3806 3807 3808 3809 3810 3811
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3812 3813 3814
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3815

Sam Hocevar's avatar
 
Sam Hocevar committed
3816
NEED_GETOPT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3817
echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3818
echo "configure:3819: checking for getopt_long" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3819 3820
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
3821
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3822
  cat > conftest.$ac_ext <<EOF
3823
#line 3824 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3824 3825
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3826
    which can conflict with char getopt_long(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3827 3828 3829
#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
3830 3831 3832 3833
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3834 3835 3836 3837 3838 3839 3840

/* 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
3841
getopt_long();
Sam Hocevar's avatar
 
Sam Hocevar committed
3842 3843
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3844 3845
; return 0; }
EOF
3846
if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860
  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
3861 3862 3863 3864
#define HAVE_GETOPT_LONG 1
EOF

else
Sam Hocevar's avatar
 
Sam Hocevar committed
3865 3866 3867
  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
3868
echo "configure:3869: checking for getopt_long in -lgnugetopt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3869 3870 3871
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
3872
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3873
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3874
LIBS="-lgnugetopt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3875
cat > conftest.$ac_ext <<EOF
3876
#line 3877 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3877 3878 3879
#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
3880 3881 3882 3883 3884
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
getopt_long()
Sam Hocevar's avatar
 
Sam Hocevar committed
3885
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3886
EOF
3887
if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3888 3889
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
3890
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3891 3892
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3893 3894
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
3895
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3896 3897
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3898

3899
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3900 3901
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
3902
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3903
#define HAVE_GETOPT_LONG 1
3904
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3905 3906 3907 3908 3909
 LIB="${LIB} -lgnugetopt"
else
  echo "$ac_t""no" 1>&6
NEED_GETOPT=1
fi
3910 3911 3912

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3913

Sam Hocevar's avatar
 
Sam Hocevar committed
3914
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3915
echo "configure:3916: checking return type of signal handlers" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3916 3917
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3918
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3919
  cat > conftest.$ac_ext <<EOF
3920
#line 3921 "configure"
3921 3922 3923 3924
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
Sam Hocevar's avatar
 
Sam Hocevar committed
3925
#undef signal
3926 3927 3928 3929 3930 3931 3932
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3933
int main() {
3934
int i;
Sam Hocevar's avatar
 
Sam Hocevar committed
3935 3936
; return 0; }
EOF
3937
if { (eval echo configure:3938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3938
  rm -rf conftest*
3939 3940
  ac_cv_type_signal=void
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3941 3942 3943 3944
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_signal=int
3945
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3946
rm -f conftest*
3947 3948
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3949 3950
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
3951 3952 3953
#define RETSIGTYPE $ac_cv_type_signal
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
3954 3955

echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3956
echo "configure:3957: checking for dlopen in -ldl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3957 3958 3959
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
3960
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3961
  ac_save_LIBS="$LIBS"
3962
LIBS="-ldl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3963
cat > conftest.$ac_ext <<EOF
3964
#line 3965 "configure"
3965 3966 3967
#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
3968 3969 3970 3971 3972 3973 3974
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {
dlopen()
; return 0; }
EOF
3975
if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989
  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
3990
  LIB="${LIB} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
3991 3992
else
  echo "$ac_t""no" 1>&6
3993 3994
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3995
echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3996
echo "configure:3997: checking for cos in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3997 3998 3999 4000 4001 4002 4003
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
4004
#line 4005 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4005 4006 4007 4008 4009 4010 4011 4012 4013 4014
#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
4015
if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030
  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
  LIB_IMDCT="${LIB_IMDCT} -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4031
  LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4032 4033 4034 4035
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4036
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4037
echo "configure:4038: checking for pow in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4038 4039 4040
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
4041
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4042
  ac_save_LIBS="$LIBS"
4043
LIBS="-lm  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4044
cat > conftest.$ac_ext <<EOF
4045
#line 4046 "configure"
4046 4047 4048
#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
4049 4050 4051 4052 4053 4054 4055
    builtin and then its argument prototype would still apply.  */
char pow();

int main() {
pow()
; return 0; }
EOF
4056
if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070
  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
4071 4072 4073 4074
  LIB_IMDCT="${LIB_IMDCT} -lm"
  LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
  LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"

Sam Hocevar's avatar
 
Sam Hocevar committed
4075 4076
else
  echo "$ac_t""no" 1>&6
4077 4078
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4079

Sam Hocevar's avatar
 
Sam Hocevar committed
4080 4081 4082
THREAD_LIB=error
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4083
echo "configure:4084: checking for pthread_attr_init in -lpthread" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4084 4085
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
4086 4087
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4088 4089 4090
  ac_save_LIBS="$LIBS"
LIBS="-lpthread  $LIBS"
cat > conftest.$ac_ext <<EOF
4091
#line 4092 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4092 4093 4094 4095 4096 4097 4098
#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
4099
pthread_attr_init()
Sam Hocevar's avatar
 
Sam Hocevar committed
4100 4101
; return 0; }
EOF
4102
if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4103
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4104
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4105 4106 4107 4108
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4109
  eval "ac_cv_lib_$ac_lib_var=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4110 4111
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4112
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4113

Sam Hocevar's avatar
 
Sam Hocevar committed
4114 4115
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4116
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4117
  THREAD_LIB="-lpthread"
Sam Hocevar's avatar
 
Sam Hocevar committed
4118 4119
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4120
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4121

Sam Hocevar's avatar
 
Sam Hocevar committed
4122 4123 4124
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4125
echo "configure:4126: checking for pthread_attr_init in -lpthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4126
ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4127 4128
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4129
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4130
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4131
LIBS="-lpthreads  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4132
cat > conftest.$ac_ext <<EOF
4133
#line 4134 "configure"
4134 4135 4136
#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
4137 4138 4139 4140 4141 4142 4143
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
4144
if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158
  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
4159
  THREAD_LIB="-lpthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
4160 4161
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4162 4163
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4164 4165 4166
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4167
echo "configure:4168: checking for pthread_attr_init in -lc_r" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4168
ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4169 4170
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
4171
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4172
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4173
LIBS="-lc_r  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4174
cat > conftest.$ac_ext <<EOF
4175
#line 4176 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4176
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4177 4178
/* 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
4179 4180 4181 4182 4183 4184 4185
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
4186
if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200
  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
4201
  THREAD_LIB="-lc_r"
Sam Hocevar's avatar
 
Sam Hocevar committed
4202 4203
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4204
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4205

Sam Hocevar's avatar
 
Sam Hocevar committed
4206 4207 4208
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4209
echo "configure:4210: checking for pthread_attr_init" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4210
if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4211
  echo $ac_n "(cached) $ac_c" 1>&6
4212
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4213
  cat > conftest.$ac_ext <<EOF
4214
#line 4215 "configure"
4215
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4216 4217 4218
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_attr_init(); below.  */
#include <assert.h>
4219 4220
/* 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
4221 4222 4223 4224
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4225 4226 4227 4228 4229 4230 4231 4232 4233 4234

/* 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
4235 4236
; return 0; }
EOF
4237
if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4238
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4239
  eval "ac_cv_func_pthread_attr_init=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4240 4241 4242 4243
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4244
  eval "ac_cv_func_pthread_attr_init=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4245 4246 4247
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4248 4249

if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4250
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4251
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
4252 4253
else
  echo "$ac_t""no" 1>&6
4254 4255
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4256
  THREAD_LIB=""
Sam Hocevar's avatar
 
Sam Hocevar committed
4257
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4258 4259

echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4260
echo "configure:4261: checking for cthread_fork in -lthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4261 4262
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
4263
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4264
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4265 4266 4267
  ac_save_LIBS="$LIBS"
LIBS="-lthreads  $LIBS"
cat > conftest.$ac_ext <<EOF
4268
#line 4269 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4269 4270 4271
#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
4272
    builtin and then its argument prototype would still apply.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
4273
char cthread_fork();
Sam Hocevar's avatar
 
Sam Hocevar committed
4274 4275

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4276
cthread_fork()
Sam Hocevar's avatar
 
Sam Hocevar committed
4277 4278
; return 0; }
EOF
4279
if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4280
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4281
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4282 4283 4284 4285
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4286
  eval "ac_cv_lib_$ac_lib_var=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4287 4288
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4289
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4290

Sam Hocevar's avatar
 
Sam Hocevar committed
4291 4292
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4293
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4294
  THREAD_LIB="-lthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
4295 4296 4297
else
  echo "$ac_t""no" 1>&6
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4298 4299


Sam Hocevar's avatar
 
Sam Hocevar committed
4300
cat > conftest.$ac_ext <<EOF
4301
#line 4302 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4302 4303
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4304
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4305 4306
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
4307 4308 4309
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4310 4311 4312 4313 4314 4315
#define PTHREAD_COND_T_IN_PTHREAD_H 1
EOF

fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
4316
cat > conftest.$ac_ext <<EOF
4317
#line 4318 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4318 4319
#include "confdefs.h"
#include <strings.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4320
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4321 4322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "strncasecmp" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4323 4324 4325
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4326 4327 4328 4329 4330
#define STRNCASECMP_IN_STRINGS_H 1
EOF

fi
rm -f conftest*
4331

Sam Hocevar's avatar
 
Sam Hocevar committed
4332

Sam Hocevar's avatar
 
Sam Hocevar committed
4333
for ac_hdr in getopt.h strings.h
Christophe Massiot's avatar
Christophe Massiot committed
4334
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4335 4336
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4337
echo "configure:4338: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4338 4339 4340 4341
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
4342
#line 4343 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4343
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4344 4345 4346
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4347
{ (eval echo configure:4348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4348 4349 4350 4351 4352 4353 4354
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
4355
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4356 4357
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
4358
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4359
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
4360
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4361 4362 4363 4364 4365
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
4366
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4367 4368 4369
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
4370 4371 4372
fi
done

4373
for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4374
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4375 4376
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4377
echo "configure:4378: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4378 4379 4380 4381
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
4382
#line 4383 "configure"
4383
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4384 4385 4386
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4387
{ (eval echo configure:4388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4388 4389 4390 4391 4392 4393 4394
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
4395
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4396 4397
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4398
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4399
rm -f conftest*
4400
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4401 4402 4403 4404 4405
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
4406
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4407 4408 4409
 
else
  echo "$ac_t""no" 1>&6
4410 4411 4412
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4413
for ac_hdr in sys/soundcard.h machine/soundcard.h
4414
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4415 4416
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4417
echo "configure:4418: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4418 4419 4420 4421
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
4422
#line 4423 "configure"
4423
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4424 4425 4426
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4427
{ (eval echo configure:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4428 4429 4430 4431 4432 4433 4434
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
4435
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4436 4437
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4438
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4439
rm -f conftest*
4440
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4441 4442 4443 4444 4445
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
4446
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4447 4448 4449
 
else
  echo "$ac_t""no" 1>&6
4450 4451 4452
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4453
for ac_hdr in dlfcn.h image.h
4454
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4455 4456
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457
echo "configure:4458: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4458 4459 4460 4461
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
4462
#line 4463 "configure"
4463
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4464 4465 4466
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467
{ (eval echo configure:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4468 4469 4470 4471 4472 4473 4474
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
4475
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4476 4477
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4478
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4479
rm -f conftest*
4480
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4481 4482 4483 4484 4485
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
4486
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4487 4488 4489
 
else
  echo "$ac_t""no" 1>&6
4490 4491 4492
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4493
for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4494
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4495 4496
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4497
echo "configure:4498: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4498 4499 4500 4501
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
4502
#line 4503 "configure"
4503
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4504 4505 4506
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507
{ (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4508 4509 4510 4511 4512 4513 4514
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
4515
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4516 4517
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4518
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4519
rm -f conftest*
4520
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4521 4522 4523 4524 4525
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
4526
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4527 4528 4529
 
else
  echo "$ac_t""no" 1>&6
4530 4531 4532
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4533
for ac_hdr in machine/param.h
Benoit Steiner's avatar
 
Benoit Steiner committed
4534
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4535 4536
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4537
echo "configure:4538: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4538 4539 4540 4541
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
4542
#line 4543 "configure"
Benoit Steiner's avatar
 
Benoit Steiner committed
4543
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4544 4545 4546
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4547
{ (eval echo configure:4548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4548 4549 4550 4551 4552 4553 4554
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
Benoit Steiner's avatar
 
Benoit Steiner committed
4555
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4556 4557
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Benoit Steiner's avatar
 
Benoit Steiner committed
4558
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4559
rm -f conftest*
Benoit Steiner's avatar
 
Benoit Steiner committed
4560
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4561 4562 4563 4564 4565
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
Benoit Steiner's avatar
 
Benoit Steiner committed
4566
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4567 4568 4569
 
else
  echo "$ac_t""no" 1>&6
Benoit Steiner's avatar
 
Benoit Steiner committed
4570 4571 4572
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4573

Sam Hocevar's avatar
 
Sam Hocevar committed
4574
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4575
echo "configure:4576: checking whether time.h and sys/time.h may both be included" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4576 4577 4578 4579
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
4580
#line 4581 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4581 4582 4583 4584 4585 4586 4587 4588
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
4589
if { (eval echo configure:4590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609
  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
4610
for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
Benoit Steiner's avatar
 
Benoit Steiner committed
4611
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4612 4613
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614
echo "configure:4615: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4615 4616 4617 4618
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
4619
#line 4620 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4620
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4621 4622 4623
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624
{ (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4625 4626 4627 4628 4629 4630 4631
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
4632
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4633 4634
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
4635
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4636
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
4637
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4638 4639 4640 4641 4642
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
4643
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4644 4645 4646
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
4647 4648 4649
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4650

Sam Hocevar's avatar
 
Sam Hocevar committed
4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664
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
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS -I$x_includes"
  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
4665
echo "configure:4666: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4666 4667 4668 4669
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
4670
#line 4671 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4671 4672 4673 4674
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675
{ (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696
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
4697
#line 4698 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721
#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

  CPPFLAGS=$saved_CPPFLAGS
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4722
echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4723
echo "configure:4724: checking for ntohl in sys/param.h" >&5
4724 4725 4726 4727 4728
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
4729
#line 4730 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4730 4731
#include "confdefs.h"
#include <sys/param.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4732
int main() {
4733
void foo() { int meuh; ntohl(meuh); }
Sam Hocevar's avatar
 
Sam Hocevar committed
4734 4735
; return 0; }
EOF
4736
if { (eval echo configure:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4737
  rm -rf conftest*
4738
  ac_cv_c_ntohl_sys_param_h=yes
Christophe Massiot's avatar
Christophe Massiot committed
4739
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4740 4741 4742
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
4743
  ac_cv_c_ntohl_sys_param_h=no
Christophe Massiot's avatar
Christophe Massiot committed
4744
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4745
rm -f conftest*
4746 4747 4748 4749 4750 4751 4752 4753 4754
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
4755

Sam Hocevar's avatar
 
Sam Hocevar committed
4756
echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4757
echo "configure:4758: checking if \$CC accepts -finline-limit" >&5
4758 4759 4760 4761 4762
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
4763
#line 4764 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4764 4765 4766 4767 4768 4769
#include "confdefs.h"

int main() {

; return 0; }
EOF
4770
if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4771
  rm -rf conftest*
4772
  ac_cv_c_inline_limit=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
4773 4774 4775 4776
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
4777
  ac_cv_c_inline_limit=no
Sam Hocevar's avatar
 
Sam Hocevar committed
4778 4779
fi
rm -f conftest*
4780
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4781

4782 4783 4784 4785 4786
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
4787
echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4788
echo "configure:4789: checking if \$CC accepts -Wall -Winline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4789 4790 4791 4792 4793
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
4794
#line 4795 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4795 4796 4797 4798 4799 4800
#include "confdefs.h"

int main() {

; return 0; }
EOF
4801
if { (eval echo configure:4802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817
  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
4818
echo "configure:4819: checking if \$CC accepts -wall -winline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4819 4820 4821 4822 4823
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
4824
#line 4825 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4825 4826 4827 4828 4829 4830
#include "confdefs.h"

int main() {

; return 0; }
EOF
4831
if { (eval echo configure:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849
  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
4850
echo "configure:4851: checking if \$CC accepts -pipe" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4851 4852 4853 4854 4855
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
4856
#line 4857 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4857 4858 4859 4860 4861 4862
#include "confdefs.h"

int main() {

; return 0; }
EOF
4863
if { (eval echo configure:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880
  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
4881
echo "configure:4882: checking if \$CC accepts -O3" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4882 4883 4884 4885 4886
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
4887
#line 4888 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4888 4889 4890 4891 4892 4893
#include "confdefs.h"

int main() {

; return 0; }
EOF
4894
if { (eval echo configure:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910
  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
4911
echo "configure:4912: checking if \$CC accepts -O2" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4912 4913 4914 4915 4916
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
4917
#line 4918 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4918 4919 4920 4921 4922 4923
#include "confdefs.h"

int main() {

; return 0; }
EOF
4924
if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940
  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
4941
echo "configure:4942: checking if \$CC accepts -O" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4942 4943 4944 4945 4946
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
4947
#line 4948 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4948 4949 4950 4951 4952 4953
#include "confdefs.h"

int main() {

; return 0; }
EOF
4954
if { (eval echo configure:4955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973
  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
4974
echo "configure:4975: checking if \$CC accepts -ffast-math" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4975 4976 4977 4978 4979
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
4980
#line 4981 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4981 4982 4983 4984 4985 4986
#include "confdefs.h"

int main() {

; return 0; }
EOF
4987
if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004
  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
5005
echo "configure:5006: checking if \$CC accepts -funroll-loops" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5006 5007 5008 5009 5010
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
5011
#line 5012 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5012 5013 5014 5015 5016 5017
#include "confdefs.h"

int main() {

; return 0; }
EOF
5018
if { (eval echo configure:5019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035
  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
5036
echo "configure:5037: checking if \$CC accepts -fomit-frame-pointer" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5037 5038 5039 5040 5041
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
5042
#line 5043 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5043 5044 5045 5046 5047 5048
#include "confdefs.h"

int main() {

; return 0; }
EOF
5049
if { (eval echo configure:5050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065
  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

5066
echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5067
echo "configure:5068: checking if \$CC accepts -bundle -undefined error" >&5
5068 5069 5070 5071 5072
if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -bundle -undefined error"
     cat > conftest.$ac_ext <<EOF
5073
#line 5074 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5074 5075 5076 5077 5078 5079
#include "confdefs.h"

int main() {

; return 0; }
EOF
5080
if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5081
  rm -rf conftest*
5082
  ac_cv_ld_darwin=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5083 5084 5085 5086
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5087
  ac_cv_ld_darwin=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5088 5089
fi
rm -f conftest*
5090 5091 5092 5093
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
5094
    PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5095
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5096

Sam Hocevar's avatar
 
Sam Hocevar committed
5097
echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5098
echo "configure:5099: checking if \$CC accepts -shared" >&5
5099 5100 5101 5102 5103
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
5104
#line 5105 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5105 5106 5107 5108 5109 5110
#include "confdefs.h"

int main() {

; return 0; }
EOF
5111
if { (eval echo configure:5112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5112
  rm -rf conftest*
5113
  ac_cv_ld_plugins=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5114 5115 5116 5117
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5118
  ac_cv_ld_plugins=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5119 5120
fi
rm -f conftest*
5121
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5122

5123 5124
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
5125
    PLDFLAGS="${PLDFLAGS} -shared"
5126 5127
fi
        
Sam Hocevar's avatar
 
Sam Hocevar committed
5128
if test x"${SOFLAGS}" = x; then
5129
    echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5130
echo "configure:5131: checking for soname setting" >&5
5131 5132 5133 5134 5135 5136 5137 5138
if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
        # Standard
        try_SOFLAGS="-Wl,-soname -Wl,"
        LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
        cat > conftest.$ac_ext <<EOF
5139
#line 5140 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5140 5141 5142 5143 5144 5145
#include "confdefs.h"

int main() {

; return 0; }
EOF
5146
if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5147
  rm -rf conftest*
5148
  ac_cv_ld_soname="${try_SOFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5149 5150 5151 5152
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5153 5154 5155 5156 5157
  
            # SunOS
            try_SOFLAGS="-Wl,-h -Wl,"
            LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
            cat > conftest.$ac_ext <<EOF
5158
#line 5159 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5159 5160 5161 5162 5163 5164
#include "confdefs.h"

int main() {

; return 0; }
EOF
5165
if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5166
  rm -rf conftest*
5167
  ac_cv_ld_soname="${try_SOFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5168 5169 5170 5171
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5172 5173 5174 5175
  ac_cv_ld_soname=none
fi
rm -f conftest*
        
Sam Hocevar's avatar
 
Sam Hocevar committed
5176 5177 5178 5179
fi
rm -f conftest*
fi

5180 5181 5182 5183 5184 5185 5186 5187 5188 5189
echo "$ac_t""$ac_cv_ld_soname" 1>&6
    if test x"$ac_cv_ld_soname" != x"none"; then
        SOFLAGS=$ac_cv_ld_soname
    else
        echo "
------------
Your system doesn't seem to have support for dynamic linking. You may
have problems using libdvdcss.
------------
"
5190
    fi
5191 5192
fi

5193
echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5194
echo "configure:5195: checking __attribute__ ((aligned ())) support" >&5
5195 5196 5197 5198
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
5199
        CFLAGS="${save_CFLAGS} -Werror"
5200 5201
    for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
        cat > conftest.$ac_ext <<EOF
5202
#line 5203 "configure"
5203 5204 5205 5206 5207 5208
#include "confdefs.h"

int main() {
static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
; return 0; }
EOF
5209
if { (eval echo configure:5210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227
  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
5228
CFLAGS="${save_CFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5229
LDFLAGS="${save_LDFLAGS}"
Christophe Massiot's avatar
Christophe Massiot committed
5230

Sam Hocevar's avatar
 
Sam Hocevar committed
5231
echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5232
echo "configure:5233: checking for boolean_t in sys/types.h" >&5
5233 5234 5235 5236
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
5237
#line 5238 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5238 5239
#include "confdefs.h"
#include <sys/types.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5240
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5241
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5242 5243
; return 0; }
EOF
5244
if { (eval echo configure:5245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5245
  rm -rf conftest*
5246
  ac_cv_c_boolean_t_sys_types_h=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5247
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5248 5249 5250
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5251
  ac_cv_c_boolean_t_sys_types_h=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5252
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5253
rm -f conftest*
5254 5255 5256 5257 5258 5259 5260 5261 5262 5263
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
5264
echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5265
echo "configure:5266: checking for boolean_t in pthread.h" >&5
5266 5267 5268 5269
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
5270
#line 5271 "configure"
5271 5272
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5273
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5274
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5275 5276
; return 0; }
EOF
5277
if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5278
  rm -rf conftest*
5279
  ac_cv_c_boolean_t_pthread_h=yes
5280
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5281 5282 5283
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5284
  ac_cv_c_boolean_t_pthread_h=no
5285
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5286
rm -f conftest*
5287 5288 5289 5290 5291 5292 5293 5294 5295 5296
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
5297
echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5298
echo "configure:5299: checking for boolean_t in cthreads.h" >&5
5299 5300 5301 5302
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
5303
#line 5304 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5304 5305 5306
#include "confdefs.h"
#include <cthreads.h>
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5307
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5308 5309
; return 0; }
EOF
5310
if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5311
  rm -rf conftest*
5312
  ac_cv_c_boolean_t_cthreads_h=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5313 5314 5315 5316
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5317
  ac_cv_c_boolean_t_cthreads_h=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5318 5319
fi
rm -f conftest*
5320 5321 5322 5323 5324 5325 5326 5327 5328
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
5329

Sam Hocevar's avatar
 
Sam Hocevar committed
5330 5331 5332 5333 5334 5335 5336 5337
case x"${target_cpu}" in
  x)
    ARCH=unknown
    ;;
  *)
    ARCH=${target_cpu}
    ;;
esac
Sam Hocevar's avatar
 
Sam Hocevar committed
5338

Sam Hocevar's avatar
 
Sam Hocevar committed
5339 5340
BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
Sam Hocevar's avatar
 
Sam Hocevar committed
5341

Sam Hocevar's avatar
 
Sam Hocevar committed
5342
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
5343 5344
MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
Sam Hocevar's avatar
 
Sam Hocevar committed
5345
SSE_MODULES="imdctsse downmixsse"
5346
ALTIVEC_MODULES="idctaltivec motionaltivec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5347

Sam Hocevar's avatar
 
Sam Hocevar committed
5348
echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5349
echo "configure:5350: checking if \$CC groks MMX inline assembly" >&5
5350 5351 5352 5353
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
5354
#line 5355 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5355 5356
#include "confdefs.h"

5357
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5358
void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5359 5360
; return 0; }
EOF
5361
if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5362
  rm -rf conftest*
5363
  ac_cv_mmx_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5364
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5365 5366 5367
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5368
  ac_cv_mmx_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5369
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5370
rm -f conftest*
5371 5372 5373 5374 5375 5376
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
5377

Sam Hocevar's avatar
 
Sam Hocevar committed
5378
echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5379
echo "configure:5380: checking if \$CC groks MMX EXT inline assembly" >&5
5380 5381 5382 5383
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
5384
#line 5385 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5385 5386
#include "confdefs.h"

5387
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5388
void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5389 5390
; return 0; }
EOF
5391
if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5392
  rm -rf conftest*
5393
  ac_cv_mmxext_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5394
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5395 5396 5397
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5398
  ac_cv_mmxext_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5399
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5400
rm -f conftest*
5401 5402 5403 5404 5405 5406
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
5407

Sam Hocevar's avatar
 
Sam Hocevar committed
5408
echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5409
echo "configure:5410: checking if \$CC groks 3D Now! inline assembly" >&5
5410 5411 5412 5413
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
5414
#line 5415 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5415 5416
#include "confdefs.h"

5417
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5418
void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5419 5420
; return 0; }
EOF
5421
if { (eval echo configure:5422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5422
  rm -rf conftest*
5423
  ac_cv_3dnow_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5424 5425 5426 5427
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5428
  ac_cv_3dnow_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5429 5430
fi
rm -f conftest*
5431 5432 5433 5434
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
5435
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5436
#define CAN_COMPILE_3DNOW 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5437 5438
EOF

5439 5440
  ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5441 5442

echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5443
echo "configure:5444: checking if \$CC groks SSE inline assembly" >&5
5444 5445 5446 5447
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
5448
#line 5449 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5449 5450
#include "confdefs.h"

5451
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5452
void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5453 5454
; return 0; }
EOF
5455
if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5456
  rm -rf conftest*
5457
  ac_cv_sse_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5458 5459 5460 5461
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5462
  ac_cv_sse_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5463 5464
fi
rm -f conftest*
5465
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5466

5467 5468
echo "$ac_t""$ac_cv_sse_inline" 1>&6
if test x"$ac_cv_sse_inline" != x"no"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5469
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5470
#define CAN_COMPILE_SSE 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5471 5472
EOF

5473 5474 5475 5476
  ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
fi

echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5477
echo "configure:5478: checking if \$CC groks Altivec inline assembly" >&5
5478 5479 5480 5481
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
5482
#line 5483 "configure"
5483 5484
#include "confdefs.h"

5485
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5486
asm volatile("vperm 0,1,2,3");
5487 5488
; return 0; }
EOF
5489
if { (eval echo configure:5490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5490
  rm -rf conftest*
5491
  ac_cv_altivec_inline=yes
5492 5493 5494 5495 5496 5497 5498
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
5499
#line 5500 "configure"
5500 5501 5502
#include "confdefs.h"

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5503
asm volatile("vperm 0,1,2,3");
5504 5505
; return 0; }
EOF
5506
if { (eval echo configure:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5507
  rm -rf conftest*
5508
  ac_cv_altivec_inline="-Wa,-m7400"
5509 5510 5511 5512
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5513
  ac_cv_altivec_inline=no
5514
fi
5515 5516 5517 5518
rm -f conftest*
          CFLAGS=$save_CFLAGS
         
fi
5519
rm -f conftest*
5520 5521 5522 5523
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
5524
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5525
#define CAN_COMPILE_ALTIVEC 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5526 5527
EOF

5528
  if test x"$ac_cv_altivec_inline" != x"yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5529 5530
    CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
    CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
Sam Hocevar's avatar
 
Sam Hocevar committed
5531
    CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5532
  fi
5533 5534
  ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi
5535

5536
echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5537
echo "configure:5538: checking if \$CC groks Altivec C extensions" >&5
5538 5539 5540
if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
5541 5542 5543
  save_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS -faltivec"
     # Darwin test
5544
     cat > conftest.$ac_ext <<EOF
5545
#line 5546 "configure"
5546
#include "confdefs.h"
5547

5548
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5549
vec_mtvscr((vector unsigned int)(0));
5550 5551
; return 0; }
EOF
5552
if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5553 5554 5555 5556 5557 5558 5559 5560
  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
5561
        CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5562
        cat > conftest.$ac_ext <<EOF
5563
#line 5564 "configure"
5564
#include "confdefs.h"
5565

5566
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5567
vec_mtvscr((vector unsigned int)(0));
5568 5569
; return 0; }
EOF
5570
if { (eval echo configure:5571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5571
  rm -rf conftest*
5572
  ac_cv_c_altivec="-fvec"
5573 5574 5575 5576 5577
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_altivec=no
5578 5579 5580
fi
rm -f conftest*
        
5581 5582 5583
fi
rm -f conftest*
     CFLAGS=$save_CFLAGS
5584
    
5585 5586 5587 5588 5589
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
5590
#define CAN_COMPILE_C_ALTIVEC 1
5591 5592
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5593 5594
  CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
  CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5595
  CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5596
  ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5597 5598 5599
fi

echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5600
echo "configure:5601: checking if linker needs -framework vecLib" >&5
5601 5602 5603 5604 5605 5606
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
5607
#line 5608 "configure"
5608 5609 5610 5611 5612 5613
#include "confdefs.h"

int main() {

; return 0; }
EOF
5614
if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629
  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
5630 5631
  LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
  LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
Sam Hocevar's avatar
 
Sam Hocevar committed
5632
  LIB="${LIB} -framework vecLib"
5633 5634
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5635 5636 5637 5638 5639
case x"${target_os}" in
  x)
    SYS=unknown
    ;;
  xlinux*)
5640
    SYS=linux
Sam Hocevar's avatar
 
Sam Hocevar committed
5641
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
5642
  xbsdi*)
5643 5644
    SYS=bsdi
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
5645
  xdarwin*)
5646 5647
    SYS=darwin
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
5648
  x*mingw32*)
5649
    SYS=mingw32
Gildas Bazin's avatar
 
Gildas Bazin committed
5650
    # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5651 5652
set dummy ${ac_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5653
echo "configure:5654: checking for $ac_word" >&5
5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684
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
5685
echo "configure:5686: checking for $ac_word" >&5
5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716
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
5717 5718
    LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
    LIB_RC="${LIB_RC} -lws2_32"
Sam Hocevar's avatar
 
Sam Hocevar committed
5719
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
5720
  x*nto*)
Sam Hocevar's avatar
 
Sam Hocevar committed
5721 5722 5723 5724
    SYS=nto
    LIB_X11="${LIB_X11} -lsocket"
    LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
5725
  xbeos)
Sam Hocevar's avatar
 
Sam Hocevar committed
5726 5727 5728 5729 5730
    SYS=beos
    LIB="${LIB} -lbe"
    LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
    PLDFLAGS="${PLDFLAGS} -nostart"
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
5731
  x*)
Sam Hocevar's avatar
 
Sam Hocevar committed
5732 5733 5734 5735
    SYS=${target_os}
    ;;
esac

Sam Hocevar's avatar
 
Sam Hocevar committed
5736 5737
case x$SYS in
  xmingw32)
Sam Hocevar's avatar
 
Sam Hocevar committed
5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755
    DVD_DEVICE="E:"
    VCD_DEVICE="E:"
    ;;
  *)
    DVD_DEVICE="/dev/dvd"
    VCD_DEVICE="/dev/cdrom"
    ;;
esac

cat >> confdefs.h <<EOF
#define DVD_DEVICE "$DVD_DEVICE"
EOF

cat >> confdefs.h <<EOF
#define VCD_DEVICE "$VCD_DEVICE"
EOF


5756

Sam Hocevar's avatar
 
Sam Hocevar committed
5757

Sam Hocevar's avatar
 
Sam Hocevar committed
5758 5759
CAN_BUILD_LIBDVDCSS=0

Sam Hocevar's avatar
 
Sam Hocevar committed
5760 5761 5762 5763
for ac_hdr in winioctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764
echo "configure:5765: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5765 5766 5767 5768
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
5769
#line 5770 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5770 5771 5772 5773
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774
{ (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794
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
5795
  CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5796 5797 5798 5799 5800 5801 5802

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


Sam Hocevar's avatar
 
Sam Hocevar committed
5803
for ac_hdr in sys/ioctl.h
5804
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5805 5806
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5807
echo "configure:5808: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5808 5809 5810 5811
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
5812
#line 5813 "configure"
5813
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5814 5815 5816
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5817
{ (eval echo configure:5818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5818 5819 5820 5821 5822 5823 5824
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
5825
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5826 5827
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
5828
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5829
rm -f conftest*
5830
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5831 5832 5833 5834 5835
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
5836
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5837
 
Sam Hocevar's avatar
 
Sam Hocevar committed
5838
  CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5839
  for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5840
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5841 5842
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5843
echo "configure:5844: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5844 5845 5846 5847
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
5848
#line 5849 "configure"
5849
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5850 5851 5852
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5853
{ (eval echo configure:5854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5854 5855 5856 5857 5858 5859 5860
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
5861
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5862 5863
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
5864
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5865
rm -f conftest*
5866
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5867 5868 5869 5870 5871
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
5872
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5873 5874 5875
 
else
  echo "$ac_t""no" 1>&6
5876 5877 5878
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
5879
  BSD_DVD_STRUCT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
5880
  LINUX_DVD_STRUCT=0
5881
  OPENBSD_DVD_STRUCT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
5882
        cat > conftest.$ac_ext <<EOF
5883
#line 5884 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5884
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5885
#include <sys/cdio.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5886
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5887 5888
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5889 5890 5891
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5892
#define DVD_STRUCT_IN_SYS_CDIO_H 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5893 5894
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5895
    cat > conftest.$ac_ext <<EOF
5896
#line 5897 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5897 5898 5899 5900 5901 5902 5903 5904 5905 5906
#include "confdefs.h"
#include <sys/cdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct dvd_struct" >/dev/null 2>&1; then
  rm -rf conftest*
  
                    BSD_DVD_STRUCT=1
else
  rm -rf conftest*
5907
  LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
5908 5909 5910
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5911
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5912 5913 5914
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5915
        cat > conftest.$ac_ext <<EOF
5916
#line 5917 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5917
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5918
#include <sys/dvdio.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5919
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5920 5921
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5922 5923 5924
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5925
#define DVD_STRUCT_IN_SYS_DVDIO_H 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5926 5927
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5928
    cat > conftest.$ac_ext <<EOF
5929
#line 5930 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943
#include "confdefs.h"
#include <sys/dvdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct dvd_struct" >/dev/null 2>&1; then
  rm -rf conftest*
  
                    BSD_DVD_STRUCT=1
else
  rm -rf conftest*
  LINUX_DVD_STRUCT=1
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5944
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5945 5946 5947
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5948
        cat > conftest.$ac_ext <<EOF
5949
#line 5950 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5950 5951 5952 5953 5954 5955 5956
#include "confdefs.h"
#include <linux/cdrom.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
  rm -rf conftest*
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5957
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5958
#define DVD_STRUCT_IN_LINUX_CDROM_H 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5959 5960
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5961 5962 5963 5964 5965
    LINUX_DVD_STRUCT=1
  
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5966 5967
        NEED_BSDI_LIBDVD=0
  cat > conftest.$ac_ext <<EOF
5968
#line 5969 "configure"
5969
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5970
#include <dvd.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5971
EOF
5972
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sam Hocevar's avatar
 
Sam Hocevar committed
5973
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5974 5975 5976
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5977
#define DVD_STRUCT_IN_DVD_H 1
5978 5979
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5980
    LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
5981
    LINUX_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
5982 5983 5984
  
else
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
5985
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5986 5987 5988 5989
                for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990
echo "configure:5991: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5991 5992 5993 5994
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
5995
#line 5996 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5996 5997 5998 5999
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000
{ (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6001 6002 6003 6004 6005 6006 6007 6008 6009 6010
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"
6011 6012
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6013 6014 6015 6016 6017 6018 6019 6020 6021
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
 
      NEED_BSDI_LIBDVD=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6022 6023 6024 6025
      cat >> confdefs.h <<\EOF
#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
6026
      SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
Sam Hocevar's avatar
 
Sam Hocevar committed
6027 6028 6029 6030 6031 6032
      LINUX_DVD_STRUCT=1
    
else
  echo "$ac_t""no" 1>&6
fi
done
6033

Sam Hocevar's avatar
 
Sam Hocevar committed
6034 6035 6036 6037 6038 6039
  
fi
rm -f conftest*

        ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6040
echo "configure:6041: checking for sys/scsi/scsi_types.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6041 6042 6043 6044
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
6045
#line 6046 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6046
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6047
#include <sys/scsi/scsi_types.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
6048 6049
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050
{ (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068
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_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6069
echo "configure:6070: checking for sys/scsi/impl/uscsi.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6070 6071 6072 6073
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
6074
#line 6075 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6075 6076 6077 6078
#include "confdefs.h"
#include <sys/scsi/impl/uscsi.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6079
{ (eval echo configure:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105
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
  
      cat >> confdefs.h <<\EOF
#define SOLARIS_USCSI 1
EOF

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

  
6106 6107 6108 6109 6110 6111
else
  echo "$ac_t""no" 1>&6
fi

        ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6112
echo "configure:6113: checking for sys/scsi.h" >&5
6113 6114 6115 6116
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
6117
#line 6118 "configure"
6118 6119 6120 6121
#include "confdefs.h"
#include <sys/scsi.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6122
{ (eval echo configure:6123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139
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
  
    cat > conftest.$ac_ext <<EOF
6140
#line 6141 "configure"
6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156
#include "confdefs.h"
#include <sys/scsi.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sctl_io" >/dev/null 2>&1; then
  rm -rf conftest*
  
      cat >> confdefs.h <<\EOF
#define HPUX_SCTL_IO 1
EOF

    
fi
rm -f conftest*

  
Sam Hocevar's avatar
 
Sam Hocevar committed
6157 6158 6159 6160
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6161 6162 6163 6164 6165
        if test x$LINUX_DVD_STRUCT = x1; then
    cat >> confdefs.h <<\EOF
#define HAVE_LINUX_DVD_STRUCT 1
EOF

6166 6167 6168 6169 6170 6171
    if test x$OPENBSD_DVD_STRUCT = x1; then
      cat >> confdefs.h <<\EOF
#define HAVE_OPENBSD_DVD_STRUCT 1
EOF

    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6172 6173 6174 6175 6176 6177 6178 6179
  else
    if test x$BSD_DVD_STRUCT = x1; then
      cat >> confdefs.h <<\EOF
#define HAVE_BSD_DVD_STRUCT 1
EOF

    fi
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6180 6181 6182

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

Sam Hocevar's avatar
 
Sam Hocevar committed
6186

6187 6188 6189 6190
# Check whether --with-tuning or --without-tuning was given.
if test "${with_tuning+set}" = set; then
  withval="$with_tuning"
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
6191 6192
fi

6193 6194 6195
if test "x$withval" != "x"; then
    TUNING=$withval
else
6196
    if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6197
    else
6198
        if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6199 6200
    fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6201

6202 6203 6204 6205 6206 6207 6208 6209 6210 6211
# Check whether --enable-release or --disable-release was given.
if test "${enable_release+set}" = set; then
  enableval="$enable_release"
   if test x$enableval = xyes; then RELEASE=1; fi 
else
   VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
  LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6212 6213 6214 6215
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}"
Sam Hocevar's avatar
 
Sam Hocevar committed
6216 6217 6218 6219 6220
fi

# Check whether --enable-altivec or --disable-altivec was given.
if test "${enable_altivec+set}" = set; then
  enableval="$enable_altivec"
6221 6222 6223
   if test x$enableval = xyes; then ARCH="${ARCH} altivec";
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
else
6224
   if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6225
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
6226 6227 6228
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6229
DEBUG=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6230 6231 6232 6233 6234 6235 6236
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval="$enable_debug"
   if test x$enableval = xyes; then DEBUG=1; fi 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6237
TRACE=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6238 6239 6240 6241 6242 6243 6244
# Check whether --enable-trace or --disable-trace was given.
if test "${enable_trace+set}" = set; then
  enableval="$enable_trace"
   if test x$enableval = xyes; then TRACE=1; fi 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262
GPROF=0
# Check whether --enable-gprof or --disable-gprof was given.
if test "${enable_gprof+set}" = set; then
  enableval="$enable_gprof"
   if test x$enableval = xyes; then GPROF=1; fi 
fi


CPROF=0
# Check whether --enable-cprof or --disable-cprof was given.
if test "${enable_cprof+set}" = set; then
  enableval="$enable_cprof"
   if test x$enableval = xyes;
  then
    LIB="${LIB} -lcprof"
    CPROF=1
  fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274
fi


# Check whether --enable-optimizations or --disable-optimizations was given.
if test "${enable_optimizations+set}" = set; then
  enableval="$enable_optimizations"
   if test x$enableval = xno; then OPTIMS=0; fi 
else
   OPTIMS=1 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6275 6276 6277 6278 6279
# Check whether --enable-pth or --disable-pth was given.
if test "${enable_pth+set}" = set; then
  enableval="$enable_pth"
   if test x$enableval = xyes; then
    echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6280
echo "configure:6281: checking for pth_init in -lpth" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6281 6282 6283 6284 6285 6286 6287
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
6288
#line 6289 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6289 6290 6291 6292 6293 6294 6295 6296 6297 6298
#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 pth_init();

int main() {
pth_init()
; return 0; }
EOF
6299
if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6300 6301 6302 6303 6304 6305 6306
  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"
Sam Hocevar's avatar
 
Sam Hocevar committed
6307
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6308 6309
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
6310

Sam Hocevar's avatar
 
Sam Hocevar committed
6311 6312 6313 6314 6315 6316 6317 6318
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 pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
6319

Sam Hocevar's avatar
 
Sam Hocevar committed
6320 6321 6322 6323
  LIBS="-lpth $LIBS"

else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6324
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6325

Sam Hocevar's avatar
 
Sam Hocevar committed
6326
    cat > conftest.$ac_ext <<EOF
6327
#line 6328 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6328 6329 6330 6331 6332 6333 6334 6335 6336 6337
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
6338

Sam Hocevar's avatar
 
Sam Hocevar committed
6339 6340
    THREAD_LIB="-lpth"
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6341
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6342
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6343

Sam Hocevar's avatar
 
Sam Hocevar committed
6344 6345 6346 6347 6348

fi


LIB="${LIB} ${THREAD_LIB}"
Sam Hocevar's avatar
 
Sam Hocevar committed
6349

Sam Hocevar's avatar
 
Sam Hocevar committed
6350
NEED_LIBDVDCSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6351
STATIC_LIBDVDCSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6352
DUMMY_LIBDVDCSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6353 6354 6355
# Check whether --with-dvdcss or --without-dvdcss was given.
if test "${with_dvdcss+set}" = set; then
  withval="$with_dvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6356 6357 6358
   case "x${withval}" in
    xlocal-static|xyes)
      # local libdvdcss, statically linked
6359
      BUILTINS="${BUILTINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6360 6361
      if test x${CAN_BUILD_LIBDVDCSS} = x1
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
6362
        NEED_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6363 6364
        STATIC_LIBDVDCSS=1
        CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6365
        LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
6366 6367 6368 6369
      fi
    ;;
    xlocal-shared)
      # local libdvdcss, dynamically linked
6370
      PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6371 6372
      if test x${CAN_BUILD_LIBDVDCSS} = x1
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
6373
        NEED_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6374
        CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6375
        LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6376
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6377
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6378 6379 6380
    xno)
      # don't use libdvdcss at all, build a DVD module that can dlopen() it
      BUILTINS="${BUILTINS} dvd"
6381
      DUMMY_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6382
      SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
Sam Hocevar's avatar
 
Sam Hocevar committed
6383
      CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
Sam Hocevar's avatar
 
Sam Hocevar committed
6384
      CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
Sam Hocevar's avatar
 
Sam Hocevar committed
6385 6386
      LIB_DVD="${LIB_DVD} -ldl"
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6387
    *)
Sam Hocevar's avatar
 
Sam Hocevar committed
6388
      # existing libdvdcss
6389
      PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6390 6391
      if test "x$withval" != "xyes"
      then
6392
        LIB_DVD="${LIB_DVD} -L"$withval"/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
6393 6394 6395
        CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
      fi
      LIB_DVD="${LIB_DVD} -ldvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6396
    esac 
Sam Hocevar's avatar
 
Sam Hocevar committed
6397 6398
else
  # user didn't decide, we choose to use local libdvdcss and link statically
Sam Hocevar's avatar
 
Sam Hocevar committed
6399
  # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
Sam Hocevar's avatar
 
Sam Hocevar committed
6400 6401
   if test x${CAN_BUILD_LIBDVDCSS} = x1
    then
6402
      BUILTINS="${BUILTINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6403
      NEED_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6404 6405
      STATIC_LIBDVDCSS=1
      CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6406
      LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
6407 6408 6409
    else
      # XXX: no check for libdl is done, don't try this at home !
      BUILTINS="${BUILTINS} dvd"
6410
      DUMMY_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6411
      SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
Sam Hocevar's avatar
 
Sam Hocevar committed
6412 6413
      CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
      LIB_DVD="${LIB_DVD} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
6414 6415 6416 6417
    fi 
fi


6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430
if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
# Check whether --with-dvdread or --without-dvdread was given.
if test "${with_dvdread+set}" = set; then
  withval="$with_dvdread"
   case "x${withval}" in
    xlocal-static|xyes)
      if test x${STATIC_LIBDVDREAD} = x1
      then
        BUILTINS="${BUILTINS} dvdread" 
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
        LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
      else
6431
        { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458
      fi
    ;;
    xno)
    ;;
    x)
      if test x${STATIC_LIBDVDREAD} = x1
      then
        BUILTINS="${BUILTINS} dvdread" 
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
        LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
      else
        PLUGINS="${PLUGINS} dvdread"
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread  ${CFLAGS_DVD}"
        LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
      fi 
    ;;
    *)
      if test "x$withval" != "xlocal-shared"
      then
        LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
      else
        LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
      fi
      if test x${STATIC_LIBDVDCSS} = x1
      then
6459
        { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471
      else
        PLUGINS="${PLUGINS} dvdread"
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
        LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
      fi
    esac
    if test x${DUMMY_LIBDVDCSS} = x1
    then
      LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
    else
      LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
    fi 
Stéphane Borel's avatar
Stéphane Borel committed
6472 6473 6474
fi


6475 6476 6477
# 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
6478
  :
6479 6480 6481
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6482 6483 6484
if test x$enable_vcd != xno
then
  cat > conftest.$ac_ext <<EOF
6485
#line 6486 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498
#include "confdefs.h"
#include <linux/cdrom.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "cdrom_msf0" >/dev/null 2>&1; then
  rm -rf conftest*
  
    BUILTINS="${BUILTINS} vcd"
  
fi
rm -f conftest*

fi
6499

6500 6501 6502 6503 6504
if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
then
  BUILTINS="${BUILTINS} vcd"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6505 6506 6507 6508 6509 6510
# Check whether --enable-dummy or --disable-dummy was given.
if test "${enable_dummy+set}" = set; then
  enableval="$enable_dummy"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6511 6512 6513 6514 6515

if test x$enable_dummy != xno
then
  BUILTINS="${BUILTINS} dummy"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6516 6517 6518 6519 6520 6521 6522

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

Sam Hocevar's avatar
 
Sam Hocevar committed
6523 6524 6525 6526 6527

if test x$enable_null != xno
then
  BUILTINS="${BUILTINS} null"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6528 6529 6530 6531 6532 6533 6534

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

Sam Hocevar's avatar
 
Sam Hocevar committed
6535

Sam Hocevar's avatar
 
Sam Hocevar committed
6536 6537 6538 6539 6540
if test x$enable_rc != xno
then
  BUILTINS="${BUILTINS} rc"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6541 6542 6543
# Check whether --with-mad or --without-mad was given.
if test "${with_mad+set}" = set; then
  withval="$with_mad"
6544 6545
   if test "x$with_val" != "xno"; then
      if test -n $with_val; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6546 6547
        CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
        LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6548
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
6549
        LIB_MAD="${LIB_MAD} -lmad"
6550 6551 6552
      fi
      save_CFLAGS=$CFLAGS
      save_LDFLAGS=$LDFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
6553 6554
      CFLAGS="$CFLAGS $CFLAGS_MAD"
      LDFLAGS="$LDFLAGS $LIB_MAD"
6555 6556 6557 6558
      for ac_hdr in mad.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6559
echo "configure:6560: checking for $ac_hdr" >&5
6560 6561 6562 6563
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
6564
#line 6565 "configure"
6565 6566 6567 6568
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6569
{ (eval echo configure:6570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598
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..."
        exit 1
      
fi
done

      echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6599
echo "configure:6600: checking for mad_bit_init in -lmad" >&5
6600 6601 6602 6603 6604 6605 6606
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
6607
#line 6608 "configure"
6608 6609 6610 6611 6612 6613 6614 6615 6616 6617
#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
6618
if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649
  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..."
        exit 1
      
fi

      CFLAGS=$save_CFLAGS
      LDFLAGS=$save_LDFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
6650
      PLUGINS="${PLUGINS} mad"
6651 6652 6653 6654
    fi 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6655 6656
if test x$SYS = xbeos
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6657
    PLUGINS="${PLUGINS} beos"
6658 6659 6660 6661 6662 6663

else

# 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
6664 6665
  :
fi
6666

Sam Hocevar's avatar
 
Sam Hocevar committed
6667

6668
if test x$enable_dsp != xno &&
Sam Hocevar's avatar
 
Sam Hocevar committed
6669
  (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
Sam Hocevar's avatar
 
Sam Hocevar committed
6670
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6671 6672 6673 6674
  for ac_hdr in 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
6675
echo "configure:6676: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6676 6677 6678 6679
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
6680
#line 6681 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6681 6682 6683 6684
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6685
{ (eval echo configure:6686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705
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
6706
    PLUGINS="${PLUGINS} dsp"
Sam Hocevar's avatar
 
Sam Hocevar committed
6707 6708 6709 6710 6711 6712
  
else
  echo "$ac_t""no" 1>&6
fi
done

6713
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6714

6715 6716 6717
# Check whether --enable-esd or --disable-esd was given.
if test "${enable_esd+set}" = set; then
  enableval="$enable_esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6718 6719
  if test x$enable_esd = xyes
   then
Sam Hocevar's avatar
 
Sam Hocevar committed
6720 6721
     # Extract the first word of "esd-config", so it can be a program name with args.
set dummy esd-config; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
6722
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6723
echo "configure:6724: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6724 6725
if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6726
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6727 6728
  case "$ESD_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
6729 6730
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6731 6732 6733
  ?:/*)			 
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6734
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
6735 6736 6737 6738 6739 6740 6741 6742 6743 6744
  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"
Sam Hocevar's avatar
 
Sam Hocevar committed
6745 6746 6747 6748
  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6749
ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
6750
if test -n "$ESD_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6751
  echo "$ac_t""$ESD_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6752
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6753
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6754 6755
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6756 6757
     if test x${ESD_CONFIG} != xno
     then
Sam Hocevar's avatar
 
Sam Hocevar committed
6758
       PLUGINS="${PLUGINS} esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6759 6760
       CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
       LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
Sam Hocevar's avatar
 
Sam Hocevar committed
6761
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6762
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6763 6764
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6765

Sam Hocevar's avatar
 
Sam Hocevar committed
6766 6767 6768 6769 6770 6771 6772 6773
# 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
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6774
echo "configure:6775: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809
if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ARTS_CONFIG" in
  /*)
  ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ARTS_CONFIG="$ARTS_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_ARTS_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
  ;;
esac
fi
ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
if test -n "$ARTS_CONFIG"; then
  echo "$ac_t""$ARTS_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

     if test x${ARTS_CONFIG} != xno
     then
       PLUGINS="${PLUGINS} arts"
Sam Hocevar's avatar
 
Sam Hocevar committed
6810 6811
       CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
       LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
Sam Hocevar's avatar
 
Sam Hocevar committed
6812 6813 6814 6815 6816
     fi
   fi
fi


6817 6818 6819
# Check whether --enable-macosx or --disable-macosx was given.
if test "${enable_macosx+set}" = set; then
  enableval="$enable_macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
6820 6821
  if test x$enable_macosx = xyes
   then
6822
     BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
6823 6824
     LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
     CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6825
     LIB="${LIB} -ObjC"
Sam Hocevar's avatar
 
Sam Hocevar committed
6826
   fi
6827
else
6828
  for ac_hdr in Cocoa/Cocoa.h
6829
do
Sam Hocevar's avatar
 
Sam Hocevar committed
6830 6831
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6832
echo "configure:6833: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6833 6834 6835 6836
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
6837
#line 6838 "configure"
6838
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6839 6840 6841
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6842
{ (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6843 6844 6845 6846 6847 6848 6849
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
6850
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6851 6852
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
6853
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6854
rm -f conftest*
6855
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6856 6857 6858 6859 6860
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
6861
EOF
6862
 BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
6863 6864
     LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
     CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6865
     LIB="${LIB} -ObjC"
Sam Hocevar's avatar
 
Sam Hocevar committed
6866 6867 6868
   
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6869
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6870
done
Sam Hocevar's avatar
 
Sam Hocevar committed
6871

Sam Hocevar's avatar
 
Sam Hocevar committed
6872 6873
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6874

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

Sam Hocevar's avatar
 
Sam Hocevar committed
6881 6882
    if test x$enable_qnx != xno
    then
6883 6884 6885 6886
      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
6887
echo "configure:6888: checking for $ac_hdr" >&5
6888 6889 6890 6891
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
6892
#line 6893 "configure"
6893 6894 6895 6896
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897
{ (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918
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} qnx"
Sam Hocevar's avatar
 
Sam Hocevar committed
6919
        LIB_QNX="${LIB_QNX} -lasound -lph"
6920 6921 6922 6923 6924 6925 6926 6927
      
else
  echo "$ac_t""no" 1>&6
fi
done

    fi

Gildas Bazin's avatar
 
Gildas Bazin committed
6928 6929 6930
# Check whether --enable-a52 or --disable-a52 was given.
if test "${enable_a52+set}" = set; then
  enableval="$enable_a52"
Gildas Bazin's avatar
 
Gildas Bazin committed
6931 6932 6933 6934 6935 6936 6937 6938 6939
  :
fi

if ((test "x$enableval" != "xno") && (test x$SYS != xmingw32))
  then
    for ac_hdr in a52dec/a52.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6940
echo "configure:6941: checking for $ac_hdr" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
6941 6942 6943 6944
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
6945
#line 6946 "configure"
Gildas Bazin's avatar
 
Gildas Bazin committed
6946 6947 6948 6949
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6950
{ (eval echo configure:6951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Gildas Bazin's avatar
 
Gildas Bazin committed
6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970
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
 
Gildas Bazin's avatar
 
Gildas Bazin committed
6971 6972
      BUILTINS="${BUILTINS} a52"
      LIB_A52="${LIB_A52} -la52"
Gildas Bazin's avatar
 
Gildas Bazin committed
6973 6974 6975 6976 6977 6978 6979 6980
     
else
  echo "$ac_t""no" 1>&6
fi
done

fi

6981 6982 6983
# Check whether --enable-fb or --disable-fb was given.
if test "${enable_fb+set}" = set; then
  enableval="$enable_fb"
Sam Hocevar's avatar
 
Sam Hocevar committed
6984 6985 6986 6987
   if test x$enable_fb = xyes
    then
      PLUGINS="${PLUGINS} fb"
    fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
6988 6989
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6990

Sam Hocevar's avatar
 
Sam Hocevar committed
6991 6992 6993 6994 6995
# 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
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
6996
      PLUGINS="${PLUGINS} mga xmga"
Sam Hocevar's avatar
 
Sam Hocevar committed
6997 6998 6999 7000
    fi 
fi


Christophe Massiot's avatar
Christophe Massiot committed
7001 7002 7003
# Check whether --with-ggi or --without-ggi was given.
if test "${with_ggi+set}" = set; then
  withval="$with_ggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
7004
   if test "x$withval" != "xno"
Christophe Massiot's avatar
Christophe Massiot committed
7005
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7006 7007
      PLUGINS="${PLUGINS} ggi"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7008
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
7009
        LIB_GGI="${LIB_GGI} -l$withval"
Sam Hocevar's avatar
 
Sam Hocevar committed
7010
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
7011
        LIB_GGI="${LIB_GGI} -lggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
7012
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7013 7014 7015
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7016

7017 7018 7019 7020 7021 7022
# Check whether --enable-sdl or --disable-sdl was given.
if test "${enable_sdl+set}" = set; then
  enableval="$enable_sdl"
  :
fi

7023
if test "x$enable_sdl" != "xno"
7024
then
7025 7026 7027 7028 7029 7030 7031 7032 7033 7034
  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"
   if test "x$withval" != "xno"
      then
        SDL_PATH=$withval:$PATH
      fi 
fi

7035 7036
  # Extract the first word of "sdl12-config", so it can be a program name with args.
set dummy sdl12-config; ac_word=$2
7037
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7038
echo "configure:7039: checking for $ac_word" >&5
7039
if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7040 7041
  echo $ac_n "(cached) $ac_c" 1>&6
else
7042
  case "$SDL12_CONFIG" in
7043
  /*)
7044
  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7045 7046
  ;;
  ?:/*)			 
7047
  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7048 7049 7050
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7051
  ac_dummy="$SDL_PATH"
7052 7053 7054
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
7055
      ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7056 7057 7058 7059
      break
    fi
  done
  IFS="$ac_save_ifs"
7060
  test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7061 7062 7063
  ;;
esac
fi
7064 7065 7066
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
7067
else
7068
  echo "$ac_t""no" 1>&6
7069
fi
7070

7071 7072
  SDL_CONFIG=${SDL12_CONFIG}
  SDL_HEADER="SDL12/SDL.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7073 7074
  if test x${SDL_CONFIG} = xno
  then
7075 7076 7077
    # 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
7078
echo "configure:7079: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7079
if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7080 7081
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7082
  case "$SDL11_CONFIG" in
7083
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
7084
  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7085 7086
  ;;
  ?:/*)			 
Sam Hocevar's avatar
 
Sam Hocevar committed
7087
  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7088 7089 7090
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7091
  ac_dummy="$SDL_PATH"
7092 7093 7094
  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
7095
      ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7096 7097 7098 7099
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
7100
  test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7101 7102
  ;;
esac
7103
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7104 7105 7106
SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
if test -n "$SDL11_CONFIG"; then
  echo "$ac_t""$SDL11_CONFIG" 1>&6
7107
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7108
  echo "$ac_t""no" 1>&6
7109 7110
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7111
    SDL_CONFIG=${SDL11_CONFIG}
7112 7113
    SDL_HEADER="SDL11/SDL.h"
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7114 7115
  if test x${SDL_CONFIG} = xno
  then
7116 7117
    # Extract the first word of "sdl-config", so it can be a program name with args.
set dummy sdl-config; ac_word=$2
7118
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7119
echo "configure:7120: checking for $ac_word" >&5
7120
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7121 7122
  echo $ac_n "(cached) $ac_c" 1>&6
else
7123
  case "$SDL_CONFIG" in
7124
  /*)
7125
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7126 7127
  ;;
  ?:/*)			 
7128
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7129 7130 7131
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7132
  ac_dummy="$SDL_PATH"
7133 7134 7135
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
7136
      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7137 7138 7139 7140
      break
    fi
  done
  IFS="$ac_save_ifs"
7141
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7142 7143 7144
  ;;
esac
fi
7145 7146 7147
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
if test -n "$SDL_CONFIG"; then
  echo "$ac_t""$SDL_CONFIG" 1>&6
7148 7149
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7150 7151
fi

7152
    SDL_HEADER="SDL/SDL.h"
7153
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7154 7155
  if test x${SDL_CONFIG} != xno
  then
7156
    PLUGINS="${PLUGINS} sdl"
Sam Hocevar's avatar
 
Sam Hocevar committed
7157 7158
    CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
    LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
7159 7160
    save_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7161
    for ac_hdr in ${SDL_HEADER}
7162
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7163 7164
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7165
echo "configure:7166: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7166 7167 7168 7169
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
7170
#line 7171 "configure"
7171
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7172 7173 7174
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7175
{ (eval echo configure:7176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7176 7177 7178 7179 7180 7181 7182
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
7183
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7184 7185
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
7186
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7187
rm -f conftest*
7188
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7189 7190 7191 7192 7193
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
7194
EOF
7195 7196 7197 7198
 cat >> confdefs.h <<EOF
#define SDL_INCLUDE_FILE <${SDL_HEADER}>
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
7199 7200
else
  echo "$ac_t""no" 1>&6
7201 7202 7203 7204
{ 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; }
      
7205 7206 7207
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7208
    CPPFLAGS=$save_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
7209
    if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
Sam Hocevar's avatar
 
Sam Hocevar committed
7210
    then
7211 7212 7213
      { 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
7214
    fi
7215
  elif test "x$enable_sdl" =  "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7216
  then
7217 7218 7219
    { 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; }
7220 7221
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7222

7223 7224 7225
# Check whether --enable-directx or --disable-directx was given.
if test "${enable_directx+set}" = set; then
  enableval="$enable_directx"
7226
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
7227 7228
fi

7229 7230
if test "x$enableval" != "xno"
then
Sam Hocevar's avatar
 
Sam Hocevar committed
7231
  if test x$SYS = xmingw32
7232 7233
  then
    # Check whether --with-directx-path or --without-directx-path was given.
Gildas Bazin's avatar
 
Gildas Bazin committed
7234 7235 7236 7237 7238
if test "${with_directx_path+set}" = set; then
  withval="$with_directx_path"
  :
fi

7239 7240
    if test "x$with_directx_path" = "x"
    then
Gildas Bazin's avatar
 
Gildas Bazin committed
7241
      for ac_hdr in ddraw.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7242 7243 7244
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7245
echo "configure:7246: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7246 7247 7248 7249
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
7250
#line 7251 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7251 7252 7253 7254
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7255
{ (eval echo configure:7256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274
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
7275
  PLUGINS="${PLUGINS} directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7276
        LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" 
Sam Hocevar's avatar
 
Sam Hocevar committed
7277 7278 7279 7280 7281
else
  echo "$ac_t""no" 1>&6
fi
done

7282 7283
    else
      echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7284
echo "configure:7285: checking for directX headers in ${withval}" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
7285
      if test -f ${withval}/include/ddraw.h
7286 7287
      then
        PLUGINS="${PLUGINS} directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7288
        LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7289 7290
        INCLUDE="${INCLUDE} -I${withval}/include"
        echo "$ac_t""yes" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7291
      else
7292 7293
        echo "$ac_t""no" 1>&6
        { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
Gildas Bazin's avatar
 
Gildas Bazin committed
7294
      fi
7295 7296
    fi
  fi
7297 7298
fi

Gildas Bazin's avatar
 
Gildas Bazin committed
7299 7300 7301 7302 7303 7304
# Check whether --enable-waveout or --disable-waveout was given.
if test "${enable_waveout+set}" = set; then
  enableval="$enable_waveout"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7305
if ((test "x$enableval" != "xno") && (test x$SYS = xmingw32))
Gildas Bazin's avatar
 
Gildas Bazin committed
7306 7307 7308 7309 7310
  then
    PLUGINS="${PLUGINS} waveout"
    LIB_WAVEOUT="-lwinmm"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7311 7312 7313
# Check whether --enable-win32 or --disable-win32 was given.
if test "${enable_win32+set}" = set; then
  enableval="$enable_win32"
Sam Hocevar's avatar
 
Sam Hocevar committed
7314 7315 7316 7317
   if test "x$enableval" != "xno"
    then
      PLUGINS="${PLUGINS} win32"
    fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
7318 7319 7320
fi


Christophe Massiot's avatar
Christophe Massiot committed
7321 7322 7323
# Check whether --with-glide or --without-glide was given.
if test "${with_glide+set}" = set; then
  withval="$with_glide"
Sam Hocevar's avatar
 
Sam Hocevar committed
7324
   if test "x$withval" != "xno"
Christophe Massiot's avatar
Christophe Massiot committed
7325
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7326 7327
      PLUGINS="${PLUGINS} glide"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7328
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
7329
        LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
7330
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
7331
        LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
7332
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7333
      CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
Sam Hocevar's avatar
 
Sam Hocevar committed
7334 7335 7336
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7337

Sam Hocevar's avatar
 
Sam Hocevar committed
7338 7339 7340
# Check whether --enable-ncurses or --disable-ncurses was given.
if test "${enable_ncurses+set}" = set; then
  enableval="$enable_ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7341
  if test x$enable_ncurses = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7342
     PLUGINS="${PLUGINS} ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7343
     LIB_NCURSES="${LIB_NCURSES} -lncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7344
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7345 7346
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7347

Sam Hocevar's avatar
 
Sam Hocevar committed
7348 7349 7350
# Check whether --enable-qt or --disable-qt was given.
if test "${enable_qt+set}" = set; then
  enableval="$enable_qt"
Sam Hocevar's avatar
 
Sam Hocevar committed
7351
  if test x$enable_qt = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7352 7353
     PLUGINS="${PLUGINS} qt"
     ALIASES="${ALIASES} qvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7354 7355
     LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
     CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
Sam Hocevar's avatar
 
Sam Hocevar committed
7356
     if test -x ${QTDIR}/bin/moc
Sam Hocevar's avatar
 
Sam Hocevar committed
7357 7358 7359 7360 7361
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7362
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7363 7364
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7365

7366 7367 7368
# Check whether --enable-kde or --disable-kde was given.
if test "${enable_kde+set}" = set; then
  enableval="$enable_kde"
Sam Hocevar's avatar
 
Sam Hocevar committed
7369
  if test x$enable_kde = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7370 7371
     PLUGINS="${PLUGINS} kde"
     ALIASES="${ALIASES} kvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7372 7373 7374
     LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
     CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
     CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7375 7376 7377 7378 7379 7380
     if test -x ${QTDIR}/bin/moc
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7381
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7382 7383
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7384

7385 7386 7387
# Check whether --enable-gnome or --disable-gnome was given.
if test "${enable_gnome+set}" = set; then
  enableval="$enable_gnome"
Sam Hocevar's avatar
 
Sam Hocevar committed
7388
  if test x$enable_gnome = xyes; then
7389 7390 7391 7392
    # 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
7393
echo "configure:7394: checking for $ac_word" >&5
7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427
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
fi

    if test -x ${GNOME_CONFIG}
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7428 7429
       CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
       LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7430 7431 7432 7433 7434 7435 7436 7437
    fi
    # now look for the gnome.h header
    saved_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
    for ac_hdr in gnome.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7438
echo "configure:7439: checking for $ac_hdr" >&5
7439 7440 7441 7442
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
7443
#line 7444 "configure"
7444 7445 7446 7447
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7448
{ (eval echo configure:7449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482
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} gnome"
      ALIASES="${ALIASES} gnome-vlc"
     
else
  echo "$ac_t""no" 1>&6
{ echo "configure: error: Can't find gnome headers. Please install the gnome
developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
     
fi
done

  
    CPPFLAGS=$saved_CPPFLAGS
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7483 7484
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7485

Sam Hocevar's avatar
 
Sam Hocevar committed
7486 7487 7488
# 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
7489 7490
  :
fi
7491

Sam Hocevar's avatar
 
Sam Hocevar committed
7492 7493
if test x$enable_gtk != xno
then
7494 7495 7496 7497 7498 7499 7500 7501 7502 7503
  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"
   if test "x$withval" != "xno"
      then
        GTK_PATH=$withval:$PATH
      fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7504
  # look for gtk-config
Sam Hocevar's avatar
 
Sam Hocevar committed
7505 7506
  # Extract the first word of "gtk-config", so it can be a program name with args.
set dummy gtk-config; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
7507
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7508
echo "configure:7509: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7509 7510
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
7511
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7512 7513
  case "$GTK_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
7514 7515
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
7516 7517 7518
  ?:/*)			 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
7519
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
7520
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7521
  ac_dummy="$GTK_PATH"
Sam Hocevar's avatar
 
Sam Hocevar committed
7522 7523 7524 7525 7526 7527 7528 7529
  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
7530 7531 7532 7533
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7534
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
7535
if test -n "$GTK_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7536
  echo "$ac_t""$GTK_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7537
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7538
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7539 7540
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7541 7542
  if test -x ${GTK_CONFIG}
  then
Sam Hocevar's avatar
 
Sam Hocevar committed
7543 7544 7545 7546
    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
7547 7548
    CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
    LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7549
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7550 7551 7552
  # now look for the gtk.h header
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
Sam Hocevar's avatar
 
Sam Hocevar committed
7553
  ac_cv_gtk_headers=yes
7554
  for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7555 7556 7557
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7558
echo "configure:7559: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7559 7560 7561 7562
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
7563
#line 7564 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7564 7565 7566 7567
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7568
{ (eval echo configure:7569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590
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
7591 7592
ac_cv_gtk_headers=no
    echo "Cannot find gtk development headers."
7593
  
Sam Hocevar's avatar
 
Sam Hocevar committed
7594 7595 7596
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7597 7598
  if test "x$ac_cv_gtk_headers" = xyes
  then
7599 7600 7601
    PLUGINS="${PLUGINS} gtk"
    ALIASES="${ALIASES} gvlc"
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7602
  CPPFLAGS=$saved_CPPFLAGS
7603
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7604

7605 7606 7607
# 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
7608 7609
  :
fi
Henri Fallon's avatar
 
Henri Fallon committed
7610

7611
if test x$enable_x11 != xno &&
Sam Hocevar's avatar
 
Sam Hocevar committed
7612
  (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
Sam Hocevar's avatar
 
Sam Hocevar committed
7613 7614 7615 7616 7617 7618 7619 7620
  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
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7621
  for ac_hdr in X11/Xlib.h
7622
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7623 7624
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7625
echo "configure:7626: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7626 7627 7628 7629
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
7630
#line 7631 "configure"
7631
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7632 7633 7634
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7635
{ (eval echo configure:7636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7636 7637 7638 7639 7640 7641 7642
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
7643
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7644 7645
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
7646
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7647
rm -f conftest*
7648
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7649 7650 7651 7652 7653
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
7654
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7655
 
Sam Hocevar's avatar
 
Sam Hocevar committed
7656 7657 7658
    PLUGINS="${PLUGINS} x11"
    LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
    CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7659 7660 7661
  
else
  echo "$ac_t""no" 1>&6
7662 7663 7664
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7665
  CPPFLAGS=$saved_CPPFLAGS
7666
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7667

Sam Hocevar's avatar
 
Sam Hocevar committed
7668 7669 7670
# Check whether --enable-xvideo or --disable-xvideo was given.
if test "${enable_xvideo+set}" = set; then
  enableval="$enable_xvideo"
Sam Hocevar's avatar
 
Sam Hocevar committed
7671 7672
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7673

7674
if test x$enable_xvideo != xno &&
Sam Hocevar's avatar
 
Sam Hocevar committed
7675
  (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
Sam Hocevar's avatar
 
Sam Hocevar committed
7676 7677 7678 7679 7680 7681 7682 7683
  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
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7684
  for ac_hdr in X11/extensions/Xv.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7685
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7686 7687
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7688
echo "configure:7689: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7689 7690 7691 7692
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
7693
#line 7694 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7694
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7695 7696 7697
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7698
{ (eval echo configure:7699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7699 7700 7701 7702 7703 7704 7705
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
7706
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7707 7708
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
7709
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7710
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
7711
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7712 7713 7714 7715 7716
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
7717
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7718
 
Sam Hocevar's avatar
 
Sam Hocevar committed
7719 7720 7721
    saved_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
    echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7722
echo "configure:7723: checking for XvSetPortAttribute in -lXv_pic" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7723 7724 7725 7726 7727 7728 7729
ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | 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="-lXv_pic  $LIBS"
cat > conftest.$ac_ext <<EOF
7730
#line 7731 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7731 7732 7733 7734 7735 7736 7737 7738 7739 7740
#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 XvSetPortAttribute();

int main() {
XvSetPortAttribute()
; return 0; }
EOF
7741
if { (eval echo configure:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768
  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
  # We have Xv_pic, that's good, we can build an xvideo.so plugin !
      PLUGINS="${PLUGINS} xvideo"
      LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
      CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
else
  echo "$ac_t""no" 1>&6
# We don't have Xv_pic, let's make xvideo.a as builtin
      BUILTINS="${BUILTINS} xvideo"
      LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
      CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
fi

    CFLAGS=$saved_CFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
7769
  
Sam Hocevar's avatar
 
Sam Hocevar committed
7770
  CPPFLAGS=$saved_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
7771 7772
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7773 7774
fi
done
Sam Hocevar's avatar
 
Sam Hocevar committed
7775

Sam Hocevar's avatar
 
Sam Hocevar committed
7776
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7777

7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866
# 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
echo "configure:7789: checking for lirc/lirc_client.h" >&5
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
#line 7794 "configure"
#include "confdefs.h"
#include <lirc/lirc_client.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
echo "configure:7816: checking for lirc_init in -llirc_client" >&5
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
#line 7824 "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 lirc_init();

int main() {
lirc_init()
; return 0; }
EOF
if { (eval echo configure:7835: \"$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
  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"
    LIB_LIRC="${LIB_LIRC} -llirc_client"
  fi
fi

Henri Fallon's avatar
 
Henri Fallon committed
7867 7868 7869
# Check whether --enable-alsa or --disable-alsa was given.
if test "${enable_alsa+set}" = set; then
  enableval="$enable_alsa"
Sam Hocevar's avatar
 
Sam Hocevar committed
7870 7871
  if test x$enable_alsa = xyes
   then
Sam Hocevar's avatar
 
Sam Hocevar committed
7872 7873
     ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7874
echo "configure:7875: checking for alsa/asoundlib.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7875 7876 7877 7878
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
7879
#line 7880 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
7880
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7881
#include <alsa/asoundlib.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
7882 7883
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7884
{ (eval echo configure:7885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7885 7886 7887 7888 7889 7890 7891
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
Henri Fallon's avatar
 
Henri Fallon committed
7892
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7893 7894
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Henri Fallon's avatar
 
Henri Fallon committed
7895
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7896
rm -f conftest*
Henri Fallon's avatar
 
Henri Fallon committed
7897
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7898 7899 7900
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7901
echo "configure:7902: checking for main in -lasound" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7902 7903 7904
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
Henri Fallon's avatar
 
Henri Fallon committed
7905
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7906
  ac_save_LIBS="$LIBS"
Henri Fallon's avatar
 
Henri Fallon committed
7907
LIBS="-lasound  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
7908
cat > conftest.$ac_ext <<EOF
7909
#line 7910 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
7910 7911
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
7912 7913 7914 7915
int main() {
main()
; return 0; }
EOF
7916
if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930
  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
Henri Fallon's avatar
 
Henri Fallon committed
7931 7932
  have_alsa="true"
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7933 7934
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
7935 7936 7937
fi

else
Sam Hocevar's avatar
 
Sam Hocevar committed
7938 7939
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
7940
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7941 7942 7943 7944

     if test x$have_alsa = xtrue
     then
       PLUGINS="${PLUGINS} alsa"
Sam Hocevar's avatar
 
Sam Hocevar committed
7945
       LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
7946 7947
     fi
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7948 7949
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7950

7951 7952
fi

7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963
# 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


Sam Hocevar's avatar
 
Sam Hocevar committed
7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974
DLL_PATH=.
# Check whether --with-dll-path or --without-dll-path was given.
if test "${with_dll_path+set}" = set; then
  withval="$with_dll_path"
   if test "x$withval" != "xno"
    then
      DLL_PATH=$withval
    fi 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998
cat >> confdefs.h <<EOF
#define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
EOF

cat >> confdefs.h <<EOF
#define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
EOF


VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
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"


7999

8000 8001 8002 8003 8004





Henri Fallon's avatar
 
Henri Fallon committed
8005 8006 8007



Christophe Massiot's avatar
Christophe Massiot committed
8008 8009 8010



Sam Hocevar's avatar
 
Sam Hocevar committed
8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024














Sam Hocevar's avatar
 
Sam Hocevar committed
8025

Sam Hocevar's avatar
 
Sam Hocevar committed
8026

Sam Hocevar's avatar
 
Sam Hocevar committed
8027 8028 8029 8030




Sam Hocevar's avatar
 
Sam Hocevar committed
8031

Sam Hocevar's avatar
 
Sam Hocevar committed
8032 8033


8034

Sam Hocevar's avatar
 
Sam Hocevar committed
8035

Sam Hocevar's avatar
 
Sam Hocevar committed
8036

Sam Hocevar's avatar
 
Sam Hocevar committed
8037

Sam Hocevar's avatar
 
Sam Hocevar committed
8038

Sam Hocevar's avatar
 
Sam Hocevar committed
8039

Sam Hocevar's avatar
 
Sam Hocevar committed
8040 8041 8042



Sam Hocevar's avatar
 
Sam Hocevar committed
8043

Sam Hocevar's avatar
 
Sam Hocevar committed
8044

Sam Hocevar's avatar
 
Sam Hocevar committed
8045

Sam Hocevar's avatar
 
Sam Hocevar committed
8046

Sam Hocevar's avatar
 
Sam Hocevar committed
8047

Sam Hocevar's avatar
 
Sam Hocevar committed
8048 8049


8050

Sam Hocevar's avatar
 
Sam Hocevar committed
8051

Sam Hocevar's avatar
 
Sam Hocevar committed
8052 8053 8054



8055 8056


Sam Hocevar's avatar
 
Sam Hocevar committed
8057 8058 8059



Stéphane Borel's avatar
Stéphane Borel committed
8060 8061 8062



8063

8064

8065

Sam Hocevar's avatar
 
Sam Hocevar committed
8066 8067 8068 8069 8070 8071 8072 8073 8074









8075

Sam Hocevar's avatar
 
Sam Hocevar committed
8076 8077


Sam Hocevar's avatar
 
Sam Hocevar committed
8078 8079 8080



Gildas Bazin's avatar
 
Gildas Bazin committed
8081

Sam Hocevar's avatar
 
Sam Hocevar committed
8082 8083


Sam Hocevar's avatar
 
Sam Hocevar committed
8084

Gildas Bazin's avatar
 
Gildas Bazin committed
8085

Gildas Bazin's avatar
 
Gildas Bazin committed
8086

8087

8088

Sam Hocevar's avatar
 
Sam Hocevar committed
8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134

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
8135
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8136
rm -f confcache
8137

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8140 8141 8142
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8143

Sam Hocevar's avatar
 
Sam Hocevar committed
8144 8145 8146 8147 8148 8149 8150 8151 8152 8153
# 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
8154

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8158 8159 8160 8161 8162 8163 8164 8165
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`:
8166
#
Sam Hocevar's avatar
 
Sam Hocevar committed
8167
# $0 $ac_configure_args
8168
#
Sam Hocevar's avatar
 
Sam Hocevar committed
8169 8170
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
8171

Sam Hocevar's avatar
 
Sam Hocevar committed
8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189
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
8190

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227
# 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
8228 8229 8230 8231 8232 8233 8234 8235 8236 8237
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
8238
s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8239 8240 8241 8242
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
8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264
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
8265 8266 8267
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
8268
s%@WINDRES@%$WINDRES%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8269
s%@ESD_CONFIG@%$ESD_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8270
s%@ARTS_CONFIG@%$ARTS_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8271
s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8272 8273
s%@SDL11_CONFIG@%$SDL11_CONFIG%g
s%@SDL_CONFIG@%$SDL_CONFIG%g
8274
s%@GNOME_CONFIG@%$GNOME_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8275
s%@GTK_CONFIG@%$GTK_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8276 8277
s%@DATA_PATH@%$DATA_PATH%g
s%@PLUGIN_PATH@%$PLUGIN_PATH%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8278 8279 8280 8281 8282 8283 8284
s%@SYS@%$SYS%g
s%@ARCH@%$ARCH%g
s%@PLUGINS@%$PLUGINS%g
s%@BUILTINS@%$BUILTINS%g
s%@ALIASES@%$ALIASES%g
s%@INCLUDE@%$INCLUDE%g
s%@DEBUG@%$DEBUG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8285
s%@ASM@%$ASM%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8286
s%@TRACE@%$TRACE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8287 8288
s%@CPROF@%$CPROF%g
s%@GPROF@%$GPROF%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8289
s%@OPTIMS@%$OPTIMS%g
8290
s%@TUNING@%$TUNING%g
8291
s%@RELEASE@%$RELEASE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8292
s%@MOC@%$MOC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8293
s%@DLL_PATH@%$DLL_PATH%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8294 8295
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8296 8297 8298
s%@VCD_DEVICE@%$VCD_DEVICE%g
s%@DVD_DEVICE@%$DVD_DEVICE%g
s%@PLDFLAGS@%$PLDFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8299
s%@SOFLAGS@%$SOFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8300 8301
s%@LIB@%$LIB%g
s%@LIB_ALSA@%$LIB_ALSA%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8302
s%@LIB_ARTS@%$LIB_ARTS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8303 8304
s%@LIB_BEOS@%$LIB_BEOS%g
s%@LIB_DARWIN@%$LIB_DARWIN%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8305
s%@LIB_DIRECTX@%$LIB_DIRECTX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8306
s%@LIB_DVD@%$LIB_DVD%g
Stéphane Borel's avatar
Stéphane Borel committed
8307
s%@LIB_DVDREAD@%$LIB_DVDREAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8308
s%@LIB_ESD@%$LIB_ESD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8309
s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8310 8311 8312 8313
s%@LIB_GGI@%$LIB_GGI%g
s%@LIB_GLIDE@%$LIB_GLIDE%g
s%@LIB_GNOME@%$LIB_GNOME%g
s%@LIB_GTK@%$LIB_GTK%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8314
s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8315 8316 8317
s%@LIB_IMDCT@%$LIB_IMDCT%g
s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8318
s%@LIB_KDE@%$LIB_KDE%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8319
s%@LIB_A52@%$LIB_A52%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8320
s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8321
s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8322
s%@LIB_LIRC@%$LIB_LIRC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8323
s%@LIB_MACOSX@%$LIB_MACOSX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8324
s%@LIB_MAD@%$LIB_MAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8325
s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8326
s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8327
s%@LIB_NCURSES@%$LIB_NCURSES%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8328
s%@LIB_QNX@%$LIB_QNX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8329
s%@LIB_QT@%$LIB_QT%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8330
s%@LIB_RC@%$LIB_RC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8331
s%@LIB_SDL@%$LIB_SDL%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8332
s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8333
s%@LIB_WIN32@%$LIB_WIN32%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8334 8335 8336
s%@LIB_X11@%$LIB_X11%g
s%@LIB_XVIDEO@%$LIB_XVIDEO%g
s%@CFLAGS_VLC@%$CFLAGS_VLC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8337
s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8338
s%@CFLAGS_DVD@%$CFLAGS_DVD%g
Stéphane Borel's avatar
Stéphane Borel committed
8339
s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8340
s%@CFLAGS_ESD@%$CFLAGS_ESD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8341 8342
s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8343
s%@CFLAGS_GTK@%$CFLAGS_GTK%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8344 8345 8346 8347
s%@CFLAGS_KDE@%$CFLAGS_KDE%g
s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8348
s%@CFLAGS_MAD@%$CFLAGS_MAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8349
s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8350 8351
s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8352
s%@CFLAGS_QT@%$CFLAGS_QT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8353
s%@CFLAGS_SDL@%$CFLAGS_SDL%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8354
s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8355
s%@CFLAGS_X11@%$CFLAGS_X11%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8356
s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8357 8358
s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8359
s%@NEED_GETOPT@%$NEED_GETOPT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8360
s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386

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
8387
    else
Sam Hocevar's avatar
 
Sam Hocevar committed
8388
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8389
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8390 8391 8392
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
8393
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8394 8395 8396 8397 8398
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
8399

Sam Hocevar's avatar
 
Sam Hocevar committed
8400 8401
cat >> $CONFIG_STATUS <<EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8402
CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8403
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8404 8405
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8406
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
8407 8408 8409 8410
  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" ;;
8411 8412
  esac

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8415 8416 8417 8418 8419 8420
  # 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%^\./%%'`"
8421
    # A "../" for each directory in $ac_dir_suffix.
Sam Hocevar's avatar
 
Sam Hocevar committed
8422
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8423 8424 8425 8426
  else
    ac_dir_suffix= ac_dots=
  fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8427 8428 8429 8430 8431
  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" ;;
8432
  *) # Relative path.
Sam Hocevar's avatar
 
Sam Hocevar committed
8433 8434
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
8435 8436
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8437 8438 8439
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8440 8441
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8442 8443 8444 8445 8446 8447 8448 8449
  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
8450

Sam Hocevar's avatar
 
Sam Hocevar committed
8451 8452 8453 8454 8455 8456 8457 8458 8459
  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*
8460 8461 8462 8463 8464

# 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
8465 8466 8467 8468 8469 8470 8471
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'
8472
ac_uC=' '
Sam Hocevar's avatar
 
Sam Hocevar committed
8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487
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
8488
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
8489 8490 8491 8492
  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" ;;
8493 8494
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8495 8496 8497 8498 8499
  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
8500 8501 8502

EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513
# 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
8514
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8515 8516
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
8517 8518 8519 8520

# 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
8521 8522
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8523 8524
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8525 8526
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
8527 8528

rm -f conftest.tail
Sam Hocevar's avatar
 
Sam Hocevar committed
8529
while :
8530
do
Sam Hocevar's avatar
 
Sam Hocevar committed
8531 8532 8533 8534 8535 8536
  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
8537
  echo 'CEOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8538 8539 8540 8541 8542 8543 8544
  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
8545
done
Sam Hocevar's avatar
 
Sam Hocevar committed
8546 8547 8548 8549 8550 8551 8552 8553 8554 8555
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
8556
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
8557 8558
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8559
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8560 8561
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
8562
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8563 8564
    rm -f $ac_file
    mv conftest.h $ac_file
8565
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8566 8567
fi; done

8568
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8569
cat >> $CONFIG_STATUS <<EOF
8570

Sam Hocevar's avatar
 
Sam Hocevar committed
8571

Sam Hocevar's avatar
 
Sam Hocevar committed
8572 8573
EOF
cat >> $CONFIG_STATUS <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602
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
8603

Sam Hocevar's avatar
 
Sam Hocevar committed
8604
exit 0
8605 8606
EOF
chmod +x $CONFIG_STATUS
Sam Hocevar's avatar
 
Sam Hocevar committed
8607 8608 8609
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

8610

8611
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8612 8613 8614 8615
global configuration
--------------------
system                : ${SYS}
architecture          : ${ARCH}
8616
optimizations         : ${OPTIMS}
8617 8618
tuning:               : ${TUNING}
release:              : ${RELEASE}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8619

Sam Hocevar's avatar
 
Sam Hocevar committed
8620 8621 8622
if test x${HAVE_VLC} = x1
then
  echo "
8623 8624 8625
vlc configuration
-----------------
vlc version           : ${VLC_VERSION}
8626
debug mode            : ${DEBUG}
8627
trace mode            : ${TRACE}
Sam Hocevar's avatar
 
Sam Hocevar committed
8628
cprof/gprof support   : ${CPROF}/${GPROF}
Sam Hocevar's avatar
 
Sam Hocevar committed
8629
need builtin getopt   : ${NEED_GETOPT}
Sam Hocevar's avatar
 
Sam Hocevar committed
8630
built-in modules      :${BUILTINS}
8631
plug-in modules       :${PLUGINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
8632 8633
vlc aliases           :${ALIASES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8634

Sam Hocevar's avatar
 
Sam Hocevar committed
8635
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8636 8637
libdvdcss configuration
-----------------------
Sam Hocevar's avatar
 
Sam Hocevar committed
8638
can be built          : ${CAN_BUILD_LIBDVDCSS}
Sam Hocevar's avatar
 
Sam Hocevar committed
8639 8640
will be built         : ${NEED_LIBDVDCSS}"
if test x${NEED_LIBDVDCSS} = x1
Sam Hocevar's avatar
 
Sam Hocevar committed
8641
then
Sam Hocevar's avatar
 
Sam Hocevar committed
8642
  echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8643 8644 8645
  echo "link statically       : ${STATIC_LIBDVDCSS}"
else
  echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8646 8647 8648
fi

echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8649 8650 8651 8652 8653
You may now tune Makefile.opts at your convenience, for instance to choose
which modules get compiled as plugins.
"
if test x${HAVE_VLC} = x1
then
Sam Hocevar's avatar
 
Sam Hocevar committed
8654
  echo "To build vlc and its plugins, type \`make vlc plugins'."
Sam Hocevar's avatar
 
Sam Hocevar committed
8655 8656 8657 8658 8659 8660
fi
if test x${HAVE_LIBDVDCSS} = x1
then
  echo "To build libdvdcss only, type \`make libdvdcss'."
fi
echo ""
8661