root/vic/branches/mpeg4/configure @ 4007

Revision 4007, 221.5 KB (checked in by piers, 7 years ago)

Fixed operation of configure --enable-gpl - Just some problems with commas in the configure.in script.

  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""        $as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133         X"$0" : 'X\(//\)$' \| \
134         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137            s//\1/
138            q
139          }
140          /^X\/\(\/\/\)$/{
141            s//\1/
142            q
143          }
144          /^X\/\(\/\).*/{
145            s//\1/
146            q
147          }
148          s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes &&     (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227         /*)
228           for as_base in sh bash ksh sh5; do
229             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230           done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237         # Try only shells that exist, to save several forks.
238         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259               as_have_required=yes
260               if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534        case $1 in
535        -*)set "./$1";;
536        esac;
537        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538        ???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="main.cpp"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653build
654build_cpu
655build_vendor
656build_os
657host
658host_cpu
659host_vendor
660host_os
661target
662target_cpu
663target_vendor
664target_os
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CXX
673CXXFLAGS
674ac_ct_CXX
675CPP
676GREP
677EGREP
678V_INCLUDE_X11
679V_LIB_X11
680V_INCLUDE_TCL
681V_LIB_TCL
682V_LIBRARY_TCL
683V_TKDOSNAMES
684V_INCLUDE_TK
685V_LIB_TK
686V_LIBRARY_TK
687V_LIB_FFMPEG
688V_LIB_X264
689V_INCLUDE_GRABBER
690V_LIB_GRABBER
691V_OBJ_GRABBER
692V_LIB_XIL
693V_OBJ_XIL
694V_OBJ
695V_LIB
696V_CODEC_LIB
697V_CPUDETECT_OBJ
698V_STATIC
699V_TAR_TARGET
700V_ALL
701V_CCOPT
702V_CCOPT_H261
703V_TAR_EXTRA
704V_DEFINE
705V_SIGRET
706V_SHELL
707V_TARCMD
708V_INCLUDE
709V_BROKEN_OBJ
710V_OBJ_CRYPT
711LIBOBJS
712LTLIBOBJS'
713ac_subst_files=''
714      ac_precious_vars='build_alias
715host_alias
716target_alias
717CC
718CFLAGS
719LDFLAGS
720LIBS
721CPPFLAGS
722CXX
723CXXFLAGS
724CCC
725CPP'
726
727
728# Initialize some variables set by options.
729ac_init_help=
730ac_init_version=false
731# The variables have the same names as the options, with
732# dashes changed to underlines.
733cache_file=/dev/null
734exec_prefix=NONE
735no_create=
736no_recursion=
737prefix=NONE
738program_prefix=NONE
739program_suffix=NONE
740program_transform_name=s,x,x,
741silent=
742site=
743srcdir=
744verbose=
745x_includes=NONE
746x_libraries=NONE
747
748# Installation directory options.
749# These are left unexpanded so users can "make install exec_prefix=/foo"
750# and all the variables that are supposed to be based on exec_prefix
751# by default will actually change.
752# Use braces instead of parens because sh, perl, etc. also accept them.
753# (The list follows the same order as the GNU Coding Standards.)
754bindir='${exec_prefix}/bin'
755sbindir='${exec_prefix}/sbin'
756libexecdir='${exec_prefix}/libexec'
757datarootdir='${prefix}/share'
758datadir='${datarootdir}'
759sysconfdir='${prefix}/etc'
760sharedstatedir='${prefix}/com'
761localstatedir='${prefix}/var'
762includedir='${prefix}/include'
763oldincludedir='/usr/include'
764docdir='${datarootdir}/doc/${PACKAGE}'
765infodir='${datarootdir}/info'
766htmldir='${docdir}'
767dvidir='${docdir}'
768pdfdir='${docdir}'
769psdir='${docdir}'
770libdir='${exec_prefix}/lib'
771localedir='${datarootdir}/locale'
772mandir='${datarootdir}/man'
773
774ac_prev=
775ac_dashdash=
776for ac_option
777do
778  # If the previous option needs an argument, assign it.
779  if test -n "$ac_prev"; then
780    eval $ac_prev=\$ac_option
781    ac_prev=
782    continue
783  fi
784
785  case $ac_option in
786  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787  *)    ac_optarg=yes ;;
788  esac
789
790  # Accept the important Cygnus configure options, so we can diagnose typos.
791
792  case $ac_dashdash$ac_option in
793  --)
794    ac_dashdash=yes ;;
795
796  -bindir | --bindir | --bindi | --bind | --bin | --bi)
797    ac_prev=bindir ;;
798  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799    bindir=$ac_optarg ;;
800
801  -build | --build | --buil | --bui | --bu)
802    ac_prev=build_alias ;;
803  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804    build_alias=$ac_optarg ;;
805
806  -cache-file | --cache-file | --cache-fil | --cache-fi \
807  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808    ac_prev=cache_file ;;
809  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811    cache_file=$ac_optarg ;;
812
813  --config-cache | -C)
814    cache_file=config.cache ;;
815
816  -datadir | --datadir | --datadi | --datad)
817    ac_prev=datadir ;;
818  -datadir=* | --datadir=* | --datadi=* | --datad=*)
819    datadir=$ac_optarg ;;
820
821  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822  | --dataroo | --dataro | --datar)
823    ac_prev=datarootdir ;;
824  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826    datarootdir=$ac_optarg ;;
827
828  -disable-* | --disable-*)
829    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830    # Reject names that are not valid shell variable names.
831    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
832      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
833   { (exit 1); exit 1; }; }
834    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
835    eval enable_$ac_feature=no ;;
836
837  -docdir | --docdir | --docdi | --doc | --do)
838    ac_prev=docdir ;;
839  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840    docdir=$ac_optarg ;;
841
842  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843    ac_prev=dvidir ;;
844  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845    dvidir=$ac_optarg ;;
846
847  -enable-* | --enable-*)
848    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849    # Reject names that are not valid shell variable names.
850    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852   { (exit 1); exit 1; }; }
853    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854    eval enable_$ac_feature=\$ac_optarg ;;
855
856  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
857  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
858  | --exec | --exe | --ex)
859    ac_prev=exec_prefix ;;
860  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
861  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
862  | --exec=* | --exe=* | --ex=*)
863    exec_prefix=$ac_optarg ;;
864
865  -gas | --gas | --ga | --g)
866    # Obsolete; use --with-gas.
867    with_gas=yes ;;
868
869  -help | --help | --hel | --he | -h)
870    ac_init_help=long ;;
871  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
872    ac_init_help=recursive ;;
873  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
874    ac_init_help=short ;;
875
876  -host | --host | --hos | --ho)
877    ac_prev=host_alias ;;
878  -host=* | --host=* | --hos=* | --ho=*)
879    host_alias=$ac_optarg ;;
880
881  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
882    ac_prev=htmldir ;;
883  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
884  | --ht=*)
885    htmldir=$ac_optarg ;;
886
887  -includedir | --includedir | --includedi | --included | --include \
888  | --includ | --inclu | --incl | --inc)
889    ac_prev=includedir ;;
890  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
891  | --includ=* | --inclu=* | --incl=* | --inc=*)
892    includedir=$ac_optarg ;;
893
894  -infodir | --infodir | --infodi | --infod | --info | --inf)
895    ac_prev=infodir ;;
896  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
897    infodir=$ac_optarg ;;
898
899  -libdir | --libdir | --libdi | --libd)
900    ac_prev=libdir ;;
901  -libdir=* | --libdir=* | --libdi=* | --libd=*)
902    libdir=$ac_optarg ;;
903
904  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
905  | --libexe | --libex | --libe)
906    ac_prev=libexecdir ;;
907  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
908  | --libexe=* | --libex=* | --libe=*)
909    libexecdir=$ac_optarg ;;
910
911  -localedir | --localedir | --localedi | --localed | --locale)
912    ac_prev=localedir ;;
913  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
914    localedir=$ac_optarg ;;
915
916  -localstatedir | --localstatedir | --localstatedi | --localstated \
917  | --localstate | --localstat | --localsta | --localst | --locals)
918    ac_prev=localstatedir ;;
919  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
920  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
921    localstatedir=$ac_optarg ;;
922
923  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
924    ac_prev=mandir ;;
925  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
926    mandir=$ac_optarg ;;
927
928  -nfp | --nfp | --nf)
929    # Obsolete; use --without-fp.
930    with_fp=no ;;
931
932  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933  | --no-cr | --no-c | -n)
934    no_create=yes ;;
935
936  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
938    no_recursion=yes ;;
939
940  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
941  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
942  | --oldin | --oldi | --old | --ol | --o)
943    ac_prev=oldincludedir ;;
944  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
945  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
946  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
947    oldincludedir=$ac_optarg ;;
948
949  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
950    ac_prev=prefix ;;
951  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
952    prefix=$ac_optarg ;;
953
954  -program-prefix | --program-prefix | --program-prefi | --program-pref \
955  | --program-pre | --program-pr | --program-p)
956    ac_prev=program_prefix ;;
957  -program-prefix=* | --program-prefix=* | --program-prefi=* \
958  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
959    program_prefix=$ac_optarg ;;
960
961  -program-suffix | --program-suffix | --program-suffi | --program-suff \
962  | --program-suf | --program-su | --program-s)
963    ac_prev=program_suffix ;;
964  -program-suffix=* | --program-suffix=* | --program-suffi=* \
965  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
966    program_suffix=$ac_optarg ;;
967
968  -program-transform-name | --program-transform-name \
969  | --program-transform-nam | --program-transform-na \
970  | --program-transform-n | --program-transform- \
971  | --program-transform | --program-transfor \
972  | --program-transfo | --program-transf \
973  | --program-trans | --program-tran \
974  | --progr-tra | --program-tr | --program-t)
975    ac_prev=program_transform_name ;;
976  -program-transform-name=* | --program-transform-name=* \
977  | --program-transform-nam=* | --program-transform-na=* \
978  | --program-transform-n=* | --program-transform-=* \
979  | --program-transform=* | --program-transfor=* \
980  | --program-transfo=* | --program-transf=* \
981  | --program-trans=* | --program-tran=* \
982  | --progr-tra=* | --program-tr=* | --program-t=*)
983    program_transform_name=$ac_optarg ;;
984
985  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
986    ac_prev=pdfdir ;;
987  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
988    pdfdir=$ac_optarg ;;
989
990  -psdir | --psdir | --psdi | --psd | --ps)
991    ac_prev=psdir ;;
992  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
993    psdir=$ac_optarg ;;
994
995  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996  | -silent | --silent | --silen | --sile | --sil)
997    silent=yes ;;
998
999  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1000    ac_prev=sbindir ;;
1001  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1002  | --sbi=* | --sb=*)
1003    sbindir=$ac_optarg ;;
1004
1005  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1006  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1007  | --sharedst | --shareds | --shared | --share | --shar \
1008  | --sha | --sh)
1009    ac_prev=sharedstatedir ;;
1010  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1011  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1012  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1013  | --sha=* | --sh=*)
1014    sharedstatedir=$ac_optarg ;;
1015
1016  -site | --site | --sit)
1017    ac_prev=site ;;
1018  -site=* | --site=* | --sit=*)
1019    site=$ac_optarg ;;
1020
1021  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1022    ac_prev=srcdir ;;
1023  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1024    srcdir=$ac_optarg ;;
1025
1026  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1027  | --syscon | --sysco | --sysc | --sys | --sy)
1028    ac_prev=sysconfdir ;;
1029  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1030  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1031    sysconfdir=$ac_optarg ;;
1032
1033  -target | --target | --targe | --targ | --tar | --ta | --t)
1034    ac_prev=target_alias ;;
1035  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1036    target_alias=$ac_optarg ;;
1037
1038  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1039    verbose=yes ;;
1040
1041  -version | --version | --versio | --versi | --vers | -V)
1042    ac_init_version=: ;;
1043
1044  -with-* | --with-*)
1045    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048      { echo "$as_me: error: invalid package name: $ac_package" >&2
1049   { (exit 1); exit 1; }; }
1050    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051    eval with_$ac_package=\$ac_optarg ;;
1052
1053  -without-* | --without-*)
1054    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057      { echo "$as_me: error: invalid package name: $ac_package" >&2
1058   { (exit 1); exit 1; }; }
1059    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060    eval with_$ac_package=no ;;
1061
1062  --x)
1063    # Obsolete; use --with-x.
1064    with_x=yes ;;
1065
1066  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1067  | --x-incl | --x-inc | --x-in | --x-i)
1068    ac_prev=x_includes ;;
1069  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1070  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1071    x_includes=$ac_optarg ;;
1072
1073  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1074  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1075    ac_prev=x_libraries ;;
1076  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1077  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1078    x_libraries=$ac_optarg ;;
1079
1080  -*) { echo "$as_me: error: unrecognized option: $ac_option
1081Try \`$0 --help' for more information." >&2
1082   { (exit 1); exit 1; }; }
1083    ;;
1084
1085  *=*)
1086    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1089      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1090   { (exit 1); exit 1; }; }
1091    eval $ac_envvar=\$ac_optarg
1092    export $ac_envvar ;;
1093
1094  *)
1095    # FIXME: should be removed in autoconf 3.0.
1096    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1097    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1099    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1100    ;;
1101
1102  esac
1103done
1104
1105if test -n "$ac_prev"; then
1106  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1107  { echo "$as_me: error: missing argument to $ac_option" >&2
1108   { (exit 1); exit 1; }; }
1109fi
1110
1111# Be sure to have absolute directory names.
1112for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1113                datadir sysconfdir sharedstatedir localstatedir includedir \
1114                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1115                libdir localedir mandir
1116do
1117  eval ac_val=\$$ac_var
1118  case $ac_val in
1119    [\\/$]* | ?:[\\/]* )  continue;;
1120    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1121  esac
1122  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1123   { (exit 1); exit 1; }; }
1124done
1125
1126# There might be people who depend on the old broken behavior: `$host'
1127# used to hold the argument of --host etc.
1128# FIXME: To remove some day.
1129build=$build_alias
1130host=$host_alias
1131target=$target_alias
1132
1133# FIXME: To remove some day.
1134if test "x$host_alias" != x; then
1135  if test "x$build_alias" = x; then
1136    cross_compiling=maybe
1137    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1138    If a cross compiler is detected then cross compile mode will be used." >&2
1139  elif test "x$build_alias" != "x$host_alias"; then
1140    cross_compiling=yes
1141  fi
1142fi
1143
1144ac_tool_prefix=
1145test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146
1147test "$silent" = yes && exec 6>/dev/null
1148
1149
1150ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151ac_ls_di=`ls -di .` &&
1152ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153  { echo "$as_me: error: Working directory cannot be determined" >&2
1154   { (exit 1); exit 1; }; }
1155test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156  { echo "$as_me: error: pwd does not report name of working directory" >&2
1157   { (exit 1); exit 1; }; }
1158
1159
1160# Find the source files, if location was not specified.
1161if test -z "$srcdir"; then
1162  ac_srcdir_defaulted=yes
1163  # Try the directory containing this script, then the parent directory.
1164  ac_confdir=`$as_dirname -- "$0" ||
1165$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1166         X"$0" : 'X\(//\)[^/]' \| \
1167         X"$0" : 'X\(//\)$' \| \
1168         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1169echo X"$0" |
1170    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1171            s//\1/
1172            q
1173          }
1174          /^X\(\/\/\)[^/].*/{
1175            s//\1/
1176            q
1177          }
1178          /^X\(\/\/\)$/{
1179            s//\1/
1180            q
1181          }
1182          /^X\(\/\).*/{
1183            s//\1/
1184            q
1185          }
1186          s/.*/./; q'`
1187  srcdir=$ac_confdir
1188  if test ! -r "$srcdir/$ac_unique_file"; then
1189    srcdir=..
1190  fi
1191else
1192  ac_srcdir_defaulted=no
1193fi
1194if test ! -r "$srcdir/$ac_unique_file"; then
1195  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1196  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1197   { (exit 1); exit 1; }; }
1198fi
1199ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200ac_abs_confdir=`(
1201        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1202   { (exit 1); exit 1; }; }
1203        pwd)`
1204# When building in place, set srcdir=.
1205if test "$ac_abs_confdir" = "$ac_pwd"; then
1206  srcdir=.
1207fi
1208# Remove unnecessary trailing slashes from srcdir.
1209# Double slashes in file names in object file debugging info
1210# mess up M-x gdb in Emacs.
1211case $srcdir in
1212*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1213esac
1214for ac_var in $ac_precious_vars; do
1215  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1216  eval ac_env_${ac_var}_value=\$${ac_var}
1217  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1218  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1219done
1220
1221#
1222# Report the --help message.
1223#
1224if test "$ac_init_help" = "long"; then
1225  # Omit some internal or obsolete options to make the list less imposing.
1226  # This message is too long to be a string in the A/UX 3.1 sh.
1227  cat <<_ACEOF
1228\`configure' configures this package to adapt to many kinds of systems.
1229
1230Usage: $0 [OPTION]... [VAR=VALUE]...
1231
1232To assign environment variables (e.g., CC, CFLAGS...), specify them as
1233VAR=VALUE.  See below for descriptions of some of the useful variables.
1234
1235Defaults for the options are specified in brackets.
1236
1237Configuration:
1238  -h, --help              display this help and exit
1239      --help=short        display options specific to this package
1240      --help=recursive    display the short help of all the included packages
1241  -V, --version           display version information and exit
1242  -q, --quiet, --silent   do not print \`checking...' messages
1243      --cache-file=FILE   cache test results in FILE [disabled]
1244  -C, --config-cache      alias for \`--cache-file=config.cache'
1245  -n, --no-create         do not create output files
1246      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1247
1248Installation directories:
1249  --prefix=PREFIX         install architecture-independent files in PREFIX
1250                          [$ac_default_prefix]
1251  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1252                          [PREFIX]
1253
1254By default, \`make install' will install all the files in
1255\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1256an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1257for instance \`--prefix=\$HOME'.
1258
1259For better control, use the options below.
1260
1261Fine tuning of the installation directories:
1262  --bindir=DIR           user executables [EPREFIX/bin]
1263  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1264  --libexecdir=DIR       program executables [EPREFIX/libexec]
1265  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1266  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1267  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1268  --libdir=DIR           object code libraries [EPREFIX/lib]
1269  --includedir=DIR       C header files [PREFIX/include]
1270  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1271  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1272  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1273  --infodir=DIR          info documentation [DATAROOTDIR/info]
1274  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1275  --mandir=DIR           man documentation [DATAROOTDIR/man]
1276  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1277  --htmldir=DIR          html documentation [DOCDIR]
1278  --dvidir=DIR           dvi documentation [DOCDIR]
1279  --pdfdir=DIR           pdf documentation [DOCDIR]
1280  --psdir=DIR            ps documentation [DOCDIR]
1281_ACEOF
1282
1283  cat <<\_ACEOF
1284
1285System types:
1286  --build=BUILD     configure for building on BUILD [guessed]
1287  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1288  --target=TARGET   configure for building compilers for TARGET [HOST]
1289_ACEOF
1290fi
1291
1292if test -n "$ac_init_help"; then
1293
1294  cat <<\_ACEOF
1295
1296Optional Features:
1297  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1298  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1299--enable-debug          build with debugging enabled
1300--enable-ipv6           build with ipv6 enabled
1301--enable-gpl    Enable or disable  use of gpl functionality - H264 MPEG4 Swscale
1302--disable-ffmpeg-co     Enable or disable ffmpeg svn checkout
1303--disable-x264-co      Enable or disable x264 svn checkout
1304--disable-cpudetect     Enable or disable runtime cpu detection
1305--disable-h261as         Enable or disable the h261as codec
1306--enable-dvdecode       Enable or disable dv decoding
1307--enable-xvideo         Enable or disable Xvideo rendering
1308--enable-v4l2old    Enable or disable old Video4Linux2 grabber
1309--enable-XvGrabber    Enable or disable old XvGrabber
1310
1311Optional Packages:
1312  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1313  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1314--with-fore=path        specify a pathname for fore atm
1315--with-ucltcl=path      specify a pathname for UCL's tcl
1316--with-tcl=path specify a pathname for tcl
1317--with-ucltk=path       specify a pathname for UCL's tk
1318--with-tk=path  specify a pathname for tk
1319--with-aix-shm=path     specify a pathname for the AIX shm X extension library file
1320--with-qcam=dir     specify directory with qcam.h for Connectix QuickCam device driver
1321--with-ffmpeginc=dir     specify the prefix directory of ffmpeg header
1322--with-ffmpeglib=dir     specify the directory of ffmpeg library
1323--with-x264inc=dir     specify the directory of x264 header
1324--with-x264lib=dir     specify the directory of x264 library
1325
1326Some influential environment variables:
1327  CC          C compiler command
1328  CFLAGS      C compiler flags
1329  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1330              nonstandard directory <lib dir>
1331  LIBS        libraries to pass to the linker, e.g. -l<library>
1332  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333              you have headers in a nonstandard directory <include dir>
1334  CXX         C++ compiler command
1335  CXXFLAGS    C++ compiler flags
1336  CPP         C preprocessor
1337
1338Use these variables to override the choices made by `configure' or to help
1339it to find libraries and programs with nonstandard names/locations.
1340
1341_ACEOF
1342ac_status=$?
1343fi
1344
1345if test "$ac_init_help" = "recursive"; then
1346  # If there are subdirs, report their specific --help.
1347  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348    test -d "$ac_dir" || continue
1349    ac_builddir=.
1350
1351case "$ac_dir" in
1352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353*)
1354  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355  # A ".." for each directory in $ac_dir_suffix.
1356  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357  case $ac_top_builddir_sub in
1358  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360  esac ;;
1361esac
1362ac_abs_top_builddir=$ac_pwd
1363ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364# for backward compatibility:
1365ac_top_builddir=$ac_top_build_prefix
1366
1367case $srcdir in
1368  .)  # We are building in place.
1369    ac_srcdir=.
1370    ac_top_srcdir=$ac_top_builddir_sub
1371    ac_abs_top_srcdir=$ac_pwd ;;
1372  [\\/]* | ?:[\\/]* )  # Absolute name.
1373    ac_srcdir=$srcdir$ac_dir_suffix;
1374    ac_top_srcdir=$srcdir
1375    ac_abs_top_srcdir=$srcdir ;;
1376  *) # Relative name.
1377    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378    ac_top_srcdir=$ac_top_build_prefix$srcdir
1379    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380esac
1381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383    cd "$ac_dir" || { ac_status=$?; continue; }
1384    # Check for guested configure.
1385    if test -f "$ac_srcdir/configure.gnu"; then
1386      echo &&
1387      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388    elif test -f "$ac_srcdir/configure"; then
1389      echo &&
1390      $SHELL "$ac_srcdir/configure" --help=recursive
1391    else
1392      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393    fi || ac_status=$?
1394    cd "$ac_pwd" || { ac_status=$?; break; }
1395  done
1396fi
1397
1398test -n "$ac_init_help" && exit $ac_status
1399if $ac_init_version; then
1400  cat <<\_ACEOF
1401configure
1402generated by GNU Autoconf 2.61
1403
1404Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14052002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1406This configure script is free software; the Free Software Foundation
1407gives unlimited permission to copy, distribute and modify it.
1408_ACEOF
1409  exit
1410fi
1411cat >config.log <<_ACEOF
1412This file contains any messages produced by compilers while
1413running configure, to aid debugging if configure makes a mistake.
1414
1415It was created by $as_me, which was
1416generated by GNU Autoconf 2.61.  Invocation command line was
1417
1418  $ $0 $@
1419
1420_ACEOF
1421exec 5>>config.log
1422{
1423cat <<_ASUNAME
1424## --------- ##
1425## Platform. ##
1426## --------- ##
1427
1428hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1429uname -m = `(uname -m) 2>/dev/null || echo unknown`
1430uname -r = `(uname -r) 2>/dev/null || echo unknown`
1431uname -s = `(uname -s) 2>/dev/null || echo unknown`
1432uname -v = `(uname -v) 2>/dev/null || echo unknown`
1433
1434/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1435/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1436
1437/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1438/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1439/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1440/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1441/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1442/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1443/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1444
1445_ASUNAME
1446
1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448for as_dir in $PATH
1449do
1450  IFS=$as_save_IFS
1451  test -z "$as_dir" && as_dir=.
1452  echo "PATH: $as_dir"
1453done
1454IFS=$as_save_IFS
1455
1456} >&5
1457
1458cat >&5 <<_ACEOF
1459
1460
1461## ----------- ##
1462## Core tests. ##
1463## ----------- ##
1464
1465_ACEOF
1466
1467
1468# Keep a trace of the command line.
1469# Strip out --no-create and --no-recursion so they do not pile up.
1470# Strip out --silent because we don't want to record it for future runs.
1471# Also quote any args containing shell meta-characters.
1472# Make two passes to allow for proper duplicate-argument suppression.
1473ac_configure_args=
1474ac_configure_args0=
1475ac_configure_args1=
1476ac_must_keep_next=false
1477for ac_pass in 1 2
1478do
1479  for ac_arg
1480  do
1481    case $ac_arg in
1482    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1483    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484    | -silent | --silent | --silen | --sile | --sil)
1485      continue ;;
1486    *\'*)
1487      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488    esac
1489    case $ac_pass in
1490    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1491    2)
1492      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1493      if test $ac_must_keep_next = true; then
1494        ac_must_keep_next=false # Got value, back to normal.
1495      else
1496        case $ac_arg in
1497          *=* | --config-cache | -C | -disable-* | --disable-* \
1498          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1499          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1500          | -with-* | --with-* | -without-* | --without-* | --x)
1501            case "$ac_configure_args0 " in
1502              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503            esac
1504            ;;
1505          -* ) ac_must_keep_next=true ;;
1506        esac
1507      fi
1508      ac_configure_args="$ac_configure_args '$ac_arg'"
1509      ;;
1510    esac
1511  done
1512done
1513$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1514$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1515
1516# When interrupted or exit'd, cleanup temporary files, and complete
1517# config.log.  We remove comments because anyway the quotes in there
1518# would cause problems or look ugly.
1519# WARNING: Use '\'' to represent an apostrophe within the trap.
1520# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1521trap 'exit_status=$?
1522  # Save into config.log some information that might help in debugging.
1523  {
1524    echo
1525
1526    cat <<\_ASBOX
1527## ---------------- ##
1528## Cache variables. ##
1529## ---------------- ##
1530_ASBOX
1531    echo
1532    # The following way of writing the cache mishandles newlines in values,
1533(
1534  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1535    eval ac_val=\$$ac_var
1536    case $ac_val in #(
1537    *${as_nl}*)
1538      case $ac_var in #(
1539      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1540echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541      esac
1542      case $ac_var in #(
1543      _ | IFS | as_nl) ;; #(
1544      *) $as_unset $ac_var ;;
1545      esac ;;
1546    esac
1547  done
1548  (set) 2>&1 |
1549    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1550    *${as_nl}ac_space=\ *)
1551      sed -n \
1552        "s/'\''/'\''\\\\'\'''\''/g;
1553          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554      ;; #(
1555    *)
1556      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557      ;;
1558    esac |
1559    sort
1560)
1561    echo
1562
1563    cat <<\_ASBOX
1564## ----------------- ##
1565## Output variables. ##
1566## ----------------- ##
1567_ASBOX
1568    echo
1569    for ac_var in $ac_subst_vars
1570    do
1571      eval ac_val=\$$ac_var
1572      case $ac_val in
1573      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574      esac
1575      echo "$ac_var='\''$ac_val'\''"
1576    done | sort
1577    echo
1578
1579    if test -n "$ac_subst_files"; then
1580      cat <<\_ASBOX
1581## ------------------- ##
1582## File substitutions. ##
1583## ------------------- ##
1584_ASBOX
1585      echo
1586      for ac_var in $ac_subst_files
1587      do
1588        eval ac_val=\$$ac_var
1589        case $ac_val in
1590        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591        esac
1592        echo "$ac_var='\''$ac_val'\''"
1593      done | sort
1594      echo
1595    fi
1596
1597    if test -s confdefs.h; then
1598      cat <<\_ASBOX
1599## ----------- ##
1600## confdefs.h. ##
1601## ----------- ##
1602_ASBOX
1603      echo
1604      cat confdefs.h
1605      echo
1606    fi
1607    test "$ac_signal" != 0 &&
1608      echo "$as_me: caught signal $ac_signal"
1609    echo "$as_me: exit $exit_status"
1610  } >&5
1611  rm -f core *.core core.conftest.* &&
1612    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613    exit $exit_status
1614' 0
1615for ac_signal in 1 2 13 15; do
1616  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1617done
1618ac_signal=0
1619
1620# confdefs.h avoids OS command line length limits that DEFS can exceed.
1621rm -f -r conftest* confdefs.h
1622
1623# Predefined preprocessor variables.
1624
1625cat >>confdefs.h <<_ACEOF
1626#define PACKAGE_NAME "$PACKAGE_NAME"
1627_ACEOF
1628
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1632_ACEOF
1633
1634
1635cat >>confdefs.h <<_ACEOF
1636#define PACKAGE_VERSION "$PACKAGE_VERSION"
1637_ACEOF
1638
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_STRING "$PACKAGE_STRING"
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1647_ACEOF
1648
1649
1650# Let the site file select an alternate cache file if it wants to.
1651# Prefer explicitly selected file to automatically selected ones.
1652if test -n "$CONFIG_SITE"; then
1653  set x "$CONFIG_SITE"
1654elif test "x$prefix" != xNONE; then
1655  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1656else
1657  set x "$ac_default_prefix/share/config.site" \
1658        "$ac_default_prefix/etc/config.site"
1659fi
1660shift
1661for ac_site_file
1662do
1663  if test -r "$ac_site_file"; then
1664    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1665echo "$as_me: loading site script $ac_site_file" >&6;}
1666    sed 's/^/| /' "$ac_site_file" >&5
1667    . "$ac_site_file"
1668  fi
1669done
1670
1671if test -r "$cache_file"; then
1672  # Some versions of bash will fail to source /dev/null (special
1673  # files actually), so we avoid doing that.
1674  if test -f "$cache_file"; then
1675    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1676echo "$as_me: loading cache $cache_file" >&6;}
1677    case $cache_file in
1678      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679      *)                      . "./$cache_file";;
1680    esac
1681  fi
1682else
1683  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1684echo "$as_me: creating cache $cache_file" >&6;}
1685  >$cache_file
1686fi
1687
1688# Check that the precious variables saved in the cache have kept the same
1689# value.
1690ac_cache_corrupted=false
1691for ac_var in $ac_precious_vars; do
1692  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693  eval ac_new_set=\$ac_env_${ac_var}_set
1694  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695  eval ac_new_val=\$ac_env_${ac_var}_value
1696  case $ac_old_set,$ac_new_set in
1697    set,)
1698      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700      ac_cache_corrupted=: ;;
1701    ,set)
1702      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1703echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704      ac_cache_corrupted=: ;;
1705    ,);;
1706    *)
1707      if test "x$ac_old_val" != "x$ac_new_val"; then
1708        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1709echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1710        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1711echo "$as_me:   former value:  $ac_old_val" >&2;}
1712        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1713echo "$as_me:   current value: $ac_new_val" >&2;}
1714        ac_cache_corrupted=:
1715      fi;;
1716  esac
1717  # Pass precious variables to config.status.
1718  if test "$ac_new_set" = set; then
1719    case $ac_new_val in
1720    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1721    *) ac_arg=$ac_var=$ac_new_val ;;
1722    esac
1723    case " $ac_configure_args " in
1724      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1725      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1726    esac
1727  fi
1728done
1729if $ac_cache_corrupted; then
1730  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1731echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1733echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1734   { (exit 1); exit 1; }; }
1735fi
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753ac_ext=c
1754ac_cpp='$CPP $CPPFLAGS'
1755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758
1759
1760
1761V_PROG="vic"
1762V_ALL="$V_PROG"
1763V_SHM="-DUSE_SHM"
1764V_PATH=`pwd`
1765V_OBJ=""
1766V_LIB=""
1767V_CODEC_LIB=""
1768
1769#ARCH DETECTION
1770v_ARCH=""
1771arch=`uname -m`
1772case "$arch" in
1773  i386|i486|i586|i686|i86pc|BePC)
1774    V_ARCH="ARCH_X86"
1775  ;;
1776  x86_64|amd64)
1777    arch="x86_32"
1778    canon_arch="`$cc -dumpmachine | sed -e 's,\(^-*\)-.*,\1,'`"
1779    if  x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ; then
1780      if  -z "`echo $CFLAGS | grep -- -m32`"  ; then
1781        V_ARCH="ARCH_X86_64"
1782      fi
1783    fi
1784  ;;
1785  "Power Macintosh"|ppc|ppc64|powerpc)
1786    V_ARCH="ARCH_PPC"
1787  ;;
1788esac
1789
1790echo "Architecture             $V_ARCH"
1791
1792
1793
1794ac_aux_dir=
1795for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1796  if test -f "$ac_dir/install-sh"; then
1797    ac_aux_dir=$ac_dir
1798    ac_install_sh="$ac_aux_dir/install-sh -c"
1799    break
1800  elif test -f "$ac_dir/install.sh"; then
1801    ac_aux_dir=$ac_dir
1802    ac_install_sh="$ac_aux_dir/install.sh -c"
1803    break
1804  elif test -f "$ac_dir/shtool"; then
1805    ac_aux_dir=$ac_dir
1806    ac_install_sh="$ac_aux_dir/shtool install -c"
1807    break
1808  fi
1809done
1810if test -z "$ac_aux_dir"; then
1811  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1812echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1813   { (exit 1); exit 1; }; }
1814fi
1815
1816# These three variables are undocumented and unsupported,
1817# and are intended to be withdrawn in a future Autoconf release.
1818# They can cause serious problems if a builder's source tree is in a directory
1819# whose full name contains unusual characters.
1820ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1821ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1822ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1823
1824
1825# Make sure we can run config.sub.
1826$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1827  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1828echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1829   { (exit 1); exit 1; }; }
1830
1831{ echo "$as_me:$LINENO: checking build system type" >&5
1832echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1833if test "${ac_cv_build+set}" = set; then
1834  echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836  ac_build_alias=$build_alias
1837test "x$ac_build_alias" = x &&
1838  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1839test "x$ac_build_alias" = x &&
1840  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1841echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1842   { (exit 1); exit 1; }; }
1843ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1844  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1845echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1846   { (exit 1); exit 1; }; }
1847
1848fi
1849{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1850echo "${ECHO_T}$ac_cv_build" >&6; }
1851case $ac_cv_build in
1852*-*-*) ;;
1853*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1854echo "$as_me: error: invalid value of canonical build" >&2;}
1855   { (exit 1); exit 1; }; };;
1856esac
1857build=$ac_cv_build
1858ac_save_IFS=$IFS; IFS='-'
1859set x $ac_cv_build
1860shift
1861build_cpu=$1
1862build_vendor=$2
1863shift; shift
1864# Remember, the first character of IFS is used to create $*,
1865# except with old shells:
1866build_os=$*
1867IFS=$ac_save_IFS
1868case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1869
1870
1871{ echo "$as_me:$LINENO: checking host system type" >&5
1872echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1873if test "${ac_cv_host+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  if test "x$host_alias" = x; then
1877  ac_cv_host=$ac_cv_build
1878else
1879  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1880    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1881echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884
1885fi
1886{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1887echo "${ECHO_T}$ac_cv_host" >&6; }
1888case $ac_cv_host in
1889*-*-*) ;;
1890*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1891echo "$as_me: error: invalid value of canonical host" >&2;}
1892   { (exit 1); exit 1; }; };;
1893esac
1894host=$ac_cv_host
1895ac_save_IFS=$IFS; IFS='-'
1896set x $ac_cv_host
1897shift
1898host_cpu=$1
1899host_vendor=$2
1900shift; shift
1901# Remember, the first character of IFS is used to create $*,
1902# except with old shells:
1903host_os=$*
1904IFS=$ac_save_IFS
1905case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1906
1907
1908{ echo "$as_me:$LINENO: checking target system type" >&5
1909echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1910if test "${ac_cv_target+set}" = set; then
1911  echo $ECHO_N "(cached) $ECHO_C" >&6
1912else
1913  if test "x$target_alias" = x; then
1914  ac_cv_target=$ac_cv_host
1915else
1916  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1917    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1918echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1919   { (exit 1); exit 1; }; }
1920fi
1921
1922fi
1923{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1924echo "${ECHO_T}$ac_cv_target" >&6; }
1925case $ac_cv_target in
1926*-*-*) ;;
1927*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1928echo "$as_me: error: invalid value of canonical target" >&2;}
1929   { (exit 1); exit 1; }; };;
1930esac
1931target=$ac_cv_target
1932ac_save_IFS=$IFS; IFS='-'
1933set x $ac_cv_target
1934shift
1935target_cpu=$1
1936target_vendor=$2
1937shift; shift
1938# Remember, the first character of IFS is used to create $*,
1939# except with old shells:
1940target_os=$*
1941IFS=$ac_save_IFS
1942case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1943
1944
1945# The aliases save the names the user supplied, while $host etc.
1946# will get canonicalized.
1947test -n "$target_alias" &&
1948  test "$program_prefix$program_suffix$program_transform_name" = \
1949    NONENONEs,x,x, &&
1950  program_prefix=${target_alias}-
1951
1952ac_ext=c
1953ac_cpp='$CPP $CPPFLAGS'
1954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957if test -n "$ac_tool_prefix"; then
1958  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1959set dummy ${ac_tool_prefix}gcc; ac_word=$2
1960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962if test "${ac_cv_prog_CC+set}" = set; then
1963  echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965  if test -n "$CC"; then
1966  ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971  IFS=$as_save_IFS
1972  test -z "$as_dir" && as_dir=.
1973  for ac_exec_ext in '' $ac_executable_extensions; do
1974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1975    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981IFS=$as_save_IFS
1982
1983fi
1984fi
1985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
1987  { echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6; }
1989else
1990  { echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6; }
1992fi
1993
1994
1995fi
1996if test -z "$ac_cv_prog_CC"; then
1997  ac_ct_CC=$CC
1998  # Extract the first word of "gcc", so it can be a program name with args.
1999set dummy gcc; ac_word=$2
2000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$ac_ct_CC"; then
2006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013  for ac_exec_ext in '' $ac_executable_extensions; do
2014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015    ac_cv_prog_ac_ct_CC="gcc"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021IFS=$as_save_IFS
2022
2023fi
2024fi
2025ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026if test -n "$ac_ct_CC"; then
2027  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028echo "${ECHO_T}$ac_ct_CC" >&6; }
2029else
2030  { echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6; }
2032fi
2033
2034  if test "x$ac_ct_CC" = x; then
2035    CC=""
2036  else
2037    case $cross_compiling:$ac_tool_warned in
2038yes:)
2039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2040whose name does not start with the host triplet.  If you think this
2041configuration is useful to you, please write to autoconf@gnu.org." >&5
2042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2043whose name does not start with the host triplet.  If you think this
2044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2045ac_tool_warned=yes ;;
2046esac
2047    CC=$ac_ct_CC
2048  fi
2049else
2050  CC="$ac_cv_prog_CC"
2051fi
2052
2053if test -z "$CC"; then
2054          if test -n "$ac_tool_prefix"; then
2055    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056set dummy ${ac_tool_prefix}cc; ac_word=$2
2057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070  for ac_exec_ext in '' $ac_executable_extensions; do
2071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072    ac_cv_prog_CC="${ac_tool_prefix}cc"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078IFS=$as_save_IFS
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  { echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6; }
2086else
2087  { echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6; }
2089fi
2090
2091
2092  fi
2093fi
2094if test -z "$CC"; then
2095  # Extract the first word of "cc", so it can be a program name with args.
2096set dummy cc; ac_word=$2
2097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099if test "${ac_cv_prog_CC+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  if test -n "$CC"; then
2103  ac_cv_prog_CC="$CC" # Let the user override the test.
2104else
2105  ac_prog_rejected=no
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109  IFS=$as_save_IFS
2110  test -z "$as_dir" && as_dir=.
2111  for ac_exec_ext in '' $ac_executable_extensions; do
2112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2114       ac_prog_rejected=yes
2115       continue
2116     fi
2117    ac_cv_prog_CC="cc"
2118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119    break 2
2120  fi
2121done
2122done
2123IFS=$as_save_IFS
2124
2125if test $ac_prog_rejected = yes; then
2126  # We found a bogon in the path, so make sure we never use it.
2127  set dummy $ac_cv_prog_CC
2128  shift
2129  if test $# != 0; then
2130    # We chose a different compiler from the bogus one.
2131    # However, it has the same basename, so the bogon will be chosen
2132    # first if we set CC to just the basename; use the full file name.
2133    shift
2134    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2135  fi
2136fi
2137fi
2138fi
2139CC=$ac_cv_prog_CC
2140if test -n "$CC"; then
2141  { echo "$as_me:$LINENO: result: $CC" >&5
2142echo "${ECHO_T}$CC" >&6; }
2143else
2144  { echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6; }
2146fi
2147
2148
2149fi
2150if test -z "$CC"; then
2151  if test -n "$ac_tool_prefix"; then
2152  for ac_prog in cl.exe
2153  do
2154    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158if test "${ac_cv_prog_CC+set}" = set; then
2159  echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161  if test -n "$CC"; then
2162  ac_cv_prog_CC="$CC" # Let the user override the test.
2163else
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167  IFS=$as_save_IFS
2168  test -z "$as_dir" && as_dir=.
2169  for ac_exec_ext in '' $ac_executable_extensions; do
2170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173    break 2
2174  fi
2175done
2176done
2177IFS=$as_save_IFS
2178
2179fi
2180fi
2181CC=$ac_cv_prog_CC
2182if test -n "$CC"; then
2183  { echo "$as_me:$LINENO: result: $CC" >&5
2184echo "${ECHO_T}$CC" >&6; }
2185else
2186  { echo "$as_me:$LINENO: result: no" >&5
2187echo "${ECHO_T}no" >&6; }
2188fi
2189
2190
2191    test -n "$CC" && break
2192  done
2193fi
2194if test -z "$CC"; then
2195  ac_ct_CC=$CC
2196  for ac_prog in cl.exe
2197do
2198  # Extract the first word of "$ac_prog", so it can be a program name with args.
2199set dummy $ac_prog; ac_word=$2
2200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203  echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205  if test -n "$ac_ct_CC"; then
2206  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207else
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211  IFS=$as_save_IFS
2212  test -z "$as_dir" && as_dir=.
2213  for ac_exec_ext in '' $ac_executable_extensions; do
2214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215    ac_cv_prog_ac_ct_CC="$ac_prog"
2216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217    break 2
2218  fi
2219done
2220done
2221IFS=$as_save_IFS
2222
2223fi
2224fi
2225ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226if test -n "$ac_ct_CC"; then
2227  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228echo "${ECHO_T}$ac_ct_CC" >&6; }
2229else
2230  { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
2232fi
2233
2234
2235  test -n "$ac_ct_CC" && break
2236done
2237
2238  if test "x$ac_ct_CC" = x; then
2239    CC=""
2240  else
2241    case $cross_compiling:$ac_tool_warned in
2242yes:)
2243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2244whose name does not start with the host triplet.  If you think this
2245configuration is useful to you, please write to autoconf@gnu.org." >&5
2246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2247whose name does not start with the host triplet.  If you think this
2248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2249ac_tool_warned=yes ;;
2250esac
2251    CC=$ac_ct_CC
2252  fi
2253fi
2254
2255fi
2256
2257
2258test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: no acceptable C compiler found in \$PATH
2261See \`config.log' for more details." >&2;}
2262   { (exit 1); exit 1; }; }
2263
2264# Provide some information about the compiler.
2265echo "$as_me:$LINENO: checking for C compiler version" >&5
2266ac_compiler=`set X $ac_compile; echo $2`
2267{ (ac_try="$ac_compiler --version >&5"
2268case "(($ac_try" in
2269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270  *) ac_try_echo=$ac_try;;
2271esac
2272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273  (eval "$ac_compiler --version >&5") 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }
2277{ (ac_try="$ac_compiler -v >&5"
2278case "(($ac_try" in
2279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280  *) ac_try_echo=$ac_try;;
2281esac
2282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2283  (eval "$ac_compiler -v >&5") 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }
2287{ (ac_try="$ac_compiler -V >&5"
2288case "(($ac_try" in
2289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290  *) ac_try_echo=$ac_try;;
2291esac
2292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293  (eval "$ac_compiler -V >&5") 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }
2297
2298cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h.  */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h.  */
2304
2305int
2306main ()
2307{
2308
2309  ;
2310  return 0;
2311}
2312_ACEOF
2313ac_clean_files_save=$ac_clean_files
2314ac_clean_files="$ac_clean_files a.out a.exe b.out"
2315# Try to create an executable without -o first, disregard a.out.
2316# It will help us diagnose broken compilers, and finding out an intuition
2317# of exeext.
2318{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2319echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2320ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2321#
2322# List of possible output files, starting from the most likely.
2323# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2324# only as a last resort.  b.out is created by i960 compilers.
2325ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2326#
2327# The IRIX 6 linker writes into existing files which may not be
2328# executable, retaining their permissions.  Remove them first so a
2329# subsequent execution test works.
2330ac_rmfiles=
2331for ac_file in $ac_files
2332do
2333  case $ac_file in
2334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2335    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2336  esac
2337done
2338rm -f $ac_rmfiles
2339
2340if { (ac_try="$ac_link_default"
2341case "(($ac_try" in
2342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343  *) ac_try_echo=$ac_try;;
2344esac
2345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346  (eval "$ac_link_default") 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2351# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2352# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2353# so that the user can short-circuit this test for compilers unknown to
2354# Autoconf.
2355for ac_file in $ac_files ''
2356do
2357  test -f "$ac_file" || continue
2358  case $ac_file in
2359    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2360        ;;
2361    [ab].out )
2362        # We found the default executable, but exeext='' is most
2363        # certainly right.
2364        break;;
2365    *.* )
2366        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2367        then :; else
2368           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2369        fi
2370        # We set ac_cv_exeext here because the later test for it is not
2371        # safe: cross compilers may not add the suffix if given an `-o'
2372        # argument, so we may need to know it at that point already.
2373        # Even if this section looks crufty: it has the advantage of
2374        # actually working.
2375        break;;
2376    * )
2377        break;;
2378  esac
2379done
2380test "$ac_cv_exeext" = no && ac_cv_exeext=
2381
2382else
2383  ac_file=''
2384fi
2385
2386{ echo "$as_me:$LINENO: result: $ac_file" >&5
2387echo "${ECHO_T}$ac_file" >&6; }
2388if test -z "$ac_file"; then
2389  echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2393See \`config.log' for more details." >&5
2394echo "$as_me: error: C compiler cannot create executables
2395See \`config.log' for more details." >&2;}
2396   { (exit 77); exit 77; }; }
2397fi
2398
2399ac_exeext=$ac_cv_exeext
2400
2401# Check that the compiler produces executables we can run.  If not, either
2402# the compiler is broken, or we cross compile.
2403{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2404echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2405# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2406# If not cross compiling, check that we can run a simple program.
2407if test "$cross_compiling" != yes; then
2408  if { ac_try='./$ac_file'
2409  { (case "(($ac_try" in
2410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411  *) ac_try_echo=$ac_try;;
2412esac
2413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414  (eval "$ac_try") 2>&5
2415  ac_status=$?
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); }; }; then
2418    cross_compiling=no
2419  else
2420    if test "$cross_compiling" = maybe; then
2421        cross_compiling=yes
2422    else
2423        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2424If you meant to cross compile, use \`--host'.
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: cannot run C compiled programs.
2427If you meant to cross compile, use \`--host'.
2428See \`config.log' for more details." >&2;}
2429   { (exit 1); exit 1; }; }
2430    fi
2431  fi
2432fi
2433{ echo "$as_me:$LINENO: result: yes" >&5
2434echo "${ECHO_T}yes" >&6; }
2435
2436rm -f a.out a.exe conftest$ac_cv_exeext b.out
2437ac_clean_files=$ac_clean_files_save
2438# Check that the compiler produces executables we can run.  If not, either
2439# the compiler is broken, or we cross compile.
2440{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2441echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2442{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2443echo "${ECHO_T}$cross_compiling" >&6; }
2444
2445{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2446echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2447if { (ac_try="$ac_link"
2448case "(($ac_try" in
2449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450  *) ac_try_echo=$ac_try;;
2451esac
2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453  (eval "$ac_link") 2>&5
2454  ac_status=$?
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); }; then
2457  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2458# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2459# work properly (i.e., refer to `conftest.exe'), while it won't with
2460# `rm'.
2461for ac_file in conftest.exe conftest conftest.*; do
2462  test -f "$ac_file" || continue
2463  case $ac_file in
2464    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2465    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466          break;;
2467    * ) break;;
2468  esac
2469done
2470else
2471  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2472See \`config.log' for more details." >&5
2473echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2474See \`config.log' for more details." >&2;}
2475   { (exit 1); exit 1; }; }
2476fi
2477
2478rm -f conftest$ac_cv_exeext
2479{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2480echo "${ECHO_T}$ac_cv_exeext" >&6; }
2481
2482rm -f conftest.$ac_ext
2483EXEEXT=$ac_cv_exeext
2484ac_exeext=$EXEEXT
2485{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2486echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2487if test "${ac_cv_objext+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h.  */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h.  */
2496
2497int
2498main ()
2499{
2500
2501  ;
2502  return 0;
2503}
2504_ACEOF
2505rm -f conftest.o conftest.obj
2506if { (ac_try="$ac_compile"
2507case "(($ac_try" in
2508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509  *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512  (eval "$ac_compile") 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; then
2516  for ac_file in conftest.o conftest.obj conftest.*; do
2517  test -f "$ac_file" || continue;
2518  case $ac_file in
2519    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2520    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2521       break;;
2522  esac
2523done
2524else
2525  echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: cannot compute suffix of object files: cannot compile
2531See \`config.log' for more details." >&2;}
2532   { (exit 1); exit 1; }; }
2533fi
2534
2535rm -f conftest.$ac_cv_objext conftest.$ac_ext
2536fi
2537{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2538echo "${ECHO_T}$ac_cv_objext" >&6; }
2539OBJEXT=$ac_cv_objext
2540ac_objext=$OBJEXT
2541{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2542echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2543if test "${ac_cv_c_compiler_gnu+set}" = set; then
2544  echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546  cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h.  */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h.  */
2552
2553int
2554main ()
2555{
2556#ifndef __GNUC__
2557       choke me
2558#endif
2559
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568  *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571  (eval "$ac_compile") 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } && {
2578         test -z "$ac_c_werror_flag" ||
2579         test ! -s conftest.err
2580       } && test -s conftest.$ac_objext; then
2581  ac_compiler_gnu=yes
2582else
2583  echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586        ac_compiler_gnu=no
2587fi
2588
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591
2592fi
2593{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2594echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2595GCC=`test $ac_compiler_gnu = yes && echo yes`
2596ac_test_CFLAGS=${CFLAGS+set}
2597ac_save_CFLAGS=$CFLAGS
2598{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2600if test "${ac_cv_prog_cc_g+set}" = set; then
2601  echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603  ac_save_c_werror_flag=$ac_c_werror_flag
2604   ac_c_werror_flag=yes
2605   ac_cv_prog_cc_g=no
2606   CFLAGS="-g"
2607   cat >conftest.$ac_ext <<_ACEOF
2608/* confdefs.h.  */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h.  */
2613
2614int
2615main ()
2616{
2617
2618  ;
2619  return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (ac_try="$ac_compile"
2624case "(($ac_try" in
2625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626  *) ac_try_echo=$ac_try;;
2627esac
2628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629  (eval "$ac_compile") 2>conftest.er1
2630  ac_status=$?
2631  grep -v '^ *+' conftest.er1 >conftest.err
2632  rm -f conftest.er1
2633  cat conftest.err >&5
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); } && {
2636         test -z "$ac_c_werror_flag" ||
2637         test ! -s conftest.err
2638       } && test -s conftest.$ac_objext; then
2639  ac_cv_prog_cc_g=yes
2640else
2641  echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
2643
2644        CFLAGS=""
2645      cat >conftest.$ac_ext <<_ACEOF
2646/* confdefs.h.  */
2647_ACEOF
2648cat confdefs.h >>conftest.$ac_ext
2649cat >>conftest.$ac_ext <<_ACEOF
2650/* end confdefs.h.  */
2651
2652int
2653main ()
2654{
2655
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (ac_try="$ac_compile"
2662case "(($ac_try" in
2663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664  *) ac_try_echo=$ac_try;;
2665esac
2666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667  (eval "$ac_compile") 2>conftest.er1
2668  ac_status=$?
2669  grep -v '^ *+' conftest.er1 >conftest.err
2670  rm -f conftest.er1
2671  cat conftest.err >&5
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } && {
2674         test -z "$ac_c_werror_flag" ||
2675         test ! -s conftest.err
2676       } && test -s conftest.$ac_objext; then
2677  :
2678else
2679  echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682        ac_c_werror_flag=$ac_save_c_werror_flag
2683         CFLAGS="-g"
2684         cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690
2691int
2692main ()
2693{
2694
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (ac_try="$ac_compile"
2701case "(($ac_try" in
2702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703  *) ac_try_echo=$ac_try;;
2704esac
2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706  (eval "$ac_compile") 2>conftest.er1
2707  ac_status=$?
2708  grep -v '^ *+' conftest.er1 >conftest.err
2709  rm -f conftest.er1
2710  cat conftest.err >&5
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); } && {
2713         test -z "$ac_c_werror_flag" ||
2714         test ! -s conftest.err
2715       } && test -s conftest.$ac_objext; then
2716  ac_cv_prog_cc_g=yes
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721
2722fi
2723
2724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725fi
2726
2727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728fi
2729
2730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731   ac_c_werror_flag=$ac_save_c_werror_flag
2732fi
2733{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2735if test "$ac_test_CFLAGS" = set; then
2736  CFLAGS=$ac_save_CFLAGS
2737elif test $ac_cv_prog_cc_g = yes; then
2738  if test "$GCC" = yes; then
2739    CFLAGS="-g -O2"
2740  else
2741    CFLAGS="-g"
2742  fi
2743else
2744  if test "$GCC" = yes; then
2745    CFLAGS="-O2"
2746  else
2747    CFLAGS=
2748  fi
2749fi
2750{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2751echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2752if test "${ac_cv_prog_cc_c89+set}" = set; then
2753  echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755  ac_cv_prog_cc_c89=no
2756ac_save_CC=$CC
2757cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763#include <stdarg.h>
2764#include <stdio.h>
2765#include <sys/types.h>
2766#include <sys/stat.h>
2767/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2768struct buf { int x; };
2769FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770static char *e (p, i)
2771     char **p;
2772     int i;
2773{
2774  return p[i];
2775}
2776static char *f (char * (*g) (char **, int), char **p, ...)
2777{
2778  char *s;
2779  va_list v;
2780  va_start (v,p);
2781  s = g (p, va_arg (v,int));
2782  va_end (v);
2783  return s;
2784}
2785
2786/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2787   function prototypes and stuff, but not '\xHH' hex character constants.
2788   These don't provoke an error unfortunately, instead are silently treated
2789   as 'x'.  The following induces an error, until -std is added to get
2790   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2791   array size at least.  It's necessary to write '\x00'==0 to get something
2792   that's true only with -std.  */
2793int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2794
2795/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2796   inside strings and character constants.  */
2797#define FOO(x) 'x'
2798int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2799
2800int test (int i, double x);
2801struct s1 {int (*f) (int a);};
2802struct s2 {int (*f) (double a);};
2803int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804int argc;
2805char **argv;
2806int
2807main ()
2808{
2809return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2810  ;
2811  return 0;
2812}
2813_ACEOF
2814for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2815        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2816do
2817  CC="$ac_save_CC $ac_arg"
2818  rm -f conftest.$ac_objext
2819if { (ac_try="$ac_compile"
2820case "(($ac_try" in
2821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822  *) ac_try_echo=$ac_try;;
2823esac
2824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825  (eval "$ac_compile") 2>conftest.er1
2826  ac_status=$?
2827  grep -v '^ *+' conftest.er1 >conftest.err
2828  rm -f conftest.er1
2829  cat conftest.err >&5
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); } && {
2832         test -z "$ac_c_werror_flag" ||
2833         test ! -s conftest.err
2834       } && test -s conftest.$ac_objext; then
2835  ac_cv_prog_cc_c89=$ac_arg
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840
2841fi
2842
2843rm -f core conftest.err conftest.$ac_objext
2844  test "x$ac_cv_prog_cc_c89" != "xno" && break
2845done
2846rm -f conftest.$ac_ext
2847CC=$ac_save_CC
2848
2849fi
2850# AC_CACHE_VAL
2851case "x$ac_cv_prog_cc_c89" in
2852  x)
2853    { echo "$as_me:$LINENO: result: none needed" >&5
2854echo "${ECHO_T}none needed" >&6; } ;;
2855  xno)
2856    { echo "$as_me:$LINENO: result: unsupported" >&5
2857echo "${ECHO_T}unsupported" >&6; } ;;
2858  *)
2859    CC="$CC $ac_cv_prog_cc_c89"
2860    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2861echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2862esac
2863
2864
2865ac_ext=c
2866ac_cpp='$CPP $CPPFLAGS'
2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870
2871ac_ext=cpp
2872ac_cpp='$CXXCPP $CPPFLAGS'
2873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2876if test -z "$CXX"; then
2877  if test -n "$CCC"; then
2878    CXX=$CCC
2879  else
2880    if test -n "$ac_tool_prefix"; then
2881  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2882  do
2883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887if test "${ac_cv_prog_CXX+set}" = set; then
2888  echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890  if test -n "$CXX"; then
2891  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898  for ac_exec_ext in '' $ac_executable_extensions; do
2899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910CXX=$ac_cv_prog_CXX
2911if test -n "$CXX"; then
2912  { echo "$as_me:$LINENO: result: $CXX" >&5
2913echo "${ECHO_T}$CXX" >&6; }
2914else
2915  { echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6; }
2917fi
2918
2919
2920    test -n "$CXX" && break
2921  done
2922fi
2923if test -z "$CXX"; then
2924  ac_ct_CXX=$CXX
2925  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2926do
2927  # Extract the first word of "$ac_prog", so it can be a program name with args.
2928set dummy $ac_prog; ac_word=$2
2929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2932  echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934  if test -n "$ac_ct_CXX"; then
2935  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942  for ac_exec_ext in '' $ac_executable_extensions; do
2943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944    ac_cv_prog_ac_ct_CXX="$ac_prog"
2945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949done
2950IFS=$as_save_IFS
2951
2952fi
2953fi
2954ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2955if test -n "$ac_ct_CXX"; then
2956  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2957echo "${ECHO_T}$ac_ct_CXX" >&6; }
2958else
2959  { echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6; }
2961fi
2962
2963
2964  test -n "$ac_ct_CXX" && break
2965done
2966
2967  if test "x$ac_ct_CXX" = x; then
2968    CXX="g++"
2969  else
2970    case $cross_compiling:$ac_tool_warned in
2971yes:)
2972{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2973whose name does not start with the host triplet.  If you think this
2974configuration is useful to you, please write to autoconf@gnu.org." >&5
2975echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2976whose name does not start with the host triplet.  If you think this
2977configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2978ac_tool_warned=yes ;;
2979esac
2980    CXX=$ac_ct_CXX
2981  fi
2982fi
2983
2984  fi
2985fi
2986# Provide some information about the compiler.
2987echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2988ac_compiler=`set X $ac_compile; echo $2`
2989{ (ac_try="$ac_compiler --version >&5"
2990case "(($ac_try" in
2991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992  *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995  (eval "$ac_compiler --version >&5") 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }
2999{ (ac_try="$ac_compiler -v >&5"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005  (eval "$ac_compiler -v >&5") 2>&5
3006  ac_status=$?
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); }
3009{ (ac_try="$ac_compiler -V >&5"
3010case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015  (eval "$ac_compiler -V >&5") 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }
3019
3020{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3021echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3022if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3023  echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025  cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h.  */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h.  */
3031
3032int
3033main ()
3034{
3035#ifndef __GNUC__
3036       choke me
3037#endif
3038
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
3044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047  *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050  (eval "$ac_compile") 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } && {
3057         test -z "$ac_cxx_werror_flag" ||
3058         test ! -s conftest.err
3059       } && test -s conftest.$ac_objext; then
3060  ac_compiler_gnu=yes
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065        ac_compiler_gnu=no
3066fi
3067
3068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3070
3071fi
3072{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3073echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3074GXX=`test $ac_compiler_gnu = yes && echo yes`
3075ac_test_CXXFLAGS=${CXXFLAGS+set}
3076ac_save_CXXFLAGS=$CXXFLAGS
3077{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3078echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3079if test "${ac_cv_prog_cxx_g+set}" = set; then
3080  echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3083   ac_cxx_werror_flag=yes
3084   ac_cv_prog_cxx_g=no
3085   CXXFLAGS="-g"
3086   cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h.  */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h.  */
3092
3093int
3094main ()
3095{
3096
3097  ;
3098  return 0;
3099}
3100_ACEOF
3101rm -f conftest.$ac_objext
3102if { (ac_try="$ac_compile"
3103case "(($ac_try" in
3104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105  *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108  (eval "$ac_compile") 2>conftest.er1
3109  ac_status=$?
3110  grep -v '^ *+' conftest.er1 >conftest.err
3111  rm -f conftest.er1
3112  cat conftest.err >&5
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); } && {
3115         test -z "$ac_cxx_werror_flag" ||
3116         test ! -s conftest.err
3117       } && test -s conftest.$ac_objext; then
3118  ac_cv_prog_cxx_g=yes
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123        CXXFLAGS=""
3124      cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h.  */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h.  */
3130
3131int
3132main ()
3133{
3134
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext
3140if { (ac_try="$ac_compile"
3141case "(($ac_try" in
3142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143  *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146  (eval "$ac_compile") 2>conftest.er1
3147  ac_status=$?
3148  grep -v '^ *+' conftest.er1 >conftest.err
3149  rm -f conftest.er1
3150  cat conftest.err >&5
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); } && {
3153         test -z "$ac_cxx_werror_flag" ||
3154         test ! -s conftest.err
3155       } && test -s conftest.$ac_objext; then
3156  :
3157else
3158  echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162         CXXFLAGS="-g"
3163         cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (ac_try="$ac_compile"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185  (eval "$ac_compile") 2>conftest.er1
3186  ac_status=$?
3187  grep -v '^ *+' conftest.er1 >conftest.err
3188  rm -f conftest.er1
3189  cat conftest.err >&5
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); } && {
3192         test -z "$ac_cxx_werror_flag" ||
3193         test ! -s conftest.err
3194       } && test -s conftest.$ac_objext; then
3195  ac_cv_prog_cxx_g=yes
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200
3201fi
3202
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204fi
3205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207fi
3208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3211fi
3212{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3213echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3214if test "$ac_test_CXXFLAGS" = set; then
3215  CXXFLAGS=$ac_save_CXXFLAGS
3216elif test $ac_cv_prog_cxx_g = yes; then
3217  if test "$GXX" = yes; then
3218    CXXFLAGS="-g -O2"
3219  else
3220    CXXFLAGS="-g"
3221  fi
3222else
3223  if test "$GXX" = yes; then
3224    CXXFLAGS="-O2"
3225  else
3226    CXXFLAGS=
3227  fi
3228fi
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235
3236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3242echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3243# On Suns, sometimes $CPP names a directory.
3244if test -n "$CPP" && test -d "$CPP"; then
3245  CPP=
3246fi
3247if test -z "$CPP"; then
3248  if test "${ac_cv_prog_CPP+set}" = set; then
3249  echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251      # Double quotes because CPP needs to be expanded
3252    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3253    do
3254      ac_preproc_ok=false
3255for ac_c_preproc_warn_flag in '' yes
3256do
3257  # Use a header file that comes with gcc, so configuring glibc
3258  # with a fresh cross-compiler works.
3259  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3260  # <limits.h> exists even on freestanding compilers.
3261  # On the NeXT, cc -E runs the code through the compiler's parser,
3262  # not just through cpp. "Syntax error" is here to catch this case.
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269#ifdef __STDC__
3270# include <limits.h>
3271#else
3272# include <assert.h>
3273#endif
3274                     Syntax error
3275_ACEOF
3276if { (ac_try="$ac_cpp conftest.$ac_ext"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3283  ac_status=$?
3284  grep -v '^ *+' conftest.er1 >conftest.err
3285  rm -f conftest.er1
3286  cat conftest.err >&5
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); } >/dev/null && {
3289         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3290         test ! -s conftest.err
3291       }; then
3292  :
3293else
3294  echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297  # Broken: fails on valid input.
3298continue
3299fi
3300
3301rm -f conftest.err conftest.$ac_ext
3302
3303  # OK, works on sane cases.  Now check whether nonexistent headers
3304  # can be detected and how.
3305  cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311#include <ac_nonexistent.h>
3312_ACEOF
3313if { (ac_try="$ac_cpp conftest.$ac_ext"
3314case "(($ac_try" in
3315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316  *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } >/dev/null && {
3326         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3327         test ! -s conftest.err
3328       }; then
3329  # Broken: success on invalid input.
3330continue
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335  # Passes both tests.
3336ac_preproc_ok=:
3337break
3338fi
3339
3340rm -f conftest.err conftest.$ac_ext
3341
3342done
3343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344rm -f conftest.err conftest.$ac_ext
3345if $ac_preproc_ok; then
3346  break
3347fi
3348
3349    done
3350    ac_cv_prog_CPP=$CPP
3351
3352fi
3353  CPP=$ac_cv_prog_CPP
3354else
3355  ac_cv_prog_CPP=$CPP
3356fi
3357{ echo "$as_me:$LINENO: result: $CPP" >&5
3358echo "${ECHO_T}$CPP" >&6; }
3359ac_preproc_ok=false
3360for ac_c_preproc_warn_flag in '' yes
3361do
3362  # Use a header file that comes with gcc, so configuring glibc
3363  # with a fresh cross-compiler works.
3364  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365  # <limits.h> exists even on freestanding compilers.
3366  # On the NeXT, cc -E runs the code through the compiler's parser,
3367  # not just through cpp. "Syntax error" is here to catch this case.
3368  cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h.  */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h.  */
3374#ifdef __STDC__
3375# include <limits.h>
3376#else
3377# include <assert.h>
3378#endif
3379                     Syntax error
3380_ACEOF
3381if { (ac_try="$ac_cpp conftest.$ac_ext"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388  ac_status=$?
3389  grep -v '^ *+' conftest.er1 >conftest.err
3390  rm -f conftest.er1
3391  cat conftest.err >&5
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } >/dev/null && {
3394         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395         test ! -s conftest.err
3396       }; then
3397  :
3398else
3399  echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402  # Broken: fails on valid input.
3403continue
3404fi
3405
3406rm -f conftest.err conftest.$ac_ext
3407
3408  # OK, works on sane cases.  Now check whether nonexistent headers
3409  # can be detected and how.
3410  cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h.  */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h.  */
3416#include <ac_nonexistent.h>
3417_ACEOF
3418if { (ac_try="$ac_cpp conftest.$ac_ext"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425  ac_status=$?
3426  grep -v '^ *+' conftest.er1 >conftest.err
3427  rm -f conftest.er1
3428  cat conftest.err >&5
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); } >/dev/null && {
3431         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3432         test ! -s conftest.err
3433       }; then
3434  # Broken: success on invalid input.
3435continue
3436else
3437  echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440  # Passes both tests.
3441ac_preproc_ok=:
3442break
3443fi
3444
3445rm -f conftest.err conftest.$ac_ext
3446
3447done
3448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449rm -f conftest.err conftest.$ac_ext
3450if $ac_preproc_ok; then
3451  :
3452else
3453  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&5
3455echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&2;}
3457   { (exit 1); exit 1; }; }
3458fi
3459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3468echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3469if test "${ac_cv_path_GREP+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  # Extract the first word of "grep ggrep" to use in msg output
3473if test -z "$GREP"; then
3474set dummy grep ggrep; ac_prog_name=$2
3475if test "${ac_cv_path_GREP+set}" = set; then
3476  echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478  ac_path_GREP_found=false
3479# Loop through the user's path and test for each of PROGNAME-LIST
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482do
3483  IFS=$as_save_IFS
3484  test -z "$as_dir" && as_dir=.
3485  for ac_prog in grep ggrep; do
3486  for ac_exec_ext in '' $ac_executable_extensions; do
3487    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3488    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3489    # Check for GNU ac_path_GREP and select it if it is found.
3490  # Check for GNU $ac_path_GREP
3491case `"$ac_path_GREP" --version 2>&1` in
3492*GNU*)
3493  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3494*)
3495  ac_count=0
3496  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3497  while :
3498  do
3499    cat "conftest.in" "conftest.in" >"conftest.tmp"
3500    mv "conftest.tmp" "conftest.in"
3501    cp "conftest.in" "conftest.nl"
3502    echo 'GREP' >> "conftest.nl"
3503    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3504    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3505    ac_count=`expr $ac_count + 1`
3506    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3507      # Best one so far, save it but keep looking for a better one
3508      ac_cv_path_GREP="$ac_path_GREP"
3509      ac_path_GREP_max=$ac_count
3510    fi
3511    # 10*(2^10) chars as input seems more than enough
3512    test $ac_count -gt 10 && break
3513  done
3514  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3515esac
3516
3517
3518    $ac_path_GREP_found && break 3
3519  done
3520done
3521
3522done
3523IFS=$as_save_IFS
3524
3525
3526fi
3527
3528GREP="$ac_cv_path_GREP"
3529if test -z "$GREP"; then
3530  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3531echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3532   { (exit 1); exit 1; }; }
3533fi
3534
3535else
3536  ac_cv_path_GREP=$GREP
3537fi
3538
3539
3540fi
3541{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3542echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3543 GREP="$ac_cv_path_GREP"
3544
3545
3546{ echo "$as_me:$LINENO: checking for egrep" >&5
3547echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3548if test "${ac_cv_path_EGREP+set}" = set; then
3549  echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3552   then ac_cv_path_EGREP="$GREP -E"
3553   else
3554     # Extract the first word of "egrep" to use in msg output
3555if test -z "$EGREP"; then
3556set dummy egrep; ac_prog_name=$2
3557if test "${ac_cv_path_EGREP+set}" = set; then
3558  echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560  ac_path_EGREP_found=false
3561# Loop through the user's path and test for each of PROGNAME-LIST
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567  for ac_prog in egrep; do
3568  for ac_exec_ext in '' $ac_executable_extensions; do
3569    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3570    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3571    # Check for GNU ac_path_EGREP and select it if it is found.
3572  # Check for GNU $ac_path_EGREP
3573case `"$ac_path_EGREP" --version 2>&1` in
3574*GNU*)
3575  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3576*)
3577  ac_count=0
3578  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3579  while :
3580  do
3581    cat "conftest.in" "conftest.in" >"conftest.tmp"
3582    mv "conftest.tmp" "conftest.in"
3583    cp "conftest.in" "conftest.nl"
3584    echo 'EGREP' >> "conftest.nl"
3585    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3587    ac_count=`expr $ac_count + 1`
3588    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3589      # Best one so far, save it but keep looking for a better one
3590      ac_cv_path_EGREP="$ac_path_EGREP"
3591      ac_path_EGREP_max=$ac_count
3592    fi
3593    # 10*(2^10) chars as input seems more than enough
3594    test $ac_count -gt 10 && break
3595  done
3596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597esac
3598
3599
3600    $ac_path_EGREP_found && break 3
3601  done
3602done
3603
3604done
3605IFS=$as_save_IFS
3606
3607
3608fi
3609
3610EGREP="$ac_cv_path_EGREP"
3611if test -z "$EGREP"; then
3612  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3613echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3614   { (exit 1); exit 1; }; }
3615fi
3616
3617else
3618  ac_cv_path_EGREP=$EGREP
3619fi
3620
3621
3622   fi
3623fi
3624{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3625echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3626 EGREP="$ac_cv_path_EGREP"
3627
3628
3629{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3630echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3631if test "${ac_cv_header_stdc+set}" = set; then
3632  echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634  cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h.  */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h.  */
3640#include <stdlib.h>
3641#include <stdarg.h>
3642#include <string.h>
3643#include <float.h>
3644
3645int
3646main ()
3647{
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext
3654if { (ac_try="$ac_compile"
3655case "(($ac_try" in
3656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657  *) ac_try_echo=$ac_try;;
3658esac
3659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660  (eval "$ac_compile") 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } && {
3667         test -z "$ac_c_werror_flag" ||
3668         test ! -s conftest.err
3669       } && test -s conftest.$ac_objext; then
3670  ac_cv_header_stdc=yes
3671else
3672  echo "$as_me: failed program was:" >&5
3673sed 's/^/| /' conftest.$ac_ext >&5
3674
3675        ac_cv_header_stdc=no
3676fi
3677
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679
3680if test $ac_cv_header_stdc = yes; then
3681  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3682  cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688#include <string.h>
3689
3690_ACEOF
3691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692  $EGREP "memchr" >/dev/null 2>&1; then
3693  :
3694else
3695  ac_cv_header_stdc=no
3696fi
3697rm -f conftest*
3698
3699fi
3700
3701if test $ac_cv_header_stdc = yes; then
3702  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3703  cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h.  */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h.  */
3709#include <stdlib.h>
3710
3711_ACEOF
3712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713  $EGREP "free" >/dev/null 2>&1; then
3714  :
3715else
3716  ac_cv_header_stdc=no
3717fi
3718rm -f conftest*
3719
3720fi
3721
3722if test $ac_cv_header_stdc = yes; then
3723  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3724  if test "$cross_compiling" = yes; then
3725  :
3726else
3727  cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733#include <ctype.h>
3734#include <stdlib.h>
3735#if ((' ' & 0x0FF) == 0x020)
3736# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3737# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3738#else
3739# define ISLOWER(c) \
3740                   (('a' <= (c) && (c) <= 'i') \
3741                     || ('j' <= (c) && (c) <= 'r') \
3742                     || ('s' <= (c) && (c) <= 'z'))
3743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3744#endif
3745
3746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3747int
3748main ()
3749{
3750  int i;
3751  for (i = 0; i < 256; i++)
3752    if (XOR (islower (i), ISLOWER (i))
3753        || toupper (i) != TOUPPER (i))
3754      return 2;
3755  return 0;
3756}
3757_ACEOF
3758rm -f conftest$ac_exeext
3759if { (ac_try="$ac_link"
3760case "(($ac_try" in
3761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762  *) ac_try_echo=$ac_try;;
3763esac
3764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765  (eval "$ac_link") 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3769  { (case "(($ac_try" in
3770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771  *) ac_try_echo=$ac_try;;
3772esac
3773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774  (eval "$ac_try") 2>&5
3775  ac_status=$?
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); }; }; then
3778  :
3779else
3780  echo "$as_me: program exited with status $ac_status" >&5
3781echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784( exit $ac_status )
3785ac_cv_header_stdc=no
3786fi
3787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3788fi
3789
3790
3791fi
3792fi
3793{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3794echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3795if test $ac_cv_header_stdc = yes; then
3796
3797cat >>confdefs.h <<\_ACEOF
3798#define STDC_HEADERS 1
3799_ACEOF
3800
3801fi
3802
3803# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3814                  inttypes.h stdint.h unistd.h
3815do
3816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3820  echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822  cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h.  */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h.  */
3828$ac_includes_default
3829
3830#include <$ac_header>
3831_ACEOF
3832rm -f conftest.$ac_objext
3833if { (ac_try="$ac_compile"
3834case "(($ac_try" in
3835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836  *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839  (eval "$ac_compile") 2>conftest.er1
3840  ac_status=$?
3841  grep -v '^ *+' conftest.er1 >conftest.err
3842  rm -f conftest.er1
3843  cat conftest.err >&5
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); } && {
3846         test -z "$ac_c_werror_flag" ||
3847         test ! -s conftest.err
3848       } && test -s conftest.$ac_objext; then
3849  eval "$as_ac_Header=yes"
3850else
3851  echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854        eval "$as_ac_Header=no"
3855fi
3856
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858fi
3859ac_res=`eval echo '${'$as_ac_Header'}'`
3860               { echo "$as_me:$LINENO: result: $ac_res" >&5
3861echo "${ECHO_T}$ac_res" >&6; }
3862if test `eval echo '${'$as_ac_Header'}'` = yes; then
3863  cat >>confdefs.h <<_ACEOF
3864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3865_ACEOF
3866
3867fi
3868
3869done
3870
3871
3872
3873
3874for ac_header in string.h malloc.h
3875do
3876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3878  { echo "$as_me:$LINENO: checking for $ac_header" >&5
3879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3881  echo $ECHO_N "(cached) $ECHO_C" >&6
3882fi
3883ac_res=`eval echo '${'$as_ac_Header'}'`
3884               { echo "$as_me:$LINENO: result: $ac_res" >&5
3885echo "${ECHO_T}$ac_res" >&6; }
3886else
3887  # Is the header compilable?
3888{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
3889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3890cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h.  */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h.  */
3896$ac_includes_default
3897#include <$ac_header>
3898_ACEOF
3899rm -f conftest.$ac_objext
3900if { (ac_try="$ac_compile"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906  (eval "$ac_compile") 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } && {
3913         test -z "$ac_c_werror_flag" ||
3914         test ! -s conftest.err
3915       } && test -s conftest.$ac_objext; then
3916  ac_header_compiler=yes
3917else
3918  echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921        ac_header_compiler=no
3922fi
3923
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3926echo "${ECHO_T}$ac_header_compiler" >&6; }
3927
3928# Is the header present?
3929{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
3930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3931cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h.  */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h.  */
3937#include <$ac_header>
3938_ACEOF
3939if { (ac_try="$ac_cpp conftest.$ac_ext"
3940case "(($ac_try" in
3941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942  *) ac_try_echo=$ac_try;;
3943esac
3944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3946  ac_status=$?
3947  grep -v '^ *+' conftest.er1 >conftest.err
3948  rm -f conftest.er1
3949  cat conftest.err >&5
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); } >/dev/null && {
3952         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3953         test ! -s conftest.err
3954       }; then
3955  ac_header_preproc=yes
3956else
3957  echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960  ac_header_preproc=no
3961fi
3962
3963rm -f conftest.err conftest.$ac_ext
3964{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3965echo "${ECHO_T}$ac_header_preproc" >&6; }
3966
3967# So?  What about this header?
3968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3969  yes:no: )
3970    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3972    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3974    ac_header_preproc=yes
3975    ;;
3976  no:yes:* )
3977    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3979    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3980echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3981    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3983    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3984echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3987    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3989
3990    ;;
3991esac
3992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  eval "$as_ac_Header=\$ac_header_preproc"
3998fi
3999ac_res=`eval echo '${'$as_ac_Header'}'`
4000               { echo "$as_me:$LINENO: result: $ac_res" >&5
4001echo "${ECHO_T}$ac_res" >&6; }
4002
4003fi
4004if test `eval echo '${'$as_ac_Header'}'` = yes; then
4005  cat >>confdefs.h <<_ACEOF
4006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4007_ACEOF
4008
4009fi
4010
4011done
4012
4013
4014V_INCLUDE=""
4015V_LIB=""
4016V_OBJ=""
4017V_OBJ_CRYPT=""
4018V_BROKEN_OBJ="strtol.o strtoul.o"
4019
4020V_SHELL=""
4021V_TARCMD="tar cfh"
4022V_SIGRET="void"
4023
4024{ echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
4025echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
4026if test "${ac_cv_lib_Xbsd_main+set}" = set; then
4027  echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029  ac_check_lib_save_LIBS=$LIBS
4030LIBS="-lXbsd  $LIBS"
4031cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h.  */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h.  */
4037
4038
4039int
4040main ()
4041{
4042return main ();
4043  ;
4044  return 0;
4045}
4046_ACEOF
4047rm -f conftest.$ac_objext conftest$ac_exeext
4048if { (ac_try="$ac_link"
4049case "(($ac_try" in
4050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051  *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054  (eval "$ac_link") 2>conftest.er1
4055  ac_status=$?
4056  grep -v '^ *+' conftest.er1 >conftest.err
4057  rm -f conftest.er1
4058  cat conftest.err >&5
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); } && {
4061         test -z "$ac_c_werror_flag" ||
4062         test ! -s conftest.err
4063       } && test -s conftest$ac_exeext &&
4064       $as_test_x conftest$ac_exeext; then
4065  ac_cv_lib_Xbsd_main=yes
4066else
4067  echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070        ac_cv_lib_Xbsd_main=no
4071fi
4072
4073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4074      conftest$ac_exeext conftest.$ac_ext
4075LIBS=$ac_check_lib_save_LIBS
4076fi
4077{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
4078echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
4079if test $ac_cv_lib_Xbsd_main = yes; then
4080  V_LIB="$V_LIB -lXbsd"
4081fi
4082
4083{ echo "$as_me:$LINENO: checking for poll in -lsocket" >&5
4084echo $ECHO_N "checking for poll in -lsocket... $ECHO_C" >&6; }
4085if test "${ac_cv_lib_socket_poll+set}" = set; then
4086  echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088  ac_check_lib_save_LIBS=$LIBS
4089LIBS="-lsocket  $LIBS"
4090cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h.  */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h.  */
4096
4097/* Override any GCC internal prototype to avoid an error.
4098   Use char because int might match the return type of a GCC
4099   builtin and then its argument prototype would still apply.  */
4100#ifdef __cplusplus
4101extern "C"
4102#endif
4103char poll ();
4104int
4105main ()
4106{
4107return poll ();
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext conftest$ac_exeext
4113if { (ac_try="$ac_link"
4114case "(($ac_try" in
4115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116  *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119  (eval "$ac_link") 2>conftest.er1
4120  ac_status=$?
4121  grep -v '^ *+' conftest.er1 >conftest.err
4122  rm -f conftest.er1
4123  cat conftest.err >&5
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); } && {
4126         test -z "$ac_c_werror_flag" ||
4127         test ! -s conftest.err
4128       } && test -s conftest$ac_exeext &&
4129       $as_test_x conftest$ac_exeext; then
4130  ac_cv_lib_socket_poll=yes
4131else
4132  echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135        ac_cv_lib_socket_poll=no
4136fi
4137
4138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4139      conftest$ac_exeext conftest.$ac_ext
4140LIBS=$ac_check_lib_save_LIBS
4141fi
4142{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_poll" >&5
4143echo "${ECHO_T}$ac_cv_lib_socket_poll" >&6; }
4144if test $ac_cv_lib_socket_poll = yes; then
4145  V_LIB="$V_LIB -lsocket"
4146fi
4147
4148
4149# nsl lib seems to cause problems on IRIX
4150if test `echo "$target_os" | sed 's/\..*//'` != irix6 ; then
4151        { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4152echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4153if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  ac_check_lib_save_LIBS=$LIBS
4157LIBS="-lnsl  $LIBS"
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h.  */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h.  */
4164
4165/* Override any GCC internal prototype to avoid an error.
4166   Use char because int might match the return type of a GCC
4167   builtin and then its argument prototype would still apply.  */
4168#ifdef __cplusplus
4169extern "C"
4170#endif
4171char gethostbyname ();
4172int
4173main ()
4174{
4175return gethostbyname ();
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext conftest$ac_exeext
4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184  *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187  (eval "$ac_link") 2>conftest.er1
4188  ac_status=$?
4189  grep -v '^ *+' conftest.er1 >conftest.err
4190  rm -f conftest.er1
4191  cat conftest.err >&5
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); } && {
4194         test -z "$ac_c_werror_flag" ||
4195         test ! -s conftest.err
4196       } && test -s conftest$ac_exeext &&
4197       $as_test_x conftest$ac_exeext; then
4198  ac_cv_lib_nsl_gethostbyname=yes
4199else
4200  echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203        ac_cv_lib_nsl_gethostbyname=no
4204fi
4205
4206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4207      conftest$ac_exeext conftest.$ac_ext
4208LIBS=$ac_check_lib_save_LIBS
4209fi
4210{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4211echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4212if test $ac_cv_lib_nsl_gethostbyname = yes; then
4213  V_LIB="$V_LIB -lnsl"
4214fi
4215
4216fi
4217
4218V_TAR_EXTRA=""
4219V_DEFINE=""
4220
4221V_CCOPT_H261="-O2"
4222
4223# Check whether --enable-debug was given.
4224if test "${enable_debug+set}" = set; then
4225  enableval=$enable_debug; V_CCOPT="-g"
4226else
4227  V_CCOPT="-O2"
4228fi
4229
4230
4231# Check whether --enable-ipv6 was given.
4232if test "${enable_ipv6+set}" = set; then
4233  enableval=$enable_ipv6; ipv6=yes
4234else
4235  ipv6=no
4236fi
4237
4238
4239
4240# Check whether --with-fore was given.
4241if test "${with_fore+set}" = set; then
4242  withval=$with_fore; d=$withval
4243else
4244  d=""
4245fi
4246
4247if test "$d" = "" ; then
4248        if test -d /usr/src/local/fore ; then
4249                d=/usr/src/local/fore
4250        fi
4251fi
4252if test "$d" != "" ; then
4253        if test ! -d $d ; then
4254                echo "'$d' is not a directory"
4255                exit 1
4256        fi
4257        V_INCLUDE="$V_INCLUDE -I$d/include"
4258        V_LIB="$V_LIB $d/api/libatm.a"
4259        V_OBJ="$V_OBJ net-atm.o"
4260fi
4261
4262if test -z "$PWD" ; then
4263    PWD=`pwd`
4264fi
4265
4266solaris=""
4267if test `echo "$target_os" | sed 's/\..*//'` = solaris2 ; then
4268        solaris="yes"
4269fi
4270
4271places="desCore.a \
4272        /usr/src/local/desCore/desCore.a \
4273        ../desCore/desCore.a"
4274for f in $places; do
4275        if test -f $f ; then
4276                V_LIB="$V_LIB $f"
4277                V_OBJ_CRYPT="$V_OBJ_CRYPT crypt-des.o"
4278                break
4279        fi
4280done
4281
4282aquatcl="no"
4283aquatk="no"
4284cygwin="no"
4285mingw="no"
4286
4287case "$target" in
4288  *-*-darwin*)
4289        aquatcl="yes"
4290        aquatk="yes"
4291        ;;
4292  *-*-cygwin*)
4293        cygwin="yes"
4294        ;;
4295  *-*-mingw*)
4296        mingw="yes"
4297        ;;
4298esac
4299
4300if test "$aquatk" != "yes" -a "$mingw" != "yes"; then
4301
4302xlibdirs="\
4303        /usr/openwin/lib \
4304        /usr/X11R6/lib \
4305        /usr/lib/X11R6 \
4306        /usr/X11R5/lib \
4307        /usr/lib/X11R5 \
4308        /usr/X11R4/lib \
4309        /usr/lib/X11R4 \
4310        /usr/local/lib \
4311        /usr/X386/lib \
4312        /usr/X11/lib \
4313        /usr/unsupported/lib \
4314        /import/X11R4/usr/lib"
4315
4316xincdirs="\
4317        /usr/openwin/include \
4318        /usr/X11R6/include \
4319        /usr/include/X11R6 \
4320        /usr/X11R5/include \
4321        /usr/include/X11R5 \
4322        /usr/X11R4/include \
4323        /usr/include/X11R4 \
4324        /usr/local/include \
4325        /usr/X386/include \
4326        /usr/X11/include \
4327        /usr/lpp/X11/include \
4328        /usr/unsupported/include \
4329        /import/X11R4/include"
4330
4331
4332echo "checking for X11 header files"
4333if test "$x_includes" = NONE ; then
4334        cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h.  */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h.  */
4340#include <X11/Intrinsic.h>
4341_ACEOF
4342if { (ac_try="$ac_cpp conftest.$ac_ext"
4343case "(($ac_try" in
4344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345  *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349  ac_status=$?
4350  grep -v '^ *+' conftest.er1 >conftest.err
4351  rm -f conftest.er1
4352  cat conftest.err >&5
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); } >/dev/null && {
4355         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356         test ! -s conftest.err
4357       }; then
4358  x_includes=""
4359else
4360  echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363  x_includes=NONE
4364fi
4365
4366rm -f conftest.err conftest.$ac_ext
4367        if test "$x_includes" = NONE ; then
4368                for i in $xincdirs ; do
4369                        if test -r $i/X11/Intrinsic.h; then
4370                                x_includes=$i
4371                                break
4372                        fi
4373                done
4374                if test "$x_includes" = NONE ; then
4375                        echo "can't find X includes"
4376                        exit 1
4377                fi
4378        fi
4379fi
4380if test -n "$x_includes" ; then
4381        V_INCLUDE_X11="-isystem $x_includes"
4382
4383fi
4384
4385echo "checking for X11 library archive"
4386if test "$x_libraries" = NONE ; then
4387        { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
4388echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
4389if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
4390  echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392  ac_check_lib_save_LIBS=$LIBS
4393LIBS="-lX11  $LIBS"
4394cat >conftest.$ac_ext <<_ACEOF
4395/* confdefs.h.  */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h.  */
4400
4401/* Override any GCC internal prototype to avoid an error.
4402   Use char because int might match the return type of a GCC
4403   builtin and then its argument prototype would still apply.  */
4404#ifdef __cplusplus
4405extern "C"
4406#endif
4407char XOpenDisplay ();
4408int
4409main ()
4410{
4411return XOpenDisplay ();
4412  ;
4413  return 0;
4414}
4415_ACEOF
4416rm -f conftest.$ac_objext conftest$ac_exeext
4417if { (ac_try="$ac_link"
4418case "(($ac_try" in
4419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420  *) ac_try_echo=$ac_try;;
4421esac
4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423  (eval "$ac_link") 2>conftest.er1
4424  ac_status=$?
4425  grep -v '^ *+' conftest.er1 >conftest.err
4426  rm -f conftest.er1
4427  cat conftest.err >&5
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } && {
4430         test -z "$ac_c_werror_flag" ||
4431         test ! -s conftest.err
4432       } && test -s conftest$ac_exeext &&
4433       $as_test_x conftest$ac_exeext; then
4434  ac_cv_lib_X11_XOpenDisplay=yes
4435else
4436  echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439        ac_cv_lib_X11_XOpenDisplay=no
4440fi
4441
4442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4443      conftest$ac_exeext conftest.$ac_ext
4444LIBS=$ac_check_lib_save_LIBS
4445fi
4446{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
4447echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
4448if test $ac_cv_lib_X11_XOpenDisplay = yes; then
4449  x_libraries=""
4450else
4451  x_libraries=NONE
4452fi
4453
4454        if test "$x_libraries" = NONE ; then
4455                for i in $xlibdirs ; do
4456                        if test -r $i/libX11.a; then
4457                                x_libraries=$i
4458                                break
4459                        fi
4460                done
4461                if test "$x_libraries" = NONE ; then
4462                        echo "can't find X library"
4463                        exit 1
4464                fi
4465        fi
4466fi
4467
4468V_LIB_X11=-lX11
4469
4470if test -n "$V_SHM" ; then
4471        if test -z "$x_libraries" ; then
4472                { echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
4473echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6; }
4474if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
4475  echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477  ac_check_lib_save_LIBS=$LIBS
4478LIBS="-lXext -lX11 $LIBS"
4479cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h.  */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h.  */
4485
4486/* Override any GCC internal prototype to avoid an error.
4487   Use char because int might match the return type of a GCC
4488   builtin and then its argument prototype would still apply.  */
4489#ifdef __cplusplus
4490extern "C"
4491#endif
4492char XShmAttach ();
4493int
4494main ()
4495{
4496return XShmAttach ();
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501rm -f conftest.$ac_objext conftest$ac_exeext
4502if { (ac_try="$ac_link"
4503case "(($ac_try" in
4504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505  *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508  (eval "$ac_link") 2>conftest.er1
4509  ac_status=$?
4510  grep -v '^ *+' conftest.er1 >conftest.err
4511  rm -f conftest.er1
4512  cat conftest.err >&5
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } && {
4515         test -z "$ac_c_werror_flag" ||
4516         test ! -s conftest.err
4517       } && test -s conftest$ac_exeext &&
4518       $as_test_x conftest$ac_exeext; then
4519  ac_cv_lib_Xext_XShmAttach=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524        ac_cv_lib_Xext_XShmAttach=no
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4528      conftest$ac_exeext conftest.$ac_ext
4529LIBS=$ac_check_lib_save_LIBS
4530fi
4531{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
4532echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6; }
4533if test $ac_cv_lib_Xext_XShmAttach = yes; then
4534  V_Xext="-lXext"
4535else
4536  V_Xext=NONE
4537fi
4538
4539        else
4540                echo "checking for libXext.a"
4541                if test -f $x_libraries/libXext.a ; then
4542                        V_Xext="-lXext"
4543                else
4544                        echo "warning: compiling without -lXext"
4545                fi
4546        fi
4547        if test "$V_Xext" = NONE ; then
4548                echo "warning: compiling without -lXext"
4549        else
4550                V_LIB_X11="$V_Xext $V_LIB_X11"
4551        fi
4552fi
4553
4554if test -n "$x_libraries" ; then
4555        V_LIB_X11="-L$x_libraries $V_LIB_X11"
4556        if test $solaris ; then
4557                V_LIB_X11="-R$x_libraries $V_LIB_X11"
4558        fi
4559fi
4560
4561
4562fi
4563
4564
4565# Check whether --with-ucltcl was given.
4566if test "${with_ucltcl+set}" = set; then
4567  withval=$with_ucltcl; ucltcl=$withval
4568else
4569  ucltcl=""
4570fi
4571
4572
4573
4574# Check whether --with-tcl was given.
4575if test "${with_tcl+set}" = set; then
4576  withval=$with_tcl; d=$withval
4577else
4578  d=""
4579fi
4580
4581
4582if test "$aquatcl" == yes; then
4583        echo "On MACOSX - Using Aqua TCL/Tk"
4584        V_LIB_TCL="-framework Tcl"
4585        V_LIBRARY_TCL=/Library/Frameworks/Tcl.framework/Versions/8.4/Resources/Scripts
4586        V_INCLUDE_TCL="-I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tcl.framework/PrivateHeaders"
4587
4588elif test "$ucltcl" == yes; then
4589        if test -z "$ucltcl"; then
4590                # UCL defaults
4591                ucltcl=../tcl-8.0
4592        fi
4593        if test ! -d "$ucltcl" ; then
4594                echo "'$d' is not a directory"
4595                exit 1
4596        fi
4597        V_INCLUDE_TCL="-I$ucltcl/generic"
4598        case "$target" in
4599          *-*-freebsd*)
4600                V_LIB_TCL="$ucltcl/unix/libtcl80.a"
4601                ;;
4602          *)
4603                V_LIB_TCL="$ucltcl/unix/libtcl8.0.a"
4604                ;;
4605        esac
4606
4607        V_LIBRARY_TCL=$ucltcl/library
4608        echo "Using UCL's tcl-8.0: $ucltcl"
4609
4610elif test "$d" != "" ; then
4611        echo "Not using UCL tcl - You're on your own!"
4612        if test ! -d $d ; then
4613                echo "'$d' is not a directory"
4614                exit 1
4615        fi
4616        V_INCLUDE_TCL=-I$d/include
4617        if test ! -r $d/include/tcl.h ; then
4618                echo "can't find tcl.h in $d/include"
4619                exit 1
4620        fi
4621        places="$d/lib/libtcl8.4.so \
4622                $d/lib/libtcl8.4.dylib \
4623                $d/lib/libtcl8.4.a \
4624                $d/lib/libtcl.so \
4625                $d/lib/libtcl.dylib \
4626                $d/lib/libtcl.a"
4627        V_LIB_TCL=FAIL
4628        for dir in $places; do
4629                if test -r $dir ; then
4630                        V_LIB_TCL=$dir
4631                        break
4632                fi
4633        done
4634        if test $V_LIB_TCL = FAIL ; then
4635                echo "can't find libtcl.a in $d/lib"
4636                exit 1
4637        fi
4638        places="$d/lib/tcl-8.4 \
4639                $d/lib/tcl8.4 \
4640                $d/lib/tcl"
4641        V_LIBRARY_TCL=FAIL
4642        for dir in $places; do
4643                if test -r $dir/init.tcl ; then
4644                        V_LIBRARY_TCL=$dir
4645                        break
4646                fi
4647        done
4648        if test $V_LIBRARY_TCL = FAIL ; then
4649                echo "can't find init.tcl in $d/lib/tcl"
4650                exit 1
4651        fi
4652else
4653        echo "Not using UCL tcl - You're on your own!"
4654        cat >conftest.$ac_ext <<_ACEOF
4655/* confdefs.h.  */
4656_ACEOF
4657cat confdefs.h >>conftest.$ac_ext
4658cat >>conftest.$ac_ext <<_ACEOF
4659/* end confdefs.h.  */
4660#include <tcl.h>
4661_ACEOF
4662if { (ac_try="$ac_cpp conftest.$ac_ext"
4663case "(($ac_try" in
4664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665  *) ac_try_echo=$ac_try;;
4666esac
4667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4669  ac_status=$?
4670  grep -v '^ *+' conftest.er1 >conftest.err
4671  rm -f conftest.er1
4672  cat conftest.err >&5
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); } >/dev/null && {
4675         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4676         test ! -s conftest.err
4677       }; then
4678  V_INCLUDE_TCL=""
4679else
4680  echo "$as_me: failed program was:" >&5
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683  V_INCLUDE_TCL=FAIL
4684fi
4685
4686rm -f conftest.err conftest.$ac_ext
4687        if test "$V_INCLUDE_TCL" = FAIL; then
4688                echo "checking for tcl.h"
4689                places="$PWD/../tcl-8.4 \
4690                        $PWD/../tcl8.4 \
4691                        $PWD/../tcl \
4692                        /usr/local/include/tcl8.4 \
4693                        /usr/src/local/tcl8.4 \
4694                        /import/tcl/include/tcl8.4 \
4695                        $prefix/include \
4696                        $x_includes/tk \
4697                        $x_includes \
4698                        /usr/local/include \
4699                        /usr/contrib/include \
4700                        /usr/include"
4701                for dir in $places; do
4702                        if test -r $dir/tcl.h ; then
4703                                V_INCLUDE_TCL=-I$dir
4704                                break
4705                        fi
4706                done
4707                if test "$V_INCLUDE_TCL" = FAIL; then
4708                        echo "can't find tcl.h"
4709                        exit 1
4710                fi
4711        fi
4712        { echo "$as_me:$LINENO: checking for main in -ltcl8.4" >&5
4713echo $ECHO_N "checking for main in -ltcl8.4... $ECHO_C" >&6; }
4714if test "${ac_cv_lib_tcl8_4_main+set}" = set; then
4715  echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717  ac_check_lib_save_LIBS=$LIBS
4718LIBS="-ltcl8.4  $LIBS"
4719cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h.  */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h.  */
4725
4726
4727int
4728main ()
4729{
4730return main ();
4731  ;
4732  return 0;
4733}
4734_ACEOF
4735rm -f conftest.$ac_objext conftest$ac_exeext
4736if { (ac_try="$ac_link"
4737case "(($ac_try" in
4738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739  *) ac_try_echo=$ac_try;;
4740esac
4741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742  (eval "$ac_link") 2>conftest.er1
4743  ac_status=$?
4744  grep -v '^ *+' conftest.er1 >conftest.err
4745  rm -f conftest.er1
4746  cat conftest.err >&5
4747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); } && {
4749         test -z "$ac_c_werror_flag" ||
4750         test ! -s conftest.err
4751       } && test -s conftest$ac_exeext &&
4752       $as_test_x conftest$ac_exeext; then
4753  ac_cv_lib_tcl8_4_main=yes
4754else
4755  echo "$as_me: failed program was:" >&5
4756sed 's/^/| /' conftest.$ac_ext >&5
4757
4758        ac_cv_lib_tcl8_4_main=no
4759fi
4760
4761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4762      conftest$ac_exeext conftest.$ac_ext
4763LIBS=$ac_check_lib_save_LIBS
4764fi
4765{ echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_4_main" >&5
4766echo "${ECHO_T}$ac_cv_lib_tcl8_4_main" >&6; }
4767if test $ac_cv_lib_tcl8_4_main = yes; then
4768  V_LIB_TCL="-ltcl8.4"
4769else
4770  V_LIB_TCL="FAIL"
4771fi
4772
4773        if test "$V_LIB_TCL" = FAIL; then
4774                echo "checking for libtcl.a"
4775                places="$PWD/../tcl-8.4/unix \
4776                        $PWD/../tcl8.4/unix \
4777                        $PWD/../tcl/unix \
4778                        /usr/local/lib \
4779                        $prefix/lib \
4780                        $x_libraries \
4781                        /usr/contrib/lib \
4782                        /usr/local/lib \
4783                        /usr/lib \
4784                        $PWD/../tcl8.4 \
4785                        /usr/src/local/tcl8.4 \
4786                        /import/tcl/lib/tcl8.4"
4787                for dir in $places; do
4788                        if test -r $dir/libtcl8.4.so -o -r $dir/libtcl8.4.dylib -o -r $dir/libtcl8.4.a; then
4789                                V_LIB_TCL="-L$dir -ltcl8.4"
4790                                break
4791                        fi
4792                        if test -r $dir/libtcl.so -o -r $dir/libtcl.dylib -o -r $dir/libtcl.a; then
4793                                V_LIB_TCL="-L$dir -ltcl"
4794                                break
4795                        fi
4796                done
4797                if test "$V_LIB_TCL" = FAIL; then
4798                        echo "can't find libtcl.a"
4799                        exit 1
4800                else
4801                        if test $solaris ; then
4802                                V_LIB_TCL="-R$dir $V_LIB_TCL"
4803                        fi
4804                fi
4805        fi
4806        echo "checking for tcl/init.tcl"
4807        V_LIBRARY_TCL=FAIL
4808        places="$PWD/../tcl-8.4/library \
4809                $PWD/../tcl8.4/library \
4810                $PWD/../tcl/library \
4811                /System/Library/Frameworks/Tcl.framework/Versions/8.4/Resources/Scripts \
4812                /usr/local/lib/tcl8.4 \
4813                /usr/contrib/lib/tcl8.4 \
4814                /usr/lib/tcl8.4 \
4815                /usr/lib/tk/tcl8.4 \
4816                /import/tcl/lib/tcl8.4 \
4817                $prefix/lib/tcl8.4 \
4818                $x_libraries/tcl8.4 \
4819                /usr/local/lib/tcl \
4820                /usr/lib/tcl \
4821                $x_libraries/tcl"
4822        for dir in $places; do
4823                if test -r $dir/init.tcl; then
4824                        V_LIBRARY_TCL=$dir
4825                        break
4826                fi
4827        done
4828        if test "$V_LIBRARY_TCL" = FAIL; then
4829                echo "can't find tcl/init.tcl"
4830                exit 1
4831        fi
4832fi
4833
4834
4835
4836
4837
4838# Check whether --with-ucltk was given.
4839if test "${with_ucltk+set}" = set; then
4840  withval=$with_ucltk; ucltk=$withval
4841else
4842  ucltk=""
4843fi
4844
4845
4846
4847# Check whether --with-tk was given.
4848if test "${with_tk+set}" = set; then
4849  withval=$with_tk; d=$withval
4850else
4851  d=""
4852fi
4853
4854
4855if test "$aquatk" == yes; then
4856        V_LIB_TK="-framework Tk"
4857        V_LIBRARY_TK=/Library/Frameworks/Tk.framework/Versions/8.4/Resources/Scripts
4858        V_INCLUDE_TK="-I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/PrivateHeaders"
4859
4860elif test "$ucltk" == yes; then
4861        if test -z "$ucltk"; then
4862                # UCL defaults
4863                ucltk=../tk-8.0
4864        fi
4865        if test ! -d "$ucltk" ; then
4866                echo "'$d' is not a directory"
4867                exit 1
4868        fi
4869        V_INCLUDE_TK="-I$ucltk/generic"
4870
4871        case "$target" in
4872          *-*-freebsd*)
4873                V_LIB_TK="$ucltk/unix/libtk80.a"
4874                ;;
4875          *)
4876                V_LIB_TK="$ucltk/unix/libtk8.0.a"
4877                ;;
4878        esac
4879        V_LIBRARY_TK=$ucltk/library
4880        echo "Using UCL's tk-8.0: $ucltk"
4881
4882elif test "$d" != "" ; then
4883        echo "Not using UCL tk - You're on your own!"
4884        if test ! -d $d ; then
4885                echo "'$d' is not a directory"
4886                exit 1
4887        fi
4888        V_INCLUDE_TK=-I$d/include
4889        if test ! -r $d/include/tk.h ; then
4890                echo "can't find tk.h in $d/include"
4891                exit 1
4892        fi
4893        places="$d/lib/libtk8.4.so \
4894                $d/lib/libtk8.4.a \
4895                $d/lib/libtk.so \
4896                $d/lib/libtk.a"
4897        V_LIB_TK=FAIL
4898        for dir in $places; do
4899                if test -r $dir ; then
4900                        V_LIB_TK=$dir
4901                        break
4902                fi
4903        done
4904        if test $V_LIB_TK = FAIL ; then
4905                echo "can't find libtk.a in $d/lib"
4906                exit 1
4907        fi
4908        places="$d/lib/tk8.4 \
4909                $d/lib/tk"
4910        V_LIBRARY_TK=FAIL
4911        for dir in $places; do
4912                if test -r $dir/tk.tcl ; then
4913                        V_LIBRARY_TK=$dir
4914                        break
4915                fi
4916        done
4917        if test $V_LIBRARY_TK = FAIL ; then
4918                echo "can't find tk.tcl in $d/lib/tk"
4919                exit 1
4920        fi
4921else
4922        echo "Not using UCL tk - You're on your own!"
4923        cat >conftest.$ac_ext <<_ACEOF
4924/* confdefs.h.  */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h.  */
4929#include <tk.h>
4930_ACEOF
4931if { (ac_try="$ac_cpp conftest.$ac_ext"
4932case "(($ac_try" in
4933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934  *) ac_try_echo=$ac_try;;
4935esac
4936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4938  ac_status=$?
4939  grep -v '^ *+' conftest.er1 >conftest.err
4940  rm -f conftest.er1
4941  cat conftest.err >&5
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); } >/dev/null && {
4944         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4945         test ! -s conftest.err
4946       }; then
4947  V_INCLUDE_TK=""
4948else
4949  echo "$as_me: failed program was:" >&5
4950sed 's/^/| /' conftest.$ac_ext >&5
4951
4952  V_INCLUDE_TK=FAIL
4953fi
4954
4955rm -f conftest.err conftest.$ac_ext
4956        if test "$V_INCLUDE_TK" = FAIL; then
4957                echo "checking for tk.h"
4958                V_INCLUDE_TK=""
4959                places="$PWD/../tk8.4/generic \
4960                        $PWD/../tk-8.4/generic \
4961                        $PWD/../tk/generic \
4962                        /usr/local/include \
4963                        $prefix/include \
4964                        /usr/contrib/include \
4965                        /usr/include/tcl \
4966                        /usr/include\
4967                        $x_includes/tk \
4968                        $x_includes \
4969                        $PWD/../tk8.4 \
4970                        /usr/src/local/tk8.4 \
4971                        /import/tcl/include/tk8.4"
4972                for dir in $places; do
4973                        if test -r $dir/tk.h ; then
4974                                V_INCLUDE_TK=-I$dir
4975                                break
4976                        fi
4977                done
4978                if test "$V_INCLUDE_TK" = FAIL; then
4979                        echo "can't find tk.h"
4980                        exit 1
4981                fi
4982        fi
4983        { echo "$as_me:$LINENO: checking for main in -ltk8.4" >&5
4984echo $ECHO_N "checking for main in -ltk8.4... $ECHO_C" >&6; }
4985if test "${ac_cv_lib_tk8_4_main+set}" = set; then
4986  echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988  ac_check_lib_save_LIBS=$LIBS
4989LIBS="-ltk8.4  $LIBS"
4990cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996
4997
4998int
4999main ()
5000{
5001return main ();
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext conftest$ac_exeext
5007if { (ac_try="$ac_link"
5008case "(($ac_try" in
5009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010  *) ac_try_echo=$ac_try;;
5011esac
5012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013  (eval "$ac_link") 2>conftest.er1
5014  ac_status=$?
5015  grep -v '^ *+' conftest.er1 >conftest.err
5016  rm -f conftest.er1
5017  cat conftest.err >&5
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); } && {
5020         test -z "$ac_c_werror_flag" ||
5021         test ! -s conftest.err
5022       } && test -s conftest$ac_exeext &&
5023       $as_test_x conftest$ac_exeext; then
5024  ac_cv_lib_tk8_4_main=yes
5025else
5026  echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029        ac_cv_lib_tk8_4_main=no
5030fi
5031
5032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5033      conftest$ac_exeext conftest.$ac_ext
5034LIBS=$ac_check_lib_save_LIBS
5035fi
5036{ echo "$as_me:$LINENO: result: $ac_cv_lib_tk8_4_main" >&5
5037echo "${ECHO_T}$ac_cv_lib_tk8_4_main" >&6; }
5038if test $ac_cv_lib_tk8_4_main = yes; then
5039  V_LIB_TK="-ltk8.4"
5040else
5041  V_LIB_TK="FAIL"
5042fi
5043
5044        if test "$V_LIB_TK" = FAIL; then
5045                echo "checking for libtk8.4.a"
5046                places="$PWD/../tk-8.4/unix \
5047                        $PWD/../tk8.4/unix \
5048                        $PWD/../tk/unix \
5049                        /usr/local/lib \
5050                        /usr/contrib/lib \
5051                        /usr/lib \
5052                        /usr/lib/tk \
5053                        /import/tcl/lib \
5054                        $PWD/../tk8.4 \
5055                        /usr/src/local/tk8.4 \
5056                        $prefix/lib \
5057                        $x_libraries"
5058                for dir in $places; do
5059                        if test -r $dir/libtk8.4.so -o -r $dir/libtk.dylib -o -r $dir/libtk8.4.a; then
5060                                V_LIB_TK="-L$dir -ltk8.4"
5061                                break
5062                        fi
5063                        if test -r $dir/libtk.so -o -r $dir/libtk.a; then
5064                                V_LIB_TK="-L$dir -ltk"
5065                                break
5066                        fi
5067                done
5068                if test "$V_LIB_TK" = FAIL; then
5069                        echo "can't find libtk.a"
5070                        exit 1
5071                else
5072                        if test $solaris ; then
5073                                V_LIB_TK="-R$dir $V_LIB_TK"
5074                        fi
5075                fi
5076        fi
5077        echo "checking for tk/tk.tcl"
5078        V_LIBRARY_TK=FAIL
5079        places="$PWD/../tk-8.4/library \
5080                $PWD/../tk8.4/library \
5081                $PWD/../tk/library \
5082                /usr/local/lib/tk8.4 \
5083                /System/Library/Frameworks/Tk.framework/Versions/8.4/Resources/Scripts \
5084                /usr/contrib/lib/tk8.4 \
5085                /usr/lib/tk8.4 \
5086                /usr/share/tk8.4 \
5087                /usr/lib/tk/tk8.4 \
5088                /import/tcl/lib/tk8.4 \
5089                $prefix/lib/tk8.4 \
5090                $x_libraries/tk8.4 \
5091                $PWD/../tk8.4/library \
5092                /usr/src/local/tk8.4/library \
5093                /usr/local/lib/tk \
5094                /usr/lib/tk \
5095                $x_libraries/tk"
5096        for dir in $places; do
5097                if test -r $dir/tk.tcl; then
5098                        V_LIBRARY_TK=$dir
5099                        break
5100                fi
5101        done
5102        if test "$V_LIBRARY_TK" = FAIL; then
5103                echo "can't find tk/tk.tcl"
5104                exit 1
5105        fi
5106fi
5107if test -r $V_LIBRARY_TK/optionMenu.tcl ; then
5108        V_TKDOSNAMES='$(LIBRARY_TK)/optionMenu.tcl $(LIBRARY_TK)/scrollbar.tcl'
5109        V_NEED_DL=""
5110else
5111        V_TKDOSNAMES='$(LIBRARY_TK)/optMenu.tcl $(LIBRARY_TK)/scrlbar.tcl'
5112        V_NEED_DL=YES
5113fi
5114
5115
5116
5117
5118
5119
5120
5121
5122#XXX
5123V_STATIC="-static"
5124V_LIB_GRABBER=""
5125V_INCLUDE_GRABBER=""
5126V_OBJ_GRABBER=""
5127V_LIB_XIL=""
5128V_OBJ_XIL=""
5129V_LIB_FFMPEG=""
5130V_LIB_X264=""
5131
5132
5133# Check whether --with-aix-shm was given.
5134if test "${with_aix_shm+set}" = set; then
5135  withval=$with_aix_shm; lib=$withval
5136else
5137  lib=""
5138fi
5139
5140if test "$lib" != "" ; then
5141        if test ! -r $lib ; then
5142                echo "'$lib' does not exist"
5143                exit 1
5144        fi
5145        V_LIB_AIXSHM=$lib
5146else
5147        V_LIB_AIXSHM=""
5148fi
5149
5150
5151# Check whether --with-qcam was given.
5152if test "${with_qcam+set}" = set; then
5153  withval=$with_qcam; qcamdir=$withval
5154else
5155  qcamdir=""
5156fi
5157
5158if test "$qcamdir" != "" -a ! -r $qcamdir/qcam.h ; then
5159        echo "'$dir/qcam.h' does not exist"
5160        exit 1
5161fi
5162
5163# Check whether --enable-gpl was given.
5164if test "${enable_gpl+set}" = set; then
5165  enableval=$enable_gpl; gpl="yes"
5166else
5167  gpl="no"
5168fi
5169
5170if test "$gpl" = "yes" ; then
5171  V_DEFINE="$V_DEFINE -DHAVE_SWSCALE"
5172  V_OBJ="$V_OBJ codec/packetbuffer.o codec/databuffer.o \
5173    codec/ffmpeg_codec.o codec/encoder-mpeg4.o codec/decoder-mpeg4.o \
5174    codec/x264encoder.o codec/encoder-h264.o codec/decoder-h264.o \
5175    codec/rtp_h264_depayloader.o render/color-swscale.o video/deinterlace.o"
5176else
5177  V_OBJ="$V_OBJ render/color-true.o  render/color-hi.o"
5178fi
5179
5180# Check whether --enable-ffmpeg-co was given.
5181if test "${enable_ffmpeg_co+set}" = set; then
5182  enableval=$enable_ffmpeg_co; ffmpegco="no"
5183else
5184  ffmpegco="yes"
5185fi
5186
5187if test "$ffmpegco" = "yes" ; then
5188  if test "$gpl" = "yes" ; then
5189   if test ! -r "ffmpeg" ; then
5190     echo "checking out r7110 (and 21687 of libswscale) of ffmpeg from  svn://svn.mplayerhq.hu/ffmpeg/trunk..."
5191     svn checkout -r 7110 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
5192     svn checkout -r 21687 svn://svn.mplayerhq.hu/mplayer/trunk/libswscale  ffmpeg/libswscale
5193     echo "Configuring ffmpeg..."
5194     cd ffmpeg; ./configure --prefix=$V_PATH/ffmpeg --enable-gpl --enable-swscaler --enable-pp; cd ..
5195   fi
5196   V_INCLUDE="$V_INCLUDE -Iffmpeg/libavformat -Iffmpeg/include/ffmpeg -Iffmpeg/include"
5197   V_CODEC_LIB="$V_CODEC_LIB ffmpeg/lib/libavcodec.a ffmpeg/lib/libavutil.a ffmpeg/lib/libswscale.a ffmpeg/lib/libpostproc.a"
5198  else
5199    echo "ffmpeg not available without --enable-gpl"
5200  fi
5201fi
5202
5203# Check whether --enable-x264-co was given.
5204if test "${enable_x264_co+set}" = set; then
5205  enableval=$enable_x264_co; x264co="no"
5206else
5207  x264co="yes"
5208fi
5209
5210if test "$x264co" = "yes" ; then
5211  if test "$gpl" = "yes" ; then
5212   if test ! -r "x264" ; then
5213     echo "checking out r650 of x264 from  svn co svn://svn.videolan.org/x264/trunk..."
5214     svn checkout -r 650 svn://svn.videolan.org/x264/trunk x264
5215     echo "Configuring x264..."
5216     cd x264; ./configure --prefix=$V_PATH/x264; cd ..
5217   fi
5218   V_INCLUDE="$V_INCLUDE -Ix264/include"
5219   V_CODEC_LIB="$V_CODEC_LIB x264/lib/libx264.a"
5220  else
5221    echo "x264 not available without --enable-gpl"
5222  fi
5223fi
5224
5225
5226# Check whether --with-ffmpeginc was given.
5227if test "${with_ffmpeginc+set}" = set; then
5228  withval=$with_ffmpeginc; ffmpeginc=$withval
5229else
5230  ffmpeginc=""
5231fi
5232
5233
5234# Check whether --with-ffmpeglib was given.
5235if test "${with_ffmpeglib+set}" = set; then
5236  withval=$with_ffmpeglib; ffmpeglib=$withval
5237else
5238  ffmpeglib=""
5239fi
5240
5241
5242if test "$gpl" = "yes" ; then
5243  if test "$ffmpegco" != "yes"; then
5244
5245        if test "$ffmpeginc" != "" ; then
5246           if test ! -r $ffmpeginc/ffmpeg/avcodec.h ; then
5247                echo "Error! you need to have $ffmpeginc/ffmpeg/avcodec.h around"
5248                exit 1
5249           elif test ! -r $ffmpeginc/ffmpeg/avutil.h ; then
5250                echo "Error! you need to have $ffmpeginc/ffmpeg/avutil.h around"
5251                exit 1
5252           elif test ! -r $ffmpeginc/ffmpeg/swscale.h ; then
5253                echo "Error! you need to have $ffmpeginc/ffmpeg/swscale.h around"
5254                exit 1
5255           fi
5256           echo "checking for FFmpeg headers...yes"
5257           V_INCLUDE="$V_INCLUDE -I$ffmpeginc"
5258
5259        else
5260
5261           if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
5262  { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
5263echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
5264if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
5265  echo $ECHO_N "(cached) $ECHO_C" >&6
5266fi
5267{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
5268echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
5269else
5270  # Is the header compilable?
5271{ echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
5272echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
5273cat >conftest.$ac_ext <<_ACEOF
5274/* confdefs.h.  */
5275_ACEOF
5276cat confdefs.h >>conftest.$ac_ext
5277cat >>conftest.$ac_ext <<_ACEOF
5278/* end confdefs.h.  */
5279$ac_includes_default
5280#include <ffmpeg/avcodec.h>
5281_ACEOF
5282rm -f conftest.$ac_objext
5283if { (ac_try="$ac_compile"
5284case "(($ac_try" in
5285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286  *) ac_try_echo=$ac_try;;
5287esac
5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289  (eval "$ac_compile") 2>conftest.er1
5290  ac_status=$?
5291  grep -v '^ *+' conftest.er1 >conftest.err
5292  rm -f conftest.er1
5293  cat conftest.err >&5
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); } && {
5296         test -z "$ac_c_werror_flag" ||
5297         test ! -s conftest.err
5298       } && test -s conftest.$ac_objext; then
5299  ac_header_compiler=yes
5300else
5301  echo "$as_me: failed program was:" >&5
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
5304        ac_header_compiler=no
5305fi
5306
5307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5309echo "${ECHO_T}$ac_header_compiler" >&6; }
5310
5311# Is the header present?
5312{ echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
5313echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
5314cat >conftest.$ac_ext <<_ACEOF
5315/* confdefs.h.  */
5316_ACEOF
5317cat confdefs.h >>conftest.$ac_ext
5318cat >>conftest.$ac_ext <<_ACEOF
5319/* end confdefs.h.  */
5320#include <ffmpeg/avcodec.h>
5321_ACEOF
5322if { (ac_try="$ac_cpp conftest.$ac_ext"
5323case "(($ac_try" in
5324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325  *) ac_try_echo=$ac_try;;
5326esac
5327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } >/dev/null && {
5335         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5336         test ! -s conftest.err
5337       }; then
5338  ac_header_preproc=yes
5339else
5340  echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343  ac_header_preproc=no
5344fi
5345
5346rm -f conftest.err conftest.$ac_ext
5347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5348echo "${ECHO_T}$ac_header_preproc" >&6; }
5349
5350# So?  What about this header?
5351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5352  yes:no: )
5353    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
5354echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5355    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
5356echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
5357    ac_header_preproc=yes
5358    ;;
5359  no:yes:* )
5360    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
5361echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
5362    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite headers?" >&5
5363echo "$as_me: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite headers?" >&2;}
5364    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
5365echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
5366    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&5
5367echo "$as_me: WARNING: ffmpeg/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5368    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
5369echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
5370    { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
5371echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
5372
5373    ;;
5374esac
5375{ echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
5376echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
5377if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
5381fi
5382{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
5383echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
5384
5385fi
5386if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
5387  :
5388else
5389
5390                echo "Error! you need to have avcodec.h around."
5391                exit -1
5392
5393fi
5394
5395
5396           if test "${ac_cv_header_ffmpeg_avutil_h+set}" = set; then
5397  { echo "$as_me:$LINENO: checking for ffmpeg/avutil.h" >&5
5398echo $ECHO_N "checking for ffmpeg/avutil.h... $ECHO_C" >&6; }
5399if test "${ac_cv_header_ffmpeg_avutil_h+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401fi
5402{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avutil_h" >&5
5403echo "${ECHO_T}$ac_cv_header_ffmpeg_avutil_h" >&6; }
5404else
5405  # Is the header compilable?
5406{ echo "$as_me:$LINENO: checking ffmpeg/avutil.h usability" >&5
5407echo $ECHO_N "checking ffmpeg/avutil.h usability... $ECHO_C" >&6; }
5408cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h.  */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h.  */
5414$ac_includes_default
5415#include <ffmpeg/avutil.h>
5416_ACEOF
5417rm -f conftest.$ac_objext
5418if { (ac_try="$ac_compile"
5419case "(($ac_try" in
5420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421  *) ac_try_echo=$ac_try;;
5422esac
5423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424  (eval "$ac_compile") 2>conftest.er1
5425  ac_status=$?
5426  grep -v '^ *+' conftest.er1 >conftest.err
5427  rm -f conftest.er1
5428  cat conftest.err >&5
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); } && {
5431         test -z "$ac_c_werror_flag" ||
5432         test ! -s conftest.err
5433       } && test -s conftest.$ac_objext; then
5434  ac_header_compiler=yes
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439        ac_header_compiler=no
5440fi
5441
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5444echo "${ECHO_T}$ac_header_compiler" >&6; }
5445
5446# Is the header present?
5447{ echo "$as_me:$LINENO: checking ffmpeg/avutil.h presence" >&5
5448echo $ECHO_N "checking ffmpeg/avutil.h presence... $ECHO_C" >&6; }
5449cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h.  */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h.  */
5455#include <ffmpeg/avutil.h>
5456_ACEOF
5457if { (ac_try="$ac_cpp conftest.$ac_ext"
5458case "(($ac_try" in
5459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460  *) ac_try_echo=$ac_try;;
5461esac
5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } >/dev/null && {
5470         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5471         test ! -s conftest.err
5472       }; then
5473  ac_header_preproc=yes
5474else
5475  echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478  ac_header_preproc=no
5479fi
5480
5481rm -f conftest.err conftest.$ac_ext
5482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5483echo "${ECHO_T}$ac_header_preproc" >&6; }
5484
5485# So?  What about this header?
5486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5487  yes:no: )
5488    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
5489echo "$as_me: WARNING: ffmpeg/avutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5490    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: proceeding with the compiler's result" >&5
5491echo "$as_me: WARNING: ffmpeg/avutil.h: proceeding with the compiler's result" >&2;}
5492    ac_header_preproc=yes
5493    ;;
5494  no:yes:* )
5495    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: present but cannot be compiled" >&5
5496echo "$as_me: WARNING: ffmpeg/avutil.h: present but cannot be compiled" >&2;}
5497    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h:     check for missing prerequisite headers?" >&5
5498echo "$as_me: WARNING: ffmpeg/avutil.h:     check for missing prerequisite headers?" >&2;}
5499    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: see the Autoconf documentation" >&5
5500echo "$as_me: WARNING: ffmpeg/avutil.h: see the Autoconf documentation" >&2;}
5501    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h:     section \"Present But Cannot Be Compiled\"" >&5
5502echo "$as_me: WARNING: ffmpeg/avutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5503    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: proceeding with the preprocessor's result" >&5
5504echo "$as_me: WARNING: ffmpeg/avutil.h: proceeding with the preprocessor's result" >&2;}
5505    { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: in the future, the compiler will take precedence" >&5
5506echo "$as_me: WARNING: ffmpeg/avutil.h: in the future, the compiler will take precedence" >&2;}
5507
5508    ;;
5509esac
5510{ echo "$as_me:$LINENO: checking for ffmpeg/avutil.h" >&5
5511echo $ECHO_N "checking for ffmpeg/avutil.h... $ECHO_C" >&6; }
5512if test "${ac_cv_header_ffmpeg_avutil_h+set}" = set; then
5513  echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515  ac_cv_header_ffmpeg_avutil_h=$ac_header_preproc
5516fi
5517{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avutil_h" >&5
5518echo "${ECHO_T}$ac_cv_header_ffmpeg_avutil_h" >&6; }
5519
5520fi
5521if test $ac_cv_header_ffmpeg_avutil_h = yes; then
5522  :
5523else
5524
5525                echo "Error! you need to have avutil.h around."
5526                exit -1
5527
5528fi
5529
5530
5531           if test "${ac_cv_header_ffmpeg_swscale_h+set}" = set; then
5532  { echo "$as_me:$LINENO: checking for ffmpeg/swscale.h" >&5
5533echo $ECHO_N "checking for ffmpeg/swscale.h... $ECHO_C" >&6; }
5534if test "${ac_cv_header_ffmpeg_swscale_h+set}" = set; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536fi
5537{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_swscale_h" >&5
5538echo "${ECHO_T}$ac_cv_header_ffmpeg_swscale_h" >&6; }
5539else
5540  # Is the header compilable?
5541{ echo "$as_me:$LINENO: checking ffmpeg/swscale.h usability" >&5
5542echo $ECHO_N "checking ffmpeg/swscale.h usability... $ECHO_C" >&6; }
5543cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h.  */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h.  */
5549$ac_includes_default
5550#include <ffmpeg/swscale.h>
5551_ACEOF
5552rm -f conftest.$ac_objext
5553if { (ac_try="$ac_compile"
5554case "(($ac_try" in
5555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556  *) ac_try_echo=$ac_try;;
5557esac
5558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559  (eval "$ac_compile") 2>conftest.er1
5560  ac_status=$?
5561  grep -v '^ *+' conftest.er1 >conftest.err
5562  rm -f conftest.er1
5563  cat conftest.err >&5
5564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565  (exit $ac_status); } && {
5566         test -z "$ac_c_werror_flag" ||
5567         test ! -s conftest.err
5568       } && test -s conftest.$ac_objext; then
5569  ac_header_compiler=yes
5570else
5571  echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
5574        ac_header_compiler=no
5575fi
5576
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5579echo "${ECHO_T}$ac_header_compiler" >&6; }
5580
5581# Is the header present?
5582{ echo "$as_me:$LINENO: checking ffmpeg/swscale.h presence" >&5
5583echo $ECHO_N "checking ffmpeg/swscale.h presence... $ECHO_C" >&6; }
5584cat >conftest.$ac_ext <<_ACEOF
5585/* confdefs.h.  */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h.  */
5590#include <ffmpeg/swscale.h>
5591_ACEOF
5592if { (ac_try="$ac_cpp conftest.$ac_ext"
5593case "(($ac_try" in
5594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595  *) ac_try_echo=$ac_try;;
5596esac
5597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5599  ac_status=$?
5600  grep -v '^ *+' conftest.er1 >conftest.err
5601  rm -f conftest.er1
5602  cat conftest.err >&5
5603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604  (exit $ac_status); } >/dev/null && {
5605         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5606         test ! -s conftest.err
5607       }; then
5608  ac_header_preproc=yes
5609else
5610  echo "$as_me: failed program was:" >&5
5611sed 's/^/| /' conftest.$ac_ext >&5
5612
5613  ac_header_preproc=no
5614fi
5615
5616rm -f conftest.err conftest.$ac_ext
5617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5618echo "${ECHO_T}$ac_header_preproc" >&6; }
5619
5620# So?  What about this header?
5621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5622  yes:no: )
5623    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: accepted by the compiler, rejected by the preprocessor!" >&5
5624echo "$as_me: WARNING: ffmpeg/swscale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5625    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: proceeding with the compiler's result" >&5
5626echo "$as_me: WARNING: ffmpeg/swscale.h: proceeding with the compiler's result" >&2;}
5627    ac_header_preproc=yes
5628    ;;
5629  no:yes:* )
5630    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: present but cannot be compiled" >&5
5631echo "$as_me: WARNING: ffmpeg/swscale.h: present but cannot be compiled" >&2;}
5632    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h:     check for missing prerequisite headers?" >&5
5633echo "$as_me: WARNING: ffmpeg/swscale.h:     check for missing prerequisite headers?" >&2;}
5634    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: see the Autoconf documentation" >&5
5635echo "$as_me: WARNING: ffmpeg/swscale.h: see the Autoconf documentation" >&2;}
5636    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h:     section \"Present But Cannot Be Compiled\"" >&5
5637echo "$as_me: WARNING: ffmpeg/swscale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5638    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: proceeding with the preprocessor's result" >&5
5639echo "$as_me: WARNING: ffmpeg/swscale.h: proceeding with the preprocessor's result" >&2;}
5640    { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: in the future, the compiler will take precedence" >&5
5641echo "$as_me: WARNING: ffmpeg/swscale.h: in the future, the compiler will take precedence" >&2;}
5642
5643    ;;
5644esac
5645{ echo "$as_me:$LINENO: checking for ffmpeg/swscale.h" >&5
5646echo $ECHO_N "checking for ffmpeg/swscale.h... $ECHO_C" >&6; }
5647if test "${ac_cv_header_ffmpeg_swscale_h+set}" = set; then
5648  echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650  ac_cv_header_ffmpeg_swscale_h=$ac_header_preproc
5651fi
5652{ echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_swscale_h" >&5
5653echo "${ECHO_T}$ac_cv_header_ffmpeg_swscale_h" >&6; }
5654
5655fi
5656if test $ac_cv_header_ffmpeg_swscale_h = yes; then
5657  :
5658else
5659
5660                echo "Error! you need to have swscale.h around."
5661                exit -1
5662
5663fi
5664
5665
5666        fi
5667
5668        if test "$ffmpeglib" != "" ; then
5669           if test ! -r $ffmpeglib/libavcodec.a ; then
5670                echo "Error! you need to have $ffmpeglib/libavcodec.a around"
5671           elif test ! -r $ffmpeglib/libavutil.a ; then
5672                echo "Error! you need to have $ffmpeglib/libavutil.a around"
5673           elif test ! -r $ffmpeglib/libswscale.a ; then
5674                echo "Error! you need to have $ffmpeglib/libswscale.a around"
5675           elif test ! -r $ffmpeglib/libpostproc.a ; then
5676                echo "Error! you need to have $ffmpeglib/libpostproc.a around"
5677           fi
5678
5679           V_LIB_FFMPEG="-L$ffmpeglib -lavcodec -lavutil -lswscale -lpostproc"
5680        else
5681
5682{ echo "$as_me:$LINENO: checking for main in -lavcodec" >&5
5683echo $ECHO_N "checking for main in -lavcodec... $ECHO_C" >&6; }
5684if test "${ac_cv_lib_avcodec_main+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  ac_check_lib_save_LIBS=$LIBS
5688LIBS="-lavcodec  $LIBS"
5689cat >conftest.$ac_ext <<_ACEOF
5690/* confdefs.h.  */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h.  */
5695
5696
5697int
5698main ()
5699{
5700return main ();
5701  ;
5702  return 0;
5703}
5704_ACEOF
5705rm -f conftest.$ac_objext conftest$ac_exeext
5706if { (ac_try="$ac_link"
5707case "(($ac_try" in
5708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709  *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712  (eval "$ac_link") 2>conftest.er1
5713  ac_status=$?
5714  grep -v '^ *+' conftest.er1 >conftest.err
5715  rm -f conftest.er1
5716  cat conftest.err >&5
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); } && {
5719         test -z "$ac_c_werror_flag" ||
5720         test ! -s conftest.err
5721       } && test -s conftest$ac_exeext &&
5722       $as_test_x conftest$ac_exeext; then
5723  ac_cv_lib_avcodec_main=yes
5724else
5725  echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728        ac_cv_lib_avcodec_main=no
5729fi
5730
5731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5732      conftest$ac_exeext conftest.$ac_ext
5733LIBS=$ac_check_lib_save_LIBS
5734fi
5735{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5
5736echo "${ECHO_T}$ac_cv_lib_avcodec_main" >&6; }
5737if test $ac_cv_lib_avcodec_main = yes; then
5738  cat >>confdefs.h <<_ACEOF
5739#define HAVE_LIBAVCODEC 1
5740_ACEOF
5741
5742  LIBS="-lavcodec $LIBS"
5743
5744else
5745
5746                echo "Error! you need to have libavcodec around."
5747                exit -1
5748
5749fi
5750
5751
5752{ echo "$as_me:$LINENO: checking for main in -lavutil" >&5
5753echo $ECHO_N "checking for main in -lavutil... $ECHO_C" >&6; }
5754if test "${ac_cv_lib_avutil_main+set}" = set; then
5755  echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757  ac_check_lib_save_LIBS=$LIBS
5758LIBS="-lavutil  $LIBS"
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h.  */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h.  */
5765
5766
5767int
5768main ()
5769{
5770return main ();
5771  ;
5772  return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext conftest$ac_exeext
5776if { (ac_try="$ac_link"
5777case "(($ac_try" in
5778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779  *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782  (eval "$ac_link") 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } && {
5789         test -z "$ac_c_werror_flag" ||
5790         test ! -s conftest.err
5791       } && test -s conftest$ac_exeext &&
5792       $as_test_x conftest$ac_exeext; then
5793  ac_cv_lib_avutil_main=yes
5794else
5795  echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798        ac_cv_lib_avutil_main=no
5799fi
5800
5801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802      conftest$ac_exeext conftest.$ac_ext
5803LIBS=$ac_check_lib_save_LIBS
5804fi
5805{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5
5806echo "${ECHO_T}$ac_cv_lib_avutil_main" >&6; }
5807if test $ac_cv_lib_avutil_main = yes; then
5808  cat >>confdefs.h <<_ACEOF
5809#define HAVE_LIBAVUTIL 1
5810_ACEOF
5811
5812  LIBS="-lavutil $LIBS"
5813
5814else
5815
5816                echo "Error! you need to have libavutil around."
5817                exit -1
5818
5819fi
5820
5821
5822{ echo "$as_me:$LINENO: checking for main in -lswscale" >&5
5823echo $ECHO_N "checking for main in -lswscale... $ECHO_C" >&6; }
5824if test "${ac_cv_lib_swscale_main+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  ac_check_lib_save_LIBS=$LIBS
5828LIBS="-lswscale  $LIBS"
5829cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h.  */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h.  */
5835
5836
5837int
5838main ()
5839{
5840return main ();
5841  ;
5842  return 0;
5843}
5844_ACEOF
5845rm -f conftest.$ac_objext conftest$ac_exeext
5846if { (ac_try="$ac_link"
5847case "(($ac_try" in
5848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849  *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852  (eval "$ac_link") 2>conftest.er1
5853  ac_status=$?
5854  grep -v '^ *+' conftest.er1 >conftest.err
5855  rm -f conftest.er1
5856  cat conftest.err >&5
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); } && {
5859         test -z "$ac_c_werror_flag" ||
5860         test ! -s conftest.err
5861       } && test -s conftest$ac_exeext &&
5862       $as_test_x conftest$ac_exeext; then
5863  ac_cv_lib_swscale_main=yes
5864else
5865  echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868        ac_cv_lib_swscale_main=no
5869fi
5870
5871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5872      conftest$ac_exeext conftest.$ac_ext
5873LIBS=$ac_check_lib_save_LIBS
5874fi
5875{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
5876echo "${ECHO_T}$ac_cv_lib_swscale_main" >&6; }
5877if test $ac_cv_lib_swscale_main = yes; then
5878  cat >>confdefs.h <<_ACEOF
5879#define HAVE_LIBSWSCALE 1
5880_ACEOF
5881
5882  LIBS="-lswscale $LIBS"
5883
5884else
5885
5886                echo "Error! you need to have libswscale around."
5887                exit -1
5888
5889fi
5890
5891
5892
5893{ echo "$as_me:$LINENO: checking for main in -lpostproc" >&5
5894echo $ECHO_N "checking for main in -lpostproc... $ECHO_C" >&6; }
5895if test "${ac_cv_lib_postproc_main+set}" = set; then
5896  echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898  ac_check_lib_save_LIBS=$LIBS
5899LIBS="-lpostproc  $LIBS"
5900cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h.  */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h.  */
5906
5907
5908int
5909main ()
5910{
5911return main ();
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext conftest$ac_exeext
5917if { (ac_try="$ac_link"
5918case "(($ac_try" in
5919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920  *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923  (eval "$ac_link") 2>conftest.er1
5924  ac_status=$?
5925  grep -v '^ *+' conftest.er1 >conftest.err
5926  rm -f conftest.er1
5927  cat conftest.err >&5
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); } && {
5930         test -z "$ac_c_werror_flag" ||
5931         test ! -s conftest.err
5932       } && test -s conftest$ac_exeext &&
5933       $as_test_x conftest$ac_exeext; then
5934  ac_cv_lib_postproc_main=yes
5935else
5936  echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939        ac_cv_lib_postproc_main=no
5940fi
5941
5942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943      conftest$ac_exeext conftest.$ac_ext
5944LIBS=$ac_check_lib_save_LIBS
5945fi
5946{ echo "$as_me:$LINENO: result: $ac_cv_lib_postproc_main" >&5
5947echo "${ECHO_T}$ac_cv_lib_postproc_main" >&6; }
5948if test $ac_cv_lib_postproc_main = yes; then
5949  cat >>confdefs.h <<_ACEOF
5950#define HAVE_LIBPOSTPROC 1
5951_ACEOF
5952
5953  LIBS="-lpostproc $LIBS"
5954
5955else
5956
5957                echo "Error! you need to have libpostproc around."
5958                exit -1
5959
5960fi
5961
5962
5963           V_LIB_FFMPEG="-lavcodec -lavutil -lswscale -lpostproc"
5964        fi
5965  fi
5966fi
5967
5968
5969# Check whether --with-x264inc was given.
5970if test "${with_x264inc+set}" = set; then
5971  withval=$with_x264inc; x264inc=$withval
5972else
5973  x264inc=""
5974fi
5975
5976
5977# Check whether --with-x264lib was given.
5978if test "${with_x264lib+set}" = set; then
5979  withval=$with_x264lib; x264lib=$withval
5980else
5981  x264lib=""
5982fi
5983
5984if test "$gpl" = "yes" ; then
5985  if test "$x264co" != "yes" ; then
5986        if test "$x264inc" != "" ; then
5987           if test ! -r $x264inc/x264.h ; then
5988                echo "Error! you need to have $x264inc/x264.h around."
5989                exit 1
5990           fi
5991           V_INCLUDE="$V_INCLUDE -I$x264inc"
5992        elif test ! -r /usr/local/include/x264.h -a ! -r /usr/include/x264.h ; then
5993                echo "Error! you need to have x264.h around."
5994                exit 1
5995        else
5996           echo "checking for x264.h...yes"
5997        fi
5998
5999        if test "$x264lib" != "" ; then
6000           if test ! -r $x264lib/libx264.a ; then
6001                echo "Error! you need to have $x264lib/libx264.a around"
6002                exit 1
6003           fi
6004           V_LIB_X264="-L$x264lib -lx264"
6005        else
6006
6007{ echo "$as_me:$LINENO: checking for main in -lx264" >&5
6008echo $ECHO_N "checking for main in -lx264... $ECHO_C" >&6; }
6009if test "${ac_cv_lib_x264_main+set}" = set; then
6010  echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012  ac_check_lib_save_LIBS=$LIBS
6013LIBS="-lx264  $LIBS"
6014cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h.  */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h.  */
6020
6021
6022int
6023main ()
6024{
6025return main ();
6026  ;
6027  return 0;
6028}
6029_ACEOF
6030rm -f conftest.$ac_objext conftest$ac_exeext
6031if { (ac_try="$ac_link"
6032case "(($ac_try" in
6033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034  *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037  (eval "$ac_link") 2>conftest.er1
6038  ac_status=$?
6039  grep -v '^ *+' conftest.er1 >conftest.err
6040  rm -f conftest.er1
6041  cat conftest.err >&5
6042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043  (exit $ac_status); } && {
6044         test -z "$ac_c_werror_flag" ||
6045         test ! -s conftest.err
6046       } && test -s conftest$ac_exeext &&
6047       $as_test_x conftest$ac_exeext; then
6048  ac_cv_lib_x264_main=yes
6049else
6050  echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053        ac_cv_lib_x264_main=no
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6057      conftest$ac_exeext conftest.$ac_ext
6058LIBS=$ac_check_lib_save_LIBS
6059fi
6060{ echo "$as_me:$LINENO: result: $ac_cv_lib_x264_main" >&5
6061echo "${ECHO_T}$ac_cv_lib_x264_main" >&6; }
6062if test $ac_cv_lib_x264_main = yes; then
6063  cat >>confdefs.h <<_ACEOF
6064#define HAVE_LIBX264 1
6065_ACEOF
6066
6067  LIBS="-lx264 $LIBS"
6068
6069else
6070
6071                echo "Error! you need to have libx264 around."
6072                exit -1
6073
6074fi
6075
6076           V_LIB_X264="-lx264"
6077        fi
6078 fi
6079fi
6080
6081V_CPUDETECT=""
6082# Check whether --enable-cpudetect was given.
6083if test "${enable_cpudetect+set}" = set; then
6084  enableval=$enable_cpudetect; cpudetect="no"
6085else
6086  cpudetect="yes"
6087fi
6088
6089if test "$gpl" = "yes" ; then
6090 if test "$cpudetect" = "yes"; then
6091    echo "using CPU runtime detection..."
6092    V_CPUDETECT="-DRUNTIME_CPUDETECT"
6093    V_CPUDETECT_OBJ="cpu/cpudetect.o cpu/cpuid.o"
6094 fi
6095 else
6096   echo "No runtime cputect without --enable-gpl"
6097fi
6098
6099V_H261AS=""
6100# Check whether --enable-h261as was given.
6101if test "${enable_h261as+set}" = set; then
6102  enableval=$enable_h261as; h261as=no
6103else
6104  h261as=yes
6105fi
6106
6107if test "$h261as" = "yes"; then
6108   V_OBJ="$V_OBJ codec/p64/p64as.o codec/decoder-h261as.o codec/encoder-h261as.o"
6109   V_H261AS="-DUSE_H261AS"
6110fi
6111
6112V_DV=""
6113# Check whether --enable-dvdecode was given.
6114if test "${enable_dvdecode+set}" = set; then
6115  enableval=$enable_dvdecode; dvdecode=yes
6116else
6117  dvdecode=no
6118fi
6119
6120if test "$dvdecode" = "yes"; then
6121
6122{ echo "$as_me:$LINENO: checking for main in -ldv" >&5
6123echo $ECHO_N "checking for main in -ldv... $ECHO_C" >&6; }
6124if test "${ac_cv_lib_dv_main+set}" = set; then
6125  echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127  ac_check_lib_save_LIBS=$LIBS
6128LIBS="-ldv  $LIBS"
6129cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h.  */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h.  */
6135
6136
6137int
6138main ()
6139{
6140return main ();
6141  ;
6142  return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (ac_try="$ac_link"
6147case "(($ac_try" in
6148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149  *) ac_try_echo=$ac_try;;
6150esac
6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152  (eval "$ac_link") 2>conftest.er1
6153  ac_status=$?
6154  grep -v '^ *+' conftest.er1 >conftest.err
6155  rm -f conftest.er1
6156  cat conftest.err >&5
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); } && {
6159         test -z "$ac_c_werror_flag" ||
6160         test ! -s conftest.err
6161       } && test -s conftest$ac_exeext &&
6162       $as_test_x conftest$ac_exeext; then
6163  ac_cv_lib_dv_main=yes
6164else
6165  echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168        ac_cv_lib_dv_main=no
6169fi
6170
6171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6172      conftest$ac_exeext conftest.$ac_ext
6173LIBS=$ac_check_lib_save_LIBS
6174fi
6175{ echo "$as_me:$LINENO: result: $ac_cv_lib_dv_main" >&5
6176echo "${ECHO_T}$ac_cv_lib_dv_main" >&6; }
6177if test $ac_cv_lib_dv_main = yes; then
6178  cat >>confdefs.h <<_ACEOF
6179#define HAVE_LIBDV 1
6180_ACEOF
6181
6182  LIBS="-ldv $LIBS"
6183
6184else
6185
6186      echo "Error! libdv not available. Please install libdv."
6187      exit 1
6188
6189fi
6190
6191
6192for ac_header in libdv/dv.h
6193do
6194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6196  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6199  echo $ECHO_N "(cached) $ECHO_C" >&6
6200fi
6201ac_res=`eval echo '${'$as_ac_Header'}'`
6202               { echo "$as_me:$LINENO: result: $ac_res" >&5
6203echo "${ECHO_T}$ac_res" >&6; }
6204else
6205  # Is the header compilable?
6206{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6208cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h.  */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h.  */
6214$ac_includes_default
6215#include <$ac_header>
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (ac_try="$ac_compile"
6219case "(($ac_try" in
6220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221  *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224  (eval "$ac_compile") 2>conftest.er1
6225  ac_status=$?
6226  grep -v '^ *+' conftest.er1 >conftest.err
6227  rm -f conftest.er1
6228  cat conftest.err >&5
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); } && {
6231         test -z "$ac_c_werror_flag" ||
6232         test ! -s conftest.err
6233       } && test -s conftest.$ac_objext; then
6234  ac_header_compiler=yes
6235else
6236  echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239        ac_header_compiler=no
6240fi
6241
6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6244echo "${ECHO_T}$ac_header_compiler" >&6; }
6245
6246# Is the header present?
6247{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6249cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h.  */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h.  */
6255#include <$ac_header>
6256_ACEOF
6257if { (ac_try="$ac_cpp conftest.$ac_ext"
6258case "(($ac_try" in
6259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260  *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6264  ac_status=$?
6265  grep -v '^ *+' conftest.er1 >conftest.err
6266  rm -f conftest.er1
6267  cat conftest.err >&5
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); } >/dev/null && {
6270         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6271         test ! -s conftest.err
6272       }; then
6273  ac_header_preproc=yes
6274else
6275  echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278  ac_header_preproc=no
6279fi
6280
6281rm -f conftest.err conftest.$ac_ext
6282{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283echo "${ECHO_T}$ac_header_preproc" >&6; }
6284
6285# So?  What about this header?
6286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6287  yes:no: )
6288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6292    ac_header_preproc=yes
6293    ;;
6294  no:yes:* )
6295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6307
6308    ;;
6309esac
6310{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6313  echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315  eval "$as_ac_Header=\$ac_header_preproc"
6316fi
6317ac_res=`eval echo '${'$as_ac_Header'}'`
6318               { echo "$as_me:$LINENO: result: $ac_res" >&5
6319echo "${ECHO_T}$ac_res" >&6; }
6320
6321fi
6322if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323  cat >>confdefs.h <<_ACEOF
6324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6325_ACEOF
6326
6327else
6328
6329      echo "Error! libdv/dv.h not found. Please install libdv developer package."
6330      exit 1
6331
6332fi
6333
6334done
6335
6336   V_OBJ="$V_OBJ codec/decoder-dv.o"
6337   V_DV="-DUSE_DVDECODER"
6338   V_LIB="$V_LIB -ldv"
6339fi
6340
6341V_XV=""
6342# Check whether --enable-xvideo was given.
6343if test "${enable_xvideo+set}" = set; then
6344  enableval=$enable_xvideo; xvideo=yes
6345else
6346  xvideo=no
6347fi
6348
6349if test "$xvideo" = "yes"; then
6350
6351      { echo "$as_me:$LINENO: checking for XvQueryExtension in -lXv_pic" >&5
6352echo $ECHO_N "checking for XvQueryExtension in -lXv_pic... $ECHO_C" >&6; }
6353if test "${ac_cv_lib_Xv_pic_XvQueryExtension+set}" = set; then
6354  echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356  ac_check_lib_save_LIBS=$LIBS
6357LIBS="-lXv_pic -lXext $LIBS"
6358cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364
6365/* Override any GCC internal prototype to avoid an error.
6366   Use char because int might match the return type of a GCC
6367   builtin and then its argument prototype would still apply.  */
6368#ifdef __cplusplus
6369extern "C"
6370#endif
6371char XvQueryExtension ();
6372int
6373main ()
6374{
6375return XvQueryExtension ();
6376  ;
6377  return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext conftest$ac_exeext
6381if { (ac_try="$ac_link"
6382case "(($ac_try" in
6383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384  *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387  (eval "$ac_link") 2>conftest.er1
6388  ac_status=$?
6389  grep -v '^ *+' conftest.er1 >conftest.err
6390  rm -f conftest.er1
6391  cat conftest.err >&5
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); } && {
6394         test -z "$ac_c_werror_flag" ||
6395         test ! -s conftest.err
6396       } && test -s conftest$ac_exeext &&
6397       $as_test_x conftest$ac_exeext; then
6398  ac_cv_lib_Xv_pic_XvQueryExtension=yes
6399else
6400  echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
6403        ac_cv_lib_Xv_pic_XvQueryExtension=no
6404fi
6405
6406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407      conftest$ac_exeext conftest.$ac_ext
6408LIBS=$ac_check_lib_save_LIBS
6409fi
6410{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_pic_XvQueryExtension" >&5
6411echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvQueryExtension" >&6; }
6412if test $ac_cv_lib_Xv_pic_XvQueryExtension = yes; then
6413  HAVE_XVIDEO="yes"
6414else
6415  HAVE_XVIDEO="no"
6416fi
6417
6418   if test $HAVE_XVIDEO = "yes"; then
6419        V_LIB="$V_LIB -lXv_pic"
6420        V_XV="-DHAVE_XVIDEO"
6421        V_OBJ="$V_OBJ render/xvideo.o"
6422   else
6423
6424        { echo "$as_me:$LINENO: checking for XvQueryExtension in -lXv" >&5
6425echo $ECHO_N "checking for XvQueryExtension in -lXv... $ECHO_C" >&6; }
6426if test "${ac_cv_lib_Xv_XvQueryExtension+set}" = set; then
6427  echo $ECHO_N "(cached) $ECHO_C" >&6
6428else
6429  ac_check_lib_save_LIBS=$LIBS
6430LIBS="-lXv -lXext $LIBS"
6431cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h.  */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
6436/* end confdefs.h.  */
6437
6438/* Override any GCC internal prototype to avoid an error.
6439   Use char because int might match the return type of a GCC
6440   builtin and then its argument prototype would still apply.  */
6441#ifdef __cplusplus
6442extern "C"
6443#endif
6444char XvQueryExtension ();
6445int
6446main ()
6447{
6448return XvQueryExtension ();
6449  ;
6450  return 0;
6451}
6452_ACEOF
6453rm -f conftest.$ac_objext conftest$ac_exeext
6454if { (ac_try="$ac_link"
6455case "(($ac_try" in
6456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457  *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460  (eval "$ac_link") 2>conftest.er1
6461  ac_status=$?
6462  grep -v '^ *+' conftest.er1 >conftest.err
6463  rm -f conftest.er1
6464  cat conftest.err >&5
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); } && {
6467         test -z "$ac_c_werror_flag" ||
6468         test ! -s conftest.err
6469       } && test -s conftest$ac_exeext &&
6470       $as_test_x conftest$ac_exeext; then
6471  ac_cv_lib_Xv_XvQueryExtension=yes
6472else
6473  echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476        ac_cv_lib_Xv_XvQueryExtension=no
6477fi
6478
6479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6480      conftest$ac_exeext conftest.$ac_ext
6481LIBS=$ac_check_lib_save_LIBS
6482fi
6483{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvQueryExtension" >&5
6484echo "${ECHO_T}$ac_cv_lib_Xv_XvQueryExtension" >&6; }
6485if test $ac_cv_lib_Xv_XvQueryExtension = yes; then
6486  HAVE_XVIDEO="yes"
6487else
6488  HAVE_XVIDEO="no"
6489fi
6490
6491
6492        if test $HAVE_XVIDEO = "yes"; then
6493            V_XV="-DHAVE_XVIDEO"
6494            V_LIB="$V_LIB -lXv"
6495            V_OBJ="$V_OBJ render/xvideo.o"
6496        fi
6497   fi
6498
6499   if test $HAVE_XVIDEO = "yes"; then
6500
6501for ac_header in X11/extensions/Xvlib.h
6502do
6503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6505  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509fi
6510ac_res=`eval echo '${'$as_ac_Header'}'`
6511               { echo "$as_me:$LINENO: result: $ac_res" >&5
6512echo "${ECHO_T}$ac_res" >&6; }
6513else
6514  # Is the header compilable?
6515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6517cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h.  */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h.  */
6523$ac_includes_default
6524#include <$ac_header>
6525_ACEOF
6526rm -f conftest.$ac_objext
6527if { (ac_try="$ac_compile"
6528case "(($ac_try" in
6529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530  *) ac_try_echo=$ac_try;;
6531esac
6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533  (eval "$ac_compile") 2>conftest.er1
6534  ac_status=$?
6535  grep -v '^ *+' conftest.er1 >conftest.err
6536  rm -f conftest.er1
6537  cat conftest.err >&5
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } && {
6540         test -z "$ac_c_werror_flag" ||
6541         test ! -s conftest.err
6542       } && test -s conftest.$ac_objext; then
6543  ac_header_compiler=yes
6544else
6545  echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548        ac_header_compiler=no
6549fi
6550
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6553echo "${ECHO_T}$ac_header_compiler" >&6; }
6554
6555# Is the header present?
6556{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6558cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h.  */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h.  */
6564#include <$ac_header>
6565_ACEOF
6566if { (ac_try="$ac_cpp conftest.$ac_ext"
6567case "(($ac_try" in
6568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569  *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6573  ac_status=$?
6574  grep -v '^ *+' conftest.er1 >conftest.err
6575  rm -f conftest.er1
6576  cat conftest.err >&5
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); } >/dev/null && {
6579         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6580         test ! -s conftest.err
6581       }; then
6582  ac_header_preproc=yes
6583else
6584  echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587  ac_header_preproc=no
6588fi
6589
6590rm -f conftest.err conftest.$ac_ext
6591{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6592echo "${ECHO_T}$ac_header_preproc" >&6; }
6593
6594# So?  What about this header?
6595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6596  yes:no: )
6597    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6601    ac_header_preproc=yes
6602    ;;
6603  no:yes:* )
6604    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6606    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6607echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6608    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6610    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6611echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6614    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6616
6617    ;;
6618esac
6619{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624  eval "$as_ac_Header=\$ac_header_preproc"
6625fi
6626ac_res=`eval echo '${'$as_ac_Header'}'`
6627               { echo "$as_me:$LINENO: result: $ac_res" >&5
6628echo "${ECHO_T}$ac_res" >&6; }
6629
6630fi
6631if test `eval echo '${'$as_ac_Header'}'` = yes; then
6632  cat >>confdefs.h <<_ACEOF
6633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6634_ACEOF
6635
6636else
6637
6638        echo "Error! \"X11/extensions/Xvlib.h\" not found. Please install \"libxv-dev\" package."
6639                exit 1
6640
6641fi
6642
6643done
6644
6645   fi
6646fi
6647
6648# lots of hairy special cases for detecting which frame capture
6649# support to compile in
6650
6651# Check whether --enable-v4l2old was given.
6652if test "${enable_v4l2old+set}" = set; then
6653  enableval=$enable_v4l2old; v4l2old=yes
6654else
6655  v4l2old=no
6656fi
6657
6658if test "$v4l2old" = "yes" ; then
6659                V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2-old.o"
6660                echo "Using old Linux grabber-v4l2"
6661elif test -r /usr/include/linux/videodev.h ; then
6662        if grep V4L2 /usr/include/linux/videodev.h >/dev/null 2>&1  ; then
6663                #V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o video/grabber-video4linux.o"
6664                V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-video4linux.o"
6665                echo "Using Linux (new)video4linux2(2.6.x compatible) and V4L v1"
6666        else
6667                V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-video4linux.o"
6668                echo "Using Linux video4linux vers 1"
6669        fi
6670fi
6671
6672if test -r /usr/lib/libvl.so ; then
6673        V_LIB_GRABBER="$V_LIB_GRABBER -lvl -ldmedia"
6674        V_OBJ_GRABBER="video/grabber-vl.o video/output-vl.o $V_OBJ_GRABBER"
6675        if test -r /usr/include/dmedia/cl_cosmo.h  ; then
6676                V_LIB_GRABBER="$V_LIB_GRABBER -lcl"
6677                V_OBJ_GRABBER="video/grabber-cosmo.o $V_OBJ_GRABBER"
6678        fi
6679fi
6680if test -r /usr/lib/libsvideo.a ; then
6681        V_LIB_GRABBER="$V_LIB_GRABBER -lsvideo"
6682        V_OBJ_GRABBER="video/grabber-svideo.o $V_OBJ_GRABBER"
6683fi
6684
6685# Check whether --enable-XvGrabber was given.
6686if test "${enable_XvGrabber+set}" = set; then
6687  enableval=$enable_XvGrabber; XvGrabber=yes
6688else
6689  XvGrabber=no
6690fi
6691
6692if test -r /usr/lib/libXv.a -a "$XvGrabber" = "yes" ; then
6693        V_LIB_GRABBER="$V_LIB_GRABBER -lXv"
6694        V_DEFINE="$V_DEFINE -DXV_PSEUDO8"
6695        V_OBJ_GRABBER="video/grabber-xv.o $V_OBJ_GRABBER"
6696fi
6697if test -r /usr/lpp/parallax/lib/libXvid.a ; then
6698    V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/parallax/lib -lXvid -lXv"
6699    V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/parallax/include"
6700    V_OBJ_GRABBER="video/grabber-plx.o video/assistor-plx.o $V_OBJ_GRABBER"
6701fi
6702if test -r /usr/lpp/UMS6000/lib/libUMSobj.a ; then
6703        V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/UMS6000/lib -lUMSobj"
6704        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/UMS6000/include"
6705        V_DEFINE="$V_DEFINE -DSUNRISE"
6706        V_OBJ_GRABBER="video/grabber-sunrise.o video/output-sunrise.o $V_OBJ_GRABBER"
6707fi
6708
6709if test -r /usr/include/machine/ioctl_meteor.h ; then
6710        V_OBJ_GRABBER="video/grabber-meteor.o $V_OBJ_GRABBER"
6711fi
6712
6713if test -r /usr/include/libdc1394/dc1394_control.h -a -r /usr/include/libraw1394/raw1394.h; then
6714      V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-linux1394.o"
6715      V_LIB_GRABBER="$V_LIB_GRABBER -lraw1394 -ldc1394_control"
6716fi
6717
6718#if test -r /usr/local/lib/libspigot.a -a ${PORTOBJFORMAT} != elf; then
6719if test -r /usr/local/lib/libspigot.a ; then
6720        V_OBJ_GRABBER="video/grabber-spigot.o $V_OBJ_GRABBER"
6721        V_LIB_GRABBER="$V_LIB_GRABBER -lspigot"
6722        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include"
6723fi
6724
6725if test "$qcamdir" != "" ; then
6726        V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER"
6727        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$qcamdir"
6728        V_DEFINE="$V_DEFINE -DQCAMDEV -DQCAMDOTH=qcam.h"
6729elif test -r /usr/local/lib/libqcam.a ; then
6730        V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER"
6731        V_LIB_GRABBER="$V_LIB_GRABBER -lqcam"
6732        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include"
6733        V_DEFINE="$V_DEFINE -DQCAMLIB"
6734elif test -r /dev/qcam0 ; then
6735        V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER"
6736        V_DEFINE="$V_DEFINE -DQCAMDEV"
6737fi
6738vpix_dir=/usr/src/local/vfc-1.0
6739vpix_lib=$vpix_dir/vfc_lib
6740if test -d /import/VideoPix ; then
6741        vpix_dir=/import/VideoPix
6742        vpic_lib=$vpix_dir/lib
6743fi
6744if test -d $vpix_dir ; then
6745        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$vpix_dir/sys -I$vpix_lib"
6746        V_LIB_GRABBER="$V_LIB_GRABBER $vpix_lib/libvfc.a"
6747        V_DEFINE="$V_DEFINE -DVIDEOPIX"
6748        V_OBJ_GRABBER="video/grabber-vpix.o $V_OBJ_GRABBER"
6749fi
6750places="/usr/src/local/vigrapix/lib \
6751        /opt/VIGRAvigrapix/lib"
6752for dir in $places; do
6753        if test -d $dir ; then
6754                V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$dir"
6755                V_LIB_GRABBER="$V_LIB_GRABBER $dir/libvigrapix.a"
6756                V_OBJ_GRABBER="video/grabber-vigra.o $V_OBJ_GRABBER"
6757                break
6758        fi
6759done
6760
6761d=/opt/MMACslv
6762if test -d $d ; then
6763        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$d/include"
6764        V_LIB_GRABBER="$V_LIB_GRABBER $d/lib/libslv.a -lintl"
6765        V_OBJ_GRABBER="video/grabber-slv.o $V_OBJ_GRABBER"
6766fi
6767
6768d=/usr/include/mme
6769if test -d $d ; then
6770        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$d"
6771        V_LIB_GRABBER="$V_LIB_GRABBER -lmme"
6772        V_OBJ_GRABBER="video/grabber-mme.o $V_OBJ_GRABBER"
6773fi
6774
6775places="/opt/parallax \
6776        /usr/src/local/parallax \
6777        /usr/local/parallax \
6778        /usr/local/parallax/components/Xclients_sun4.ow3_1.18 \
6779        /usr/src/local/parallax/components/Xclients_sun4.ow3_1.18"
6780for dir in $places; do
6781        if test -d $dir/include ; then
6782                V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$dir/include"
6783                V_LIB_GRABBER="$V_LIB_GRABBER -L$dir/lib -lXext -lXvid"
6784                V_OBJ_GRABBER="video/grabber-plx.o video/assistor-plx.o $V_OBJ_GRABBER"
6785                break
6786        fi
6787done
6788
6789
6790case "$target" in
6791*-dec-*)
6792        jv_dir=jv2
6793        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$jv_dir"
6794        V_LIB_GRABBER="$V_LIB_GRABBER $jv_dir/jvdriverint.o"
6795        V_OBJ_GRABBER="video/assistor-jv.o video/grabber-jv.o $V_OBJ_GRABBER"
6796        if test "$target_os" = ultrix4.3 ; then
6797                #XXX rtip code currently broken
6798                #V_DEFINE="$V_DEFINE -DRTIP"
6799                #V_LIB="$V_LIB lib.ultrix/librcap.a"
6800                #V_INCLUDE="$V_INCLUDE -Ircap-include"
6801                #XXX
6802                #V_OBJ_GRABBER="$V_OBJ_GRABBER net-rtip.o"
6803                echo no rtip support
6804        fi
6805        ;;
6806sparc-sun-solaris*)
6807        V_STATIC=""
6808        have_xil=no
6809        xil_dir=/usr/openwin
6810        if test -d $xil_dir ; then
6811                if test ! -d $xil_dir/include/xil ; then
6812                        echo "You don't have the XIL developer's kit!"
6813                        echo "Building without XIL support..."
6814                else
6815                        echo "Using XIL developer's kit (Found in: $xil_dir/include/xil)"
6816                        have_xil=yes
6817                fi
6818        fi
6819        SYSINC="-I"
6820        if test $CC = gcc ; then
6821                V_DEFINE="$V_DEFINE -mv8 -msupersparc"
6822                SYSINC="-isystem "
6823        elif  test -z "$enable_debug" ; then
6824                V_CCOPT="-xO2";
6825        fi
6826        if test $ipv6 = yes; then
6827                V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris -DHAVE_IPV6 -DSOLARIS7_IPV6"
6828        else
6829                V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris"
6830        fi
6831        OPSYS=solaris
6832        if test -f video/grabber-rtvc.cpp || test -f video/grabber-rtvc.o ; then
6833                V_OBJ_GRABBER="video/grabber-rtvc.o $V_OBJ_GRABBER"
6834                if test "$have_xil" = yes ; then
6835                        V_ALL="$V_PROG $V_PROG.xil"
6836                        V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER $SYSINC$xil_dir/include -DSUNXIL_WARNING_DISABLE"
6837                        V_LIB_XIL="-L$xil_dir/lib -R\"$xil_dir/lib:/opt/SUNWo1kp/lib:/opt/MMACo1k/lib\" -lxil"
6838                        V_OBJ_XIL="video/grabber-xil.o codec/framer-h261hw.o codec/framer-cellb.o video/assistor-xil.o"
6839                fi
6840        elif test "$have_xil" = yes ; then
6841                V_OBJ_XIL="video/grabber-xil.o codec/framer-h261hw.o codec/framer-cellb.o video/assistor-xil.o"
6842                V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$xil_dir/include"
6843                V_LIB_GRABBER="$V_LIB_GRABBER -L$xil_dir/lib -R\"$xil_dir/lib:/opt/SUNWo1kp/lib:/opt/MMACo1k/lib\" -lxil "
6844        fi
6845        ;;
6846sparc-sun-sunos*)
6847        V_DEFINE="$V_DEFINE -DNEED_SUNOS_PROTOS -DSunOS"
6848        ;;
6849*-sgi-irix*)
6850        V_DEFINE="$V_DEFINE -D_BSD_SIGNALS -DIRIX"
6851        OPSYS=irix
6852        if test "$target_os" = irix6.2 ; then
6853                V_DEFINE="$V_DEFINE -DIRIX6_2 -DSIGARGS=__sigargs"
6854        fi
6855        V_TARCMD="tar cfL"
6856        V_SHELL="SHELL = /bin/sh"
6857        if test $CC != gcc ; then
6858                V_DEFINE="$V_DEFINE -signed -g3"
6859                CC="cc -Dinline="
6860                if test "$target_os" = irix5.2 ; then
6861                        CC="$CC -xansi -D__STDC__"
6862                fi
6863                CXX="CC +p -float -woff 3262 -DSGI_COMPAT"
6864        else
6865                CXX=$CC
6866        fi
6867        V_STATIC=""
6868        ;;
6869*-*-bsdi1*)
6870        V_SHM=""
6871        V_TARCMD="tar cfL"
6872        ;;
6873*-*-bsdi2.0*)
6874        V_SHM=""
6875        V_TARCMD="tar cfL"
6876        ;;
6877*-*-bsdi*)
6878        # bsdi2.1 added sys-v shared memory support but their implementation
6879        # is broken so we have to turn it off.  If they ever fix libipc,
6880        # the following line should be deleted.
6881        V_SHM=""
6882        V_TARCMD="tar cfL"
6883        V_CCOPT="-O2 -m486"
6884        V_LIB="$V_LIB -lipc"
6885        ;;
6886*-*-netbsd*)
6887        V_TARCMD="tar -h -c -f"
6888        V_LIB="$V_LIB -L/usr/local/lib"
6889        ;;
6890*-*-freebsd*)
6891        V_STATIC=""
6892        if test $ipv6 = yes; then
6893                V_DEFINE="$V_DEFINE -DFreeBSD -DHAVE_IPV6"
6894                V_LIB="$V_LIB -L/usr/local/v6/lib"
6895        else
6896                V_DEFINE="$V_DEFINE -DFreeBSD"
6897        fi
6898        OPSYS=freebsd
6899        ;;
6900*-*-hpux*)
6901        V_CCOPT="-O -DHPUX"
6902        OPSYS=hpux
6903        ;;
6904*-*-aix3*)
6905        V_STATIC=""
6906        V_DEFINE="$V_DEFINE -DSIGARGS=int -DHPUX"
6907        if test "$V_LIB_AIXSHM" != "" ; then
6908                V_LIB="$V_LIB $V_LIB_AIXSHM"
6909        else
6910                V_SHM=""
6911        fi
6912        CXX="xlC -+"
6913        ;;
6914*-*-aix4*)
6915        V_STATIC=""
6916        V_DEFINE="$V_DEFINE -DSIGARGS=int -D_AIX41"
6917        if test "$V_LIB_AIXSHM" != "" ; then
6918                V_LIB="$V_LIB $V_LIB_AIXSHM"
6919        else
6920                V_SHM=""
6921        fi
6922        CXX="xlC -+"
6923        ;;
6924armv4l-*-linux)
6925        V_STATIC=""
6926        V_BROKEN_OBJ=
6927        CC=arm-linux-gcc
6928        CPP=arm-linux-g++
6929        AR=arm-linux-ar
6930        RANLIB=arm-linux-ranlib
6931        if test $ipv6 = yes; then
6932                V_DEFINE="$V_DEFINE -DLinux -DHAVE_IPV6 -DLINUX_IPV6"
6933        else
6934                V_DEFINE="$V_DEFINE -DLinux"
6935        fi
6936        OPSYS=linux
6937        ;;
6938*-*-linux*)
6939        V_STATIC=""
6940        V_BROKEN_OBJ=
6941        if test $ipv6 = yes; then
6942                V_DEFINE="$V_DEFINE -DLinux -DHAVE_IPV6 -DLINUX_IPV6"
6943        else
6944                V_DEFINE="$V_DEFINE -DLinux"
6945        fi
6946        OPSYS=linux
6947        ;;
6948*darwin*)
6949        V_SHM=""
6950        V_STATIC=""
6951        V_BROKEN_OBJ=
6952        V_DEFINE="$V_DEFINE -DHAVE_IPV6 -DMAC_OSX_TCL -DMAC_OSX_TK -DHAVE_FAST_INT"
6953        V_LIB="$V_LIB -framework Carbon -framework QuickTime -lssl -lcrypto"
6954        if test "$target_cpu" = powerpc; then
6955            V_CCOPT="-O2 -mcpu=G3 -mtune=G4"
6956        fi
6957        OPSYS=macosx
6958        ;;
6959esac
6960
6961case "$target" in
6962   *-*-darwin*)
6963        V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-macosx.o"
6964        ;;
6965   *)
6966        V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-x11.o"
6967        ;;
6968esac
6969
6970
6971if test $CC = gcc ; then
6972     echo $ac_n "checking version of GCC""... $ac_c"
6973     GCC_version=`$CC --version`
6974     echo "$GCC_version"
6975     if test "$GCC_version" = 2.96 ; then
6976           echo "Turning off optimisation for dct code"
6977           V_CCOPT_H261="";
6978     fi
6979fi
6980
6981if test -f codec/encoder-bvc.cpp ; then
6982        V_OBJ="$V_OBJ codec/encoder-bvc.o codec/decoder-bvc.o"
6983fi
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997V_DEFINE="$V_DEFINE $V_SHM $V_H261AS $V_DV $V_XV $V_CPUDETECT -D$V_ARCH"
6998
6999
7000# tcl7.5 needs a dynamic loading library (unless built with the
7001# -disable-load flag).  Try to find the appropriate one.
7002
7003if test ! -z "$V_NEED_DL" ; then
7004        V_LIB_DL=""
7005        case "$target" in
7006        *-*-solaris*)
7007                V_LIB_DL="dl"
7008                ;;
7009        sparc-sun-sunos*)
7010                V_LIB_DL="dl"
7011                ;;
7012        *-*-hpux*)
7013                V_LIB_DL="dld"
7014                ;;
7015        *-*-linux*)
7016                { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7017echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
7018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7019  echo $ECHO_N "(cached) $ECHO_C" >&6
7020else
7021  ac_check_lib_save_LIBS=$LIBS
7022LIBS="-ldl  $LIBS"
7023cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h.  */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h.  */
7029
7030/* Override any GCC internal prototype to avoid an error.
7031   Use char because int might match the return type of a GCC
7032   builtin and then its argument prototype would still apply.  */
7033#ifdef __cplusplus
7034extern "C"
7035#endif
7036char dlopen ();
7037int
7038main ()
7039{
7040return dlopen ();
7041  ;
7042  return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext conftest$ac_exeext
7046if { (ac_try="$ac_link"
7047case "(($ac_try" in
7048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049  *) ac_try_echo=$ac_try;;
7050esac
7051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052  (eval "$ac_link") 2>conftest.er1
7053  ac_status=$?
7054  grep -v '^ *+' conftest.er1 >conftest.err
7055  rm -f conftest.er1
7056  cat conftest.err >&5
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); } && {
7059         test -z "$ac_c_werror_flag" ||
7060         test ! -s conftest.err
7061       } && test -s conftest$ac_exeext &&
7062       $as_test_x conftest$ac_exeext; then
7063  ac_cv_lib_dl_dlopen=yes
7064else
7065  echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068        ac_cv_lib_dl_dlopen=no
7069fi
7070
7071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072      conftest$ac_exeext conftest.$ac_ext
7073LIBS=$ac_check_lib_save_LIBS
7074fi
7075{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7076echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7077if test $ac_cv_lib_dl_dlopen = yes; then
7078  V_LIB_DL="dl"
7079else
7080  V_LIB_DL="dld"
7081fi
7082
7083                ;;
7084        *-*-aix4*)
7085                V_LIB_DL="ld"
7086                ;;
7087        esac
7088        if test ! -z "$V_LIB_DL" ; then
7089
7090as_ac_Lib=`echo "ac_cv_lib_$V_LIB_DL''_main" | $as_tr_sh`
7091{ echo "$as_me:$LINENO: checking for main in -l$V_LIB_DL" >&5
7092echo $ECHO_N "checking for main in -l$V_LIB_DL... $ECHO_C" >&6; }
7093if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7094  echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096  ac_check_lib_save_LIBS=$LIBS
7097LIBS="-l$V_LIB_DL $V_STATIC $LIBS"
7098cat >conftest.$ac_ext <<_ACEOF
7099/* confdefs.h.  */
7100_ACEOF
7101cat confdefs.h >>conftest.$ac_ext
7102cat >>conftest.$ac_ext <<_ACEOF
7103/* end confdefs.h.  */
7104
7105
7106int
7107main ()
7108{
7109return main ();
7110  ;
7111  return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext conftest$ac_exeext
7115if { (ac_try="$ac_link"
7116case "(($ac_try" in
7117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118  *) ac_try_echo=$ac_try;;
7119esac
7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121  (eval "$ac_link") 2>conftest.er1
7122  ac_status=$?
7123  grep -v '^ *+' conftest.er1 >conftest.err
7124  rm -f conftest.er1
7125  cat conftest.err >&5
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); } && {
7128         test -z "$ac_c_werror_flag" ||
7129         test ! -s conftest.err
7130       } && test -s conftest$ac_exeext &&
7131       $as_test_x conftest$ac_exeext; then
7132  eval "$as_ac_Lib=yes"
7133else
7134  echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137        eval "$as_ac_Lib=no"
7138fi
7139
7140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7141      conftest$ac_exeext conftest.$ac_ext
7142LIBS=$ac_check_lib_save_LIBS
7143fi
7144ac_res=`eval echo '${'$as_ac_Lib'}'`
7145               { echo "$as_me:$LINENO: result: $ac_res" >&5
7146echo "${ECHO_T}$ac_res" >&6; }
7147if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7148  cat >>confdefs.h <<_ACEOF
7149#define `echo "HAVE_LIB$V_LIB_DL" | $as_tr_cpp` 1
7150_ACEOF
7151
7152  LIBS="-l$V_LIB_DL $LIBS"
7153
7154else
7155  V_LIB_DL=""
7156fi
7157
7158        fi
7159        if test ! -z "$V_LIB_DL" ; then
7160                V_LIB="$V_LIB -l$V_LIB_DL"
7161        else
7162                echo "no dynamic load lib"
7163        fi
7164fi
7165
7166
7167
7168if test "$host_cpu" = alpha ; then
7169        V_DEFINE="$V_DEFINE -DINT_64=u_long"
7170fi
7171
7172# various include hacks
7173dirs="/usr/src/local/include-fixes \
7174        /import/mcast/include"
7175for dir in $dirs; do
7176        if test -d $dir ; then
7177                V_INCLUDE="$V_INCLUDE -I$dir"
7178        fi
7179done
7180
7181# always use -g with gcc during development (even with -O)
7182#if test "$CC" = gcc && test -f .devel ; then
7183if test "$CC" = gcc  ; then
7184        V_CCOPT="$V_CCOPT -g -W -Wall -Wno-return-type"
7185        V_CCOPT_H261="$V_CCOPT_H261 -g -W -Wall -Wno-return-type"
7186        V_DEFINE="$V_DEFINE -fsigned-char"
7187fi
7188
7189
7190V_TAR_TARGET=$target_os
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207ac_config_files="$ac_config_files Makefile"
7208
7209cat >confcache <<\_ACEOF
7210# This file is a shell script that caches the results of configure
7211# tests run on this system so they can be shared between configure
7212# scripts and configure runs, see configure's option --config-cache.
7213# It is not useful on other systems.  If it contains results you don't
7214# want to keep, you may remove or edit it.
7215#
7216# config.status only pays attention to the cache file if you give it
7217# the --recheck option to rerun configure.
7218#
7219# `ac_cv_env_foo' variables (set or unset) will be overridden when
7220# loading this file, other *unset* `ac_cv_foo' will be assigned the
7221# following values.
7222
7223_ACEOF
7224
7225# The following way of writing the cache mishandles newlines in values,
7226# but we know of no workaround that is simple, portable, and efficient.
7227# So, we kill variables containing newlines.
7228# Ultrix sh set writes to stderr and can't be redirected directly,
7229# and sets the high bit in the cache file unless we assign to the vars.
7230(
7231  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7232    eval ac_val=\$$ac_var
7233    case $ac_val in #(
7234    *${as_nl}*)
7235      case $ac_var in #(
7236      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7237echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7238      esac
7239      case $ac_var in #(
7240      _ | IFS | as_nl) ;; #(
7241      *) $as_unset $ac_var ;;
7242      esac ;;
7243    esac
7244  done
7245
7246  (set) 2>&1 |
7247    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7248    *${as_nl}ac_space=\ *)
7249      # `set' does not quote correctly, so add quotes (double-quote
7250      # substitution turns \\\\ into \\, and sed turns \\ into \).
7251      sed -n \
7252        "s/'/'\\\\''/g;
7253          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7254      ;; #(
7255    *)
7256      # `set' quotes correctly as required by POSIX, so do not add quotes.
7257      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7258      ;;
7259    esac |
7260    sort
7261) |
7262  sed '
7263     /^ac_cv_env_/b end
7264     t clear
7265     :clear
7266     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7267     t end
7268     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7269     :end' >>confcache
7270if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7271  if test -w "$cache_file"; then
7272    test "x$cache_file" != "x/dev/null" &&
7273      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7274echo "$as_me: updating cache $cache_file" >&6;}
7275    cat confcache >$cache_file
7276  else
7277    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7278echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7279  fi
7280fi
7281rm -f confcache
7282
7283test "x$prefix" = xNONE && prefix=$ac_default_prefix
7284# Let make expand exec_prefix.
7285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7286
7287# Transform confdefs.h into DEFS.
7288# Protect against shell expansion while executing Makefile rules.
7289# Protect against Makefile macro expansion.
7290#
7291# If the first sed substitution is executed (which looks for macros that
7292# take arguments), then branch to the quote section.  Otherwise,
7293# look for a macro that doesn't take arguments.
7294ac_script='
7295t clear
7296:clear
7297s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
7298t quote
7299s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
7300t quote
7301b any
7302:quote
7303s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7304s/\[/\\&/g
7305s/\]/\\&/g
7306s/\$/$$/g
7307H
7308:any
7309${
7310        g
7311        s/^\n//
7312        s/\n/ /g
7313        p
7314}
7315'
7316DEFS=`sed -n "$ac_script" confdefs.h`
7317
7318
7319ac_libobjs=
7320ac_ltlibobjs=
7321for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7322  # 1. Remove the extension, and $U if already installed.
7323  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7324  ac_i=`echo "$ac_i" | sed "$ac_script"`
7325  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7326  #    will be set to the directory where LIBOBJS objects are built.
7327  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7328  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7329done
7330LIBOBJS=$ac_libobjs
7331
7332LTLIBOBJS=$ac_ltlibobjs
7333
7334
7335
7336: ${CONFIG_STATUS=./config.status}
7337ac_clean_files_save=$ac_clean_files
7338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7339{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7340echo "$as_me: creating $CONFIG_STATUS" >&6;}
7341cat >$CONFIG_STATUS <<_ACEOF
7342#! $SHELL
7343# Generated by $as_me.
7344# Run this file to recreate the current configuration.
7345# Compiler output produced by configure, useful for debugging
7346# configure, is in config.log if it exists.
7347
7348debug=false
7349ac_cs_recheck=false
7350ac_cs_silent=false
7351SHELL=\${CONFIG_SHELL-$SHELL}
7352_ACEOF
7353
7354cat >>$CONFIG_STATUS <<\_ACEOF
7355## --------------------- ##
7356## M4sh Initialization.  ##
7357## --------------------- ##
7358
7359# Be more Bourne compatible
7360DUALCASE=1; export DUALCASE # for MKS sh
7361if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7362  emulate sh
7363  NULLCMD=:
7364  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7365  # is contrary to our usage.  Disable this feature.
7366  alias -g '${1+"$@"}'='"$@"'
7367  setopt NO_GLOB_SUBST
7368else
7369  case `(set -o) 2>/dev/null` in
7370  *posix*) set -o posix ;;
7371esac
7372
7373fi
7374
7375
7376
7377
7378# PATH needs CR
7379# Avoid depending upon Character Ranges.
7380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7383as_cr_digits='0123456789'
7384as_cr_alnum=$as_cr_Letters$as_cr_digits
7385
7386# The user is always right.
7387if test "${PATH_SEPARATOR+set}" != set; then
7388  echo "#! /bin/sh" >conf$$.sh
7389  echo  "exit 0"   >>conf$$.sh
7390  chmod +x conf$$.sh
7391  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7392    PATH_SEPARATOR=';'
7393  else
7394    PATH_SEPARATOR=:
7395  fi
7396  rm -f conf$$.sh
7397fi
7398
7399# Support unset when possible.
7400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7401  as_unset=unset
7402else
7403  as_unset=false
7404fi
7405
7406
7407# IFS
7408# We need space, tab and new line, in precisely that order.  Quoting is
7409# there to prevent editors from complaining about space-tab.
7410# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7411# splitting by setting IFS to empty value.)
7412as_nl='
7413'
7414IFS=" ""        $as_nl"
7415
7416# Find who we are.  Look in the path if we contain no directory separator.
7417case $0 in
7418  *[\\/]* ) as_myself=$0 ;;
7419  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7425done
7426IFS=$as_save_IFS
7427
7428     ;;
7429esac
7430# We did not find ourselves, most probably we were run as `sh COMMAND'
7431# in which case we are not to be found in the path.
7432if test "x$as_myself" = x; then
7433  as_myself=$0
7434fi
7435if test ! -f "$as_myself"; then
7436  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7437  { (exit 1); exit 1; }
7438fi
7439
7440# Work around bugs in pre-3.0 UWIN ksh.
7441for as_var in ENV MAIL MAILPATH
7442do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7443done
7444PS1='$ '
7445PS2='> '
7446PS4='+ '
7447
7448# NLS nuisances.
7449for as_var in \
7450  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7451  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7452  LC_TELEPHONE LC_TIME
7453do
7454  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7455    eval $as_var=C; export $as_var
7456  else
7457    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7458  fi
7459done
7460
7461# Required to use basename.
7462if expr a : '\(a\)' >/dev/null 2>&1 &&
7463   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7464  as_expr=expr
7465else
7466  as_expr=false
7467fi
7468
7469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7470  as_basename=basename
7471else
7472  as_basename=false
7473fi
7474
7475
7476# Name of the executable.
7477as_me=`$as_basename -- "$0" ||
7478$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7479         X"$0" : 'X\(//\)$' \| \
7480         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7481echo X/"$0" |
7482    sed '/^.*\/\([^/][^/]*\)\/*$/{
7483            s//\1/
7484            q
7485          }
7486          /^X\/\(\/\/\)$/{
7487            s//\1/
7488            q
7489          }
7490          /^X\/\(\/\).*/{
7491            s//\1/
7492            q
7493          }
7494          s/.*/./; q'`
7495
7496# CDPATH.
7497$as_unset CDPATH
7498
7499
7500
7501  as_lineno_1=$LINENO
7502  as_lineno_2=$LINENO
7503  test "x$as_lineno_1" != "x$as_lineno_2" &&
7504  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7505
7506  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7507  # uniformly replaced by the line number.  The first 'sed' inserts a
7508  # line-number line after each line using $LINENO; the second 'sed'
7509  # does the real work.  The second script uses 'N' to pair each
7510  # line-number line with the line containing $LINENO, and appends
7511  # trailing '-' during substitution so that $LINENO is not a special
7512  # case at line end.
7513  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7514  # scripts with optimization help from Paolo Bonzini.  Blame Lee
7515  # E. McMahon (1931-1989) for sed's syntax.  :-)
7516  sed -n '
7517    p
7518    /[$]LINENO/=
7519  ' <$as_myself |
7520    sed '
7521      s/[$]LINENO.*/&-/
7522      t lineno
7523      b
7524      :lineno
7525      N
7526      :loop
7527      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7528      t loop
7529      s/-\n.*//
7530    ' >$as_me.lineno &&
7531  chmod +x "$as_me.lineno" ||
7532    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7533   { (exit 1); exit 1; }; }
7534
7535  # Don't try to exec as it changes $[0], causing all sort of problems
7536  # (the dirname of $[0] is not the place where we might find the
7537  # original and so on.  Autoconf is especially sensitive to this).
7538  . "./$as_me.lineno"
7539  # Exit status is that of the last command.
7540  exit
7541}
7542
7543
7544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7545  as_dirname=dirname
7546else
7547  as_dirname=false
7548fi
7549
7550ECHO_C= ECHO_N= ECHO_T=
7551case `echo -n x` in
7552-n*)
7553  case `echo 'x\c'` in
7554  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7555  *)   ECHO_C='\c';;
7556  esac;;
7557*)
7558  ECHO_N='-n';;
7559esac
7560
7561if expr a : '\(a\)' >/dev/null 2>&1 &&
7562   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7563  as_expr=expr
7564else
7565  as_expr=false
7566fi
7567
7568rm -f conf$$ conf$$.exe conf$$.file
7569if test -d conf$$.dir; then
7570  rm -f conf$$.dir/conf$$.file
7571else
7572  rm -f conf$$.dir
7573  mkdir conf$$.dir
7574fi
7575echo >conf$$.file
7576if ln -s conf$$.file conf$$ 2>/dev/null; then
7577  as_ln_s='ln -s'
7578  # ... but there are two gotchas:
7579  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7580  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7581  # In both cases, we have to default to `cp -p'.
7582  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7583    as_ln_s='cp -p'
7584elif ln conf$$.file conf$$ 2>/dev/null; then
7585  as_ln_s=ln
7586else
7587  as_ln_s='cp -p'
7588fi
7589rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7590rmdir conf$$.dir 2>/dev/null
7591
7592if mkdir -p . 2>/dev/null; then
7593  as_mkdir_p=:
7594else
7595  test -d ./-p && rmdir ./-p
7596  as_mkdir_p=false
7597fi
7598
7599if test -x / >/dev/null 2>&1; then
7600  as_test_x='test -x'
7601else
7602  if ls -dL / >/dev/null 2>&1; then
7603    as_ls_L_option=L
7604  else
7605    as_ls_L_option=
7606  fi
7607  as_test_x='
7608    eval sh -c '\''
7609      if test -d "$1"; then
7610        test -d "$1/.";
7611      else
7612        case $1 in
7613        -*)set "./$1";;
7614        esac;
7615        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7616        ???[sx]*):;;*)false;;esac;fi
7617    '\'' sh
7618  '
7619fi
7620as_executable_p=$as_test_x
7621
7622# Sed expression to map a string onto a valid CPP name.
7623as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7624
7625# Sed expression to map a string onto a valid variable name.
7626as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7627
7628
7629exec 6>&1
7630
7631# Save the log message, to keep $[0] and so on meaningful, and to
7632# report actual input values of CONFIG_FILES etc. instead of their
7633# values after options handling.
7634ac_log="
7635This file was extended by $as_me, which was
7636generated by GNU Autoconf 2.61.  Invocation command line was
7637
7638  CONFIG_FILES    = $CONFIG_FILES
7639  CONFIG_HEADERS  = $CONFIG_HEADERS
7640  CONFIG_LINKS    = $CONFIG_LINKS
7641  CONFIG_COMMANDS = $CONFIG_COMMANDS
7642  $ $0 $@
7643
7644on `(hostname || uname -n) 2>/dev/null | sed 1q`
7645"
7646
7647_ACEOF
7648
7649cat >>$CONFIG_STATUS <<_ACEOF
7650# Files that config.status was made for.
7651config_files="$ac_config_files"
7652
7653_ACEOF
7654
7655cat >>$CONFIG_STATUS <<\_ACEOF
7656ac_cs_usage="\
7657\`$as_me' instantiates files from templates according to the
7658current configuration.
7659
7660Usage: $0 [OPTIONS] [FILE]...
7661
7662  -h, --help       print this help, then exit
7663  -V, --version    print version number and configuration settings, then exit
7664  -q, --quiet      do not print progress messages
7665  -d, --debug      don't remove temporary files
7666      --recheck    update $as_me by reconfiguring in the same conditions
7667  --file=FILE[:TEMPLATE]
7668                   instantiate the configuration file FILE
7669
7670Configuration files:
7671$config_files
7672
7673Report bugs to <bug-autoconf@gnu.org>."
7674
7675_ACEOF
7676cat >>$CONFIG_STATUS <<_ACEOF
7677ac_cs_version="\\
7678config.status
7679configured by $0, generated by GNU Autoconf 2.61,
7680  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7681
7682Copyright (C) 2006 Free Software Foundation, Inc.
7683This config.status script is free software; the Free Software Foundation
7684gives unlimited permission to copy, distribute and modify it."
7685
7686ac_pwd='$ac_pwd'
7687srcdir='$srcdir'
7688_ACEOF
7689
7690cat >>$CONFIG_STATUS <<\_ACEOF
7691# If no file are specified by the user, then we need to provide default
7692# value.  By we need to know if files were specified by the user.
7693ac_need_defaults=:
7694while test $# != 0
7695do
7696  case $1 in
7697  --*=*)
7698    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7699    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7700    ac_shift=:
7701    ;;
7702  *)
7703    ac_option=$1
7704    ac_optarg=$2
7705    ac_shift=shift
7706    ;;
7707  esac
7708
7709  case $ac_option in
7710  # Handling of the options.
7711  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7712    ac_cs_recheck=: ;;
7713  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7714    echo "$ac_cs_version"; exit ;;
7715  --debug | --debu | --deb | --de | --d | -d )
7716    debug=: ;;
7717  --file | --fil | --fi | --f )
7718    $ac_shift
7719    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7720    ac_need_defaults=false;;
7721  --he | --h |  --help | --hel | -h )
7722    echo "$ac_cs_usage"; exit ;;
7723  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7724  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7725    ac_cs_silent=: ;;
7726
7727  # This is an error.
7728  -*) { echo "$as_me: error: unrecognized option: $1
7729Try \`$0 --help' for more information." >&2
7730   { (exit 1); exit 1; }; } ;;
7731
7732  *) ac_config_targets="$ac_config_targets $1"
7733     ac_need_defaults=false ;;
7734
7735  esac
7736  shift
7737done
7738
7739ac_configure_extra_args=
7740
7741if $ac_cs_silent; then
7742  exec 6>/dev/null
7743  ac_configure_extra_args="$ac_configure_extra_args --silent"
7744fi
7745
7746_ACEOF
7747cat >>$CONFIG_STATUS <<_ACEOF
7748if \$ac_cs_recheck; then
7749  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7750  CONFIG_SHELL=$SHELL
7751  export CONFIG_SHELL
7752  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7753fi
7754
7755_ACEOF
7756cat >>$CONFIG_STATUS <<\_ACEOF
7757exec 5>>config.log
7758{
7759  echo
7760  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7761## Running $as_me. ##
7762_ASBOX
7763  echo "$ac_log"
7764} >&5
7765
7766_ACEOF
7767cat >>$CONFIG_STATUS <<_ACEOF
7768_ACEOF
7769
7770cat >>$CONFIG_STATUS <<\_ACEOF
7771
7772# Handling of arguments.
7773for ac_config_target in $ac_config_targets
7774do
7775  case $ac_config_target in
7776    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7777
7778  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7779echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7780   { (exit 1); exit 1; }; };;
7781  esac
7782done
7783
7784
7785# If the user did not use the arguments to specify the items to instantiate,
7786# then the envvar interface is used.  Set only those that are not.
7787# We use the long form for the default assignment because of an extremely
7788# bizarre bug on SunOS 4.1.3.
7789if $ac_need_defaults; then
7790  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7791fi
7792
7793# Have a temporary directory for convenience.  Make it in the build tree
7794# simply because there is no reason against having it here, and in addition,
7795# creating and moving files from /tmp can sometimes cause problems.
7796# Hook for its removal unless debugging.
7797# Note that there is a small window in which the directory will not be cleaned:
7798# after its creation but before its name has been assigned to `$tmp'.
7799$debug ||
7800{
7801  tmp=
7802  trap 'exit_status=$?
7803  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7804' 0
7805  trap '{ (exit 1); exit 1; }' 1 2 13 15
7806}
7807# Create a (secure) tmp directory for tmp files.
7808
7809{
7810  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7811  test -n "$tmp" && test -d "$tmp"
7812}  ||
7813{
7814  tmp=./conf$$-$RANDOM
7815  (umask 077 && mkdir "$tmp")
7816} ||
7817{
7818   echo "$me: cannot create a temporary directory in ." >&2
7819   { (exit 1); exit 1; }
7820}
7821
7822#
7823# Set up the sed scripts for CONFIG_FILES section.
7824#
7825
7826# No need to generate the scripts if there are no CONFIG_FILES.
7827# This happens for instance when ./config.status config.h
7828if test -n "$CONFIG_FILES"; then
7829
7830_ACEOF
7831
7832
7833
7834ac_delim='%!_!# '
7835for ac_last_try in false false false false false :; do
7836  cat >conf$$subs.sed <<_ACEOF
7837SHELL!$SHELL$ac_delim
7838PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7839PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7840PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7841PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7842PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7843PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7844exec_prefix!$exec_prefix$ac_delim
7845prefix!$prefix$ac_delim
7846program_transform_name!$program_transform_name$ac_delim
7847bindir!$bindir$ac_delim
7848sbindir!$sbindir$ac_delim
7849libexecdir!$libexecdir$ac_delim
7850datarootdir!$datarootdir$ac_delim
7851datadir!$datadir$ac_delim
7852sysconfdir!$sysconfdir$ac_delim
7853sharedstatedir!$sharedstatedir$ac_delim
7854localstatedir!$localstatedir$ac_delim
7855includedir!$includedir$ac_delim
7856oldincludedir!$oldincludedir$ac_delim
7857docdir!$docdir$ac_delim
7858infodir!$infodir$ac_delim
7859htmldir!$htmldir$ac_delim
7860dvidir!$dvidir$ac_delim
7861pdfdir!$pdfdir$ac_delim
7862psdir!$psdir$ac_delim
7863libdir!$libdir$ac_delim
7864localedir!$localedir$ac_delim
7865mandir!$mandir$ac_delim
7866DEFS!$DEFS$ac_delim
7867ECHO_C!$ECHO_C$ac_delim
7868ECHO_N!$ECHO_N$ac_delim
7869ECHO_T!$ECHO_T$ac_delim
7870LIBS!$LIBS$ac_delim
7871build_alias!$build_alias$ac_delim
7872host_alias!$host_alias$ac_delim
7873target_alias!$target_alias$ac_delim
7874build!$build$ac_delim
7875build_cpu!$build_cpu$ac_delim
7876build_vendor!$build_vendor$ac_delim
7877build_os!$build_os$ac_delim
7878host!$host$ac_delim
7879host_cpu!$host_cpu$ac_delim
7880host_vendor!$host_vendor$ac_delim
7881host_os!$host_os$ac_delim
7882target!$target$ac_delim
7883target_cpu!$target_cpu$ac_delim
7884target_vendor!$target_vendor$ac_delim
7885target_os!$target_os$ac_delim
7886CC!$CC$ac_delim
7887CFLAGS!$CFLAGS$ac_delim
7888LDFLAGS!$LDFLAGS$ac_delim
7889CPPFLAGS!$CPPFLAGS$ac_delim
7890ac_ct_CC!$ac_ct_CC$ac_delim
7891EXEEXT!$EXEEXT$ac_delim
7892OBJEXT!$OBJEXT$ac_delim
7893CXX!$CXX$ac_delim
7894CXXFLAGS!$CXXFLAGS$ac_delim
7895ac_ct_CXX!$ac_ct_CXX$ac_delim
7896CPP!$CPP$ac_delim
7897GREP!$GREP$ac_delim
7898EGREP!$EGREP$ac_delim
7899V_INCLUDE_X11!$V_INCLUDE_X11$ac_delim
7900V_LIB_X11!$V_LIB_X11$ac_delim
7901V_INCLUDE_TCL!$V_INCLUDE_TCL$ac_delim
7902V_LIB_TCL!$V_LIB_TCL$ac_delim
7903V_LIBRARY_TCL!$V_LIBRARY_TCL$ac_delim
7904V_TKDOSNAMES!$V_TKDOSNAMES$ac_delim
7905V_INCLUDE_TK!$V_INCLUDE_TK$ac_delim
7906V_LIB_TK!$V_LIB_TK$ac_delim
7907V_LIBRARY_TK!$V_LIBRARY_TK$ac_delim
7908V_LIB_FFMPEG!$V_LIB_FFMPEG$ac_delim
7909V_LIB_X264!$V_LIB_X264$ac_delim
7910V_INCLUDE_GRABBER!$V_INCLUDE_GRABBER$ac_delim
7911V_LIB_GRABBER!$V_LIB_GRABBER$ac_delim
7912V_OBJ_GRABBER!$V_OBJ_GRABBER$ac_delim
7913V_LIB_XIL!$V_LIB_XIL$ac_delim
7914V_OBJ_XIL!$V_OBJ_XIL$ac_delim
7915V_OBJ!$V_OBJ$ac_delim
7916V_LIB!$V_LIB$ac_delim
7917V_CODEC_LIB!$V_CODEC_LIB$ac_delim
7918V_CPUDETECT_OBJ!$V_CPUDETECT_OBJ$ac_delim
7919V_STATIC!$V_STATIC$ac_delim
7920V_TAR_TARGET!$V_TAR_TARGET$ac_delim
7921V_ALL!$V_ALL$ac_delim
7922V_CCOPT!$V_CCOPT$ac_delim
7923V_CCOPT_H261!$V_CCOPT_H261$ac_delim
7924V_TAR_EXTRA!$V_TAR_EXTRA$ac_delim
7925V_DEFINE!$V_DEFINE$ac_delim
7926V_SIGRET!$V_SIGRET$ac_delim
7927V_SHELL!$V_SHELL$ac_delim
7928V_TARCMD!$V_TARCMD$ac_delim
7929V_INCLUDE!$V_INCLUDE$ac_delim
7930V_BROKEN_OBJ!$V_BROKEN_OBJ$ac_delim
7931V_OBJ_CRYPT!$V_OBJ_CRYPT$ac_delim
7932LIBOBJS!$LIBOBJS$ac_delim
7933LTLIBOBJS!$LTLIBOBJS$ac_delim
7934_ACEOF
7935
7936  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7937    break
7938  elif $ac_last_try; then
7939    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7940echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7941   { (exit 1); exit 1; }; }
7942  else
7943    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7944  fi
7945done
7946
7947ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7948if test -n "$ac_eof"; then
7949  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7950  ac_eof=`expr $ac_eof + 1`
7951fi
7952
7953cat >>$CONFIG_STATUS <<_ACEOF
7954cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7956_ACEOF
7957sed '
7958s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7959s/^/s,@/; s/!/@,|#_!!_#|/
7960:n
7961t n
7962s/'"$ac_delim"'$/,g/; t
7963s/$/\\/; p
7964N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7965' >>$CONFIG_STATUS <conf$$subs.sed
7966rm -f conf$$subs.sed
7967cat >>$CONFIG_STATUS <<_ACEOF
7968CEOF$ac_eof
7969_ACEOF
7970
7971
7972# VPATH may cause trouble with some makes, so we remove $(srcdir),
7973# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7974# trailing colons and then remove the whole line if VPATH becomes empty
7975# (actually we leave an empty line to preserve line numbers).
7976if test "x$srcdir" = x.; then
7977  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7978s/:*\$(srcdir):*/:/
7979s/:*\${srcdir}:*/:/
7980s/:*@srcdir@:*/:/
7981s/^\([^=]*=[     ]*\):*/\1/
7982s/:*$//
7983s/^[^=]*=[       ]*$//
7984}'
7985fi
7986
7987cat >>$CONFIG_STATUS <<\_ACEOF
7988fi # test -n "$CONFIG_FILES"
7989
7990
7991for ac_tag in  :F $CONFIG_FILES
7992do
7993  case $ac_tag in
7994  :[FHLC]) ac_mode=$ac_tag; continue;;
7995  esac
7996  case $ac_mode$ac_tag in
7997  :[FHL]*:*);;
7998  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7999echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8000   { (exit 1); exit 1; }; };;
8001  :[FH]-) ac_tag=-:-;;
8002  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8003  esac
8004  ac_save_IFS=$IFS
8005  IFS=:
8006  set x $ac_tag
8007  IFS=$ac_save_IFS
8008  shift
8009  ac_file=$1
8010  shift
8011
8012  case $ac_mode in
8013  :L) ac_source=$1;;
8014  :[FH])
8015    ac_file_inputs=
8016    for ac_f
8017    do
8018      case $ac_f in
8019      -) ac_f="$tmp/stdin";;
8020      *) # Look for the file first in the build tree, then in the source tree
8021         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8022         # because $ac_f cannot contain `:'.
8023         test -f "$ac_f" ||
8024           case $ac_f in
8025           [\\/$]*) false;;
8026           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8027           esac ||
8028           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8029echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8030   { (exit 1); exit 1; }; };;
8031      esac
8032      ac_file_inputs="$ac_file_inputs $ac_f"
8033    done
8034
8035    # Let's still pretend it is `configure' which instantiates (i.e., don't
8036    # use $as_me), people would be surprised to read:
8037    #    /* config.h.  Generated by config.status.  */
8038    configure_input="Generated from "`IFS=:
8039          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8040    if test x"$ac_file" != x-; then
8041      configure_input="$ac_file.  $configure_input"
8042      { echo "$as_me:$LINENO: creating $ac_file" >&5
8043echo "$as_me: creating $ac_file" >&6;}
8044    fi
8045
8046    case $ac_tag in
8047    *:-:* | *:-) cat >"$tmp/stdin";;
8048    esac
8049    ;;
8050  esac
8051
8052  ac_dir=`$as_dirname -- "$ac_file" ||
8053$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8054         X"$ac_file" : 'X\(//\)[^/]' \| \
8055         X"$ac_file" : 'X\(//\)$' \| \
8056         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8057echo X"$ac_file" |
8058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8059            s//\1/
8060            q
8061          }
8062          /^X\(\/\/\)[^/].*/{
8063            s//\1/
8064            q
8065          }
8066          /^X\(\/\/\)$/{
8067            s//\1/
8068            q
8069          }
8070          /^X\(\/\).*/{
8071            s//\1/
8072            q
8073          }
8074          s/.*/./; q'`
8075  { as_dir="$ac_dir"
8076  case $as_dir in #(
8077  -*) as_dir=./$as_dir;;
8078  esac
8079  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8080    as_dirs=
8081    while :; do
8082      case $as_dir in #(
8083      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8084      *) as_qdir=$as_dir;;
8085      esac
8086      as_dirs="'$as_qdir' $as_dirs"
8087      as_dir=`$as_dirname -- "$as_dir" ||
8088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8089         X"$as_dir" : 'X\(//\)[^/]' \| \
8090         X"$as_dir" : 'X\(//\)$' \| \
8091         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8092echo X"$as_dir" |
8093    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8094            s//\1/
8095            q
8096          }
8097          /^X\(\/\/\)[^/].*/{
8098            s//\1/
8099            q
8100          }
8101          /^X\(\/\/\)$/{
8102            s//\1/
8103            q
8104          }
8105          /^X\(\/\).*/{
8106            s//\1/
8107            q
8108          }
8109          s/.*/./; q'`
8110      test -d "$as_dir" && break
8111    done
8112    test -z "$as_dirs" || eval "mkdir $as_dirs"
8113  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8114echo "$as_me: error: cannot create directory $as_dir" >&2;}
8115   { (exit 1); exit 1; }; }; }
8116  ac_builddir=.
8117
8118case "$ac_dir" in
8119.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8120*)
8121  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8122  # A ".." for each directory in $ac_dir_suffix.
8123  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8124  case $ac_top_builddir_sub in
8125  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8126  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8127  esac ;;
8128esac
8129ac_abs_top_builddir=$ac_pwd
8130ac_abs_builddir=$ac_pwd$ac_dir_suffix
8131# for backward compatibility:
8132ac_top_builddir=$ac_top_build_prefix
8133
8134case $srcdir in
8135  .)  # We are building in place.
8136    ac_srcdir=.
8137    ac_top_srcdir=$ac_top_builddir_sub
8138    ac_abs_top_srcdir=$ac_pwd ;;
8139  [\\/]* | ?:[\\/]* )  # Absolute name.
8140    ac_srcdir=$srcdir$ac_dir_suffix;
8141    ac_top_srcdir=$srcdir
8142    ac_abs_top_srcdir=$srcdir ;;
8143  *) # Relative name.
8144    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8145    ac_top_srcdir=$ac_top_build_prefix$srcdir
8146    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8147esac
8148ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8149
8150
8151  case $ac_mode in
8152  :F)
8153  #
8154  # CONFIG_FILE
8155  #
8156
8157_ACEOF
8158
8159cat >>$CONFIG_STATUS <<\_ACEOF
8160# If the template does not know about datarootdir, expand it.
8161# FIXME: This hack should be removed a few years after 2.60.
8162ac_datarootdir_hack=; ac_datarootdir_seen=
8163
8164case `sed -n '/datarootdir/ {
8165  p
8166  q
8167}
8168/@datadir@/p
8169/@docdir@/p
8170/@infodir@/p
8171/@localedir@/p
8172/@mandir@/p
8173' $ac_file_inputs` in
8174*datarootdir*) ac_datarootdir_seen=yes;;
8175*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8176  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8177echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8178_ACEOF
8179cat >>$CONFIG_STATUS <<_ACEOF
8180  ac_datarootdir_hack='
8181  s&@datadir@&$datadir&g
8182  s&@docdir@&$docdir&g
8183  s&@infodir@&$infodir&g
8184  s&@localedir@&$localedir&g
8185  s&@mandir@&$mandir&g
8186    s&\\\${datarootdir}&$datarootdir&g' ;;
8187esac
8188_ACEOF
8189
8190# Neutralize VPATH when `$srcdir' = `.'.
8191# Shell code in configure.ac might set extrasub.
8192# FIXME: do we really want to maintain this feature?
8193cat >>$CONFIG_STATUS <<_ACEOF
8194  sed "$ac_vpsub
8195$extrasub
8196_ACEOF
8197cat >>$CONFIG_STATUS <<\_ACEOF
8198:t
8199/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8200s&@configure_input@&$configure_input&;t t
8201s&@top_builddir@&$ac_top_builddir_sub&;t t
8202s&@srcdir@&$ac_srcdir&;t t
8203s&@abs_srcdir@&$ac_abs_srcdir&;t t
8204s&@top_srcdir@&$ac_top_srcdir&;t t
8205s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8206s&@builddir@&$ac_builddir&;t t
8207s&@abs_builddir@&$ac_abs_builddir&;t t
8208s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8209$ac_datarootdir_hack
8210" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
8211
8212test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8213  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8214  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8215  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8216which seems to be undefined.  Please make sure it is defined." >&5
8217echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8218which seems to be undefined.  Please make sure it is defined." >&2;}
8219
8220  rm -f "$tmp/stdin"
8221  case $ac_file in
8222  -) cat "$tmp/out"; rm -f "$tmp/out";;
8223  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8224  esac
8225 ;;
8226
8227
8228
8229  esac
8230
8231done # for ac_tag
8232
8233
8234{ (exit 0); exit 0; }
8235_ACEOF
8236chmod +x $CONFIG_STATUS
8237ac_clean_files=$ac_clean_files_save
8238
8239
8240# configure is writing to config.log, and then calls config.status.
8241# config.status does its own redirection, appending to config.log.
8242# Unfortunately, on DOS this fails, as config.log is still kept open
8243# by configure, so config.status won't be able to write to it; its
8244# output is simply discarded.  So we exec the FD to /dev/null,
8245# effectively closing config.log, so it can be properly (re)opened and
8246# appended to by config.status.  When coming back to configure, we
8247# need to make the FD available again.
8248if test "$no_create" != yes; then
8249  ac_cs_success=:
8250  ac_config_status_args=
8251  test "$silent" = yes &&
8252    ac_config_status_args="$ac_config_status_args --quiet"
8253  exec 5>/dev/null
8254  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8255  exec 5>>config.log
8256  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8257  # would make configure fail if this is the last instruction.
8258  $ac_cs_success || { (exit 1); exit 1; }
8259fi
8260
8261
8262if test -f .devel ; then
8263        make depend
8264fi
8265
8266
Note: See TracBrowser for help on using the browser.