configure 241 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
ac_help="$ac_help
  --enable-debug          Enable debug mode (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
31
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
32 33 34
  --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
35 36
ac_help="$ac_help
  --disable-optimizations Disable compiler optimizations (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
37 38
ac_help="$ac_help
  --enable-pth            Enable GNU Pth support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
39 40
ac_help="$ac_help
  --enable-st             Enable State Threads (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
ac_help="$ac_help
  --disable-dummy         dummy module (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
53 54
ac_help="$ac_help
  --disable-logger        file logger module (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
55 56 57
ac_help="$ac_help
  --disable-null          Null module (default enabled)"
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
58
  --disable-rc            Remote Control module (default enabled)"
59
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
60
  --with-mad[=PATH]       libmad module (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
61 62 63 64
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
65 66
ac_help="$ac_help
  --enable-arts           aRts sound server (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
67
ac_help="$ac_help
68
  --enable-macosx         MacOS X support (default enabled on MacOS X)"
69
ac_help="$ac_help
70
  --disable-qnx           QNX RTOS support (default enabled on QNX RTOS)"
Gildas Bazin's avatar
 
Gildas Bazin committed
71
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
72
  --disable-a52           AC3 support with liba52 (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
73 74
ac_help="$ac_help
  --enable-fb             Linux framebuffer support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
75 76
ac_help="$ac_help
  --enable-mga            Linux kernel Matrox support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
77 78 79
ac_help="$ac_help
  --with-ggi[=name]       GGI support (default disabled)"
ac_help="$ac_help
80
  --disable-sdl           SDL support (default enabled)"
81 82
ac_help="$ac_help
  --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
Sam Hocevar's avatar
 
Sam Hocevar committed
83
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
84
  --disable-directx       Win32 DirectX support (default enabled on Win32)"
Xavier Marchesini's avatar
 
Xavier Marchesini committed
85
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
86
  --with-directx-path=path Win32 DirectX headers and libraries"
Sam Hocevar's avatar
 
Sam Hocevar committed
87
ac_help="$ac_help
Gildas Bazin's avatar
 
Gildas Bazin committed
88 89 90
  --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
91 92 93 94 95 96 97 98 99 100 101 102
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)"
103 104
ac_help="$ac_help
  --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
Sam Hocevar's avatar
 
Sam Hocevar committed
105 106 107 108
ac_help="$ac_help
  --disable-x11           X11 support (default enabled)"
ac_help="$ac_help
  --disable-xvideo        XVideo support (default enabled)"
109 110
ac_help="$ac_help
  --enable-lirc           lirc support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
111
ac_help="$ac_help
112 113
  --enable-alsa           Alsa sound drivers support (Only for linux)
                          (default disabled)"
114 115
ac_help="$ac_help
  --disable-plugins       Make all plug-ins built-in (default plug-ins enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
116 117
ac_help="$ac_help
  --with-dll-path=path    Path to Win32 DLLs (default search in \$PWD)"
118 119 120 121

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
178
  case "$ac_option" in
179 180 181 182

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

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

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

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
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 290 291
  -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 ;;
292 293

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  -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
429
    sysconfdir="$ac_optarg" ;;
430 431

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

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

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

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

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

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

  -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
481
    x_libraries="$ac_optarg" ;;
482

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

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

  esac
done

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

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

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

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

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
627 628


629

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

649

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


671
# Make sure we can run config.sub.
Sam Hocevar's avatar
 
Sam Hocevar committed
672 673 674 675 676
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
677
echo "configure:678: checking host system type" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696

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

697
echo $ac_n "checking target system type""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
698
echo "configure:699: checking target system type" >&5
699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715

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

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

echo $ac_n "checking build system type""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
716
echo "configure:717: checking build system type" >&5
717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737

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

738

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

Sam Hocevar's avatar
 
Sam Hocevar committed
746 747 748
HAVE_LIBDVDCSS=0
if test -r extras/libdvdcss/libdvdcss.c; then
  HAVE_LIBDVDCSS=1
749
  LIBDVDCSS_VERSION="1.0.1-dev"
Sam Hocevar's avatar
 
Sam Hocevar committed
750
  
751 752 753 754 755 756
  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
757
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
758

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
867 868 869 870 871 872
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
873
echo "configure:874: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
874 875
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
876 877 878 879
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
880 881 882 883 884 885 886 887 888 889
  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"
890 891
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
892
CC="$ac_cv_prog_CC"
893
if test -n "$CC"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
894
  echo "$ac_t""$CC" 1>&6
895
else
Sam Hocevar's avatar
 
Sam Hocevar committed
896
  echo "$ac_t""no" 1>&6
897
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
898 899 900 901
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
902 903
fi

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
914
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
915

Sam Hocevar's avatar
 
Sam Hocevar committed
916
#line 917 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
917 918
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
919 920
main(){return(0);}
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
921
if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
922 923 924 925
  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
926
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
927
    ac_cv_prog_cc_cross=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
928
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
929 930 931 932
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
933
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
934 935 936 937 938 939 940 941 942 943 944 945 946
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

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

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
952
echo "configure:953: checking whether we are using GNU C" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
953 954 955 956 957 958 959 960
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
961
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
962
  ac_cv_prog_gcc=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
963
else
Sam Hocevar's avatar
 
Sam Hocevar committed
964 965
  ac_cv_prog_gcc=no
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
966 967
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
968
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
969

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
992
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
993 994

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

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

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1101
echo "configure:1102: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
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 1131 1132
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1133
echo "configure:1134: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
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 1164 1165
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
1166
ALL_LINGUAS="de fr no ru"
Sam Hocevar's avatar
Sam Hocevar committed
1167

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

cat >> confdefs.h <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1173
#define VERSION "$VLC_VERSION"
Sam Hocevar's avatar
 
Sam Hocevar committed
1174 1175 1176 1177 1178
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1179
echo "configure:1180: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1206 1207
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1208
echo "configure:1209: checking for strerror in -lcposix" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1209 1210 1211 1212 1213 1214 1215
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1216
#line 1217 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1217 1218 1219 1220 1221 1222 1223 1224 1225 1226
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1227
if { (eval echo configure:1228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1250
echo "configure:1251: checking for ANSI C header files" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1251 1252 1253 1254
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1255
#line 1256 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1256 1257 1258 1259 1260 1261 1262
#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"
Sam Hocevar's avatar
 
Sam Hocevar committed
1263
{ (eval echo configure:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1280
#line 1281 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1298
#line 1299 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1319
#line 1320 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1320 1321 1322 1323 1324 1325 1326 1327 1328 1329
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1330
if { (eval echo configure:1331: \"$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
1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1354
echo "configure:1355: checking for working const" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1355 1356 1357 1358
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1359
#line 1360 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1406 1407
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1408
if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1429
echo "configure:1430: checking for inline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1430 1431 1432 1433 1434 1435
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1436
#line 1437 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1437 1438 1439 1440 1441 1442
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1443
if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1469
echo "configure:1470: checking for off_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1470 1471 1472 1473
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1474
#line 1475 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1500 1501
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1502
echo "configure:1503: checking for size_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1503 1504 1505 1506
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1507
#line 1508 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1537
echo "configure:1538: checking for working alloca.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1538 1539 1540 1541
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1542
#line 1543 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1543 1544 1545 1546 1547 1548
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1549
if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569
  rm -rf conftest*
  ac_cv_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
Sam Hocevar's avatar
 
Sam Hocevar committed
1570
echo "configure:1571: checking for alloca" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1571 1572 1573 1574
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1575
#line 1576 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1601 1602
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1603
if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1633 1634
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1635
echo "configure:1636: checking whether alloca needs Cray hooks" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1636 1637 1638 1639
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1640
#line 1641 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1665
echo "configure:1666: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1666 1667 1668 1669
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1670
#line 1671 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1693
if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1720
echo "configure:1721: checking stack direction for C alloca" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1721 1722 1723 1724 1725 1726 1727
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1728
#line 1729 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1747
if { (eval echo configure:1748: \"$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
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1772
echo "configure:1773: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1773 1774 1775 1776
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1777
#line 1778 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1778 1779 1780 1781
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
1782
{ (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1809 1810
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1811
echo "configure:1812: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1812 1813 1814 1815
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1816
#line 1817 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1839
if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1864
echo "configure:1865: checking for working mmap" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1865 1866 1867 1868 1869 1870 1871
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1872
#line 1873 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2010 2011
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2012
if { (eval echo configure:2013: \"$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
2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2036
echo "configure:2037: checking whether we are using the GNU C Library 2.1 or newer" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2037 2038 2039 2040
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2041
#line 2042 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2075 2076
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2077
echo "configure:2078: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2078 2079 2080 2081
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2082
#line 2083 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2083 2084 2085 2086
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
2087
{ (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2116 2117
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2118
echo "configure:2119: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2119 2120 2121 2122
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2123
#line 2124 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2146
if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2184 2185
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2186
echo "configure:2187: checking for iconv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2187 2188 2189 2190 2191 2192 2193
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2194
#line 2195 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2195 2196 2197 2198 2199 2200 2201 2202 2203
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2204
if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2216
#line 2217 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2217 2218 2219 2220 2221 2222 2223 2224 2225
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2226
if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2247
echo "configure:2248: checking for iconv declaration" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2248 2249 2250 2251 2252
    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
Sam Hocevar's avatar
 
Sam Hocevar committed
2253
#line 2254 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2272
if { (eval echo configure:2273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2299 2300
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2301
echo "configure:2302: checking for nl_langinfo and CODESET" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2302 2303 2304 2305
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2306
#line 2307 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2307 2308 2309 2310 2311 2312
#include "confdefs.h"
#include <langinfo.h>
int main() {
char* cs = nl_langinfo(CODESET);
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2313
if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2336
echo "configure:2337: checking for LC_MESSAGES" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2337 2338 2339 2340
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2341
#line 2342 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2342 2343 2344 2345 2346 2347
#include "confdefs.h"
#include <locale.h>
int main() {
return LC_MESSAGES
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2348
if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2369
echo "configure:2370: checking whether NLS is requested" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390
        # 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
Sam Hocevar's avatar
 
Sam Hocevar committed
2391
echo "configure:2392: checking whether included gettext is requested" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410
      # 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
Sam Hocevar's avatar
 
Sam Hocevar committed
2411
echo "configure:2412: checking for libintl.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2412 2413 2414 2415
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2416
#line 2417 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2417 2418 2419 2420
#include "confdefs.h"
#include <libintl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
2421
{ (eval echo configure:2422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2438
echo "configure:2439: checking for GNU gettext in libc" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2439 2440 2441 2442
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2443
#line 2444 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2444 2445 2446 2447 2448 2449 2450 2451
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2452
if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2468
echo "configure:2469: checking for GNU gettext in libintl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2469 2470 2471 2472 2473 2474
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2475
#line 2476 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2476 2477 2478 2479 2480 2481 2482 2483
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2484
if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2515 2516
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2517
echo "configure:2518: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2518 2519 2520 2521
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2522
#line 2523 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2545
if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2572 2573
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2574
echo "configure:2575: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2606 2607
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2608
echo "configure:2609: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2643 2644
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2645
echo "configure:2646: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671
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
2672
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2673
  echo "$ac_t""no" 1>&6
2674 2675
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2676 2677 2678 2679

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2684 2685 2686 2687 2688 2689 2690 2691 2692 2693

        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
2694
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2695
echo "configure:2696: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2696
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2697 2698
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2727 2728
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2729
echo "configure:2730: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2730 2731
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2732
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2733 2734 2735 2736 2737 2738 2739 2740
  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.
  ;;
  *)
2741 2742
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
Sam Hocevar's avatar
 
Sam Hocevar committed
2743
  for ac_dir in $ac_dummy; do 
2744 2745
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2746
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2747 2748 2749 2750
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
2751 2752 2753
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
esac
2754
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2755 2756 2757 2758 2759
GMSGFMT="$ac_cv_path_GMSGFMT"
if test -n "$GMSGFMT"; then
  echo "$ac_t""$GMSGFMT" 1>&6
else
  echo "$ac_t""no" 1>&6
2760
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2761 2762 2763 2764

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
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 2833 2834
                  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
2835
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2836
echo "configure:2837: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2837
if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2838
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2839
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2840 2841
  if test -n "$INTLBISON"; then
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
Sam Hocevar's avatar
 
Sam Hocevar committed
2842
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2843 2844 2845 2846 2847
  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
2848
      ac_cv_prog_INTLBISON="$ac_prog"
Sam Hocevar's avatar
 
Sam Hocevar committed
2849 2850 2851 2852
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
2853 2854
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2855 2856 2857
INTLBISON="$ac_cv_prog_INTLBISON"
if test -n "$INTLBISON"; then
  echo "$ac_t""$INTLBISON" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2858
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2859
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2860 2861
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2862 2863 2864 2865 2866 2867 2868
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2869
echo "configure:2870: checking version of bison" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2914 2915
      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
Sam Hocevar's avatar
 
Sam Hocevar committed
2916
echo "configure:2917: checking for catalogs to be installed" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
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 2949 2950
       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
   
2951

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3020

Gildas Bazin's avatar
 
Gildas Bazin committed
3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038
case x"${target_os}" in
  x)
    SYS=unknown
    ;;
  xlinux*)
    SYS=linux
    ;;
  xbsdi*)
    SYS=bsdi
    ;;
  xdarwin*)
    SYS=darwin
    ;;
  x*mingw32*)
    SYS=mingw32
    # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
set dummy ${ac_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3039
echo "configure:3040: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3071
echo "configure:3072: checking for $ac_word" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112
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

    LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
    LIB_RC="${LIB_RC} -lws2_32"
    ;;
  x*nto*)
    SYS=nto
    LIB_X11="${LIB_X11} -lsocket"
    LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
    ;;
  xbeos)
    SYS=beos
Sam Hocevar's avatar
 
Sam Hocevar committed
3113
    LIB="${LIB} -lbe -lbind"
Gildas Bazin's avatar
 
Gildas Bazin committed
3114 3115 3116 3117 3118 3119 3120 3121
    LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
    PLDFLAGS="${PLDFLAGS} -nostart"
    ;;
  x*)
    SYS=${target_os}
    ;;
esac

Sam Hocevar's avatar
 
Sam Hocevar committed
3122
# Check whether --with-words or --without-words was given.
3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135
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
      ;;
    *)
3136
                  echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3137
echo "configure:3138: checking whether the byte order is big-endian" >&5
3138 3139 3140 3141
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
3142 3143 3144 3145 3146 3147 3148 3149 3150
        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
3151 3152 3153 3154 3155
        
        if test -f conftest.c
        then 
          if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
              && test -f conftest.o
3156
          then
Sam Hocevar's avatar
 
Sam Hocevar committed
3157
            if test "`strings conftest.o | grep BIGenDianSyS`"
3158 3159 3160
            then
              ac_cv_c_bigendian=yes
            fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3161
            if test "`strings conftest.o | grep LiTTleEnDian`"
3162 3163 3164
            then
              ac_cv_c_bigendian=no
            fi
3165 3166
          fi
        fi
3167 3168 3169 3170
      
fi

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3171
      if test x$ac_cv_c_bigendian = xunknown
3172 3173 3174 3175 3176
      then
        { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
      fi
      ;;
  esac
3177 3178 3179 3180 3181 3182 3183
if test $ac_cv_c_bigendian = yes
then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi
3184

Sam Hocevar's avatar
 
Sam Hocevar committed
3185
for ac_func in gettimeofday select strerror strtod strtol isatty
3186
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3187
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3188
echo "configure:3189: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3189 3190
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3191
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3192
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3193
#line 3194 "configure"
3194 3195
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3196
    which can conflict with char $ac_func(); below.  */
3197 3198 3199
#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
3200 3201 3202 3203
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
3204 3205 3206 3207 3208 3209 3210

/* 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
3211
$ac_func();
3212 3213
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3214
; return 0; }
3215
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3216
if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3217 3218 3219 3220 3221 3222 3223 3224 3225 3226
  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
3227

Sam Hocevar's avatar
 
Sam Hocevar committed
3228 3229 3230 3231 3232 3233 3234 3235 3236
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
3237 3238 3239
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3240
echo $ac_n "checking for connect""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3241
echo "configure:3242: checking for connect" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3242 3243
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3244
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3245
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3246
#line 3247 "configure"
3247 3248
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3249
    which can conflict with char connect(); below.  */
3250 3251 3252
#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
3253 3254 3255 3256
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
3257 3258 3259 3260 3261 3262 3263

/* 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
3264
connect();
3265 3266
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3267 3268
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3269
if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282
  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
3283 3284
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3285
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3286

Sam Hocevar's avatar
 
Sam Hocevar committed
3287
  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3288
echo "configure:3289: checking for connect in -lsocket" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3289 3290 3291
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
3292
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3293
  ac_save_LIBS="$LIBS"
3294
LIBS="-lsocket  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3295
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3296
#line 3297 "configure"
3297 3298 3299
#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
3300 3301 3302 3303 3304 3305 3306
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
connect()
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3307
if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321
  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
3322
  LIB="${LIB} -lsocket"
Sam Hocevar's avatar
 
Sam Hocevar committed
3323 3324
else
  echo "$ac_t""no" 1>&6
3325 3326
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3327

3328 3329
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3330
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3331
echo "configure:3332: checking for gethostbyname" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3332 3333
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3334
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3335
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3336
#line 3337 "configure"
3337 3338
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3339
    which can conflict with char gethostbyname(); below.  */
3340 3341 3342
#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
3343 3344 3345 3346
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
3347 3348 3349 3350 3351 3352 3353

/* 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
3354
gethostbyname();
3355 3356
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3357 3358
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3359
if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372
  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
3373 3374
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3375
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3376

Sam Hocevar's avatar
 
Sam Hocevar committed
3377
  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3378
echo "configure:3379: checking for gethostbyname in -lnsl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3379 3380 3381
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
3382
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3383
  ac_save_LIBS="$LIBS"
3384
LIBS="-lnsl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3385
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3386
#line 3387 "configure"
3387 3388 3389
#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
3390 3391 3392 3393 3394 3395 3396
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3397
if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411
  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
3412
  LIB="${LIB} -lnsl"
Sam Hocevar's avatar
 
Sam Hocevar committed
3413 3414
else
  echo "$ac_t""no" 1>&6
3415 3416
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3417

3418 3419
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3420
echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3421
echo "configure:3422: checking for nanosleep" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3422 3423
if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3424
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3425
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3426
#line 3427 "configure"
3427 3428
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3429
    which can conflict with char nanosleep(); below.  */
3430 3431 3432
#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
3433 3434 3435 3436
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
3437 3438 3439 3440 3441 3442 3443

/* 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
3444
nanosleep();
3445 3446
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3447 3448
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3449
if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462
  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
3463 3464
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3465
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3466

Sam Hocevar's avatar
 
Sam Hocevar committed
3467
  echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3468
echo "configure:3469: checking for nanosleep in -lrt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3469 3470 3471
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
3472
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3473
  ac_save_LIBS="$LIBS"
3474
LIBS="-lrt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3475
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3476
#line 3477 "configure"
3477 3478 3479
#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
3480 3481 3482 3483 3484 3485 3486
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3487
if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501
  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
3502
  LIB="${LIB} -lrt"
3503
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3504
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3505

Sam Hocevar's avatar
 
Sam Hocevar committed
3506
    echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3507
echo "configure:3508: checking for nanosleep in -lposix4" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3508 3509 3510
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
3511
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3512
  ac_save_LIBS="$LIBS"
3513
LIBS="-lposix4  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3514
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3515
#line 3516 "configure"
3516 3517 3518
#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
3519 3520 3521 3522 3523 3524 3525
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3526
if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540
  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
3541
  LIB="${LIB} -lposix4"
Sam Hocevar's avatar
 
Sam Hocevar committed
3542 3543
else
  echo "$ac_t""no" 1>&6
3544 3545
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3546
  
3547 3548
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3549

3550 3551 3552 3553
fi

for ac_func in usleep
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3554
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3555
echo "configure:3556: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3556 3557 3558 3559
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3560
#line 3561 "configure"
3561 3562
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3563
    which can conflict with char $ac_func(); below.  */
3564 3565 3566
#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
3567 3568 3569 3570
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
3571 3572 3573 3574 3575

/* 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
3576 3577
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
3578
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
3579
#endif
3580

Sam Hocevar's avatar
 
Sam Hocevar committed
3581
; return 0; }
3582
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3583
if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3584 3585 3586 3587 3588 3589 3590 3591 3592 3593
  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
3594

Sam Hocevar's avatar
 
Sam Hocevar committed
3595 3596 3597 3598 3599 3600 3601 3602 3603
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
3604 3605 3606
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3607
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3608
echo "configure:3609: checking for inet_aton" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3609 3610
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3611
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3612
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3613
#line 3614 "configure"
3614 3615
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3616
    which can conflict with char inet_aton(); below.  */
3617 3618 3619
#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
3620 3621 3622 3623
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
3624 3625 3626 3627 3628 3629 3630

/* 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
3631
inet_aton();
3632 3633
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3634 3635
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3636
if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649
  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
3650 3651
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3652
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3653

Sam Hocevar's avatar
 
Sam Hocevar committed
3654
  echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3655
echo "configure:3656: checking for inet_aton in -lresolv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3656 3657 3658
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
3659
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3660
  ac_save_LIBS="$LIBS"
3661
LIBS="-lresolv  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3662
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3663
#line 3664 "configure"
3664 3665 3666
#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
3667 3668 3669 3670 3671 3672 3673
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
inet_aton()
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3674
if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688
  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
3689
  LIB="${LIB} -lresolv"
Sam Hocevar's avatar
 
Sam Hocevar committed
3690 3691
else
  echo "$ac_t""no" 1>&6
3692 3693
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3694

3695 3696
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3697 3698
for ac_func in vasprintf
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3699
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3700
echo "configure:3701: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3701 3702 3703 3704
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3705
#line 3706 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3706 3707
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3708
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3709 3710 3711
#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
3712 3713 3714 3715
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3716 3717 3718 3719 3720 3721 3722

/* 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
3723
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
3724 3725
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3726
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3727
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3728
if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3729 3730 3731 3732 3733 3734 3735 3736 3737 3738
  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
3739

Sam Hocevar's avatar
 
Sam Hocevar committed
3740 3741 3742 3743 3744 3745 3746 3747 3748
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
3749 3750 3751
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3752 3753
for ac_func in swab
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3754
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3755
echo "configure:3756: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3756 3757 3758 3759
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3760
#line 3761 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
3783
if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806
  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

3807
for ac_func in memalign valloc
3808 3809
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3810
echo "configure:3811: checking for $ac_func" >&5
3811 3812 3813 3814
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3815
#line 3816 "configure"
3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
3838
if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861
  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
3862 3863 3864 3865

for ac_func in sigrelse
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3866
echo "configure:3867: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3867 3868 3869 3870
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3871
#line 3872 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3872 3873
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3874
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3875 3876 3877
#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
3878 3879 3880 3881
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3882 3883 3884 3885 3886 3887 3888

/* 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
3889
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
3890 3891
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
3892
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3893
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3894
if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3895 3896 3897 3898 3899 3900 3901 3902 3903 3904
  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
3905

Sam Hocevar's avatar
 
Sam Hocevar committed
3906 3907 3908 3909 3910 3911 3912 3913 3914
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
3915 3916 3917
fi
done

Gildas Bazin's avatar
 
Gildas Bazin committed
3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972
for ac_func in getpwuid_r getpwuid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3922: checking for $ac_func" >&5
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
#line 3927 "configure"
#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
if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  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
3973

Sam Hocevar's avatar
 
Sam Hocevar committed
3974
NEED_GETOPT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3975
echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
3976
echo "configure:3977: checking for getopt_long" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3977 3978
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
3979
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3980
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
3981
#line 3982 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3982 3983
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
3984
    which can conflict with char getopt_long(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3985 3986 3987
#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
3988 3989 3990 3991
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3992 3993 3994 3995 3996 3997 3998

/* 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
3999
getopt_long();
Sam Hocevar's avatar
 
Sam Hocevar committed
4000 4001
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
4002 4003
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4004
if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018
  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
4019 4020 4021 4022
#define HAVE_GETOPT_LONG 1
EOF

else
Sam Hocevar's avatar
 
Sam Hocevar committed
4023 4024 4025
  echo "$ac_t""no" 1>&6
 # FreeBSD has a gnugetopt library for this:
  echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4026
echo "configure:4027: checking for getopt_long in -lgnugetopt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4027 4028 4029
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
4030
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4031
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4032
LIBS="-lgnugetopt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4033
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4034
#line 4035 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4035 4036 4037
#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
4038 4039 4040 4041 4042
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
getopt_long()
Sam Hocevar's avatar
 
Sam Hocevar committed
4043
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4044
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4045
if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4046 4047
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
4048
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4049 4050
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4051 4052
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
4053
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4054 4055
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4056

4057
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4058 4059
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
4060
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4061
#define HAVE_GETOPT_LONG 1
4062
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4063 4064 4065 4066 4067
 LIB="${LIB} -lgnugetopt"
else
  echo "$ac_t""no" 1>&6
NEED_GETOPT=1
fi
4068 4069 4070

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4071

Sam Hocevar's avatar
 
Sam Hocevar committed
4072
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4073
echo "configure:4074: checking return type of signal handlers" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4074 4075
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4076
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4077
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4078
#line 4079 "configure"
4079 4080 4081 4082
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
Sam Hocevar's avatar
 
Sam Hocevar committed
4083
#undef signal
4084 4085 4086 4087 4088 4089 4090
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
4091
int main() {
4092
int i;
Sam Hocevar's avatar
 
Sam Hocevar committed
4093 4094
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4095
if { (eval echo configure:4096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4096
  rm -rf conftest*
4097 4098
  ac_cv_type_signal=void
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4099 4100 4101 4102
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_signal=int
4103
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4104
rm -f conftest*
4105 4106
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4107 4108
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
4109 4110 4111
#define RETSIGTYPE $ac_cv_type_signal
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
4112 4113

echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4114
echo "configure:4115: checking for dlopen in -ldl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4115 4116 4117
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
4118
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4119
  ac_save_LIBS="$LIBS"
4120
LIBS="-ldl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4121
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4122
#line 4123 "configure"
4123 4124 4125
#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
4126 4127 4128 4129 4130 4131 4132
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {
dlopen()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4133
if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147
  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
4148
  LIB="${LIB} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
4149 4150
else
  echo "$ac_t""no" 1>&6
4151 4152
fi

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

int main() {
cos()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4173
if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188
  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
4189
  LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4190 4191 4192 4193
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4194
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4195
echo "configure:4196: checking for pow in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4196 4197 4198
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
4199
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4200
  ac_save_LIBS="$LIBS"
4201
LIBS="-lm  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4202
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4203
#line 4204 "configure"
4204 4205 4206
#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
4207 4208 4209 4210 4211 4212 4213
    builtin and then its argument prototype would still apply.  */
char pow();

int main() {
pow()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4214
if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228
  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
4229 4230 4231 4232
  LIB_IMDCT="${LIB_IMDCT} -lm"
  LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
  LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"

Sam Hocevar's avatar
 
Sam Hocevar committed
4233 4234
else
  echo "$ac_t""no" 1>&6
4235 4236
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4237

Sam Hocevar's avatar
 
Sam Hocevar committed
4238 4239 4240
THREAD_LIB=error
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4241
echo "configure:4242: checking for pthread_attr_init in -lpthread" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4242 4243
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
4244 4245
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4246 4247 4248
  ac_save_LIBS="$LIBS"
LIBS="-lpthread  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4249
#line 4250 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4250 4251 4252 4253 4254 4255 4256
#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
4257
pthread_attr_init()
Sam Hocevar's avatar
 
Sam Hocevar committed
4258 4259
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4260
if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4261
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4262
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4263 4264 4265 4266
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4267
  eval "ac_cv_lib_$ac_lib_var=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4268 4269
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4270
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4271

Sam Hocevar's avatar
 
Sam Hocevar committed
4272 4273
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4274
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4275
  THREAD_LIB="-lpthread"
Sam Hocevar's avatar
 
Sam Hocevar committed
4276 4277
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4278
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4279

Sam Hocevar's avatar
 
Sam Hocevar committed
4280 4281 4282
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4283
echo "configure:4284: checking for pthread_attr_init in -lpthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4284
ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4285 4286
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
4287
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4288
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4289
LIBS="-lpthreads  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4290
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4291
#line 4292 "configure"
4292 4293 4294
#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
4295 4296 4297 4298 4299 4300 4301
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4302
if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316
  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
4317
  THREAD_LIB="-lpthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
4318 4319
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4320 4321
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4322 4323 4324
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4325
echo "configure:4326: checking for pthread_attr_init in -lc_r" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4326
ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4327 4328
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
4329
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4330
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4331
LIBS="-lc_r  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4332
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4333
#line 4334 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4334
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4335 4336
/* 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
4337 4338 4339 4340 4341 4342 4343
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4344
if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358
  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
4359
  THREAD_LIB="-lc_r"
Sam Hocevar's avatar
 
Sam Hocevar committed
4360 4361
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4362
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4363

Sam Hocevar's avatar
 
Sam Hocevar committed
4364 4365 4366
fi
if test "x${THREAD_LIB}" = xerror; then
  echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4367
echo "configure:4368: checking for pthread_attr_init" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4368
if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4369
  echo $ac_n "(cached) $ac_c" 1>&6
4370
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4371
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4372
#line 4373 "configure"
4373
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4374 4375 4376
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_attr_init(); below.  */
#include <assert.h>
4377 4378
/* 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
4379 4380 4381 4382
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4383 4384 4385 4386 4387 4388 4389 4390 4391 4392

/* 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
4393 4394
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4395
if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4396
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4397
  eval "ac_cv_func_pthread_attr_init=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4398 4399 4400 4401
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4402
  eval "ac_cv_func_pthread_attr_init=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4403 4404 4405
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4406 4407

if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4408
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4409
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
4410 4411
else
  echo "$ac_t""no" 1>&6
4412 4413
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4414
  THREAD_LIB=""
Sam Hocevar's avatar
 
Sam Hocevar committed
4415
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4416 4417

echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4418
echo "configure:4419: checking for cthread_fork in -lthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4419 4420
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
4421
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4422
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4423 4424 4425
  ac_save_LIBS="$LIBS"
LIBS="-lthreads  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4426
#line 4427 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4427 4428 4429
#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
4430
    builtin and then its argument prototype would still apply.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
4431
char cthread_fork();
Sam Hocevar's avatar
 
Sam Hocevar committed
4432 4433

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
4434
cthread_fork()
Sam Hocevar's avatar
 
Sam Hocevar committed
4435 4436
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4437
if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4438
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4439
  eval "ac_cv_lib_$ac_lib_var=yes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4440 4441 4442 4443
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4444
  eval "ac_cv_lib_$ac_lib_var=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4445 4446
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4447
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4448

Sam Hocevar's avatar
 
Sam Hocevar committed
4449 4450
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4451
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4452
  THREAD_LIB="-lthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
4453 4454 4455
else
  echo "$ac_t""no" 1>&6
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4456 4457


Sam Hocevar's avatar
 
Sam Hocevar committed
4458
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4459
#line 4460 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4460 4461
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4462
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4463 4464
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
4465 4466 4467
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4468 4469 4470 4471 4472 4473
#define PTHREAD_COND_T_IN_PTHREAD_H 1
EOF

fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
4474
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4475
#line 4476 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4476 4477
#include "confdefs.h"
#include <strings.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4478
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4479 4480
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "strncasecmp" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4481 4482 4483
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4484 4485 4486 4487 4488
#define STRNCASECMP_IN_STRINGS_H 1
EOF

fi
rm -f conftest*
4489

Sam Hocevar's avatar
 
Sam Hocevar committed
4490

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
4571
for ac_hdr in dlfcn.h image.h
4572
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4573 4574
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4575
echo "configure:4576: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4576 4577 4578 4579
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4580
#line 4581 "configure"
4581
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4582 4583 4584
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4585
{ (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4586 4587 4588 4589 4590 4591 4592
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
4593
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4594 4595
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4596
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4597
rm -f conftest*
4598
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4599 4600 4601 4602 4603
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
4604
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4605 4606 4607
 
else
  echo "$ac_t""no" 1>&6
4608 4609 4610
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4611
for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4612
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4613 4614
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4615
echo "configure:4616: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4616 4617 4618 4619
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4620
#line 4621 "configure"
4621
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4622 4623 4624
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4625
{ (eval echo configure:4626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4626 4627 4628 4629 4630 4631 4632
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
4633
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4634 4635
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4636
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4637
rm -f conftest*
4638
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4639 4640 4641 4642 4643
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
4644
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4645 4646 4647
 
else
  echo "$ac_t""no" 1>&6
4648 4649 4650
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4651
for ac_hdr in machine/param.h sys/shm.h
4652
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4653 4654
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4655
echo "configure:4656: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4656 4657 4658 4659
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4660
#line 4661 "configure"
4661
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4662 4663 4664
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4665
{ (eval echo configure:4666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4666 4667 4668 4669 4670 4671 4672
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
4673
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4674 4675
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4676
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4677
rm -f conftest*
4678
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4679 4680 4681 4682 4683
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
4684
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4685 4686 4687
 
else
  echo "$ac_t""no" 1>&6
4688 4689 4690
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4691

Sam Hocevar's avatar
 
Sam Hocevar committed
4692
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4693
echo "configure:4694: checking whether time.h and sys/time.h may both be included" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4694 4695 4696 4697
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4698
#line 4699 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4699 4700 4701 4702 4703 4704 4705 4706
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4707
if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727
  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
4728
for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
Benoit Steiner's avatar
 
Benoit Steiner committed
4729
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4730 4731
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4732
echo "configure:4733: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4733 4734 4735 4736
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4737
#line 4738 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4738
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4739 4740 4741
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4742
{ (eval echo configure:4743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4743 4744 4745 4746 4747 4748 4749
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
4750
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4751 4752
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
4753
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4754
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
4755
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4756 4757 4758 4759 4760
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
4761
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4762 4763 4764
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
4765 4766 4767
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4768

Sam Hocevar's avatar
 
Sam Hocevar committed
4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782
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
Gildas Bazin's avatar
 
Gildas Bazin committed
4783
echo "configure:4784: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4784 4785 4786 4787
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4788
#line 4789 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4789 4790 4791 4792
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
4793
{ (eval echo configure:4794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4815
#line 4816 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839
#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
4840
echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4841
echo "configure:4842: checking for ntohl in sys/param.h" >&5
4842 4843 4844 4845 4846
if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -Wall -Werror"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4847
#line 4848 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
4848 4849
#include "confdefs.h"
#include <sys/param.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4850
int main() {
4851
void foo() { int meuh; ntohl(meuh); }
Sam Hocevar's avatar
 
Sam Hocevar committed
4852 4853
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4854
if { (eval echo configure:4855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4855
  rm -rf conftest*
4856
  ac_cv_c_ntohl_sys_param_h=yes
Christophe Massiot's avatar
Christophe Massiot committed
4857
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4858 4859 4860
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
4861
  ac_cv_c_ntohl_sys_param_h=no
Christophe Massiot's avatar
Christophe Massiot committed
4862
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4863
rm -f conftest*
4864 4865 4866 4867 4868 4869 4870 4871 4872
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
4873

Sam Hocevar's avatar
 
Sam Hocevar committed
4874
echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4875
echo "configure:4876: checking if \$CC accepts -finline-limit" >&5
4876 4877 4878 4879 4880
if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -finline-limit-30000"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4881
#line 4882 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4882 4883 4884 4885 4886 4887
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4888
if { (eval echo configure:4889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4889
  rm -rf conftest*
4890
  ac_cv_c_inline_limit=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
4891 4892 4893 4894
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
4895
  ac_cv_c_inline_limit=no
Sam Hocevar's avatar
 
Sam Hocevar committed
4896 4897
fi
rm -f conftest*
4898
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4899

4900 4901 4902 4903 4904
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
4905
echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4906
echo "configure:4907: checking if \$CC accepts -Wall -Winline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4907 4908 4909 4910 4911
if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -Wall -Winline"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4912
#line 4913 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4913 4914 4915 4916 4917 4918
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4919
if { (eval echo configure:4920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935
  rm -rf conftest*
  ac_cv_c_Wall_Winline=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_Wall_Winline=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
if test x"$ac_cv_c_Wall_Winline" != x"no"; then
    save_CFLAGS="${save_CFLAGS} -Wall -Winline"
else
    echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4936
echo "configure:4937: checking if \$CC accepts -wall -winline" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4937 4938 4939 4940 4941
if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -wall -winline"
         cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4942
#line 4943 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4943 4944 4945 4946 4947 4948
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4949
if { (eval echo configure:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967
  rm -rf conftest*
  ac_cv_c_wall_winline=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_wall_winline=no
fi
rm -f conftest*
fi

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

echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4968
echo "configure:4969: checking if \$CC accepts -pipe" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4969 4970 4971 4972 4973
if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -pipe"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4974
#line 4975 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4975 4976 4977 4978 4979 4980
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
4981
if { (eval echo configure:4982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998
  rm -rf conftest*
  ac_cv_c_pipe=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_pipe=no
fi
rm -f conftest*
fi

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

echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
4999
echo "configure:5000: checking if \$CC accepts -O3" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5000 5001 5002 5003 5004
if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -O3"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5005
#line 5006 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5006 5007 5008 5009 5010 5011
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5012
if { (eval echo configure:5013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028
  rm -rf conftest*
  ac_cv_c_o3=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_o3=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_o3" 1>&6
if test x"$ac_cv_c_o3" != x"no"; then
    CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
else
    echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5029
echo "configure:5030: checking if \$CC accepts -O2" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5030 5031 5032 5033 5034
if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -O2"
         cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5035
#line 5036 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5036 5037 5038 5039 5040 5041
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5042
if { (eval echo configure:5043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058
  rm -rf conftest*
  ac_cv_c_o2=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_o2=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_o2" 1>&6
    if test x"$ac_cv_c_o2" != x"no"; then
        CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
    else
        echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5059
echo "configure:5060: checking if \$CC accepts -O" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5060 5061 5062 5063 5064
if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -O"
             cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5065
#line 5066 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5066 5067 5068 5069 5070 5071
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5072
if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091
  rm -rf conftest*
  ac_cv_c_o=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_o=no
fi
rm -f conftest*
fi

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

echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5092
echo "configure:5093: checking if \$CC accepts -ffast-math" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5093 5094 5095 5096 5097
if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -ffast-math"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5098
#line 5099 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5099 5100 5101 5102 5103 5104
#include "confdefs.h"

int main() {

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

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

echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5123
echo "configure:5124: checking if \$CC accepts -funroll-loops" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5124 5125 5126 5127 5128
if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -funroll-loops"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5129
#line 5130 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5130 5131 5132 5133 5134 5135
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5136
if { (eval echo configure:5137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153
  rm -rf conftest*
  ac_cv_c_unroll_loops=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_unroll_loops=no
fi
rm -f conftest*
fi

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

echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5154
echo "configure:5155: checking if \$CC accepts -fomit-frame-pointer" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5155 5156 5157 5158 5159
if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5160
#line 5161 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5161 5162 5163 5164 5165 5166
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5167
if { (eval echo configure:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183
  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

5184
echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5185
echo "configure:5186: checking if \$CC accepts -bundle -undefined error" >&5
5186 5187 5188 5189 5190
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
Gildas Bazin's avatar
 
Gildas Bazin committed
5191
#line 5192 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5192 5193 5194 5195 5196 5197
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5198
if { (eval echo configure:5199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5199
  rm -rf conftest*
5200
  ac_cv_ld_darwin=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5201 5202 5203 5204
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5205
  ac_cv_ld_darwin=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5206 5207
fi
rm -f conftest*
5208 5209 5210 5211
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
5212
    PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5213
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5214

Sam Hocevar's avatar
 
Sam Hocevar committed
5215
echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5216
echo "configure:5217: checking if \$CC accepts -shared" >&5
5217 5218 5219 5220 5221
if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  CFLAGS="${save_CFLAGS} -shared"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5222
#line 5223 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5223 5224 5225 5226 5227 5228
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5229
if { (eval echo configure:5230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5230
  rm -rf conftest*
5231
  ac_cv_ld_plugins=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5232 5233 5234 5235
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5236
  ac_cv_ld_plugins=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5237 5238
fi
rm -f conftest*
5239
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5240

5241 5242
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
5243
    PLDFLAGS="${PLDFLAGS} -shared"
5244 5245
fi
        
Sam Hocevar's avatar
 
Sam Hocevar committed
5246
if test x"${SOFLAGS}" = x; then
5247
    echo $ac_n "checking for soname setting""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5248
echo "configure:5249: checking for soname setting" >&5
5249 5250 5251 5252 5253 5254 5255 5256
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
Gildas Bazin's avatar
 
Gildas Bazin committed
5257
#line 5258 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5258 5259 5260 5261 5262 5263
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5264
if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5265
  rm -rf conftest*
5266
  ac_cv_ld_soname="${try_SOFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5267 5268 5269 5270
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5271 5272 5273 5274 5275
  
            # SunOS
            try_SOFLAGS="-Wl,-h -Wl,"
            LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
            cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5276
#line 5277 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5277 5278 5279 5280 5281 5282
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5283
if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5284
  rm -rf conftest*
5285
  ac_cv_ld_soname="${try_SOFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5286 5287 5288 5289
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5290 5291 5292 5293
  ac_cv_ld_soname=none
fi
rm -f conftest*
        
Sam Hocevar's avatar
 
Sam Hocevar committed
5294 5295 5296 5297
fi
rm -f conftest*
fi

5298 5299 5300 5301 5302 5303 5304 5305 5306 5307
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.
------------
"
5308
    fi
5309 5310
fi

5311
echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5312
echo "configure:5313: checking __attribute__ ((aligned ())) support" >&5
5313 5314 5315 5316
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
5317
        CFLAGS="${save_CFLAGS} -Werror"
5318 5319
    for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5320
#line 5321 "configure"
5321 5322 5323 5324 5325 5326
#include "confdefs.h"

int main() {
static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5327
if { (eval echo configure:5328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345
  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
5346
CFLAGS="${save_CFLAGS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5347
LDFLAGS="${save_LDFLAGS}"
Christophe Massiot's avatar
Christophe Massiot committed
5348

Sam Hocevar's avatar
 
Sam Hocevar committed
5349
echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5350
echo "configure:5351: checking for boolean_t in sys/types.h" >&5
5351 5352 5353 5354
if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5355
#line 5356 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5356 5357
#include "confdefs.h"
#include <sys/types.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5358
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5359
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5360 5361
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5362
if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5363
  rm -rf conftest*
5364
  ac_cv_c_boolean_t_sys_types_h=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5365
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5366 5367 5368
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5369
  ac_cv_c_boolean_t_sys_types_h=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5370
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5371
rm -f conftest*
5372 5373 5374 5375 5376 5377 5378 5379 5380 5381
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
5382
echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5383
echo "configure:5384: checking for boolean_t in pthread.h" >&5
5384 5385 5386 5387
if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5388
#line 5389 "configure"
5389 5390
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5391
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5392
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5393 5394
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5395
if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5396
  rm -rf conftest*
5397
  ac_cv_c_boolean_t_pthread_h=yes
5398
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5399 5400 5401
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5402
  ac_cv_c_boolean_t_pthread_h=no
5403
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5404
rm -f conftest*
5405 5406 5407 5408 5409 5410 5411 5412 5413 5414
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
5415
echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5416
echo "configure:5417: checking for boolean_t in cthreads.h" >&5
5417 5418 5419 5420
if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5421
#line 5422 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5422 5423 5424
#include "confdefs.h"
#include <cthreads.h>
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5425
boolean_t foo;
Sam Hocevar's avatar
 
Sam Hocevar committed
5426 5427
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5428
if { (eval echo configure:5429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5429
  rm -rf conftest*
5430
  ac_cv_c_boolean_t_cthreads_h=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5431 5432 5433 5434
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5435
  ac_cv_c_boolean_t_cthreads_h=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5436 5437
fi
rm -f conftest*
5438 5439 5440 5441 5442 5443 5444 5445 5446
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
5447

Sam Hocevar's avatar
 
Sam Hocevar committed
5448 5449 5450 5451 5452 5453 5454 5455
case x"${target_cpu}" in
  x)
    ARCH=unknown
    ;;
  *)
    ARCH=${target_cpu}
    ;;
esac
Sam Hocevar's avatar
 
Sam Hocevar committed
5456

Christophe Massiot's avatar
Christophe Massiot committed
5457
BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5458
PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
Sam Hocevar's avatar
 
Sam Hocevar committed
5459

Sam Hocevar's avatar
 
Sam Hocevar committed
5460
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
5461 5462
MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
Sam Hocevar's avatar
 
Sam Hocevar committed
5463
SSE_MODULES="imdctsse downmixsse"
5464
ALTIVEC_MODULES="idctaltivec motionaltivec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5465

Sam Hocevar's avatar
 
Sam Hocevar committed
5466
echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5467
echo "configure:5468: checking if \$CC groks MMX inline assembly" >&5
5468 5469 5470 5471
if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5472
#line 5473 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5473 5474
#include "confdefs.h"

5475
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5476
void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5477 5478
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5479
if { (eval echo configure:5480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5480
  rm -rf conftest*
5481
  ac_cv_mmx_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5482
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5483 5484 5485
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5486
  ac_cv_mmx_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5487
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5488
rm -f conftest*
5489 5490 5491 5492 5493 5494
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
5495

Sam Hocevar's avatar
 
Sam Hocevar committed
5496
echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5497
echo "configure:5498: checking if \$CC groks MMX EXT inline assembly" >&5
5498 5499 5500 5501
if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5502
#line 5503 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5503 5504
#include "confdefs.h"

5505
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5506
void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5507 5508
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5509
if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5510
  rm -rf conftest*
5511
  ac_cv_mmxext_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5512
else
Sam Hocevar's avatar
 
Sam Hocevar committed
5513 5514 5515
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5516
  ac_cv_mmxext_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5517
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5518
rm -f conftest*
5519 5520 5521 5522 5523 5524
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
5525

Sam Hocevar's avatar
 
Sam Hocevar committed
5526
echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5527
echo "configure:5528: checking if \$CC groks 3D Now! inline assembly" >&5
5528 5529 5530 5531
if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5532
#line 5533 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5533 5534
#include "confdefs.h"

5535
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5536
void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5537 5538
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5539
if { (eval echo configure:5540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5540
  rm -rf conftest*
5541
  ac_cv_3dnow_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5542 5543 5544 5545
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5546
  ac_cv_3dnow_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5547 5548
fi
rm -f conftest*
5549 5550 5551 5552
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
5553
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5554
#define CAN_COMPILE_3DNOW 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5555 5556
EOF

5557 5558
  ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5559 5560

echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5561
echo "configure:5562: checking if \$CC groks SSE inline assembly" >&5
5562 5563 5564 5565
if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5566
#line 5567 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5567 5568
#include "confdefs.h"

5569
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5570
void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
Sam Hocevar's avatar
 
Sam Hocevar committed
5571 5572
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5573
if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5574
  rm -rf conftest*
5575
  ac_cv_sse_inline=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
5576 5577 5578 5579
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5580
  ac_cv_sse_inline=no
Sam Hocevar's avatar
 
Sam Hocevar committed
5581 5582
fi
rm -f conftest*
5583
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5584

5585 5586
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
5587
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5588
#define CAN_COMPILE_SSE 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5589 5590
EOF

5591 5592 5593
  ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
fi

Gildas Bazin's avatar
 
Gildas Bazin committed
5594 5595 5596
# don't try to grok altivec with native mingw32 it doesn't work right now
# we should be able to remove this test with future versions of mingw32
if test x$SYS != xmingw32; then
5597
echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5598
echo "configure:5599: checking if \$CC groks Altivec inline assembly" >&5
5599 5600 5601 5602
if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5603
#line 5604 "configure"
5604 5605
#include "confdefs.h"

5606
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5607
asm volatile("vperm 0,1,2,3");
5608 5609
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5610
if { (eval echo configure:5611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5611
  rm -rf conftest*
5612
  ac_cv_altivec_inline=yes
5613 5614 5615 5616 5617 5618 5619
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  save_CFLAGS=$CFLAGS
          CFLAGS="$CFLAGS -Wa,-m7400"
          cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5620
#line 5621 "configure"
5621 5622 5623
#include "confdefs.h"

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5624
asm volatile("vperm 0,1,2,3");
5625 5626
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5627
if { (eval echo configure:5628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5628
  rm -rf conftest*
5629
  ac_cv_altivec_inline="-Wa,-m7400"
5630 5631 5632 5633
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
5634
  ac_cv_altivec_inline=no
5635
fi
5636 5637 5638 5639
rm -f conftest*
          CFLAGS=$save_CFLAGS
         
fi
5640
rm -f conftest*
5641 5642 5643 5644
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
5645
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5646
#define CAN_COMPILE_ALTIVEC 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5647 5648
EOF

5649
  if test x"$ac_cv_altivec_inline" != x"yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5650 5651
    CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
    CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
Sam Hocevar's avatar
 
Sam Hocevar committed
5652
    CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5653
  fi
5654 5655
  ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi
5656

5657
echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5658
echo "configure:5659: checking if \$CC groks Altivec C extensions" >&5
5659 5660 5661
if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
5662 5663 5664
  save_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS -faltivec"
     # Darwin test
5665
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5666
#line 5667 "configure"
5667
#include "confdefs.h"
5668

5669
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5670
vec_mtvscr((vector unsigned int)(0));
5671 5672
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5673
if { (eval echo configure:5674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5674 5675 5676 5677 5678 5679 5680 5681
  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
5682
        CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5683
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5684
#line 5685 "configure"
5685
#include "confdefs.h"
5686

5687
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
5688
vec_mtvscr((vector unsigned int)(0));
5689 5690
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5691
if { (eval echo configure:5692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5692
  rm -rf conftest*
5693
  ac_cv_c_altivec="-fvec"
5694 5695 5696 5697 5698
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_altivec=no
5699 5700 5701
fi
rm -f conftest*
        
5702 5703 5704
fi
rm -f conftest*
     CFLAGS=$save_CFLAGS
5705
    
5706 5707 5708 5709 5710
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
5711
#define CAN_COMPILE_C_ALTIVEC 1
5712 5713
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5714 5715
  CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
  CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
Sam Hocevar's avatar
 
Sam Hocevar committed
5716
  CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5717
  ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5718 5719 5720
fi

echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5721
echo "configure:5722: checking if linker needs -framework vecLib" >&5
5722 5723 5724 5725 5726 5727
if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  save_LDFLAGS=$LDFLAGS
     LDFLAGS="$LDFLAGS -framework vecLib"
     cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5728
#line 5729 "configure"
5729 5730 5731 5732 5733 5734
#include "confdefs.h"

int main() {

; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5735
if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750
  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
5751 5752
  LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
  LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
Sam Hocevar's avatar
 
Sam Hocevar committed
5753
  LIB="${LIB} -framework vecLib"
5754
fi
Gildas Bazin's avatar
 
Gildas Bazin committed
5755
fi # end if mingw32
Sam Hocevar's avatar
 
Sam Hocevar committed
5756

Sam Hocevar's avatar
 
Sam Hocevar committed
5757 5758
case x$SYS in
  xmingw32)
Sam Hocevar's avatar
 
Sam Hocevar committed
5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776
    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


5777

Sam Hocevar's avatar
 
Sam Hocevar committed
5778

Sam Hocevar's avatar
 
Sam Hocevar committed
5779 5780
CAN_BUILD_LIBDVDCSS=0

Sam Hocevar's avatar
 
Sam Hocevar committed
5781 5782 5783 5784
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
Gildas Bazin's avatar
 
Gildas Bazin committed
5785
echo "configure:5786: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5786 5787 5788 5789
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5790
#line 5791 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5791 5792 5793 5794
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
5795
{ (eval echo configure:5796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815
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
5816
  CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5817 5818 5819 5820 5821 5822 5823

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


Sam Hocevar's avatar
 
Sam Hocevar committed
5824
for ac_hdr in sys/ioctl.h
5825
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5826 5827
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5828
echo "configure:5829: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5829 5830 5831 5832
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5833
#line 5834 "configure"
5834
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5835 5836 5837
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
5838
{ (eval echo configure:5839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5839 5840 5841 5842 5843 5844 5845
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
5846
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5847 5848
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
5849
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5850
rm -f conftest*
5851
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5852 5853 5854 5855 5856
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
5857
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5858
 
Sam Hocevar's avatar
 
Sam Hocevar committed
5859
  CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5860
  for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5861
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5862 5863
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
5864
echo "configure:5865: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5865 5866 5867 5868
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5869
#line 5870 "configure"
5870
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5871 5872 5873
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
5874
{ (eval echo configure:5875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
5875 5876 5877 5878 5879 5880 5881
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
5882
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
5883 5884
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
5885
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5886
rm -f conftest*
5887
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5888 5889 5890 5891 5892
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
5893
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5894 5895 5896
 
else
  echo "$ac_t""no" 1>&6
5897 5898 5899
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
5900
  BSD_DVD_STRUCT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
5901
  LINUX_DVD_STRUCT=0
5902
  OPENBSD_DVD_STRUCT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
5903
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5904
#line 5905 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5905
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5906
#include <sys/cdio.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5907
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5908 5909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5910 5911 5912
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5913
#define DVD_STRUCT_IN_SYS_CDIO_H 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5914 5915
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5916
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5917
#line 5918 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5918 5919 5920 5921 5922 5923 5924 5925 5926 5927
#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*
5928
  LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
5929 5930 5931
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5932
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5933 5934 5935
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5936
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5937
#line 5938 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5938
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5939
#include <sys/dvdio.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5940
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5941 5942
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5943 5944 5945
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5946
#define DVD_STRUCT_IN_SYS_DVDIO_H 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5947 5948
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5949
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5950
#line 5951 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964
#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
5965
  
Sam Hocevar's avatar
 
Sam Hocevar committed
5966 5967 5968
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5969
        cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5970
#line 5971 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
5971 5972 5973 5974 5975 5976 5977
#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
5978
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5979
#define DVD_STRUCT_IN_LINUX_CDROM_H 1
Sam Hocevar's avatar
 
Sam Hocevar committed
5980 5981
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5982 5983 5984 5985 5986
    LINUX_DVD_STRUCT=1
  
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
5987 5988
        NEED_BSDI_LIBDVD=0
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
5989
#line 5990 "configure"
5990
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
5991
#include <dvd.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
5992
EOF
5993
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sam Hocevar's avatar
 
Sam Hocevar committed
5994
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5995 5996 5997
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5998
#define DVD_STRUCT_IN_DVD_H 1
5999 6000
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
6001
    LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6002
    LINUX_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6003 6004 6005
  
else
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6006
  
Sam Hocevar's avatar
 
Sam Hocevar committed
6007 6008 6009 6010
                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
Gildas Bazin's avatar
 
Gildas Bazin committed
6011
echo "configure:6012: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6012 6013 6014 6015
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6016
#line 6017 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6017 6018 6019 6020
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6021
{ (eval echo configure:6022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6022 6023 6024 6025 6026 6027 6028 6029 6030 6031
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"
6032 6033
fi
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6034 6035 6036 6037 6038 6039 6040 6041 6042
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
6043 6044 6045 6046
      cat >> confdefs.h <<\EOF
#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
6047
      SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
Sam Hocevar's avatar
 
Sam Hocevar committed
6048 6049 6050 6051 6052 6053
      LINUX_DVD_STRUCT=1
    
else
  echo "$ac_t""no" 1>&6
fi
done
6054

Sam Hocevar's avatar
 
Sam Hocevar committed
6055 6056 6057 6058 6059 6060
  
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
Gildas Bazin's avatar
 
Gildas Bazin committed
6061
echo "configure:6062: checking for sys/scsi/scsi_types.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6062 6063 6064 6065
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6066
#line 6067 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6067
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6068
#include <sys/scsi/scsi_types.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
6069 6070
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6071
{ (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089
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
Gildas Bazin's avatar
 
Gildas Bazin committed
6090
echo "configure:6091: checking for sys/scsi/impl/uscsi.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6091 6092 6093 6094
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6095
#line 6096 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6096 6097 6098 6099
#include "confdefs.h"
#include <sys/scsi/impl/uscsi.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6100
{ (eval echo configure:6101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126
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

  
6127 6128 6129 6130 6131 6132
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
Gildas Bazin's avatar
 
Gildas Bazin committed
6133
echo "configure:6134: checking for sys/scsi.h" >&5
6134 6135 6136 6137
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6138
#line 6139 "configure"
6139 6140 6141 6142
#include "confdefs.h"
#include <sys/scsi.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6143
{ (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160
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
Gildas Bazin's avatar
 
Gildas Bazin committed
6161
#line 6162 "configure"
6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177
#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
6178 6179 6180 6181
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6182 6183 6184 6185 6186
        if test x$LINUX_DVD_STRUCT = x1; then
    cat >> confdefs.h <<\EOF
#define HAVE_LINUX_DVD_STRUCT 1
EOF

6187 6188 6189 6190 6191 6192
    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
6193 6194 6195 6196 6197 6198 6199 6200
  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
6201 6202 6203

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

Sam Hocevar's avatar
 
Sam Hocevar committed
6207

6208 6209 6210 6211
# 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
6212 6213
fi

6214 6215 6216
if test "x$withval" != "x"; then
    TUNING=$withval
else
6217
    if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6218
    else
6219
        if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6220 6221
    fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6222

6223 6224 6225 6226 6227 6228 6229 6230 6231 6232
# 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
6233 6234 6235 6236
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
6237 6238 6239 6240 6241
fi

# Check whether --enable-altivec or --disable-altivec was given.
if test "${enable_altivec+set}" = set; then
  enableval="$enable_altivec"
6242 6243 6244
   if test x$enableval = xyes; then ARCH="${ARCH} altivec";
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
else
6245
   if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6246
    BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
6247 6248 6249
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6250
DEBUG=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6251 6252 6253 6254 6255 6256 6257
# 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
6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275
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
6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287
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
6288 6289 6290 6291 6292
# 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
Gildas Bazin's avatar
 
Gildas Bazin committed
6293
echo "configure:6294: checking for pth_init in -lpth" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6294 6295 6296 6297 6298 6299 6300
ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lpth  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6301
#line 6302 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6302 6303 6304 6305 6306 6307 6308 6309 6310 6311
#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
Gildas Bazin's avatar
 
Gildas Bazin committed
6312
if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6313 6314 6315 6316 6317 6318 6319
  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
6320
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6321 6322
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
6323

Sam Hocevar's avatar
 
Sam Hocevar committed
6324 6325 6326 6327 6328 6329 6330 6331
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
6332

Sam Hocevar's avatar
 
Sam Hocevar committed
6333 6334 6335 6336
  LIBS="-lpth $LIBS"

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

Sam Hocevar's avatar
 
Sam Hocevar committed
6339
    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6340
#line 6341 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6341 6342 6343 6344 6345 6346 6347 6348 6349 6350
#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
6351

Sam Hocevar's avatar
 
Sam Hocevar committed
6352 6353
    THREAD_LIB="-lpth"
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6354
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6355
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
6356

Sam Hocevar's avatar
 
Sam Hocevar committed
6357 6358 6359 6360

fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6361 6362 6363 6364 6365
# Check whether --enable-st or --disable-st was given.
if test "${enable_st+set}" = set; then
  enableval="$enable_st"
   if test x$enableval = xyes; then
    echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6366
echo "configure:6367: checking for st_init in -lst" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6367 6368 6369 6370 6371 6372 6373
ac_lib_var=`echo st'_'st_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="-lst  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6374
#line 6375 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6375 6376 6377 6378 6379 6380 6381 6382 6383 6384
#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 st_init();

int main() {
st_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6385
if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412
  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 st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lst $LIBS"

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

    cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6413
#line 6414 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433
#include "confdefs.h"
#include <st.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "st_init" >/dev/null 2>&1; then
  rm -rf conftest*
  
      cat >> confdefs.h <<\EOF
#define ST_INIT_IN_ST_H 1
EOF

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


fi


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

Sam Hocevar's avatar
 
Sam Hocevar committed
6436
NEED_LIBDVDCSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6437
STATIC_LIBDVDCSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6438
DUMMY_LIBDVDCSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
6439 6440 6441
# 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
6442 6443 6444
   case "x${withval}" in
    xlocal-static|xyes)
      # local libdvdcss, statically linked
Stéphane Borel's avatar
 
Stéphane Borel committed
6445
      BUILTINS="${BUILTINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6446 6447
      if test x${CAN_BUILD_LIBDVDCSS} = x1
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
6448
        NEED_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6449 6450
        STATIC_LIBDVDCSS=1
        CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6451
        LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
6452 6453 6454 6455
      fi
    ;;
    xlocal-shared)
      # local libdvdcss, dynamically linked
Stéphane Borel's avatar
 
Stéphane Borel committed
6456
      PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6457 6458
      if test x${CAN_BUILD_LIBDVDCSS} = x1
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
6459
        NEED_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6460
        CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6461
        LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6462
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6463
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6464 6465
    xno)
      # don't use libdvdcss at all, build a DVD module that can dlopen() it
Stéphane Borel's avatar
 
Stéphane Borel committed
6466
      BUILTINS="${BUILTINS} dvd"
6467
      DUMMY_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6468
      SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
Sam Hocevar's avatar
 
Sam Hocevar committed
6469
      CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
Sam Hocevar's avatar
 
Sam Hocevar committed
6470
      CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
Sam Hocevar's avatar
 
Sam Hocevar committed
6471 6472
      LIB_DVD="${LIB_DVD} -ldl"
    ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6473
    *)
Sam Hocevar's avatar
 
Sam Hocevar committed
6474
      # existing libdvdcss
Stéphane Borel's avatar
 
Stéphane Borel committed
6475
      PLUGINS="${PLUGINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6476 6477
      if test "x$withval" != "xyes"
      then
6478
        LIB_DVD="${LIB_DVD} -L"$withval"/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
6479 6480 6481
        CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
      fi
      LIB_DVD="${LIB_DVD} -ldvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6482
    esac 
Sam Hocevar's avatar
 
Sam Hocevar committed
6483 6484
else
  # user didn't decide, we choose to use local libdvdcss and link statically
Sam Hocevar's avatar
 
Sam Hocevar committed
6485
  # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
Sam Hocevar's avatar
 
Sam Hocevar committed
6486 6487
   if test x${CAN_BUILD_LIBDVDCSS} = x1
    then
Stéphane Borel's avatar
 
Stéphane Borel committed
6488
      BUILTINS="${BUILTINS} dvd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6489
      NEED_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6490 6491
      STATIC_LIBDVDCSS=1
      CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
6492
      LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
6493 6494
    else
      # XXX: no check for libdl is done, don't try this at home !
Stéphane Borel's avatar
 
Stéphane Borel committed
6495
      BUILTINS="${BUILTINS} dvd"
6496
      DUMMY_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
6497
      SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
Sam Hocevar's avatar
 
Sam Hocevar committed
6498 6499
      CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
      LIB_DVD="${LIB_DVD} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
6500 6501 6502 6503
    fi 
fi


6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516
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
6517
        { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6518 6519 6520 6521 6522 6523 6524
      fi
    ;;
    xno)
    ;;
    x)
      if test x${STATIC_LIBDVDREAD} = x1
      then
Christophe Massiot's avatar
Christophe Massiot committed
6525
        #BUILTINS="${BUILTINS} dvdread" 
6526 6527 6528
        CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
        LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
      else
Christophe Massiot's avatar
Christophe Massiot committed
6529
        #PLUGINS="${PLUGINS} dvdread"
6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544
        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
6545
        { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6546
      else
Christophe Massiot's avatar
Christophe Massiot committed
6547
        #PLUGINS="${PLUGINS} dvdread"
6548 6549 6550 6551 6552 6553 6554 6555 6556 6557
        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
6558 6559 6560
fi


6561 6562 6563
# 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
6564
  :
6565 6566 6567
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6568 6569 6570
if test x$enable_vcd != xno
then
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6571
#line 6572 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6572 6573 6574 6575 6576 6577 6578
#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*
  
Johan Bilien's avatar
 
Johan Bilien committed
6579
    BUILTINS="${BUILTINS} vcd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6580 6581 6582 6583 6584
  
fi
rm -f conftest*

fi
6585

6586 6587
if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
then
Johan Bilien's avatar
 
Johan Bilien committed
6588
  BUILTINS="${BUILTINS} vcd"
6589 6590
fi

6591 6592
if test x$enable_vcd != xno -a "${SYS}" = "darwin"
then
Johan Bilien's avatar
 
Johan Bilien committed
6593
  BUILTINS="${BUILTINS} vcd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6594
  LIB_VCD="${LIB_VCD} -framework IOKit" 
6595 6596
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6597 6598 6599 6600 6601 6602
# 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
6603 6604 6605

if test x$enable_dummy != xno
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618
  PLUGINS="${PLUGINS} dummy"
fi

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


if test x$enable_logger != xno
then
  PLUGINS="${PLUGINS} logger"
Sam Hocevar's avatar
 
Sam Hocevar committed
6619
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6620 6621 6622 6623 6624 6625 6626

# 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
6627 6628 6629

if test x$enable_null != xno
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6630
  PLUGINS="${PLUGINS} null"
Sam Hocevar's avatar
 
Sam Hocevar committed
6631
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6632

6633
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6634
#line 6635 "configure"
6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646
#include "confdefs.h"
#include <netinet/in.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "in6_addr" >/dev/null 2>&1; then
  rm -rf conftest*
  
  PLUGINS="${PLUGINS} ipv6"
fi
rm -f conftest*


Sam Hocevar's avatar
 
Sam Hocevar committed
6647 6648 6649 6650 6651 6652
# 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
6653

Sam Hocevar's avatar
 
Sam Hocevar committed
6654 6655
if test x$enable_rc != xno
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6656
  PLUGINS="${PLUGINS} rc"
Sam Hocevar's avatar
 
Sam Hocevar committed
6657 6658
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6659 6660 6661
# Check whether --with-mad or --without-mad was given.
if test "${with_mad+set}" = set; then
  withval="$with_mad"
6662 6663
   if test "x$with_val" != "xno"; then
      if test -n $with_val; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6664 6665
        CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
        LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6666
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
6667
        LIB_MAD="${LIB_MAD} -lmad"
6668 6669 6670
      fi
      save_CFLAGS=$CFLAGS
      save_LDFLAGS=$LDFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
6671 6672
      CFLAGS="$CFLAGS $CFLAGS_MAD"
      LDFLAGS="$LDFLAGS $LIB_MAD"
6673 6674 6675 6676
      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
Gildas Bazin's avatar
 
Gildas Bazin committed
6677
echo "configure:6678: checking for $ac_hdr" >&5
6678 6679 6680 6681
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6682
#line 6683 "configure"
6683 6684 6685 6686
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6687
{ (eval echo configure:6688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716
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
Gildas Bazin's avatar
 
Gildas Bazin committed
6717
echo "configure:6718: checking for mad_bit_init in -lmad" >&5
6718 6719 6720 6721 6722 6723 6724
ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lmad  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6725
#line 6726 "configure"
6726 6727 6728 6729 6730 6731 6732 6733 6734 6735
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mad_bit_init();

int main() {
mad_bit_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6736
if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767
  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
6768
      PLUGINS="${PLUGINS} mad"
6769 6770 6771 6772
    fi 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
6773 6774
if test x$SYS = xbeos
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6775
    PLUGINS="${PLUGINS} beos"
6776 6777 6778 6779 6780 6781

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
6782 6783
  :
fi
6784

Sam Hocevar's avatar
 
Sam Hocevar committed
6785

6786
if test x$enable_dsp != xno &&
Sam Hocevar's avatar
 
Sam Hocevar committed
6787
  (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
Sam Hocevar's avatar
 
Sam Hocevar committed
6788
then
Sam Hocevar's avatar
 
Sam Hocevar committed
6789
  for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
Sam Hocevar's avatar
 
Sam Hocevar committed
6790 6791 6792
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6793
echo "configure:6794: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6794 6795 6796 6797
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6798
#line 6799 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6799 6800 6801 6802
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6803
{ (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823
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
6824
    PLUGINS="${PLUGINS} dsp"
Sam Hocevar's avatar
 
Sam Hocevar committed
6825
    echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6826
echo "configure:6827: checking for main in -lossaudio" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6827 6828 6829 6830 6831 6832 6833
ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lossaudio  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6834
#line 6835 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
6835 6836 6837 6838 6839 6840
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6841
if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860
  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_DSP="${LIB_DSP} -lossaudio"
else
  echo "$ac_t""no" 1>&6
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6861 6862 6863 6864 6865 6866
  
else
  echo "$ac_t""no" 1>&6
fi
done

6867
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6868

6869 6870 6871
# 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
6872 6873
  if test x$enable_esd = xyes
   then
Sam Hocevar's avatar
 
Sam Hocevar committed
6874 6875
     # 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
6876
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6877
echo "configure:6878: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6878 6879
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
6880
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6881 6882
  case "$ESD_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
6883 6884
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6885 6886 6887
  ?:/*)			 
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
6888
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
6889 6890 6891 6892 6893 6894 6895 6896 6897 6898
  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
6899 6900 6901 6902
  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6903
ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
6904
if test -n "$ESD_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
6905
  echo "$ac_t""$ESD_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6906
else
Sam Hocevar's avatar
 
Sam Hocevar committed
6907
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
6908 6909
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6910 6911
     if test x${ESD_CONFIG} != xno
     then
Sam Hocevar's avatar
 
Sam Hocevar committed
6912
       PLUGINS="${PLUGINS} esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
6913 6914
       CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
       LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
Sam Hocevar's avatar
 
Sam Hocevar committed
6915
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6916
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
6917 6918
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
6919

Sam Hocevar's avatar
 
Sam Hocevar committed
6920 6921 6922 6923 6924 6925 6926 6927
# 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
Gildas Bazin's avatar
 
Gildas Bazin committed
6928
echo "configure:6929: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963
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
6964 6965
       CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
       LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
Sam Hocevar's avatar
 
Sam Hocevar committed
6966 6967 6968 6969 6970
     fi
   fi
fi


6971 6972 6973
# 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
6974 6975
  if test x$enable_macosx = xyes
   then
6976
     BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
6977 6978
     LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
     CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6979
     LIB="${LIB} -ObjC"
Sam Hocevar's avatar
 
Sam Hocevar committed
6980
   fi
6981
else
6982
  for ac_hdr in Cocoa/Cocoa.h
6983
do
Sam Hocevar's avatar
 
Sam Hocevar committed
6984 6985
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
6986
echo "configure:6987: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
6987 6988 6989 6990
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
6991
#line 6992 "configure"
6992
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
6993 6994 6995
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
6996
{ (eval echo configure:6997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
6997 6998 6999 7000 7001 7002 7003
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
7004
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7005 7006
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
7007
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7008
rm -f conftest*
7009
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7010 7011 7012 7013 7014
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
7015
EOF
7016
 BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7017 7018
     LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
     CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7019
     LIB="${LIB} -ObjC"
Sam Hocevar's avatar
 
Sam Hocevar committed
7020 7021 7022
   
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7023
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7024
done
Sam Hocevar's avatar
 
Sam Hocevar committed
7025

Sam Hocevar's avatar
 
Sam Hocevar committed
7026 7027
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7028

7029 7030 7031 7032 7033 7034
# 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
7035 7036
    if test x$enable_qnx != xno
    then
7037 7038 7039 7040
      for ac_hdr in Ph.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7041
echo "configure:7042: checking for $ac_hdr" >&5
7042 7043 7044 7045
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7046
#line 7047 "configure"
7047 7048 7049 7050
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7051
{ (eval echo configure:7052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072
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
7073
        LIB_QNX="${LIB_QNX} -lasound -lph"
7074 7075 7076 7077 7078 7079 7080 7081
      
else
  echo "$ac_t""no" 1>&6
fi
done

    fi

Gildas Bazin's avatar
 
Gildas Bazin committed
7082 7083 7084
# 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
7085 7086 7087
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7088
if test "x$enableval" != "xno" -a x$SYS != xmingw32
Gildas Bazin's avatar
 
Gildas Bazin committed
7089 7090 7091 7092 7093
  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
Gildas Bazin's avatar
 
Gildas Bazin committed
7094
echo "configure:7095: checking for $ac_hdr" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
7095 7096 7097 7098
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7099
#line 7100 "configure"
Gildas Bazin's avatar
 
Gildas Bazin committed
7100 7101 7102 7103
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7104
{ (eval echo configure:7105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Gildas Bazin's avatar
 
Gildas Bazin committed
7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124
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
7125 7126
      BUILTINS="${BUILTINS} a52"
      LIB_A52="${LIB_A52} -la52"
Gildas Bazin's avatar
 
Gildas Bazin committed
7127 7128 7129 7130 7131 7132 7133 7134
     
else
  echo "$ac_t""no" 1>&6
fi
done

fi

7135 7136 7137
# 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
7138 7139 7140 7141
   if test x$enable_fb = xyes
    then
      PLUGINS="${PLUGINS} fb"
    fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
7142 7143
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7144

Sam Hocevar's avatar
 
Sam Hocevar committed
7145 7146 7147 7148 7149
# 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
7150
      PLUGINS="${PLUGINS} mga xmga"
Sam Hocevar's avatar
 
Sam Hocevar committed
7151 7152 7153 7154
    fi 
fi


Christophe Massiot's avatar
Christophe Massiot committed
7155 7156 7157
# 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
7158
   if test "x$withval" != "xno"
Christophe Massiot's avatar
Christophe Massiot committed
7159
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7160 7161
      PLUGINS="${PLUGINS} ggi"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7162
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
7163
        LIB_GGI="${LIB_GGI} -l$withval"
Sam Hocevar's avatar
 
Sam Hocevar committed
7164
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
7165
        LIB_GGI="${LIB_GGI} -lggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
7166
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7167 7168 7169
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7170

7171 7172 7173 7174 7175 7176
# Check whether --enable-sdl or --disable-sdl was given.
if test "${enable_sdl+set}" = set; then
  enableval="$enable_sdl"
  :
fi

7177
if test "x$enable_sdl" != "xno"
7178
then
7179 7180 7181 7182 7183 7184 7185 7186 7187 7188
  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

7189 7190
  # Extract the first word of "sdl12-config", so it can be a program name with args.
set dummy sdl12-config; ac_word=$2
7191
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7192
echo "configure:7193: checking for $ac_word" >&5
7193
if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7194 7195
  echo $ac_n "(cached) $ac_c" 1>&6
else
7196
  case "$SDL12_CONFIG" in
7197
  /*)
7198
  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7199 7200
  ;;
  ?:/*)			 
7201
  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7202 7203 7204
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7205
  ac_dummy="$SDL_PATH"
7206 7207 7208
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
7209
      ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7210 7211 7212 7213
      break
    fi
  done
  IFS="$ac_save_ifs"
7214
  test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7215 7216 7217
  ;;
esac
fi
7218 7219 7220
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
7221
else
7222
  echo "$ac_t""no" 1>&6
7223
fi
7224

7225 7226
  SDL_CONFIG=${SDL12_CONFIG}
  SDL_HEADER="SDL12/SDL.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7227 7228
  if test x${SDL_CONFIG} = xno
  then
7229 7230 7231
    # Extract the first word of "sdl11-config", so it can be a program name with args.
set dummy sdl11-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7232
echo "configure:7233: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7233
if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7234 7235
  echo $ac_n "(cached) $ac_c" 1>&6
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7236
  case "$SDL11_CONFIG" in
7237
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
7238
  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7239 7240
  ;;
  ?:/*)			 
Sam Hocevar's avatar
 
Sam Hocevar committed
7241
  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7242 7243 7244
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7245
  ac_dummy="$SDL_PATH"
7246 7247 7248
  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
7249
      ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7250 7251 7252 7253
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
7254
  test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7255 7256
  ;;
esac
7257
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7258 7259 7260
SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
if test -n "$SDL11_CONFIG"; then
  echo "$ac_t""$SDL11_CONFIG" 1>&6
7261
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7262
  echo "$ac_t""no" 1>&6
7263 7264
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7265
    SDL_CONFIG=${SDL11_CONFIG}
7266 7267
    SDL_HEADER="SDL11/SDL.h"
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7268 7269
  if test x${SDL_CONFIG} = xno
  then
7270 7271
    # Extract the first word of "sdl-config", so it can be a program name with args.
set dummy sdl-config; ac_word=$2
7272
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7273
echo "configure:7274: checking for $ac_word" >&5
7274
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7275 7276
  echo $ac_n "(cached) $ac_c" 1>&6
else
7277
  case "$SDL_CONFIG" in
7278
  /*)
7279
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7280 7281
  ;;
  ?:/*)			 
7282
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7283 7284 7285
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7286
  ac_dummy="$SDL_PATH"
7287 7288 7289
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
7290
      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7291 7292 7293 7294
      break
    fi
  done
  IFS="$ac_save_ifs"
7295
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7296 7297 7298
  ;;
esac
fi
7299 7300 7301
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
if test -n "$SDL_CONFIG"; then
  echo "$ac_t""$SDL_CONFIG" 1>&6
7302 7303
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7304 7305
fi

7306
    SDL_HEADER="SDL/SDL.h"
7307
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7308 7309
  if test x${SDL_CONFIG} != xno
  then
7310
    PLUGINS="${PLUGINS} sdl"
Sam Hocevar's avatar
 
Sam Hocevar committed
7311 7312
    CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
    LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
7313 7314
    save_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7315
    for ac_hdr in ${SDL_HEADER}
7316
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7317 7318
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7319
echo "configure:7320: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7320 7321 7322 7323
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7324
#line 7325 "configure"
7325
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7326 7327 7328
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7329
{ (eval echo configure:7330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7330 7331 7332 7333 7334 7335 7336
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
7337
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7338 7339
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
7340
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7341
rm -f conftest*
7342
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7343 7344 7345 7346 7347
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
7348
EOF
7349 7350 7351 7352
 cat >> confdefs.h <<EOF
#define SDL_INCLUDE_FILE <${SDL_HEADER}>
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
7353 7354
else
  echo "$ac_t""no" 1>&6
7355 7356 7357 7358
{ 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; }
      
7359 7360 7361
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7362
    CPPFLAGS=$save_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
7363
    if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
Sam Hocevar's avatar
 
Sam Hocevar committed
7364
    then
7365 7366 7367
      { 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
7368
    fi
7369
  elif test "x$enable_sdl" =  "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7370
  then
7371 7372 7373
    { 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; }
7374 7375
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7376

7377 7378 7379
# Check whether --enable-directx or --disable-directx was given.
if test "${enable_directx+set}" = set; then
  enableval="$enable_directx"
7380
  :
Sam Hocevar's avatar
 
Sam Hocevar committed
7381 7382
fi

7383 7384
if test "x$enableval" != "xno"
then
Sam Hocevar's avatar
 
Sam Hocevar committed
7385
  if test x$SYS = xmingw32
7386 7387
  then
    # Check whether --with-directx-path or --without-directx-path was given.
Gildas Bazin's avatar
 
Gildas Bazin committed
7388 7389 7390 7391 7392
if test "${with_directx_path+set}" = set; then
  withval="$with_directx_path"
  :
fi

7393 7394
    if test "x$with_directx_path" = "x"
    then
Gildas Bazin's avatar
 
Gildas Bazin committed
7395
      for ac_hdr in ddraw.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7396 7397 7398
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7399
echo "configure:7400: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7400 7401 7402 7403
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7404
#line 7405 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7405 7406 7407 7408
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7409
{ (eval echo configure:7410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428
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
7429
  PLUGINS="${PLUGINS} directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7430
        LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" 
Sam Hocevar's avatar
 
Sam Hocevar committed
7431 7432 7433 7434 7435
else
  echo "$ac_t""no" 1>&6
fi
done

7436 7437
    else
      echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7438
echo "configure:7439: checking for directX headers in ${withval}" >&5
Gildas Bazin's avatar
 
Gildas Bazin committed
7439
      if test -f ${withval}/ddraw.h
7440 7441
      then
        PLUGINS="${PLUGINS} directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
7442
        LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
Gildas Bazin's avatar
 
Gildas Bazin committed
7443
        INCLUDE="${INCLUDE} -I${withval}"
7444
        echo "$ac_t""yes" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7445
      else
7446
        echo "$ac_t""no" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7447
        { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
Gildas Bazin's avatar
 
Gildas Bazin committed
7448
      fi
7449 7450
    fi
  fi
7451 7452
fi

Gildas Bazin's avatar
 
Gildas Bazin committed
7453 7454 7455 7456 7457 7458
# 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
7459
if test "x$enableval" != "xno" -a x$SYS = xmingw32
Gildas Bazin's avatar
 
Gildas Bazin committed
7460 7461 7462 7463 7464
  then
    PLUGINS="${PLUGINS} waveout"
    LIB_WAVEOUT="-lwinmm"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7465 7466 7467
# 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
7468 7469 7470 7471
   if test "x$enableval" != "xno"
    then
      PLUGINS="${PLUGINS} win32"
    fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
7472 7473 7474
fi


Christophe Massiot's avatar
Christophe Massiot committed
7475 7476 7477
# 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
7478
   if test "x$withval" != "xno"
Christophe Massiot's avatar
Christophe Massiot committed
7479
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
7480 7481
      PLUGINS="${PLUGINS} glide"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
7482
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
7483
        LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
7484
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
7485
        LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
7486
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7487
      CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
Sam Hocevar's avatar
 
Sam Hocevar committed
7488 7489 7490
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7491

Sam Hocevar's avatar
 
Sam Hocevar committed
7492 7493 7494
# 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
7495
  if test x$enable_ncurses = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7496
     PLUGINS="${PLUGINS} ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7497
     LIB_NCURSES="${LIB_NCURSES} -lncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
7498
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7499 7500
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7501

Sam Hocevar's avatar
 
Sam Hocevar committed
7502 7503 7504
# 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
7505
  if test x$enable_qt = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7506 7507
     PLUGINS="${PLUGINS} qt"
     ALIASES="${ALIASES} qvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7508 7509
     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
7510
     if test -x ${QTDIR}/bin/moc
Sam Hocevar's avatar
 
Sam Hocevar committed
7511 7512 7513 7514 7515
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7516
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7517 7518
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7519

7520 7521 7522
# 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
7523
  if test x$enable_kde = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7524 7525
     PLUGINS="${PLUGINS} kde"
     ALIASES="${ALIASES} kvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
7526 7527 7528
     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"
7529 7530 7531 7532 7533 7534
     if test -x ${QTDIR}/bin/moc
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7535
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7536 7537
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7538

7539 7540 7541
# 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
7542
  if test x$enable_gnome = xyes; then
7543 7544 7545 7546
    # look for gnome-config
    # Extract the first word of "gnome-config", so it can be a program name with args.
set dummy gnome-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7547
echo "configure:7548: checking for $ac_word" >&5
7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581
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
7582 7583
       CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
       LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7584 7585 7586 7587 7588 7589 7590 7591
    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
Gildas Bazin's avatar
 
Gildas Bazin committed
7592
echo "configure:7593: checking for $ac_hdr" >&5
7593 7594 7595 7596
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7597
#line 7598 "configure"
7598 7599 7600 7601
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7602
{ (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636
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
7637 7638
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7639

Sam Hocevar's avatar
 
Sam Hocevar committed
7640 7641 7642
# 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
7643 7644
  :
fi
7645

Sam Hocevar's avatar
 
Sam Hocevar committed
7646 7647
if test x$enable_gtk != xno
then
7648 7649 7650 7651 7652 7653 7654 7655 7656 7657
  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
7658
  # look for gtk-config
Sam Hocevar's avatar
 
Sam Hocevar committed
7659 7660
  # Extract the first word of "gtk12-config", so it can be a program name with args.
set dummy gtk12-config; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
7661
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7662
echo "configure:7663: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700
if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GTK12_CONFIG" in
  /*)
  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$GTK_PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
  ;;
esac
fi
GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
if test -n "$GTK12_CONFIG"; then
  echo "$ac_t""$GTK12_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  GTK_CONFIG=${GTK12_CONFIG}
  if test x${GTK_CONFIG} = xno
  then
    # Extract the first word of "gtk-config", so it can be a program name with args.
set dummy gtk-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7701
echo "configure:7702: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7702 7703
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
7704
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7705 7706
  case "$GTK_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
7707 7708
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
7709 7710 7711
  ?:/*)			 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
7712
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
7713
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
7714
  ac_dummy="$GTK_PATH"
Sam Hocevar's avatar
 
Sam Hocevar committed
7715 7716 7717 7718 7719 7720 7721 7722
  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
7723 7724 7725 7726
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7727
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
7728
if test -n "$GTK_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7729
  echo "$ac_t""$GTK_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7730
else
Sam Hocevar's avatar
 
Sam Hocevar committed
7731
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7732 7733
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
7734 7735
  fi
  if test x${GTK_CONFIG} != xno
Sam Hocevar's avatar
 
Sam Hocevar committed
7736
  then
Sam Hocevar's avatar
 
Sam Hocevar committed
7737 7738 7739 7740
    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
7741 7742
    CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
    LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
7743 7744 7745 7746 7747
    # now look for the gtk.h header
    saved_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
    ac_cv_gtk_headers=yes
    for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7748 7749 7750
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7751
echo "configure:7752: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7752 7753 7754 7755
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7756
#line 7757 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7757 7758 7759 7760
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7761
{ (eval echo configure:7762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783
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
7784
ac_cv_gtk_headers=no
Sam Hocevar's avatar
 
Sam Hocevar committed
7785 7786
      echo "Cannot find gtk development headers."
    
Sam Hocevar's avatar
 
Sam Hocevar committed
7787 7788 7789
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7790 7791 7792 7793 7794 7795
    if test "x$ac_cv_gtk_headers" = xyes
    then
      PLUGINS="${PLUGINS} gtk"
      ALIASES="${ALIASES} gvlc"
    fi
    CPPFLAGS=$saved_CPPFLAGS
7796
  fi
7797
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7798

7799 7800 7801
# 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
7802 7803
  :
fi
Henri Fallon's avatar
 
Henri Fallon committed
7804

7805
if test x$enable_x11 != xno &&
Sam Hocevar's avatar
 
Sam Hocevar committed
7806
  (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
Sam Hocevar's avatar
 
Sam Hocevar committed
7807 7808 7809 7810 7811 7812 7813 7814
  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
7815
  for ac_hdr in X11/Xlib.h
7816
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7817 7818
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7819
echo "configure:7820: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7820 7821 7822 7823
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7824
#line 7825 "configure"
7825
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7826 7827 7828
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7829
{ (eval echo configure:7830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7830 7831 7832 7833 7834 7835 7836
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
7837
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7838 7839
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
7840
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7841
rm -f conftest*
7842
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7843 7844 7845 7846 7847
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
7848
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7849
 
Sam Hocevar's avatar
 
Sam Hocevar committed
7850 7851 7852
    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
7853 7854 7855
  
else
  echo "$ac_t""no" 1>&6
7856 7857 7858
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
7859
  CPPFLAGS=$saved_CPPFLAGS
7860
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7861

Sam Hocevar's avatar
 
Sam Hocevar committed
7862 7863 7864
# 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
7865 7866
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7867

7868
if test x$enable_xvideo != xno &&
Sam Hocevar's avatar
 
Sam Hocevar committed
7869
  (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
Sam Hocevar's avatar
 
Sam Hocevar committed
7870 7871 7872 7873 7874 7875 7876 7877
  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
7878
  for ac_hdr in X11/extensions/Xv.h
Sam Hocevar's avatar
 
Sam Hocevar committed
7879
do
Sam Hocevar's avatar
 
Sam Hocevar committed
7880 7881
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7882
echo "configure:7883: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7883 7884 7885 7886
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7887
#line 7888 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7888
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
7889 7890 7891
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7892
{ (eval echo configure:7893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
7893 7894 7895 7896 7897 7898 7899
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
7900
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7901 7902
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
7903
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7904
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
7905
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7906 7907 7908 7909 7910
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
7911
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
7912
 
Sam Hocevar's avatar
 
Sam Hocevar committed
7913 7914 7915
    saved_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
    echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7916
echo "configure:7917: checking for XvSetPortAttribute in -lXv_pic" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
7917 7918 7919 7920 7921 7922 7923
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
Gildas Bazin's avatar
 
Gildas Bazin committed
7924
#line 7925 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
7925 7926 7927 7928 7929 7930 7931 7932 7933 7934
#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
Gildas Bazin's avatar
 
Gildas Bazin committed
7935
if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962
  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
7963
  
Sam Hocevar's avatar
 
Sam Hocevar committed
7964
  CPPFLAGS=$saved_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
7965 7966
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
7967 7968
fi
done
Sam Hocevar's avatar
 
Sam Hocevar committed
7969

Sam Hocevar's avatar
 
Sam Hocevar committed
7970
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
7971

7972 7973 7974 7975 7976 7977 7978 7979 7980 7981
# Check whether --enable-lirc or --disable-lirc was given.
if test "${enable_lirc+set}" = set; then
  enableval="$enable_lirc"
  :
fi

if test x$enable_lirc = xyes
then
  ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
7982
echo "configure:7983: checking for lirc/lirc_client.h" >&5
7983 7984 7985 7986
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
7987
#line 7988 "configure"
7988 7989 7990 7991
#include "confdefs.h"
#include <lirc/lirc_client.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
7992
{ (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
8009
echo "configure:8010: checking for lirc_init in -llirc_client" >&5
8010 8011 8012 8013 8014 8015 8016
ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-llirc_client  $LIBS"
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8017
#line 8018 "configure"
8018 8019 8020 8021 8022 8023 8024 8025 8026 8027
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char lirc_init();

int main() {
lirc_init()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8028
if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060
  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
8061 8062 8063
# 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
8064 8065
  if test x$enable_alsa = xyes
   then
Sam Hocevar's avatar
 
Sam Hocevar committed
8066 8067
     ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
Gildas Bazin's avatar
 
Gildas Bazin committed
8068
echo "configure:8069: checking for alsa/asoundlib.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8069 8070 8071 8072
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8073
#line 8074 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
8074
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
8075
#include <alsa/asoundlib.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
8076 8077
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Gildas Bazin's avatar
 
Gildas Bazin committed
8078
{ (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
8079 8080 8081 8082 8083 8084 8085
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
8086
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8087 8088
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Henri Fallon's avatar
 
Henri Fallon committed
8089
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8090
rm -f conftest*
Henri Fallon's avatar
 
Henri Fallon committed
8091
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8092 8093 8094
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
Gildas Bazin's avatar
 
Gildas Bazin committed
8095
echo "configure:8096: checking for main in -lasound" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
8096 8097 8098
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
8099
else
Sam Hocevar's avatar
 
Sam Hocevar committed
8100
  ac_save_LIBS="$LIBS"
Henri Fallon's avatar
 
Henri Fallon committed
8101
LIBS="-lasound  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
8102
cat > conftest.$ac_ext <<EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8103
#line 8104 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
8104 8105
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
8106 8107 8108 8109
int main() {
main()
; return 0; }
EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
8110
if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124
  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
8125 8126
  have_alsa="true"
else
Sam Hocevar's avatar
 
Sam Hocevar committed
8127 8128
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
8129 8130 8131
fi

else
Sam Hocevar's avatar
 
Sam Hocevar committed
8132 8133
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
8134
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8135 8136 8137 8138

     if test x$have_alsa = xtrue
     then
       PLUGINS="${PLUGINS} alsa"
Sam Hocevar's avatar
 
Sam Hocevar committed
8139
       LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
8140 8141
     fi
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8142 8143
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8144

8145 8146
fi

8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157
# 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
8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168
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
8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192
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"


8193

8194 8195 8196 8197 8198





Henri Fallon's avatar
 
Henri Fallon committed
8199 8200 8201



Christophe Massiot's avatar
Christophe Massiot committed
8202 8203 8204



Sam Hocevar's avatar
 
Sam Hocevar committed
8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218














Sam Hocevar's avatar
 
Sam Hocevar committed
8219

Sam Hocevar's avatar
 
Sam Hocevar committed
8220

Sam Hocevar's avatar
 
Sam Hocevar committed
8221 8222 8223 8224




Sam Hocevar's avatar
 
Sam Hocevar committed
8225

Sam Hocevar's avatar
 
Sam Hocevar committed
8226 8227


8228

Sam Hocevar's avatar
 
Sam Hocevar committed
8229

Sam Hocevar's avatar
 
Sam Hocevar committed
8230

Sam Hocevar's avatar
 
Sam Hocevar committed
8231

Sam Hocevar's avatar
 
Sam Hocevar committed
8232

Sam Hocevar's avatar
 
Sam Hocevar committed
8233

Sam Hocevar's avatar
 
Sam Hocevar committed
8234 8235 8236



Sam Hocevar's avatar
 
Sam Hocevar committed
8237

Sam Hocevar's avatar
 
Sam Hocevar committed
8238

Sam Hocevar's avatar
 
Sam Hocevar committed
8239

Sam Hocevar's avatar
 
Sam Hocevar committed
8240

Sam Hocevar's avatar
 
Sam Hocevar committed
8241

Sam Hocevar's avatar
 
Sam Hocevar committed
8242 8243


8244

Sam Hocevar's avatar
 
Sam Hocevar committed
8245

Sam Hocevar's avatar
 
Sam Hocevar committed
8246 8247 8248



8249 8250


Sam Hocevar's avatar
 
Sam Hocevar committed
8251 8252 8253



Stéphane Borel's avatar
Stéphane Borel committed
8254 8255 8256



8257

8258

8259

Sam Hocevar's avatar
 
Sam Hocevar committed
8260 8261 8262 8263 8264 8265 8266 8267 8268









8269

Sam Hocevar's avatar
 
Sam Hocevar committed
8270 8271


Sam Hocevar's avatar
 
Sam Hocevar committed
8272 8273 8274



Gildas Bazin's avatar
 
Gildas Bazin committed
8275

Sam Hocevar's avatar
 
Sam Hocevar committed
8276 8277


Sam Hocevar's avatar
 
Sam Hocevar committed
8278

Gildas Bazin's avatar
 
Gildas Bazin committed
8279

Gildas Bazin's avatar
 
Gildas Bazin committed
8280

Sam Hocevar's avatar
 
Sam Hocevar committed
8281

Sam Hocevar's avatar
 
Sam Hocevar committed
8282

8283

Sam Hocevar's avatar
 
Sam Hocevar committed
8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329

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
8330
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8331
rm -f confcache
8332

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8335 8336 8337
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8338

Sam Hocevar's avatar
 
Sam Hocevar committed
8339 8340 8341 8342 8343 8344 8345 8346 8347 8348
# 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
8349

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8353 8354 8355 8356 8357 8358 8359 8360
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`:
8361
#
Sam Hocevar's avatar
 
Sam Hocevar committed
8362
# $0 $ac_configure_args
8363
#
Sam Hocevar's avatar
 
Sam Hocevar committed
8364 8365
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
8366

Sam Hocevar's avatar
 
Sam Hocevar committed
8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384
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
8385

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422
# 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
8423 8424 8425 8426 8427 8428 8429 8430 8431 8432
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
8433
s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8434 8435 8436 8437
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
8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459
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
8460 8461 8462
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
8463
s%@WINDRES@%$WINDRES%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8464
s%@ESD_CONFIG@%$ESD_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8465
s%@ARTS_CONFIG@%$ARTS_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8466
s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8467 8468
s%@SDL11_CONFIG@%$SDL11_CONFIG%g
s%@SDL_CONFIG@%$SDL_CONFIG%g
8469
s%@GNOME_CONFIG@%$GNOME_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8470
s%@GTK12_CONFIG@%$GTK12_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8471
s%@GTK_CONFIG@%$GTK_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8472 8473
s%@DATA_PATH@%$DATA_PATH%g
s%@PLUGIN_PATH@%$PLUGIN_PATH%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8474 8475 8476 8477 8478 8479 8480
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
8481
s%@ASM@%$ASM%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8482 8483
s%@CPROF@%$CPROF%g
s%@GPROF@%$GPROF%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8484
s%@OPTIMS@%$OPTIMS%g
8485
s%@TUNING@%$TUNING%g
8486
s%@RELEASE@%$RELEASE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8487
s%@MOC@%$MOC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8488
s%@DLL_PATH@%$DLL_PATH%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8489 8490
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8491 8492 8493
s%@VCD_DEVICE@%$VCD_DEVICE%g
s%@DVD_DEVICE@%$DVD_DEVICE%g
s%@PLDFLAGS@%$PLDFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8494
s%@SOFLAGS@%$SOFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8495 8496
s%@LIB@%$LIB%g
s%@LIB_ALSA@%$LIB_ALSA%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8497
s%@LIB_ARTS@%$LIB_ARTS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8498 8499
s%@LIB_BEOS@%$LIB_BEOS%g
s%@LIB_DARWIN@%$LIB_DARWIN%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8500
s%@LIB_DIRECTX@%$LIB_DIRECTX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8501
s%@LIB_DSP@%$LIB_DSP%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8502
s%@LIB_DVD@%$LIB_DVD%g
Stéphane Borel's avatar
Stéphane Borel committed
8503
s%@LIB_DVDREAD@%$LIB_DVDREAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8504
s%@LIB_ESD@%$LIB_ESD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8505
s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8506 8507 8508 8509
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
8510
s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8511 8512 8513
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
8514
s%@LIB_KDE@%$LIB_KDE%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8515
s%@LIB_A52@%$LIB_A52%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8516
s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8517
s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8518
s%@LIB_LIRC@%$LIB_LIRC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8519
s%@LIB_MACOSX@%$LIB_MACOSX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8520
s%@LIB_MAD@%$LIB_MAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8521
s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8522
s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8523
s%@LIB_NCURSES@%$LIB_NCURSES%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8524
s%@LIB_QNX@%$LIB_QNX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8525
s%@LIB_QT@%$LIB_QT%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8526
s%@LIB_RC@%$LIB_RC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8527
s%@LIB_SDL@%$LIB_SDL%g
8528
s%@LIB_VCD@%$LIB_VCD%g
Gildas Bazin's avatar
 
Gildas Bazin committed
8529
s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8530
s%@LIB_WIN32@%$LIB_WIN32%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8531 8532 8533
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
8534
s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8535
s%@CFLAGS_DVD@%$CFLAGS_DVD%g
Stéphane Borel's avatar
Stéphane Borel committed
8536
s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8537
s%@CFLAGS_ESD@%$CFLAGS_ESD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8538 8539
s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8540
s%@CFLAGS_GTK@%$CFLAGS_GTK%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8541 8542 8543 8544
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
8545
s%@CFLAGS_MAD@%$CFLAGS_MAD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8546
s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8547 8548
s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8549
s%@CFLAGS_QT@%$CFLAGS_QT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8550
s%@CFLAGS_SDL@%$CFLAGS_SDL%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8551
s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8552
s%@CFLAGS_X11@%$CFLAGS_X11%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8553
s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8554 8555
s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8556
s%@NEED_GETOPT@%$NEED_GETOPT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8557
s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583

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
8584
    else
Sam Hocevar's avatar
 
Sam Hocevar committed
8585
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8586
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8587 8588 8589
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
8590
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8591 8592 8593 8594 8595
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
8596

Sam Hocevar's avatar
 
Sam Hocevar committed
8597 8598
cat >> $CONFIG_STATUS <<EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8599
CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8600
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8601 8602
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8603
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
8604 8605 8606 8607
  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" ;;
8608 8609
  esac

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

Sam Hocevar's avatar
 
Sam Hocevar committed
8612 8613 8614 8615 8616 8617
  # 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%^\./%%'`"
8618
    # A "../" for each directory in $ac_dir_suffix.
Sam Hocevar's avatar
 
Sam Hocevar committed
8619
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8620 8621 8622 8623
  else
    ac_dir_suffix= ac_dots=
  fi

Sam Hocevar's avatar
 
Sam Hocevar committed
8624 8625 8626 8627 8628
  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" ;;
8629
  *) # Relative path.
Sam Hocevar's avatar
 
Sam Hocevar committed
8630 8631
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
8632 8633
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8634 8635 8636
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8637 8638
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8639 8640 8641 8642 8643 8644 8645 8646
  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
8647

Sam Hocevar's avatar
 
Sam Hocevar committed
8648 8649 8650 8651 8652 8653 8654 8655 8656
  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*
8657 8658 8659 8660 8661

# 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
8662 8663 8664 8665 8666 8667 8668
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'
8669
ac_uC=' '
Sam Hocevar's avatar
 
Sam Hocevar committed
8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684
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
8685
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
8686 8687 8688 8689
  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" ;;
8690 8691
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
8692 8693 8694 8695 8696
  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
8697 8698 8699

EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710
# 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
8711
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8712 8713
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
8714 8715 8716 8717

# 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
8718 8719
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8720 8721
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
8722 8723
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
8724 8725

rm -f conftest.tail
Sam Hocevar's avatar
 
Sam Hocevar committed
8726
while :
8727
do
Sam Hocevar's avatar
 
Sam Hocevar committed
8728 8729 8730 8731 8732 8733
  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
8734
  echo 'CEOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8735 8736 8737 8738 8739 8740 8741
  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
8742
done
Sam Hocevar's avatar
 
Sam Hocevar committed
8743 8744 8745 8746 8747 8748 8749 8750 8751 8752
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
8753
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
8754 8755
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8756
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
Sam Hocevar's avatar
 
Sam Hocevar committed
8757 8758
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
8759
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8760 8761
    rm -f $ac_file
    mv conftest.h $ac_file
8762
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8763 8764
fi; done

8765
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8766
cat >> $CONFIG_STATUS <<EOF
8767

Sam Hocevar's avatar
 
Sam Hocevar committed
8768

Sam Hocevar's avatar
 
Sam Hocevar committed
8769 8770
EOF
cat >> $CONFIG_STATUS <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799
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
8800

Sam Hocevar's avatar
 
Sam Hocevar committed
8801
exit 0
8802 8803
EOF
chmod +x $CONFIG_STATUS
Sam Hocevar's avatar
 
Sam Hocevar committed
8804 8805 8806
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

8807

8808
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8809 8810 8811 8812
global configuration
--------------------
system                : ${SYS}
architecture          : ${ARCH}
8813
optimizations         : ${OPTIMS}
8814 8815
tuning:               : ${TUNING}
release:              : ${RELEASE}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8816

Sam Hocevar's avatar
 
Sam Hocevar committed
8817 8818 8819
if test x${HAVE_VLC} = x1
then
  echo "
8820 8821 8822
vlc configuration
-----------------
vlc version           : ${VLC_VERSION}
8823
debug mode            : ${DEBUG}
Sam Hocevar's avatar
 
Sam Hocevar committed
8824
cprof/gprof support   : ${CPROF}/${GPROF}
Sam Hocevar's avatar
 
Sam Hocevar committed
8825
need builtin getopt   : ${NEED_GETOPT}
Sam Hocevar's avatar
 
Sam Hocevar committed
8826
built-in modules      :${BUILTINS}
8827
plug-in modules       :${PLUGINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
8828 8829
vlc aliases           :${ALIASES}"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8830

Sam Hocevar's avatar
 
Sam Hocevar committed
8831
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8832 8833
libdvdcss configuration
-----------------------
Sam Hocevar's avatar
 
Sam Hocevar committed
8834
can be built          : ${CAN_BUILD_LIBDVDCSS}
Sam Hocevar's avatar
 
Sam Hocevar committed
8835 8836
will be built         : ${NEED_LIBDVDCSS}"
if test x${NEED_LIBDVDCSS} = x1
Sam Hocevar's avatar
 
Sam Hocevar committed
8837
then
Sam Hocevar's avatar
 
Sam Hocevar committed
8838
  echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8839 8840 8841
  echo "link statically       : ${STATIC_LIBDVDCSS}"
else
  echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
8842 8843 8844
fi

echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
8845 8846 8847 8848 8849
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
8850
  echo "To build vlc and its plugins, type \`make'."
Sam Hocevar's avatar
 
Sam Hocevar committed
8851
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
8852
if test x${NEED_LIBDVDCSS} = x1
Sam Hocevar's avatar
 
Sam Hocevar committed
8853 8854 8855 8856
then
  echo "To build libdvdcss only, type \`make libdvdcss'."
fi
echo ""
8857