root/vic/branches/mpeg4/configure @ 4093

Revision 4093, 222.4 KB (checked in by douglask, 7 years ago)

regenerate configure script so it is in sync with updated configure.in.tk

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