1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libmpeg2 0.5.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libmpeg2'
589PACKAGE_TARNAME='libmpeg2'
590PACKAGE_VERSION='0.5.1'
591PACKAGE_STRING='libmpeg2 0.5.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/mpeg2dec.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636MPEG2DEC_CFLAGS
637LIBVO_LIBS
638LIBVO_CFLAGS
639SDLCONFIG
640X_EXTRA_LIBS
641X_LIBS
642X_PRE_LIBS
643X_CFLAGS
644XMKMF
645LIBMPEG2_CFLAGS
646AM_CPPFLAGS
647LT_SYS_LIBRARY_PATH
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661SED
662LIBTOOL
663OBJDUMP
664DLLTOOL
665AS
666ARCH_ARM_FALSE
667ARCH_ARM_TRUE
668ARCH_OPT_CFLAGS
669OPT_CFLAGS
670ac_ct_AR
671AR
672am__fastdepCCAS_FALSE
673am__fastdepCCAS_TRUE
674CCASDEPMODE
675CCASFLAGS
676CCAS
677EGREP
678GREP
679CPP
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683am__nodep
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697MAINT
698MAINTAINER_MODE_FALSE
699MAINTAINER_MODE_TRUE
700AM_BACKSLASH
701AM_DEFAULT_VERBOSITY
702AM_DEFAULT_V
703AM_V
704am__untar
705am__tar
706AMTAR
707am__leading_dot
708SET_MAKE
709AWK
710mkdir_p
711MKDIR_P
712INSTALL_STRIP_PROGRAM
713STRIP
714install_sh
715MAKEINFO
716AUTOHEADER
717AUTOMAKE
718AUTOCONF
719ACLOCAL
720VERSION
721PACKAGE
722CYGPATH_W
723am__isrc
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754runstatedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_silent_rules
778enable_maintainer_mode
779enable_dependency_tracking
780enable_debug
781enable_shared
782enable_static
783with_pic
784enable_fast_install
785with_aix_soname
786with_gnu_ld
787with_sysroot
788enable_libtool_lock
789enable_largefile
790enable_accel_detect
791with_x
792enable_directx
793enable_sdl
794enable_warnings
795enable_gprof
796'
797      ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CPP
806CCAS
807CCASFLAGS
808LT_SYS_LIBRARY_PATH
809XMKMF'
810
811
812# Initialize some variables set by options.
813ac_init_help=
814ac_init_version=false
815ac_unrecognized_opts=
816ac_unrecognized_sep=
817# The variables have the same names as the options, with
818# dashes changed to underlines.
819cache_file=/dev/null
820exec_prefix=NONE
821no_create=
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
830verbose=
831x_includes=NONE
832x_libraries=NONE
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
839# (The list follows the same order as the GNU Coding Standards.)
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
848runstatedir='${localstatedir}/run'
849includedir='${prefix}/include'
850oldincludedir='/usr/include'
851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852infodir='${datarootdir}/info'
853htmldir='${docdir}'
854dvidir='${docdir}'
855pdfdir='${docdir}'
856psdir='${docdir}'
857libdir='${exec_prefix}/lib'
858localedir='${datarootdir}/locale'
859mandir='${datarootdir}/man'
860
861ac_prev=
862ac_dashdash=
863for ac_option
864do
865  # If the previous option needs an argument, assign it.
866  if test -n "$ac_prev"; then
867    eval $ac_prev=\$ac_option
868    ac_prev=
869    continue
870  fi
871
872  case $ac_option in
873  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874  *=)   ac_optarg= ;;
875  *)    ac_optarg=yes ;;
876  esac
877
878  # Accept the important Cygnus configure options, so we can diagnose typos.
879
880  case $ac_dashdash$ac_option in
881  --)
882    ac_dashdash=yes ;;
883
884  -bindir | --bindir | --bindi | --bind | --bin | --bi)
885    ac_prev=bindir ;;
886  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887    bindir=$ac_optarg ;;
888
889  -build | --build | --buil | --bui | --bu)
890    ac_prev=build_alias ;;
891  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892    build_alias=$ac_optarg ;;
893
894  -cache-file | --cache-file | --cache-fil | --cache-fi \
895  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896    ac_prev=cache_file ;;
897  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899    cache_file=$ac_optarg ;;
900
901  --config-cache | -C)
902    cache_file=config.cache ;;
903
904  -datadir | --datadir | --datadi | --datad)
905    ac_prev=datadir ;;
906  -datadir=* | --datadir=* | --datadi=* | --datad=*)
907    datadir=$ac_optarg ;;
908
909  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910  | --dataroo | --dataro | --datar)
911    ac_prev=datarootdir ;;
912  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914    datarootdir=$ac_optarg ;;
915
916  -disable-* | --disable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=no ;;
931
932  -docdir | --docdir | --docdi | --doc | --do)
933    ac_prev=docdir ;;
934  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935    docdir=$ac_optarg ;;
936
937  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938    ac_prev=dvidir ;;
939  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940    dvidir=$ac_optarg ;;
941
942  -enable-* | --enable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: $ac_useropt"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=\$ac_optarg ;;
957
958  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960  | --exec | --exe | --ex)
961    ac_prev=exec_prefix ;;
962  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964  | --exec=* | --exe=* | --ex=*)
965    exec_prefix=$ac_optarg ;;
966
967  -gas | --gas | --ga | --g)
968    # Obsolete; use --with-gas.
969    with_gas=yes ;;
970
971  -help | --help | --hel | --he | -h)
972    ac_init_help=long ;;
973  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974    ac_init_help=recursive ;;
975  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976    ac_init_help=short ;;
977
978  -host | --host | --hos | --ho)
979    ac_prev=host_alias ;;
980  -host=* | --host=* | --hos=* | --ho=*)
981    host_alias=$ac_optarg ;;
982
983  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984    ac_prev=htmldir ;;
985  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986  | --ht=*)
987    htmldir=$ac_optarg ;;
988
989  -includedir | --includedir | --includedi | --included | --include \
990  | --includ | --inclu | --incl | --inc)
991    ac_prev=includedir ;;
992  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993  | --includ=* | --inclu=* | --incl=* | --inc=*)
994    includedir=$ac_optarg ;;
995
996  -infodir | --infodir | --infodi | --infod | --info | --inf)
997    ac_prev=infodir ;;
998  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999    infodir=$ac_optarg ;;
1000
1001  -libdir | --libdir | --libdi | --libd)
1002    ac_prev=libdir ;;
1003  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004    libdir=$ac_optarg ;;
1005
1006  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007  | --libexe | --libex | --libe)
1008    ac_prev=libexecdir ;;
1009  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010  | --libexe=* | --libex=* | --libe=*)
1011    libexecdir=$ac_optarg ;;
1012
1013  -localedir | --localedir | --localedi | --localed | --locale)
1014    ac_prev=localedir ;;
1015  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016    localedir=$ac_optarg ;;
1017
1018  -localstatedir | --localstatedir | --localstatedi | --localstated \
1019  | --localstate | --localstat | --localsta | --localst | --locals)
1020    ac_prev=localstatedir ;;
1021  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023    localstatedir=$ac_optarg ;;
1024
1025  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026    ac_prev=mandir ;;
1027  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028    mandir=$ac_optarg ;;
1029
1030  -nfp | --nfp | --nf)
1031    # Obsolete; use --without-fp.
1032    with_fp=no ;;
1033
1034  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035  | --no-cr | --no-c | -n)
1036    no_create=yes ;;
1037
1038  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040    no_recursion=yes ;;
1041
1042  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044  | --oldin | --oldi | --old | --ol | --o)
1045    ac_prev=oldincludedir ;;
1046  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049    oldincludedir=$ac_optarg ;;
1050
1051  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052    ac_prev=prefix ;;
1053  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054    prefix=$ac_optarg ;;
1055
1056  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057  | --program-pre | --program-pr | --program-p)
1058    ac_prev=program_prefix ;;
1059  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061    program_prefix=$ac_optarg ;;
1062
1063  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064  | --program-suf | --program-su | --program-s)
1065    ac_prev=program_suffix ;;
1066  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068    program_suffix=$ac_optarg ;;
1069
1070  -program-transform-name | --program-transform-name \
1071  | --program-transform-nam | --program-transform-na \
1072  | --program-transform-n | --program-transform- \
1073  | --program-transform | --program-transfor \
1074  | --program-transfo | --program-transf \
1075  | --program-trans | --program-tran \
1076  | --progr-tra | --program-tr | --program-t)
1077    ac_prev=program_transform_name ;;
1078  -program-transform-name=* | --program-transform-name=* \
1079  | --program-transform-nam=* | --program-transform-na=* \
1080  | --program-transform-n=* | --program-transform-=* \
1081  | --program-transform=* | --program-transfor=* \
1082  | --program-transfo=* | --program-transf=* \
1083  | --program-trans=* | --program-tran=* \
1084  | --progr-tra=* | --program-tr=* | --program-t=*)
1085    program_transform_name=$ac_optarg ;;
1086
1087  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088    ac_prev=pdfdir ;;
1089  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090    pdfdir=$ac_optarg ;;
1091
1092  -psdir | --psdir | --psdi | --psd | --ps)
1093    ac_prev=psdir ;;
1094  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095    psdir=$ac_optarg ;;
1096
1097  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098  | -silent | --silent | --silen | --sile | --sil)
1099    silent=yes ;;
1100
1101  -runstatedir | --runstatedir | --runstatedi | --runstated \
1102  | --runstate | --runstat | --runsta | --runst | --runs \
1103  | --run | --ru | --r)
1104    ac_prev=runstatedir ;;
1105  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107  | --run=* | --ru=* | --r=*)
1108    runstatedir=$ac_optarg ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir runstatedir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures libmpeg2 0.5.1 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root [DATAROOTDIR/doc/libmpeg2]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423X features:
1424  --x-includes=DIR    X include files are in DIR
1425  --x-libraries=DIR   X library files are in DIR
1426
1427System types:
1428  --build=BUILD     configure for building on BUILD [guessed]
1429  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1430_ACEOF
1431fi
1432
1433if test -n "$ac_init_help"; then
1434  case $ac_init_help in
1435     short | recursive ) echo "Configuration of libmpeg2 0.5.1:";;
1436   esac
1437  cat <<\_ACEOF
1438
1439Optional Features:
1440  --disable-option-checking  ignore unrecognized --enable/--with options
1441  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1442  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --enable-maintainer-mode
1446                          enable make rules and dependencies not useful (and
1447                          sometimes confusing) to the casual installer
1448  --enable-dependency-tracking
1449                          do not reject slow dependency extractors
1450  --disable-dependency-tracking
1451                          speeds up one-time build
1452  --enable-debug          debug mode configuration
1453  --enable-shared[=PKGS]  build shared libraries [default=yes]
1454  --enable-static[=PKGS]  build static libraries [default=yes]
1455  --enable-fast-install[=PKGS]
1456                          optimize for fast installation [default=yes]
1457  --disable-libtool-lock  avoid locking (might break parallel builds)
1458  --disable-largefile     omit support for large files
1459  --disable-accel-detect  make a version without accel detection code
1460  --enable-directx=DIR    use Win32 DirectX headers in DIR
1461  --disable-sdl           make a version not using SDL
1462  --enable-warnings       treat warnings as errors
1463  --enable-gprof          make a version using gprof
1464
1465Optional Packages:
1466  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1469                          both]
1470  --with-aix-soname=aix|svr4|both
1471                          shared library versioning (aka "SONAME") variant to
1472                          provide on AIX, [default=aix].
1473  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1474  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1475                          compiler's sysroot if not specified).
1476  --with-x                use the X Window System
1477
1478Some influential environment variables:
1479  CC          C compiler command
1480  CFLAGS      C compiler flags
1481  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482              nonstandard directory <lib dir>
1483  LIBS        libraries to pass to the linker, e.g. -l<library>
1484  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485              you have headers in a nonstandard directory <include dir>
1486  CPP         C preprocessor
1487  CCAS        assembler compiler command (defaults to CC)
1488  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1489  LT_SYS_LIBRARY_PATH
1490              User-defined run-time library search path.
1491  XMKMF       Path to xmkmf, Makefile generator for X Window System
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to the package provider.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559libmpeg2 configure 0.5.1
1560generated by GNU Autoconf 2.69
1561
1562Copyright (C) 2012 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_try_cpp LINENO
1612# ----------------------
1613# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_cpp ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  if { { ac_try="$ac_cpp conftest.$ac_ext"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } > conftest.i && {
1633	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       }; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641    ac_retval=1
1642fi
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_cpp
1647
1648# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651# the include files in INCLUDES and setting the cache variable VAR
1652# accordingly.
1653ac_fn_c_check_header_mongrel ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  if eval \${$3+:} false; then :
1657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
1659if eval \${$3+:} false; then :
1660  $as_echo_n "(cached) " >&6
1661fi
1662eval ac_res=\$$3
1663	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665else
1666  # Is the header compilable?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668$as_echo_n "checking $2 usability... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675  ac_header_compiler=yes
1676else
1677  ac_header_compiler=no
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681$as_echo "$ac_header_compiler" >&6; }
1682
1683# Is the header present?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685$as_echo_n "checking $2 presence... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h.  */
1688#include <$2>
1689_ACEOF
1690if ac_fn_c_try_cpp "$LINENO"; then :
1691  ac_header_preproc=yes
1692else
1693  ac_header_preproc=no
1694fi
1695rm -f conftest.err conftest.i conftest.$ac_ext
1696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697$as_echo "$ac_header_preproc" >&6; }
1698
1699# So?  What about this header?
1700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1701  yes:no: )
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706    ;;
1707  no:yes:* )
1708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1711$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1715$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718    ;;
1719esac
1720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if eval \${$3+:} false; then :
1723  $as_echo_n "(cached) " >&6
1724else
1725  eval "$3=\$ac_header_compiler"
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730fi
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_header_mongrel
1734
1735# ac_fn_c_try_run LINENO
1736# ----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738# that executables *can* be run.
1739ac_fn_c_try_run ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_link") 2>&5
1750  ac_status=$?
1751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753  { { case "(($ac_try" in
1754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755  *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759  (eval "$ac_try") 2>&5
1760  ac_status=$?
1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; }; }; then :
1763  ac_retval=0
1764else
1765  $as_echo "$as_me: program exited with status $ac_status" >&5
1766       $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769       ac_retval=$ac_status
1770fi
1771  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_run
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_link LINENO
1809# -----------------------
1810# Try to link conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_link ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  rm -f conftest.$ac_objext conftest$ac_exeext
1815  if { { ac_try="$ac_link"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_link") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } && {
1831	 test -z "$ac_c_werror_flag" ||
1832	 test ! -s conftest.err
1833       } && test -s conftest$ac_exeext && {
1834	 test "$cross_compiling" = yes ||
1835	 test -x conftest$ac_exeext
1836       }; then :
1837  ac_retval=0
1838else
1839  $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842	ac_retval=1
1843fi
1844  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846  # interfere with the next link command; also delete a directory that is
1847  # left behind by Apple's compiler.  We do this before executing the actions.
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_link
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872    which can conflict with char $2 (); below.
1873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874    <limits.h> exists even on freestanding compilers.  */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885   Use char because int might match the return type of a GCC
1886   builtin and then its argument prototype would still apply.  */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892    to always fail with ENOSYS.  Some functions are actually named
1893    something starting with __ and the normal name is an alias.  */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907  eval "$3=yes"
1908else
1909  eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912    conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919} # ac_fn_c_check_func
1920
1921# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922# -------------------------------------------
1923# Tests whether TYPE exists after having included INCLUDES, setting cache
1924# variable VAR accordingly.
1925ac_fn_c_check_type ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931  $as_echo_n "(cached) " >&6
1932else
1933  eval "$3=no"
1934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937int
1938main ()
1939{
1940if (sizeof ($2))
1941	 return 0;
1942  ;
1943  return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h.  */
1949$4
1950int
1951main ()
1952{
1953if (sizeof (($2)))
1954	    return 0;
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960
1961else
1962  eval "$3=yes"
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973} # ac_fn_c_check_type
1974
1975# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976# --------------------------------------------
1977# Tries to find the compile-time value of EXPR in a program that includes
1978# INCLUDES, setting VAR accordingly. Returns whether the value could be
1979# computed
1980ac_fn_c_compute_int ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  if test "$cross_compiling" = yes; then
1984    # Depending upon the size, compute the lo and hi bounds.
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988int
1989main ()
1990{
1991static int test_array [1 - 2 * !(($2) >= 0)];
1992test_array [0] = 0;
1993return test_array [0];
1994
1995  ;
1996  return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000  ac_lo=0 ac_mid=0
2001  while :; do
2002    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004$4
2005int
2006main ()
2007{
2008static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009test_array [0] = 0;
2010return test_array [0];
2011
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017  ac_hi=$ac_mid; break
2018else
2019  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2020			if test $ac_lo -le $ac_mid; then
2021			  ac_lo= ac_hi=
2022			  break
2023			fi
2024			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027  done
2028else
2029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) < 0)];
2036test_array [0] = 0;
2037return test_array [0];
2038
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  ac_hi=-1 ac_mid=-1
2045  while :; do
2046    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h.  */
2048$4
2049int
2050main ()
2051{
2052static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2053test_array [0] = 0;
2054return test_array [0];
2055
2056  ;
2057  return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061  ac_lo=$ac_mid; break
2062else
2063  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064			if test $ac_mid -le $ac_hi; then
2065			  ac_lo= ac_hi=
2066			  break
2067			fi
2068			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071  done
2072else
2073  ac_lo= ac_hi=
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078# Binary search between lo and hi bounds.
2079while test "x$ac_lo" != "x$ac_hi"; do
2080  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088test_array [0] = 0;
2089return test_array [0];
2090
2091  ;
2092  return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096  ac_hi=$ac_mid
2097else
2098  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101done
2102case $ac_lo in #((
2103?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2104'') ac_retval=1 ;;
2105esac
2106  else
2107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h.  */
2109$4
2110static long int longval () { return $2; }
2111static unsigned long int ulongval () { return $2; }
2112#include <stdio.h>
2113#include <stdlib.h>
2114int
2115main ()
2116{
2117
2118  FILE *f = fopen ("conftest.val", "w");
2119  if (! f)
2120    return 1;
2121  if (($2) < 0)
2122    {
2123      long int i = longval ();
2124      if (i != ($2))
2125	return 1;
2126      fprintf (f, "%ld", i);
2127    }
2128  else
2129    {
2130      unsigned long int i = ulongval ();
2131      if (i != ($2))
2132	return 1;
2133      fprintf (f, "%lu", i);
2134    }
2135  /* Do not output a trailing newline, as this causes \r\n confusion
2136     on some platforms.  */
2137  return ferror (f) || fclose (f) != 0;
2138
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_run "$LINENO"; then :
2144  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2145else
2146  ac_retval=1
2147fi
2148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2149  conftest.$ac_objext conftest.beam conftest.$ac_ext
2150rm -f conftest.val
2151
2152  fi
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154  as_fn_set_status $ac_retval
2155
2156} # ac_fn_c_compute_int
2157cat >config.log <<_ACEOF
2158This file contains any messages produced by compilers while
2159running configure, to aid debugging if configure makes a mistake.
2160
2161It was created by libmpeg2 $as_me 0.5.1, which was
2162generated by GNU Autoconf 2.69.  Invocation command line was
2163
2164  $ $0 $@
2165
2166_ACEOF
2167exec 5>>config.log
2168{
2169cat <<_ASUNAME
2170## --------- ##
2171## Platform. ##
2172## --------- ##
2173
2174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179
2180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2182
2183/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2184/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2187/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2188/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2189/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2190
2191_ASUNAME
2192
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198    $as_echo "PATH: $as_dir"
2199  done
2200IFS=$as_save_IFS
2201
2202} >&5
2203
2204cat >&5 <<_ACEOF
2205
2206
2207## ----------- ##
2208## Core tests. ##
2209## ----------- ##
2210
2211_ACEOF
2212
2213
2214# Keep a trace of the command line.
2215# Strip out --no-create and --no-recursion so they do not pile up.
2216# Strip out --silent because we don't want to record it for future runs.
2217# Also quote any args containing shell meta-characters.
2218# Make two passes to allow for proper duplicate-argument suppression.
2219ac_configure_args=
2220ac_configure_args0=
2221ac_configure_args1=
2222ac_must_keep_next=false
2223for ac_pass in 1 2
2224do
2225  for ac_arg
2226  do
2227    case $ac_arg in
2228    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230    | -silent | --silent | --silen | --sile | --sil)
2231      continue ;;
2232    *\'*)
2233      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234    esac
2235    case $ac_pass in
2236    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237    2)
2238      as_fn_append ac_configure_args1 " '$ac_arg'"
2239      if test $ac_must_keep_next = true; then
2240	ac_must_keep_next=false # Got value, back to normal.
2241      else
2242	case $ac_arg in
2243	  *=* | --config-cache | -C | -disable-* | --disable-* \
2244	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246	  | -with-* | --with-* | -without-* | --without-* | --x)
2247	    case "$ac_configure_args0 " in
2248	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249	    esac
2250	    ;;
2251	  -* ) ac_must_keep_next=true ;;
2252	esac
2253      fi
2254      as_fn_append ac_configure_args " '$ac_arg'"
2255      ;;
2256    esac
2257  done
2258done
2259{ ac_configure_args0=; unset ac_configure_args0;}
2260{ ac_configure_args1=; unset ac_configure_args1;}
2261
2262# When interrupted or exit'd, cleanup temporary files, and complete
2263# config.log.  We remove comments because anyway the quotes in there
2264# would cause problems or look ugly.
2265# WARNING: Use '\'' to represent an apostrophe within the trap.
2266# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267trap 'exit_status=$?
2268  # Save into config.log some information that might help in debugging.
2269  {
2270    echo
2271
2272    $as_echo "## ---------------- ##
2273## Cache variables. ##
2274## ---------------- ##"
2275    echo
2276    # The following way of writing the cache mishandles newlines in values,
2277(
2278  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279    eval ac_val=\$$ac_var
2280    case $ac_val in #(
2281    *${as_nl}*)
2282      case $ac_var in #(
2283      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285      esac
2286      case $ac_var in #(
2287      _ | IFS | as_nl) ;; #(
2288      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289      *) { eval $ac_var=; unset $ac_var;} ;;
2290      esac ;;
2291    esac
2292  done
2293  (set) 2>&1 |
2294    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295    *${as_nl}ac_space=\ *)
2296      sed -n \
2297	"s/'\''/'\''\\\\'\'''\''/g;
2298	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299      ;; #(
2300    *)
2301      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2302      ;;
2303    esac |
2304    sort
2305)
2306    echo
2307
2308    $as_echo "## ----------------- ##
2309## Output variables. ##
2310## ----------------- ##"
2311    echo
2312    for ac_var in $ac_subst_vars
2313    do
2314      eval ac_val=\$$ac_var
2315      case $ac_val in
2316      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317      esac
2318      $as_echo "$ac_var='\''$ac_val'\''"
2319    done | sort
2320    echo
2321
2322    if test -n "$ac_subst_files"; then
2323      $as_echo "## ------------------- ##
2324## File substitutions. ##
2325## ------------------- ##"
2326      echo
2327      for ac_var in $ac_subst_files
2328      do
2329	eval ac_val=\$$ac_var
2330	case $ac_val in
2331	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332	esac
2333	$as_echo "$ac_var='\''$ac_val'\''"
2334      done | sort
2335      echo
2336    fi
2337
2338    if test -s confdefs.h; then
2339      $as_echo "## ----------- ##
2340## confdefs.h. ##
2341## ----------- ##"
2342      echo
2343      cat confdefs.h
2344      echo
2345    fi
2346    test "$ac_signal" != 0 &&
2347      $as_echo "$as_me: caught signal $ac_signal"
2348    $as_echo "$as_me: exit $exit_status"
2349  } >&5
2350  rm -f core *.core core.conftest.* &&
2351    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352    exit $exit_status
2353' 0
2354for ac_signal in 1 2 13 15; do
2355  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356done
2357ac_signal=0
2358
2359# confdefs.h avoids OS command line length limits that DEFS can exceed.
2360rm -f -r conftest* confdefs.h
2361
2362$as_echo "/* confdefs.h */" > confdefs.h
2363
2364# Predefined preprocessor variables.
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_NAME "$PACKAGE_NAME"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_VERSION "$PACKAGE_VERSION"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_STRING "$PACKAGE_STRING"
2380_ACEOF
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_URL "$PACKAGE_URL"
2388_ACEOF
2389
2390
2391# Let the site file select an alternate cache file if it wants to.
2392# Prefer an explicitly selected file to automatically selected ones.
2393ac_site_file1=NONE
2394ac_site_file2=NONE
2395if test -n "$CONFIG_SITE"; then
2396  # We do not want a PATH search for config.site.
2397  case $CONFIG_SITE in #((
2398    -*)  ac_site_file1=./$CONFIG_SITE;;
2399    */*) ac_site_file1=$CONFIG_SITE;;
2400    *)   ac_site_file1=./$CONFIG_SITE;;
2401  esac
2402elif test "x$prefix" != xNONE; then
2403  ac_site_file1=$prefix/share/config.site
2404  ac_site_file2=$prefix/etc/config.site
2405else
2406  ac_site_file1=$ac_default_prefix/share/config.site
2407  ac_site_file2=$ac_default_prefix/etc/config.site
2408fi
2409for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410do
2411  test "x$ac_site_file" = xNONE && continue
2412  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415    sed 's/^/| /' "$ac_site_file" >&5
2416    . "$ac_site_file" \
2417      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419as_fn_error $? "failed to load site script $ac_site_file
2420See \`config.log' for more details" "$LINENO" 5; }
2421  fi
2422done
2423
2424if test -r "$cache_file"; then
2425  # Some versions of bash will fail to source /dev/null (special files
2426  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2427  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429$as_echo "$as_me: loading cache $cache_file" >&6;}
2430    case $cache_file in
2431      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432      *)                      . "./$cache_file";;
2433    esac
2434  fi
2435else
2436  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437$as_echo "$as_me: creating cache $cache_file" >&6;}
2438  >$cache_file
2439fi
2440
2441# Check that the precious variables saved in the cache have kept the same
2442# value.
2443ac_cache_corrupted=false
2444for ac_var in $ac_precious_vars; do
2445  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2446  eval ac_new_set=\$ac_env_${ac_var}_set
2447  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2448  eval ac_new_val=\$ac_env_${ac_var}_value
2449  case $ac_old_set,$ac_new_set in
2450    set,)
2451      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453      ac_cache_corrupted=: ;;
2454    ,set)
2455      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457      ac_cache_corrupted=: ;;
2458    ,);;
2459    *)
2460      if test "x$ac_old_val" != "x$ac_new_val"; then
2461	# differences in whitespace do not lead to failure.
2462	ac_old_val_w=`echo x $ac_old_val`
2463	ac_new_val_w=`echo x $ac_new_val`
2464	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467	  ac_cache_corrupted=:
2468	else
2469	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471	  eval $ac_var=\$ac_old_val
2472	fi
2473	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2474$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2475	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2476$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2477      fi;;
2478  esac
2479  # Pass precious variables to config.status.
2480  if test "$ac_new_set" = set; then
2481    case $ac_new_val in
2482    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483    *) ac_arg=$ac_var=$ac_new_val ;;
2484    esac
2485    case " $ac_configure_args " in
2486      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2487      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2488    esac
2489  fi
2490done
2491if $ac_cache_corrupted; then
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497fi
2498## -------------------- ##
2499## Main body of script. ##
2500## -------------------- ##
2501
2502ac_ext=c
2503ac_cpp='$CPP $CPPFLAGS'
2504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507
2508
2509
2510
2511ac_aux_dir=
2512for ac_dir in .auto "$srcdir"/.auto; do
2513  if test -f "$ac_dir/install-sh"; then
2514    ac_aux_dir=$ac_dir
2515    ac_install_sh="$ac_aux_dir/install-sh -c"
2516    break
2517  elif test -f "$ac_dir/install.sh"; then
2518    ac_aux_dir=$ac_dir
2519    ac_install_sh="$ac_aux_dir/install.sh -c"
2520    break
2521  elif test -f "$ac_dir/shtool"; then
2522    ac_aux_dir=$ac_dir
2523    ac_install_sh="$ac_aux_dir/shtool install -c"
2524    break
2525  fi
2526done
2527if test -z "$ac_aux_dir"; then
2528  as_fn_error $? "cannot find install-sh, install.sh, or shtool in .auto \"$srcdir\"/.auto" "$LINENO" 5
2529fi
2530
2531# These three variables are undocumented and unsupported,
2532# and are intended to be withdrawn in a future Autoconf release.
2533# They can cause serious problems if a builder's source tree is in a directory
2534# whose full name contains unusual characters.
2535ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2536ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2537ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2538
2539
2540ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile doc/Makefile src/Makefile libmpeg2/Makefile libmpeg2/convert/Makefile libvo/Makefile libmpeg2/libmpeg2.pc libmpeg2/convert/libmpeg2convert.pc"
2541
2542ac_config_headers="$ac_config_headers include/config.h"
2543
2544# Make sure we can run config.sub.
2545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2546  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2549$as_echo_n "checking build system type... " >&6; }
2550if ${ac_cv_build+:} false; then :
2551  $as_echo_n "(cached) " >&6
2552else
2553  ac_build_alias=$build_alias
2554test "x$ac_build_alias" = x &&
2555  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2556test "x$ac_build_alias" = x &&
2557  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2558ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2559  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2563$as_echo "$ac_cv_build" >&6; }
2564case $ac_cv_build in
2565*-*-*) ;;
2566*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2567esac
2568build=$ac_cv_build
2569ac_save_IFS=$IFS; IFS='-'
2570set x $ac_cv_build
2571shift
2572build_cpu=$1
2573build_vendor=$2
2574shift; shift
2575# Remember, the first character of IFS is used to create $*,
2576# except with old shells:
2577build_os=$*
2578IFS=$ac_save_IFS
2579case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2580
2581
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2583$as_echo_n "checking host system type... " >&6; }
2584if ${ac_cv_host+:} false; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  if test "x$host_alias" = x; then
2588  ac_cv_host=$ac_cv_build
2589else
2590  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2591    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2592fi
2593
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2596$as_echo "$ac_cv_host" >&6; }
2597case $ac_cv_host in
2598*-*-*) ;;
2599*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2600esac
2601host=$ac_cv_host
2602ac_save_IFS=$IFS; IFS='-'
2603set x $ac_cv_host
2604shift
2605host_cpu=$1
2606host_vendor=$2
2607shift; shift
2608# Remember, the first character of IFS is used to create $*,
2609# except with old shells:
2610host_os=$*
2611IFS=$ac_save_IFS
2612case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2613
2614
2615
2616am__api_version='1.15'
2617
2618# Find a good install program.  We prefer a C program (faster),
2619# so one script is as good as another.  But avoid the broken or
2620# incompatible versions:
2621# SysV /etc/install, /usr/sbin/install
2622# SunOS /usr/etc/install
2623# IRIX /sbin/install
2624# AIX /bin/install
2625# AmigaOS /C/install, which installs bootblocks on floppy discs
2626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2627# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2629# OS/2's system install, which has a completely different semantic
2630# ./install, which can be erroneously created by make from ./install.sh.
2631# Reject install programs that cannot install multiple files.
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2633$as_echo_n "checking for a BSD-compatible install... " >&6; }
2634if test -z "$INSTALL"; then
2635if ${ac_cv_path_install+:} false; then :
2636  $as_echo_n "(cached) " >&6
2637else
2638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641  IFS=$as_save_IFS
2642  test -z "$as_dir" && as_dir=.
2643    # Account for people who put trailing slashes in PATH elements.
2644case $as_dir/ in #((
2645  ./ | .// | /[cC]/* | \
2646  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2647  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2648  /usr/ucb/* ) ;;
2649  *)
2650    # OSF1 and SCO ODT 3.0 have their own names for install.
2651    # Don't use installbsd from OSF since it installs stuff as root
2652    # by default.
2653    for ac_prog in ginstall scoinst install; do
2654      for ac_exec_ext in '' $ac_executable_extensions; do
2655	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2656	  if test $ac_prog = install &&
2657	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658	    # AIX install.  It has an incompatible calling convention.
2659	    :
2660	  elif test $ac_prog = install &&
2661	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662	    # program-specific install script used by HP pwplus--don't use.
2663	    :
2664	  else
2665	    rm -rf conftest.one conftest.two conftest.dir
2666	    echo one > conftest.one
2667	    echo two > conftest.two
2668	    mkdir conftest.dir
2669	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2670	      test -s conftest.one && test -s conftest.two &&
2671	      test -s conftest.dir/conftest.one &&
2672	      test -s conftest.dir/conftest.two
2673	    then
2674	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2675	      break 3
2676	    fi
2677	  fi
2678	fi
2679      done
2680    done
2681    ;;
2682esac
2683
2684  done
2685IFS=$as_save_IFS
2686
2687rm -rf conftest.one conftest.two conftest.dir
2688
2689fi
2690  if test "${ac_cv_path_install+set}" = set; then
2691    INSTALL=$ac_cv_path_install
2692  else
2693    # As a last resort, use the slow shell script.  Don't cache a
2694    # value for INSTALL within a source directory, because that will
2695    # break other packages using the cache if that directory is
2696    # removed, or if the value is a relative name.
2697    INSTALL=$ac_install_sh
2698  fi
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2701$as_echo "$INSTALL" >&6; }
2702
2703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2704# It thinks the first close brace ends the variable substitution.
2705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2706
2707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2708
2709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2712$as_echo_n "checking whether build environment is sane... " >&6; }
2713# Reject unsafe characters in $srcdir or the absolute working directory
2714# name.  Accept space and tab only in the latter.
2715am_lf='
2716'
2717case `pwd` in
2718  *[\\\"\#\$\&\'\`$am_lf]*)
2719    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2720esac
2721case $srcdir in
2722  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2723    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2724esac
2725
2726# Do 'set' in a subshell so we don't clobber the current shell's
2727# arguments.  Must try -L first in case configure is actually a
2728# symlink; some systems play weird games with the mod time of symlinks
2729# (eg FreeBSD returns the mod time of the symlink's containing
2730# directory).
2731if (
2732   am_has_slept=no
2733   for am_try in 1 2; do
2734     echo "timestamp, slept: $am_has_slept" > conftest.file
2735     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2736     if test "$*" = "X"; then
2737	# -L didn't work.
2738	set X `ls -t "$srcdir/configure" conftest.file`
2739     fi
2740     if test "$*" != "X $srcdir/configure conftest.file" \
2741	&& test "$*" != "X conftest.file $srcdir/configure"; then
2742
2743	# If neither matched, then we have a broken ls.  This can happen
2744	# if, for instance, CONFIG_SHELL is bash and it inherits a
2745	# broken ls alias from the environment.  This has actually
2746	# happened.  Such a system could not be considered "sane".
2747	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2748  alias in your environment" "$LINENO" 5
2749     fi
2750     if test "$2" = conftest.file || test $am_try -eq 2; then
2751       break
2752     fi
2753     # Just in case.
2754     sleep 1
2755     am_has_slept=yes
2756   done
2757   test "$2" = conftest.file
2758   )
2759then
2760   # Ok.
2761   :
2762else
2763   as_fn_error $? "newly created file is older than distributed files!
2764Check your system clock" "$LINENO" 5
2765fi
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767$as_echo "yes" >&6; }
2768# If we didn't sleep, we still need to ensure time stamps of config.status and
2769# generated files are strictly newer.
2770am_sleep_pid=
2771if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2772  ( sleep 1 ) &
2773  am_sleep_pid=$!
2774fi
2775
2776rm -f conftest.file
2777
2778test "$program_prefix" != NONE &&
2779  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2780# Use a double $ so make ignores it.
2781test "$program_suffix" != NONE &&
2782  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2783# Double any \ or $.
2784# By default was `s,x,x', remove it if useless.
2785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2786program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2787
2788# Expand $ac_aux_dir to an absolute path.
2789am_aux_dir=`cd "$ac_aux_dir" && pwd`
2790
2791if test x"${MISSING+set}" != xset; then
2792  case $am_aux_dir in
2793  *\ * | *\	*)
2794    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2795  *)
2796    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2797  esac
2798fi
2799# Use eval to expand $SHELL
2800if eval "$MISSING --is-lightweight"; then
2801  am_missing_run="$MISSING "
2802else
2803  am_missing_run=
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2805$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2806fi
2807
2808if test x"${install_sh+set}" != xset; then
2809  case $am_aux_dir in
2810  *\ * | *\	*)
2811    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2812  *)
2813    install_sh="\${SHELL} $am_aux_dir/install-sh"
2814  esac
2815fi
2816
2817# Installed binaries are usually stripped using 'strip' when the user
2818# run "make install-strip".  However 'strip' might not be the right
2819# tool to use in cross-compilation environments, therefore Automake
2820# will honor the 'STRIP' environment variable to overrule this program.
2821if test "$cross_compiling" != no; then
2822  if test -n "$ac_tool_prefix"; then
2823  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2824set dummy ${ac_tool_prefix}strip; ac_word=$2
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if ${ac_cv_prog_STRIP+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  if test -n "$STRIP"; then
2831  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838    for ac_exec_ext in '' $ac_executable_extensions; do
2839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850STRIP=$ac_cv_prog_STRIP
2851if test -n "$STRIP"; then
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2853$as_echo "$STRIP" >&6; }
2854else
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859
2860fi
2861if test -z "$ac_cv_prog_STRIP"; then
2862  ac_ct_STRIP=$STRIP
2863  # Extract the first word of "strip", so it can be a program name with args.
2864set dummy strip; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  if test -n "$ac_ct_STRIP"; then
2871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  test -z "$as_dir" && as_dir=.
2878    for ac_exec_ext in '' $ac_executable_extensions; do
2879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880    ac_cv_prog_ac_ct_STRIP="strip"
2881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885  done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2891if test -n "$ac_ct_STRIP"; then
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2893$as_echo "$ac_ct_STRIP" >&6; }
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899  if test "x$ac_ct_STRIP" = x; then
2900    STRIP=":"
2901  else
2902    case $cross_compiling:$ac_tool_warned in
2903yes:)
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906ac_tool_warned=yes ;;
2907esac
2908    STRIP=$ac_ct_STRIP
2909  fi
2910else
2911  STRIP="$ac_cv_prog_STRIP"
2912fi
2913
2914fi
2915INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2916
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2918$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2919if test -z "$MKDIR_P"; then
2920  if ${ac_cv_path_mkdir+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_prog in mkdir gmkdir; do
2929	 for ac_exec_ext in '' $ac_executable_extensions; do
2930	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2931	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2932	     'mkdir (GNU coreutils) '* | \
2933	     'mkdir (coreutils) '* | \
2934	     'mkdir (fileutils) '4.1*)
2935	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2936	       break 3;;
2937	   esac
2938	 done
2939       done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944
2945  test -d ./--version && rmdir ./--version
2946  if test "${ac_cv_path_mkdir+set}" = set; then
2947    MKDIR_P="$ac_cv_path_mkdir -p"
2948  else
2949    # As a last resort, use the slow shell script.  Don't cache a
2950    # value for MKDIR_P within a source directory, because that will
2951    # break other packages using the cache if that directory is
2952    # removed, or if the value is a relative name.
2953    MKDIR_P="$ac_install_sh -d"
2954  fi
2955fi
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2957$as_echo "$MKDIR_P" >&6; }
2958
2959for ac_prog in gawk mawk nawk awk
2960do
2961  # Extract the first word of "$ac_prog", so it can be a program name with args.
2962set dummy $ac_prog; ac_word=$2
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964$as_echo_n "checking for $ac_word... " >&6; }
2965if ${ac_cv_prog_AWK+:} false; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  if test -n "$AWK"; then
2969  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976    for ac_exec_ext in '' $ac_executable_extensions; do
2977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978    ac_cv_prog_AWK="$ac_prog"
2979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980    break 2
2981  fi
2982done
2983  done
2984IFS=$as_save_IFS
2985
2986fi
2987fi
2988AWK=$ac_cv_prog_AWK
2989if test -n "$AWK"; then
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2991$as_echo "$AWK" >&6; }
2992else
2993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994$as_echo "no" >&6; }
2995fi
2996
2997
2998  test -n "$AWK" && break
2999done
3000
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3002$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3003set x ${MAKE-make}
3004ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3005if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  cat >conftest.make <<\_ACEOF
3009SHELL = /bin/sh
3010all:
3011	@echo '@@@%%%=$(MAKE)=@@@%%%'
3012_ACEOF
3013# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3014case `${MAKE-make} -f conftest.make 2>/dev/null` in
3015  *@@@%%%=?*=@@@%%%*)
3016    eval ac_cv_prog_make_${ac_make}_set=yes;;
3017  *)
3018    eval ac_cv_prog_make_${ac_make}_set=no;;
3019esac
3020rm -f conftest.make
3021fi
3022if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3024$as_echo "yes" >&6; }
3025  SET_MAKE=
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
3029  SET_MAKE="MAKE=${MAKE-make}"
3030fi
3031
3032rm -rf .tst 2>/dev/null
3033mkdir .tst 2>/dev/null
3034if test -d .tst; then
3035  am__leading_dot=.
3036else
3037  am__leading_dot=_
3038fi
3039rmdir .tst 2>/dev/null
3040
3041# Check whether --enable-silent-rules was given.
3042if test "${enable_silent_rules+set}" = set; then :
3043  enableval=$enable_silent_rules;
3044fi
3045
3046case $enable_silent_rules in # (((
3047  yes) AM_DEFAULT_VERBOSITY=0;;
3048   no) AM_DEFAULT_VERBOSITY=1;;
3049    *) AM_DEFAULT_VERBOSITY=1;;
3050esac
3051am_make=${MAKE-make}
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3053$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3054if ${am_cv_make_support_nested_variables+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  if $as_echo 'TRUE=$(BAR$(V))
3058BAR0=false
3059BAR1=true
3060V=1
3061am__doit:
3062	@$(TRUE)
3063.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3064  am_cv_make_support_nested_variables=yes
3065else
3066  am_cv_make_support_nested_variables=no
3067fi
3068fi
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3070$as_echo "$am_cv_make_support_nested_variables" >&6; }
3071if test $am_cv_make_support_nested_variables = yes; then
3072    AM_V='$(V)'
3073  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3074else
3075  AM_V=$AM_DEFAULT_VERBOSITY
3076  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3077fi
3078AM_BACKSLASH='\'
3079
3080if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082  # is not polluted with repeated "-I."
3083  am__isrc=' -I$(srcdir)'
3084  # test to see if srcdir already configured
3085  if test -f $srcdir/config.status; then
3086    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3087  fi
3088fi
3089
3090# test whether we have cygpath
3091if test -z "$CYGPATH_W"; then
3092  if (cygpath --version) >/dev/null 2>/dev/null; then
3093    CYGPATH_W='cygpath -w'
3094  else
3095    CYGPATH_W=echo
3096  fi
3097fi
3098
3099
3100# Define the identity of the package.
3101 PACKAGE='libmpeg2'
3102 VERSION='0.5.1'
3103
3104
3105cat >>confdefs.h <<_ACEOF
3106#define PACKAGE "$PACKAGE"
3107_ACEOF
3108
3109
3110cat >>confdefs.h <<_ACEOF
3111#define VERSION "$VERSION"
3112_ACEOF
3113
3114# Some tools Automake needs.
3115
3116ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3117
3118
3119AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3120
3121
3122AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3123
3124
3125AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3126
3127
3128MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3129
3130# For better backward compatibility.  To be removed once Automake 1.9.x
3131# dies out for good.  For more background, see:
3132# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3133# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3134mkdir_p='$(MKDIR_P)'
3135
3136# We need awk for the "check" target (and possibly the TAP driver).  The
3137# system "awk" is bad on some platforms.
3138# Always define AMTAR for backward compatibility.  Yes, it's still used
3139# in the wild :-(  We should find a proper way to deprecate it ...
3140AMTAR='$${TAR-tar}'
3141
3142
3143# We'll loop over all known methods to create a tar archive until one works.
3144_am_tools='gnutar  pax cpio none'
3145
3146am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3147
3148
3149
3150
3151
3152
3153# POSIX will say in a future version that running "rm -f" with no argument
3154# is OK; and we want to be able to make that assumption in our Makefile
3155# recipes.  So use an aggressive probe to check that the usage we want is
3156# actually supported "in the wild" to an acceptable degree.
3157# See automake bug#10828.
3158# To make any issue more visible, cause the running configure to be aborted
3159# by default if the 'rm' program in use doesn't match our expectations; the
3160# user can still override this though.
3161if rm -f && rm -fr && rm -rf; then : OK; else
3162  cat >&2 <<'END'
3163Oops!
3164
3165Your 'rm' program seems unable to run without file operands specified
3166on the command line, even when the '-f' option is present.  This is contrary
3167to the behaviour of most rm programs out there, and not conforming with
3168the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3169
3170Please tell bug-automake@gnu.org about your system, including the value
3171of your $PATH and any error possibly output before this message.  This
3172can help us improve future automake versions.
3173
3174END
3175  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3176    echo 'Configuration will proceed anyway, since you have set the' >&2
3177    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3178    echo >&2
3179  else
3180    cat >&2 <<'END'
3181Aborting the configuration process, to ensure you take notice of the issue.
3182
3183You can download and install GNU coreutils to get an 'rm' implementation
3184that behaves properly: <http://www.gnu.org/software/coreutils/>.
3185
3186If you want to complete the configuration process using your problematic
3187'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3188to "yes", and re-run configure.
3189
3190END
3191    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3192  fi
3193fi
3194
3195
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3197$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3198    # Check whether --enable-maintainer-mode was given.
3199if test "${enable_maintainer_mode+set}" = set; then :
3200  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3201else
3202  USE_MAINTAINER_MODE=no
3203fi
3204
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3206$as_echo "$USE_MAINTAINER_MODE" >&6; }
3207   if test $USE_MAINTAINER_MODE = yes; then
3208  MAINTAINER_MODE_TRUE=
3209  MAINTAINER_MODE_FALSE='#'
3210else
3211  MAINTAINER_MODE_TRUE='#'
3212  MAINTAINER_MODE_FALSE=
3213fi
3214
3215  MAINT=$MAINTAINER_MODE_TRUE
3216
3217
3218
3219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224if test -n "$ac_tool_prefix"; then
3225  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3226set dummy ${ac_tool_prefix}gcc; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if ${ac_cv_prog_CC+:} false; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -n "$CC"; then
3233  ac_cv_prog_CC="$CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240    for ac_exec_ext in '' $ac_executable_extensions; do
3241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252CC=$ac_cv_prog_CC
3253if test -n "$CC"; then
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255$as_echo "$CC" >&6; }
3256else
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259fi
3260
3261
3262fi
3263if test -z "$ac_cv_prog_CC"; then
3264  ac_ct_CC=$CC
3265  # Extract the first word of "gcc", so it can be a program name with args.
3266set dummy gcc; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
3269if ${ac_cv_prog_ac_ct_CC+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  if test -n "$ac_ct_CC"; then
3273  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280    for ac_exec_ext in '' $ac_executable_extensions; do
3281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282    ac_cv_prog_ac_ct_CC="gcc"
3283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287  done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293if test -n "$ac_ct_CC"; then
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3295$as_echo "$ac_ct_CC" >&6; }
3296else
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299fi
3300
3301  if test "x$ac_ct_CC" = x; then
3302    CC=""
3303  else
3304    case $cross_compiling:$ac_tool_warned in
3305yes:)
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308ac_tool_warned=yes ;;
3309esac
3310    CC=$ac_ct_CC
3311  fi
3312else
3313  CC="$ac_cv_prog_CC"
3314fi
3315
3316if test -z "$CC"; then
3317          if test -n "$ac_tool_prefix"; then
3318    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3319set dummy ${ac_tool_prefix}cc; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
3322if ${ac_cv_prog_CC+:} false; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  if test -n "$CC"; then
3326  ac_cv_prog_CC="$CC" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  test -z "$as_dir" && as_dir=.
3333    for ac_exec_ext in '' $ac_executable_extensions; do
3334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335    ac_cv_prog_CC="${ac_tool_prefix}cc"
3336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340  done
3341IFS=$as_save_IFS
3342
3343fi
3344fi
3345CC=$ac_cv_prog_CC
3346if test -n "$CC"; then
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348$as_echo "$CC" >&6; }
3349else
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355  fi
3356fi
3357if test -z "$CC"; then
3358  # Extract the first word of "cc", so it can be a program name with args.
3359set dummy cc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
3362if ${ac_cv_prog_CC+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  if test -n "$CC"; then
3366  ac_cv_prog_CC="$CC" # Let the user override the test.
3367else
3368  ac_prog_rejected=no
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3377       ac_prog_rejected=yes
3378       continue
3379     fi
3380    ac_cv_prog_CC="cc"
3381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382    break 2
3383  fi
3384done
3385  done
3386IFS=$as_save_IFS
3387
3388if test $ac_prog_rejected = yes; then
3389  # We found a bogon in the path, so make sure we never use it.
3390  set dummy $ac_cv_prog_CC
3391  shift
3392  if test $# != 0; then
3393    # We chose a different compiler from the bogus one.
3394    # However, it has the same basename, so the bogon will be chosen
3395    # first if we set CC to just the basename; use the full file name.
3396    shift
3397    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3398  fi
3399fi
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405$as_echo "$CC" >&6; }
3406else
3407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412fi
3413if test -z "$CC"; then
3414  if test -n "$ac_tool_prefix"; then
3415  for ac_prog in cl.exe
3416  do
3417    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420$as_echo_n "checking for $ac_word... " >&6; }
3421if ${ac_cv_prog_CC+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  if test -n "$CC"; then
3425  ac_cv_prog_CC="$CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430  IFS=$as_save_IFS
3431  test -z "$as_dir" && as_dir=.
3432    for ac_exec_ext in '' $ac_executable_extensions; do
3433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436    break 2
3437  fi
3438done
3439  done
3440IFS=$as_save_IFS
3441
3442fi
3443fi
3444CC=$ac_cv_prog_CC
3445if test -n "$CC"; then
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3447$as_echo "$CC" >&6; }
3448else
3449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450$as_echo "no" >&6; }
3451fi
3452
3453
3454    test -n "$CC" && break
3455  done
3456fi
3457if test -z "$CC"; then
3458  ac_ct_CC=$CC
3459  for ac_prog in cl.exe
3460do
3461  # Extract the first word of "$ac_prog", so it can be a program name with args.
3462set dummy $ac_prog; ac_word=$2
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if ${ac_cv_prog_ac_ct_CC+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  if test -n "$ac_ct_CC"; then
3469  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    for ac_exec_ext in '' $ac_executable_extensions; do
3477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478    ac_cv_prog_ac_ct_CC="$ac_prog"
3479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480    break 2
3481  fi
3482done
3483  done
3484IFS=$as_save_IFS
3485
3486fi
3487fi
3488ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489if test -n "$ac_ct_CC"; then
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3491$as_echo "$ac_ct_CC" >&6; }
3492else
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497
3498  test -n "$ac_ct_CC" && break
3499done
3500
3501  if test "x$ac_ct_CC" = x; then
3502    CC=""
3503  else
3504    case $cross_compiling:$ac_tool_warned in
3505yes:)
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3508ac_tool_warned=yes ;;
3509esac
3510    CC=$ac_ct_CC
3511  fi
3512fi
3513
3514fi
3515
3516
3517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519as_fn_error $? "no acceptable C compiler found in \$PATH
3520See \`config.log' for more details" "$LINENO" 5; }
3521
3522# Provide some information about the compiler.
3523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3524set X $ac_compile
3525ac_compiler=$2
3526for ac_option in --version -v -V -qversion; do
3527  { { ac_try="$ac_compiler $ac_option >&5"
3528case "(($ac_try" in
3529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530  *) ac_try_echo=$ac_try;;
3531esac
3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533$as_echo "$ac_try_echo"; } >&5
3534  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3535  ac_status=$?
3536  if test -s conftest.err; then
3537    sed '10a\
3538... rest of stderr output deleted ...
3539         10q' conftest.err >conftest.er1
3540    cat conftest.er1 >&5
3541  fi
3542  rm -f conftest.er1 conftest.err
3543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544  test $ac_status = 0; }
3545done
3546
3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558ac_clean_files_save=$ac_clean_files
3559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3560# Try to create an executable without -o first, disregard a.out.
3561# It will help us diagnose broken compilers, and finding out an intuition
3562# of exeext.
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3564$as_echo_n "checking whether the C compiler works... " >&6; }
3565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3566
3567# The possible output files:
3568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3569
3570ac_rmfiles=
3571for ac_file in $ac_files
3572do
3573  case $ac_file in
3574    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3576  esac
3577done
3578rm -f $ac_rmfiles
3579
3580if { { ac_try="$ac_link_default"
3581case "(($ac_try" in
3582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583  *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586$as_echo "$ac_try_echo"; } >&5
3587  (eval "$ac_link_default") 2>&5
3588  ac_status=$?
3589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590  test $ac_status = 0; }; then :
3591  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3593# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3594# so that the user can short-circuit this test for compilers unknown to
3595# Autoconf.
3596for ac_file in $ac_files ''
3597do
3598  test -f "$ac_file" || continue
3599  case $ac_file in
3600    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3601	;;
3602    [ab].out )
3603	# We found the default executable, but exeext='' is most
3604	# certainly right.
3605	break;;
3606    *.* )
3607	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3608	then :; else
3609	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610	fi
3611	# We set ac_cv_exeext here because the later test for it is not
3612	# safe: cross compilers may not add the suffix if given an `-o'
3613	# argument, so we may need to know it at that point already.
3614	# Even if this section looks crufty: it has the advantage of
3615	# actually working.
3616	break;;
3617    * )
3618	break;;
3619  esac
3620done
3621test "$ac_cv_exeext" = no && ac_cv_exeext=
3622
3623else
3624  ac_file=''
3625fi
3626if test -z "$ac_file"; then :
3627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629$as_echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634as_fn_error 77 "C compiler cannot create executables
3635See \`config.log' for more details" "$LINENO" 5; }
3636else
3637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638$as_echo "yes" >&6; }
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3641$as_echo_n "checking for C compiler default output file name... " >&6; }
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3643$as_echo "$ac_file" >&6; }
3644ac_exeext=$ac_cv_exeext
3645
3646rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3647ac_clean_files=$ac_clean_files_save
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3649$as_echo_n "checking for suffix of executables... " >&6; }
3650if { { ac_try="$ac_link"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657  (eval "$ac_link") 2>&5
3658  ac_status=$?
3659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660  test $ac_status = 0; }; then :
3661  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3662# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3663# work properly (i.e., refer to `conftest.exe'), while it won't with
3664# `rm'.
3665for ac_file in conftest.exe conftest conftest.*; do
3666  test -f "$ac_file" || continue
3667  case $ac_file in
3668    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3669    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670	  break;;
3671    * ) break;;
3672  esac
3673done
3674else
3675  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3678See \`config.log' for more details" "$LINENO" 5; }
3679fi
3680rm -f conftest conftest$ac_cv_exeext
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3682$as_echo "$ac_cv_exeext" >&6; }
3683
3684rm -f conftest.$ac_ext
3685EXEEXT=$ac_cv_exeext
3686ac_exeext=$EXEEXT
3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689#include <stdio.h>
3690int
3691main ()
3692{
3693FILE *f = fopen ("conftest.out", "w");
3694 return ferror (f) || fclose (f) != 0;
3695
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700ac_clean_files="$ac_clean_files conftest.out"
3701# Check that the compiler produces executables we can run.  If not, either
3702# the compiler is broken, or we cross compile.
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3704$as_echo_n "checking whether we are cross compiling... " >&6; }
3705if test "$cross_compiling" != yes; then
3706  { { ac_try="$ac_link"
3707case "(($ac_try" in
3708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709  *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713  (eval "$ac_link") 2>&5
3714  ac_status=$?
3715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716  test $ac_status = 0; }
3717  if { ac_try='./conftest$ac_cv_exeext'
3718  { { case "(($ac_try" in
3719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720  *) ac_try_echo=$ac_try;;
3721esac
3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723$as_echo "$ac_try_echo"; } >&5
3724  (eval "$ac_try") 2>&5
3725  ac_status=$?
3726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727  test $ac_status = 0; }; }; then
3728    cross_compiling=no
3729  else
3730    if test "$cross_compiling" = maybe; then
3731	cross_compiling=yes
3732    else
3733	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735as_fn_error $? "cannot run C compiled programs.
3736If you meant to cross compile, use \`--host'.
3737See \`config.log' for more details" "$LINENO" 5; }
3738    fi
3739  fi
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3742$as_echo "$cross_compiling" >&6; }
3743
3744rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3745ac_clean_files=$ac_clean_files_save
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3747$as_echo_n "checking for suffix of object files... " >&6; }
3748if ${ac_cv_objext+:} false; then :
3749  $as_echo_n "(cached) " >&6
3750else
3751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753
3754int
3755main ()
3756{
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762rm -f conftest.o conftest.obj
3763if { { ac_try="$ac_compile"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770  (eval "$ac_compile") 2>&5
3771  ac_status=$?
3772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }; then :
3774  for ac_file in conftest.o conftest.obj conftest.*; do
3775  test -f "$ac_file" || continue;
3776  case $ac_file in
3777    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3778    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3779       break;;
3780  esac
3781done
3782else
3783  $as_echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788as_fn_error $? "cannot compute suffix of object files: cannot compile
3789See \`config.log' for more details" "$LINENO" 5; }
3790fi
3791rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3794$as_echo "$ac_cv_objext" >&6; }
3795OBJEXT=$ac_cv_objext
3796ac_objext=$OBJEXT
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3799if ${ac_cv_c_compiler_gnu+:} false; then :
3800  $as_echo_n "(cached) " >&6
3801else
3802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804
3805int
3806main ()
3807{
3808#ifndef __GNUC__
3809       choke me
3810#endif
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"; then :
3817  ac_compiler_gnu=yes
3818else
3819  ac_compiler_gnu=no
3820fi
3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822ac_cv_c_compiler_gnu=$ac_compiler_gnu
3823
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3826$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3827if test $ac_compiler_gnu = yes; then
3828  GCC=yes
3829else
3830  GCC=
3831fi
3832ac_test_CFLAGS=${CFLAGS+set}
3833ac_save_CFLAGS=$CFLAGS
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3835$as_echo_n "checking whether $CC accepts -g... " >&6; }
3836if ${ac_cv_prog_cc_g+:} false; then :
3837  $as_echo_n "(cached) " >&6
3838else
3839  ac_save_c_werror_flag=$ac_c_werror_flag
3840   ac_c_werror_flag=yes
3841   ac_cv_prog_cc_g=no
3842   CFLAGS="-g"
3843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845
3846int
3847main ()
3848{
3849
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854if ac_fn_c_try_compile "$LINENO"; then :
3855  ac_cv_prog_cc_g=yes
3856else
3857  CFLAGS=""
3858      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860
3861int
3862main ()
3863{
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869if ac_fn_c_try_compile "$LINENO"; then :
3870
3871else
3872  ac_c_werror_flag=$ac_save_c_werror_flag
3873	 CFLAGS="-g"
3874	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885if ac_fn_c_try_compile "$LINENO"; then :
3886  ac_cv_prog_cc_g=yes
3887fi
3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889fi
3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891fi
3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893   ac_c_werror_flag=$ac_save_c_werror_flag
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3896$as_echo "$ac_cv_prog_cc_g" >&6; }
3897if test "$ac_test_CFLAGS" = set; then
3898  CFLAGS=$ac_save_CFLAGS
3899elif test $ac_cv_prog_cc_g = yes; then
3900  if test "$GCC" = yes; then
3901    CFLAGS="-g -O2"
3902  else
3903    CFLAGS="-g"
3904  fi
3905else
3906  if test "$GCC" = yes; then
3907    CFLAGS="-O2"
3908  else
3909    CFLAGS=
3910  fi
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3914if ${ac_cv_prog_cc_c89+:} false; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917  ac_cv_prog_cc_c89=no
3918ac_save_CC=$CC
3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921#include <stdarg.h>
3922#include <stdio.h>
3923struct stat;
3924/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3925struct buf { int x; };
3926FILE * (*rcsopen) (struct buf *, struct stat *, int);
3927static char *e (p, i)
3928     char **p;
3929     int i;
3930{
3931  return p[i];
3932}
3933static char *f (char * (*g) (char **, int), char **p, ...)
3934{
3935  char *s;
3936  va_list v;
3937  va_start (v,p);
3938  s = g (p, va_arg (v,int));
3939  va_end (v);
3940  return s;
3941}
3942
3943/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3944   function prototypes and stuff, but not '\xHH' hex character constants.
3945   These don't provoke an error unfortunately, instead are silently treated
3946   as 'x'.  The following induces an error, until -std is added to get
3947   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3948   array size at least.  It's necessary to write '\x00'==0 to get something
3949   that's true only with -std.  */
3950int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3951
3952/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3953   inside strings and character constants.  */
3954#define FOO(x) 'x'
3955int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3956
3957int test (int i, double x);
3958struct s1 {int (*f) (int a);};
3959struct s2 {int (*f) (double a);};
3960int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3961int argc;
3962char **argv;
3963int
3964main ()
3965{
3966return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3972	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973do
3974  CC="$ac_save_CC $ac_arg"
3975  if ac_fn_c_try_compile "$LINENO"; then :
3976  ac_cv_prog_cc_c89=$ac_arg
3977fi
3978rm -f core conftest.err conftest.$ac_objext
3979  test "x$ac_cv_prog_cc_c89" != "xno" && break
3980done
3981rm -f conftest.$ac_ext
3982CC=$ac_save_CC
3983
3984fi
3985# AC_CACHE_VAL
3986case "x$ac_cv_prog_cc_c89" in
3987  x)
3988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3989$as_echo "none needed" >&6; } ;;
3990  xno)
3991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3992$as_echo "unsupported" >&6; } ;;
3993  *)
3994    CC="$CC $ac_cv_prog_cc_c89"
3995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3996$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3997esac
3998if test "x$ac_cv_prog_cc_c89" != xno; then :
3999
4000fi
4001
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4014$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4015if ${am_cv_prog_cc_c_o+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h.  */
4020
4021int
4022main ()
4023{
4024
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029  # Make sure it works both with $CC and with simple cc.
4030  # Following AC_PROG_CC_C_O, we do the test twice because some
4031  # compilers refuse to overwrite an existing .o file with -o,
4032  # though they will create one.
4033  am_cv_prog_cc_c_o=yes
4034  for am_i in 1 2; do
4035    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4036   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } \
4040         && test -f conftest2.$ac_objext; then
4041      : OK
4042    else
4043      am_cv_prog_cc_c_o=no
4044      break
4045    fi
4046  done
4047  rm -f core conftest*
4048  unset am_i
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4051$as_echo "$am_cv_prog_cc_c_o" >&6; }
4052if test "$am_cv_prog_cc_c_o" != yes; then
4053   # Losing compiler, so override with the script.
4054   # FIXME: It is wrong to rewrite CC.
4055   # But if we don't then we get into trouble of one sort or another.
4056   # A longer-term fix would be to have automake use am__CC in this case,
4057   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4058   CC="$am_aux_dir/compile $CC"
4059fi
4060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
4066DEPDIR="${am__leading_dot}deps"
4067
4068ac_config_commands="$ac_config_commands depfiles"
4069
4070
4071am_make=${MAKE-make}
4072cat > confinc << 'END'
4073am__doit:
4074	@echo this is the am__doit target
4075.PHONY: am__doit
4076END
4077# If we don't find an include directive, just comment out the code.
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4079$as_echo_n "checking for style of include used by $am_make... " >&6; }
4080am__include="#"
4081am__quote=
4082_am_result=none
4083# First try GNU make style include.
4084echo "include confinc" > confmf
4085# Ignore all kinds of additional output from 'make'.
4086case `$am_make -s -f confmf 2> /dev/null` in #(
4087*the\ am__doit\ target*)
4088  am__include=include
4089  am__quote=
4090  _am_result=GNU
4091  ;;
4092esac
4093# Now try BSD make style include.
4094if test "$am__include" = "#"; then
4095   echo '.include "confinc"' > confmf
4096   case `$am_make -s -f confmf 2> /dev/null` in #(
4097   *the\ am__doit\ target*)
4098     am__include=.include
4099     am__quote="\""
4100     _am_result=BSD
4101     ;;
4102   esac
4103fi
4104
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4107$as_echo "$_am_result" >&6; }
4108rm -f confinc confmf
4109
4110# Check whether --enable-dependency-tracking was given.
4111if test "${enable_dependency_tracking+set}" = set; then :
4112  enableval=$enable_dependency_tracking;
4113fi
4114
4115if test "x$enable_dependency_tracking" != xno; then
4116  am_depcomp="$ac_aux_dir/depcomp"
4117  AMDEPBACKSLASH='\'
4118  am__nodep='_no'
4119fi
4120 if test "x$enable_dependency_tracking" != xno; then
4121  AMDEP_TRUE=
4122  AMDEP_FALSE='#'
4123else
4124  AMDEP_TRUE='#'
4125  AMDEP_FALSE=
4126fi
4127
4128
4129
4130depcc="$CC"   am_compiler_list=
4131
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4133$as_echo_n "checking dependency style of $depcc... " >&6; }
4134if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4138  # We make a subdir and do the tests there.  Otherwise we can end up
4139  # making bogus files that we don't know about and never remove.  For
4140  # instance it was reported that on HP-UX the gcc test will end up
4141  # making a dummy file named 'D' -- because '-MD' means "put the output
4142  # in D".
4143  rm -rf conftest.dir
4144  mkdir conftest.dir
4145  # Copy depcomp to subdir because otherwise we won't find it if we're
4146  # using a relative directory.
4147  cp "$am_depcomp" conftest.dir
4148  cd conftest.dir
4149  # We will build objects and dependencies in a subdirectory because
4150  # it helps to detect inapplicable dependency modes.  For instance
4151  # both Tru64's cc and ICC support -MD to output dependencies as a
4152  # side effect of compilation, but ICC will put the dependencies in
4153  # the current directory while Tru64 will put them in the object
4154  # directory.
4155  mkdir sub
4156
4157  am_cv_CC_dependencies_compiler_type=none
4158  if test "$am_compiler_list" = ""; then
4159     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4160  fi
4161  am__universal=false
4162  case " $depcc " in #(
4163     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4164     esac
4165
4166  for depmode in $am_compiler_list; do
4167    # Setup a source with many dependencies, because some compilers
4168    # like to wrap large dependency lists on column 80 (with \), and
4169    # we should not choose a depcomp mode which is confused by this.
4170    #
4171    # We need to recreate these files for each test, as the compiler may
4172    # overwrite some of them when testing with obscure command lines.
4173    # This happens at least with the AIX C compiler.
4174    : > sub/conftest.c
4175    for i in 1 2 3 4 5 6; do
4176      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4177      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4178      # Solaris 10 /bin/sh.
4179      echo '/* dummy */' > sub/conftst$i.h
4180    done
4181    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4182
4183    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4184    # mode.  It turns out that the SunPro C++ compiler does not properly
4185    # handle '-M -o', and we need to detect this.  Also, some Intel
4186    # versions had trouble with output in subdirs.
4187    am__obj=sub/conftest.${OBJEXT-o}
4188    am__minus_obj="-o $am__obj"
4189    case $depmode in
4190    gcc)
4191      # This depmode causes a compiler race in universal mode.
4192      test "$am__universal" = false || continue
4193      ;;
4194    nosideeffect)
4195      # After this tag, mechanisms are not by side-effect, so they'll
4196      # only be used when explicitly requested.
4197      if test "x$enable_dependency_tracking" = xyes; then
4198	continue
4199      else
4200	break
4201      fi
4202      ;;
4203    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4204      # This compiler won't grok '-c -o', but also, the minuso test has
4205      # not run yet.  These depmodes are late enough in the game, and
4206      # so weak that their functioning should not be impacted.
4207      am__obj=conftest.${OBJEXT-o}
4208      am__minus_obj=
4209      ;;
4210    none) break ;;
4211    esac
4212    if depmode=$depmode \
4213       source=sub/conftest.c object=$am__obj \
4214       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4215       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4216         >/dev/null 2>conftest.err &&
4217       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4218       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4219       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4220       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4221      # icc doesn't choke on unknown options, it will just issue warnings
4222      # or remarks (even with -Werror).  So we grep stderr for any message
4223      # that says an option was ignored or not supported.
4224      # When given -MP, icc 7.0 and 7.1 complain thusly:
4225      #   icc: Command line warning: ignoring option '-M'; no argument required
4226      # The diagnosis changed in icc 8.0:
4227      #   icc: Command line remark: option '-MP' not supported
4228      if (grep 'ignoring option' conftest.err ||
4229          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4230        am_cv_CC_dependencies_compiler_type=$depmode
4231        break
4232      fi
4233    fi
4234  done
4235
4236  cd ..
4237  rm -rf conftest.dir
4238else
4239  am_cv_CC_dependencies_compiler_type=none
4240fi
4241
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4244$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4245CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4246
4247 if
4248  test "x$enable_dependency_tracking" != xno \
4249  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4250  am__fastdepCC_TRUE=
4251  am__fastdepCC_FALSE='#'
4252else
4253  am__fastdepCC_TRUE='#'
4254  am__fastdepCC_FALSE=
4255fi
4256
4257
4258
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4265$as_echo_n "checking how to run the C preprocessor... " >&6; }
4266# On Suns, sometimes $CPP names a directory.
4267if test -n "$CPP" && test -d "$CPP"; then
4268  CPP=
4269fi
4270if test -z "$CPP"; then
4271  if ${ac_cv_prog_CPP+:} false; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274      # Double quotes because CPP needs to be expanded
4275    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4276    do
4277      ac_preproc_ok=false
4278for ac_c_preproc_warn_flag in '' yes
4279do
4280  # Use a header file that comes with gcc, so configuring glibc
4281  # with a fresh cross-compiler works.
4282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4283  # <limits.h> exists even on freestanding compilers.
4284  # On the NeXT, cc -E runs the code through the compiler's parser,
4285  # not just through cpp. "Syntax error" is here to catch this case.
4286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287/* end confdefs.h.  */
4288#ifdef __STDC__
4289# include <limits.h>
4290#else
4291# include <assert.h>
4292#endif
4293		     Syntax error
4294_ACEOF
4295if ac_fn_c_try_cpp "$LINENO"; then :
4296
4297else
4298  # Broken: fails on valid input.
4299continue
4300fi
4301rm -f conftest.err conftest.i conftest.$ac_ext
4302
4303  # OK, works on sane cases.  Now check whether nonexistent headers
4304  # can be detected and how.
4305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307#include <ac_nonexistent.h>
4308_ACEOF
4309if ac_fn_c_try_cpp "$LINENO"; then :
4310  # Broken: success on invalid input.
4311continue
4312else
4313  # Passes both tests.
4314ac_preproc_ok=:
4315break
4316fi
4317rm -f conftest.err conftest.i conftest.$ac_ext
4318
4319done
4320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4321rm -f conftest.i conftest.err conftest.$ac_ext
4322if $ac_preproc_ok; then :
4323  break
4324fi
4325
4326    done
4327    ac_cv_prog_CPP=$CPP
4328
4329fi
4330  CPP=$ac_cv_prog_CPP
4331else
4332  ac_cv_prog_CPP=$CPP
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4335$as_echo "$CPP" >&6; }
4336ac_preproc_ok=false
4337for ac_c_preproc_warn_flag in '' yes
4338do
4339  # Use a header file that comes with gcc, so configuring glibc
4340  # with a fresh cross-compiler works.
4341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342  # <limits.h> exists even on freestanding compilers.
4343  # On the NeXT, cc -E runs the code through the compiler's parser,
4344  # not just through cpp. "Syntax error" is here to catch this case.
4345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347#ifdef __STDC__
4348# include <limits.h>
4349#else
4350# include <assert.h>
4351#endif
4352		     Syntax error
4353_ACEOF
4354if ac_fn_c_try_cpp "$LINENO"; then :
4355
4356else
4357  # Broken: fails on valid input.
4358continue
4359fi
4360rm -f conftest.err conftest.i conftest.$ac_ext
4361
4362  # OK, works on sane cases.  Now check whether nonexistent headers
4363  # can be detected and how.
4364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h.  */
4366#include <ac_nonexistent.h>
4367_ACEOF
4368if ac_fn_c_try_cpp "$LINENO"; then :
4369  # Broken: success on invalid input.
4370continue
4371else
4372  # Passes both tests.
4373ac_preproc_ok=:
4374break
4375fi
4376rm -f conftest.err conftest.i conftest.$ac_ext
4377
4378done
4379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380rm -f conftest.i conftest.err conftest.$ac_ext
4381if $ac_preproc_ok; then :
4382
4383else
4384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4387See \`config.log' for more details" "$LINENO" 5; }
4388fi
4389
4390ac_ext=c
4391ac_cpp='$CPP $CPPFLAGS'
4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395
4396
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4398$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4399if ${ac_cv_path_GREP+:} false; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  if test -z "$GREP"; then
4403  ac_path_GREP_found=false
4404  # Loop through the user's path and test for each of PROGNAME-LIST
4405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407do
4408  IFS=$as_save_IFS
4409  test -z "$as_dir" && as_dir=.
4410    for ac_prog in grep ggrep; do
4411    for ac_exec_ext in '' $ac_executable_extensions; do
4412      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4413      as_fn_executable_p "$ac_path_GREP" || continue
4414# Check for GNU ac_path_GREP and select it if it is found.
4415  # Check for GNU $ac_path_GREP
4416case `"$ac_path_GREP" --version 2>&1` in
4417*GNU*)
4418  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4419*)
4420  ac_count=0
4421  $as_echo_n 0123456789 >"conftest.in"
4422  while :
4423  do
4424    cat "conftest.in" "conftest.in" >"conftest.tmp"
4425    mv "conftest.tmp" "conftest.in"
4426    cp "conftest.in" "conftest.nl"
4427    $as_echo 'GREP' >> "conftest.nl"
4428    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430    as_fn_arith $ac_count + 1 && ac_count=$as_val
4431    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4432      # Best one so far, save it but keep looking for a better one
4433      ac_cv_path_GREP="$ac_path_GREP"
4434      ac_path_GREP_max=$ac_count
4435    fi
4436    # 10*(2^10) chars as input seems more than enough
4437    test $ac_count -gt 10 && break
4438  done
4439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440esac
4441
4442      $ac_path_GREP_found && break 3
4443    done
4444  done
4445  done
4446IFS=$as_save_IFS
4447  if test -z "$ac_cv_path_GREP"; then
4448    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4449  fi
4450else
4451  ac_cv_path_GREP=$GREP
4452fi
4453
4454fi
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4456$as_echo "$ac_cv_path_GREP" >&6; }
4457 GREP="$ac_cv_path_GREP"
4458
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4461$as_echo_n "checking for egrep... " >&6; }
4462if ${ac_cv_path_EGREP+:} false; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4466   then ac_cv_path_EGREP="$GREP -E"
4467   else
4468     if test -z "$EGREP"; then
4469  ac_path_EGREP_found=false
4470  # Loop through the user's path and test for each of PROGNAME-LIST
4471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4473do
4474  IFS=$as_save_IFS
4475  test -z "$as_dir" && as_dir=.
4476    for ac_prog in egrep; do
4477    for ac_exec_ext in '' $ac_executable_extensions; do
4478      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4479      as_fn_executable_p "$ac_path_EGREP" || continue
4480# Check for GNU ac_path_EGREP and select it if it is found.
4481  # Check for GNU $ac_path_EGREP
4482case `"$ac_path_EGREP" --version 2>&1` in
4483*GNU*)
4484  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4485*)
4486  ac_count=0
4487  $as_echo_n 0123456789 >"conftest.in"
4488  while :
4489  do
4490    cat "conftest.in" "conftest.in" >"conftest.tmp"
4491    mv "conftest.tmp" "conftest.in"
4492    cp "conftest.in" "conftest.nl"
4493    $as_echo 'EGREP' >> "conftest.nl"
4494    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496    as_fn_arith $ac_count + 1 && ac_count=$as_val
4497    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4498      # Best one so far, save it but keep looking for a better one
4499      ac_cv_path_EGREP="$ac_path_EGREP"
4500      ac_path_EGREP_max=$ac_count
4501    fi
4502    # 10*(2^10) chars as input seems more than enough
4503    test $ac_count -gt 10 && break
4504  done
4505  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506esac
4507
4508      $ac_path_EGREP_found && break 3
4509    done
4510  done
4511  done
4512IFS=$as_save_IFS
4513  if test -z "$ac_cv_path_EGREP"; then
4514    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4515  fi
4516else
4517  ac_cv_path_EGREP=$EGREP
4518fi
4519
4520   fi
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4523$as_echo "$ac_cv_path_EGREP" >&6; }
4524 EGREP="$ac_cv_path_EGREP"
4525
4526
4527if test $ac_cv_c_compiler_gnu = yes; then
4528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4529$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4530if ${ac_cv_prog_gcc_traditional+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533    ac_pattern="Autoconf.*'x'"
4534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536#include <sgtty.h>
4537Autoconf TIOCGETP
4538_ACEOF
4539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4541  ac_cv_prog_gcc_traditional=yes
4542else
4543  ac_cv_prog_gcc_traditional=no
4544fi
4545rm -f conftest*
4546
4547
4548  if test $ac_cv_prog_gcc_traditional = no; then
4549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551#include <termio.h>
4552Autoconf TCGETA
4553_ACEOF
4554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4556  ac_cv_prog_gcc_traditional=yes
4557fi
4558rm -f conftest*
4559
4560  fi
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4563$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4564  if test $ac_cv_prog_gcc_traditional = yes; then
4565    CC="$CC -traditional"
4566  fi
4567fi
4568
4569# By default we simply use the C compiler to build assembly code.
4570
4571test "${CCAS+set}" = set || CCAS=$CC
4572test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4573
4574
4575
4576depcc="$CCAS"   am_compiler_list=
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4579$as_echo_n "checking dependency style of $depcc... " >&6; }
4580if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4584  # We make a subdir and do the tests there.  Otherwise we can end up
4585  # making bogus files that we don't know about and never remove.  For
4586  # instance it was reported that on HP-UX the gcc test will end up
4587  # making a dummy file named 'D' -- because '-MD' means "put the output
4588  # in D".
4589  rm -rf conftest.dir
4590  mkdir conftest.dir
4591  # Copy depcomp to subdir because otherwise we won't find it if we're
4592  # using a relative directory.
4593  cp "$am_depcomp" conftest.dir
4594  cd conftest.dir
4595  # We will build objects and dependencies in a subdirectory because
4596  # it helps to detect inapplicable dependency modes.  For instance
4597  # both Tru64's cc and ICC support -MD to output dependencies as a
4598  # side effect of compilation, but ICC will put the dependencies in
4599  # the current directory while Tru64 will put them in the object
4600  # directory.
4601  mkdir sub
4602
4603  am_cv_CCAS_dependencies_compiler_type=none
4604  if test "$am_compiler_list" = ""; then
4605     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4606  fi
4607  am__universal=false
4608
4609
4610  for depmode in $am_compiler_list; do
4611    # Setup a source with many dependencies, because some compilers
4612    # like to wrap large dependency lists on column 80 (with \), and
4613    # we should not choose a depcomp mode which is confused by this.
4614    #
4615    # We need to recreate these files for each test, as the compiler may
4616    # overwrite some of them when testing with obscure command lines.
4617    # This happens at least with the AIX C compiler.
4618    : > sub/conftest.c
4619    for i in 1 2 3 4 5 6; do
4620      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4621      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4622      # Solaris 10 /bin/sh.
4623      echo '/* dummy */' > sub/conftst$i.h
4624    done
4625    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4626
4627    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4628    # mode.  It turns out that the SunPro C++ compiler does not properly
4629    # handle '-M -o', and we need to detect this.  Also, some Intel
4630    # versions had trouble with output in subdirs.
4631    am__obj=sub/conftest.${OBJEXT-o}
4632    am__minus_obj="-o $am__obj"
4633    case $depmode in
4634    gcc)
4635      # This depmode causes a compiler race in universal mode.
4636      test "$am__universal" = false || continue
4637      ;;
4638    nosideeffect)
4639      # After this tag, mechanisms are not by side-effect, so they'll
4640      # only be used when explicitly requested.
4641      if test "x$enable_dependency_tracking" = xyes; then
4642	continue
4643      else
4644	break
4645      fi
4646      ;;
4647    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4648      # This compiler won't grok '-c -o', but also, the minuso test has
4649      # not run yet.  These depmodes are late enough in the game, and
4650      # so weak that their functioning should not be impacted.
4651      am__obj=conftest.${OBJEXT-o}
4652      am__minus_obj=
4653      ;;
4654    none) break ;;
4655    esac
4656    if depmode=$depmode \
4657       source=sub/conftest.c object=$am__obj \
4658       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4659       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4660         >/dev/null 2>conftest.err &&
4661       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4662       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4663       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4664       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4665      # icc doesn't choke on unknown options, it will just issue warnings
4666      # or remarks (even with -Werror).  So we grep stderr for any message
4667      # that says an option was ignored or not supported.
4668      # When given -MP, icc 7.0 and 7.1 complain thusly:
4669      #   icc: Command line warning: ignoring option '-M'; no argument required
4670      # The diagnosis changed in icc 8.0:
4671      #   icc: Command line remark: option '-MP' not supported
4672      if (grep 'ignoring option' conftest.err ||
4673          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4674        am_cv_CCAS_dependencies_compiler_type=$depmode
4675        break
4676      fi
4677    fi
4678  done
4679
4680  cd ..
4681  rm -rf conftest.dir
4682else
4683  am_cv_CCAS_dependencies_compiler_type=none
4684fi
4685
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4688$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4689CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4690
4691 if
4692  test "x$enable_dependency_tracking" != xno \
4693  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4694  am__fastdepCCAS_TRUE=
4695  am__fastdepCCAS_FALSE='#'
4696else
4697  am__fastdepCCAS_TRUE='#'
4698  am__fastdepCCAS_FALSE=
4699fi
4700
4701
4702
4703if test -n "$ac_tool_prefix"; then
4704  for ac_prog in ar lib "link -lib"
4705  do
4706    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709$as_echo_n "checking for $ac_word... " >&6; }
4710if ${ac_cv_prog_AR+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  if test -n "$AR"; then
4714  ac_cv_prog_AR="$AR" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719  IFS=$as_save_IFS
4720  test -z "$as_dir" && as_dir=.
4721    for ac_exec_ext in '' $ac_executable_extensions; do
4722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725    break 2
4726  fi
4727done
4728  done
4729IFS=$as_save_IFS
4730
4731fi
4732fi
4733AR=$ac_cv_prog_AR
4734if test -n "$AR"; then
4735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4736$as_echo "$AR" >&6; }
4737else
4738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739$as_echo "no" >&6; }
4740fi
4741
4742
4743    test -n "$AR" && break
4744  done
4745fi
4746if test -z "$AR"; then
4747  ac_ct_AR=$AR
4748  for ac_prog in ar lib "link -lib"
4749do
4750  # Extract the first word of "$ac_prog", so it can be a program name with args.
4751set dummy $ac_prog; ac_word=$2
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753$as_echo_n "checking for $ac_word... " >&6; }
4754if ${ac_cv_prog_ac_ct_AR+:} false; then :
4755  $as_echo_n "(cached) " >&6
4756else
4757  if test -n "$ac_ct_AR"; then
4758  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4759else
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763  IFS=$as_save_IFS
4764  test -z "$as_dir" && as_dir=.
4765    for ac_exec_ext in '' $ac_executable_extensions; do
4766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767    ac_cv_prog_ac_ct_AR="$ac_prog"
4768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769    break 2
4770  fi
4771done
4772  done
4773IFS=$as_save_IFS
4774
4775fi
4776fi
4777ac_ct_AR=$ac_cv_prog_ac_ct_AR
4778if test -n "$ac_ct_AR"; then
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4780$as_echo "$ac_ct_AR" >&6; }
4781else
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785
4786
4787  test -n "$ac_ct_AR" && break
4788done
4789
4790  if test "x$ac_ct_AR" = x; then
4791    AR="false"
4792  else
4793    case $cross_compiling:$ac_tool_warned in
4794yes:)
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797ac_tool_warned=yes ;;
4798esac
4799    AR=$ac_ct_AR
4800  fi
4801fi
4802
4803: ${AR=ar}
4804
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4806$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4807if ${am_cv_ar_interface+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  ac_ext=c
4811ac_cpp='$CPP $CPPFLAGS'
4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815
4816   am_cv_ar_interface=ar
4817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819int some_variable = 0;
4820_ACEOF
4821if ac_fn_c_try_compile "$LINENO"; then :
4822  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4823      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4824  (eval $am_ar_try) 2>&5
4825  ac_status=$?
4826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4827  test $ac_status = 0; }
4828      if test "$ac_status" -eq 0; then
4829        am_cv_ar_interface=ar
4830      else
4831        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4832        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4833  (eval $am_ar_try) 2>&5
4834  ac_status=$?
4835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836  test $ac_status = 0; }
4837        if test "$ac_status" -eq 0; then
4838          am_cv_ar_interface=lib
4839        else
4840          am_cv_ar_interface=unknown
4841        fi
4842      fi
4843      rm -f conftest.lib libconftest.a
4844
4845fi
4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847   ac_ext=c
4848ac_cpp='$CPP $CPPFLAGS'
4849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4855$as_echo "$am_cv_ar_interface" >&6; }
4856
4857case $am_cv_ar_interface in
4858ar)
4859  ;;
4860lib)
4861  # Microsoft lib, so override with the ar-lib wrapper script.
4862  # FIXME: It is wrong to rewrite AR.
4863  # But if we don't then we get into trouble of one sort or another.
4864  # A longer-term fix would be to have automake use am__AR in this case,
4865  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4866  # similar.
4867  AR="$am_aux_dir/ar-lib $AR"
4868  ;;
4869unknown)
4870  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4871  ;;
4872esac
4873
4874
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4876$as_echo_n "checking for ANSI C header files... " >&6; }
4877if ${ac_cv_header_stdc+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882#include <stdlib.h>
4883#include <stdarg.h>
4884#include <string.h>
4885#include <float.h>
4886
4887int
4888main ()
4889{
4890
4891  ;
4892  return 0;
4893}
4894_ACEOF
4895if ac_fn_c_try_compile "$LINENO"; then :
4896  ac_cv_header_stdc=yes
4897else
4898  ac_cv_header_stdc=no
4899fi
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901
4902if test $ac_cv_header_stdc = yes; then
4903  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h.  */
4906#include <string.h>
4907
4908_ACEOF
4909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910  $EGREP "memchr" >/dev/null 2>&1; then :
4911
4912else
4913  ac_cv_header_stdc=no
4914fi
4915rm -f conftest*
4916
4917fi
4918
4919if test $ac_cv_header_stdc = yes; then
4920  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h.  */
4923#include <stdlib.h>
4924
4925_ACEOF
4926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927  $EGREP "free" >/dev/null 2>&1; then :
4928
4929else
4930  ac_cv_header_stdc=no
4931fi
4932rm -f conftest*
4933
4934fi
4935
4936if test $ac_cv_header_stdc = yes; then
4937  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4938  if test "$cross_compiling" = yes; then :
4939  :
4940else
4941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943#include <ctype.h>
4944#include <stdlib.h>
4945#if ((' ' & 0x0FF) == 0x020)
4946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4948#else
4949# define ISLOWER(c) \
4950		   (('a' <= (c) && (c) <= 'i') \
4951		     || ('j' <= (c) && (c) <= 'r') \
4952		     || ('s' <= (c) && (c) <= 'z'))
4953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4954#endif
4955
4956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957int
4958main ()
4959{
4960  int i;
4961  for (i = 0; i < 256; i++)
4962    if (XOR (islower (i), ISLOWER (i))
4963	|| toupper (i) != TOUPPER (i))
4964      return 2;
4965  return 0;
4966}
4967_ACEOF
4968if ac_fn_c_try_run "$LINENO"; then :
4969
4970else
4971  ac_cv_header_stdc=no
4972fi
4973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4974  conftest.$ac_objext conftest.beam conftest.$ac_ext
4975fi
4976
4977fi
4978fi
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4980$as_echo "$ac_cv_header_stdc" >&6; }
4981if test $ac_cv_header_stdc = yes; then
4982
4983$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4984
4985fi
4986
4987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4989		  inttypes.h stdint.h unistd.h
4990do :
4991  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4993"
4994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4995  cat >>confdefs.h <<_ACEOF
4996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4997_ACEOF
4998
4999fi
5000
5001done
5002
5003
5004for ac_header in sys/time.h time.h sys/timeb.h io.h
5005do :
5006  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5009  cat >>confdefs.h <<_ACEOF
5010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5011_ACEOF
5012
5013fi
5014
5015done
5016
5017
5018
5019
5020if test x"$CC" = x"checkergcc"; then
5021    enable_sdl=no
5022elif test x"$GCC" = x"yes"; then
5023
5024
5025            TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
5026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5027$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5028    SAVE_CFLAGS="$CFLAGS"
5029    CFLAGS="$TRY_CFLAGS $CFLAGS"
5030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032
5033int
5034main ()
5035{
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"; then :
5042  ac_cv_try_cflags_ok=yes
5043else
5044  ac_cv_try_cflags_ok=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047    CFLAGS="$SAVE_CFLAGS"
5048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5049$as_echo "$ac_cv_try_cflags_ok" >&6; }
5050    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5051        OPT_CFLAGS="$TRY_CFLAGS"
5052    else
5053        :
5054    fi
5055
5056
5057    TRY_CFLAGS=`echo "$OPT_CFLAGS $CFLAGS"|sed "s/-O[0-9]*//g"`
5058
5059    TRY_CFLAGS="$TRY_CFLAGS -O3"
5060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS flags" >&5
5061$as_echo_n "checking if $CC supports $TRY_CFLAGS flags... " >&6; }
5062    SAVE_CFLAGS="$CFLAGS"
5063    CFLAGS="$TRY_CFLAGS"
5064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066
5067int
5068main ()
5069{
5070
5071  ;
5072  return 0;
5073}
5074_ACEOF
5075if ac_fn_c_try_compile "$LINENO"; then :
5076  ac_cv_try_cflags_ok=yes
5077else
5078  ac_cv_try_cflags_ok=no
5079fi
5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081    CFLAGS="$SAVE_CFLAGS"
5082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5083$as_echo "$ac_cv_try_cflags_ok" >&6; }
5084    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5085        OPT_CFLAGS="$TRY_CFLAGS"
5086    else
5087        :
5088    fi
5089
5090    # Check whether --enable-debug was given.
5091if test "${enable_debug+set}" = set; then :
5092  enableval=$enable_debug;
5093fi
5094
5095    if test x"$enable_debug" = x"yes"; then
5096
5097$as_echo "#define DEBUG /**/" >>confdefs.h
5098
5099    else
5100		TRY_CFLAGS="$OPT_CFLAGS -fomit-frame-pointer"
5101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5102$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5103    SAVE_CFLAGS="$CFLAGS"
5104    CFLAGS="$TRY_CFLAGS $CFLAGS"
5105    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h.  */
5107
5108int
5109main ()
5110{
5111
5112  ;
5113  return 0;
5114}
5115_ACEOF
5116if ac_fn_c_try_compile "$LINENO"; then :
5117  ac_cv_try_cflags_ok=yes
5118else
5119  ac_cv_try_cflags_ok=no
5120fi
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122    CFLAGS="$SAVE_CFLAGS"
5123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5124$as_echo "$ac_cv_try_cflags_ok" >&6; }
5125    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5126        OPT_CFLAGS="$TRY_CFLAGS"
5127    else
5128        :
5129    fi
5130    fi
5131
5132        TRY_CFLAGS="$OPT_CFLAGS -fno-common"
5133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5134$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5135    SAVE_CFLAGS="$CFLAGS"
5136    CFLAGS="$TRY_CFLAGS $CFLAGS"
5137    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139
5140int
5141main ()
5142{
5143
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_c_try_compile "$LINENO"; then :
5149  ac_cv_try_cflags_ok=yes
5150else
5151  ac_cv_try_cflags_ok=no
5152fi
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154    CFLAGS="$SAVE_CFLAGS"
5155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5156$as_echo "$ac_cv_try_cflags_ok" >&6; }
5157    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5158        OPT_CFLAGS="$TRY_CFLAGS"
5159    else
5160        :
5161    fi
5162
5163        TRY_CFLAGS="$OPT_CFLAGS -std=gnu89"
5164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5165$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5166    SAVE_CFLAGS="$CFLAGS"
5167    CFLAGS="$TRY_CFLAGS $CFLAGS"
5168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h.  */
5170
5171int
5172main ()
5173{
5174
5175  ;
5176  return 0;
5177}
5178_ACEOF
5179if ac_fn_c_try_compile "$LINENO"; then :
5180  ac_cv_try_cflags_ok=yes
5181else
5182  ac_cv_try_cflags_ok=no
5183fi
5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185    CFLAGS="$SAVE_CFLAGS"
5186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5187$as_echo "$ac_cv_try_cflags_ok" >&6; }
5188    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5189        OPT_CFLAGS="$TRY_CFLAGS"
5190    else
5191        :
5192    fi
5193
5194        arm_conditional=false
5195    case "$host" in
5196    i?86-* | k?-* | x86_64-* | amd64-*)
5197
5198$as_echo "#define ARCH_X86 /**/" >>confdefs.h
5199
5200	case "$host" in
5201	i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
5202	i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
5203	i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";;
5204	i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";;
5205	k6-*)   TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";;
5206	esac
5207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5208$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5209    SAVE_CFLAGS="$CFLAGS"
5210    CFLAGS="$TRY_CFLAGS $CFLAGS"
5211    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213
5214int
5215main ()
5216{
5217
5218  ;
5219  return 0;
5220}
5221_ACEOF
5222if ac_fn_c_try_compile "$LINENO"; then :
5223  ac_cv_try_cflags_ok=yes
5224else
5225  ac_cv_try_cflags_ok=no
5226fi
5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228    CFLAGS="$SAVE_CFLAGS"
5229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5230$as_echo "$ac_cv_try_cflags_ok" >&6; }
5231    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5232        OPT_CFLAGS="$TRY_CFLAGS"
5233    else
5234        :
5235    fi;;
5236    ppc-* | powerpc-*)
5237	have_altivec=no
5238	for TRY_CFLAGS in "-mpim-altivec -force_cpusubtype_ALL" -faltivec -maltivec -fvec; do
5239	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags" >&5
5240$as_echo_n "checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags... " >&6; }
5241    SAVE_CFLAGS="$CFLAGS"
5242    CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
5243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245
5246int
5247main ()
5248{
5249
5250  ;
5251  return 0;
5252}
5253_ACEOF
5254if ac_fn_c_try_compile "$LINENO"; then :
5255  ac_cv_try_cflags_ok=yes
5256else
5257  ac_cv_try_cflags_ok=no
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260    CFLAGS="$SAVE_CFLAGS"
5261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5262$as_echo "$ac_cv_try_cflags_ok" >&6; }
5263    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5264        save_CFLAGS="$CFLAGS"
5265		 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
5266		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <altivec.h> is needed" >&5
5267$as_echo_n "checking if <altivec.h> is needed... " >&6; }
5268		 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270
5271int
5272main ()
5273{
5274typedef vector int t;
5275		     vec_ld(0, (unsigned char *)0);
5276  ;
5277  return 0;
5278}
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281  have_altivec=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286#include <altivec.h>
5287int
5288main ()
5289{
5290typedef vector int t; vec_ld(0, (unsigned char *)0);
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_compile "$LINENO"; then :
5296
5297$as_echo "#define HAVE_ALTIVEC_H /**/" >>confdefs.h
5298
5299			 have_altivec=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300$as_echo "yes" >&6; }
5301else
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5303$as_echo "unsupported" >&6; }
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306fi
5307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308		 CFLAGS="$save_CFLAGS"
5309    else
5310        :
5311    fi
5312	    if test "$have_altivec" = "yes"; then
5313		ARCH_OPT_CFLAGS="$TRY_CFLAGS"
5314
5315$as_echo "#define ARCH_PPC /**/" >>confdefs.h
5316
5317		break
5318	    fi
5319	done;;
5320    sparc-* | sparc64-*)
5321
5322$as_echo "#define ARCH_SPARC /**/" >>confdefs.h
5323
5324	TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"
5325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5326$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5327    SAVE_CFLAGS="$CFLAGS"
5328    CFLAGS="$TRY_CFLAGS $CFLAGS"
5329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331
5332int
5333main ()
5334{
5335
5336  ;
5337  return 0;
5338}
5339_ACEOF
5340if ac_fn_c_try_compile "$LINENO"; then :
5341  ac_cv_try_cflags_ok=yes
5342else
5343  ac_cv_try_cflags_ok=no
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346    CFLAGS="$SAVE_CFLAGS"
5347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5348$as_echo "$ac_cv_try_cflags_ok" >&6; }
5349    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5350        OPT_CFLAGS="$TRY_CFLAGS"
5351    else
5352        :
5353    fi;;
5354    alpha*)
5355
5356$as_echo "#define ARCH_ALPHA /**/" >>confdefs.h
5357;;
5358    arm*)
5359	arm_conditional=:
5360
5361$as_echo "#define ARCH_ARM /**/" >>confdefs.h
5362;;
5363    esac
5364elif test x"$CC" = x"tendracc"; then
5365        TENDRA=yes
5366    OPT_CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE"
5367    no_x=yes
5368    enable_sdl=no
5369elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then
5370        OPT_CFLAGS="-g -O3 -unroll -ip"
5371else
5372        case "$host" in
5373    sparc-sun-solaris*)
5374	TRY_CFLAGS="$OPT_CFLAGS -xCC -fast -xO5"
5375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
5376$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
5377    SAVE_CFLAGS="$CFLAGS"
5378    CFLAGS="$TRY_CFLAGS $CFLAGS"
5379    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381
5382int
5383main ()
5384{
5385
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"; then :
5391  ac_cv_try_cflags_ok=yes
5392else
5393  ac_cv_try_cflags_ok=no
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396    CFLAGS="$SAVE_CFLAGS"
5397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
5398$as_echo "$ac_cv_try_cflags_ok" >&6; }
5399    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
5400        OPT_CFLAGS="$TRY_CFLAGS"
5401    else
5402        :
5403    fi;;
5404    esac
5405fi
5406
5407 if ${arm_conditional}; then
5408  ARCH_ARM_TRUE=
5409  ARCH_ARM_FALSE='#'
5410else
5411  ARCH_ARM_TRUE='#'
5412  ARCH_ARM_FALSE=
5413fi
5414
5415
5416enable_win32_dll=yes
5417
5418case $host in
5419*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5420  if test -n "$ac_tool_prefix"; then
5421  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5422set dummy ${ac_tool_prefix}as; ac_word=$2
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424$as_echo_n "checking for $ac_word... " >&6; }
5425if ${ac_cv_prog_AS+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  if test -n "$AS"; then
5429  ac_cv_prog_AS="$AS" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436    for ac_exec_ext in '' $ac_executable_extensions; do
5437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438    ac_cv_prog_AS="${ac_tool_prefix}as"
5439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440    break 2
5441  fi
5442done
5443  done
5444IFS=$as_save_IFS
5445
5446fi
5447fi
5448AS=$ac_cv_prog_AS
5449if test -n "$AS"; then
5450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5451$as_echo "$AS" >&6; }
5452else
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454$as_echo "no" >&6; }
5455fi
5456
5457
5458fi
5459if test -z "$ac_cv_prog_AS"; then
5460  ac_ct_AS=$AS
5461  # Extract the first word of "as", so it can be a program name with args.
5462set dummy as; ac_word=$2
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464$as_echo_n "checking for $ac_word... " >&6; }
5465if ${ac_cv_prog_ac_ct_AS+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  if test -n "$ac_ct_AS"; then
5469  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474  IFS=$as_save_IFS
5475  test -z "$as_dir" && as_dir=.
5476    for ac_exec_ext in '' $ac_executable_extensions; do
5477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478    ac_cv_prog_ac_ct_AS="as"
5479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480    break 2
5481  fi
5482done
5483  done
5484IFS=$as_save_IFS
5485
5486fi
5487fi
5488ac_ct_AS=$ac_cv_prog_ac_ct_AS
5489if test -n "$ac_ct_AS"; then
5490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5491$as_echo "$ac_ct_AS" >&6; }
5492else
5493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494$as_echo "no" >&6; }
5495fi
5496
5497  if test "x$ac_ct_AS" = x; then
5498    AS="false"
5499  else
5500    case $cross_compiling:$ac_tool_warned in
5501yes:)
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504ac_tool_warned=yes ;;
5505esac
5506    AS=$ac_ct_AS
5507  fi
5508else
5509  AS="$ac_cv_prog_AS"
5510fi
5511
5512  if test -n "$ac_tool_prefix"; then
5513  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5514set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516$as_echo_n "checking for $ac_word... " >&6; }
5517if ${ac_cv_prog_DLLTOOL+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  if test -n "$DLLTOOL"; then
5521  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526  IFS=$as_save_IFS
5527  test -z "$as_dir" && as_dir=.
5528    for ac_exec_ext in '' $ac_executable_extensions; do
5529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532    break 2
5533  fi
5534done
5535  done
5536IFS=$as_save_IFS
5537
5538fi
5539fi
5540DLLTOOL=$ac_cv_prog_DLLTOOL
5541if test -n "$DLLTOOL"; then
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5543$as_echo "$DLLTOOL" >&6; }
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }
5547fi
5548
5549
5550fi
5551if test -z "$ac_cv_prog_DLLTOOL"; then
5552  ac_ct_DLLTOOL=$DLLTOOL
5553  # Extract the first word of "dlltool", so it can be a program name with args.
5554set dummy dlltool; ac_word=$2
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; }
5557if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  if test -n "$ac_ct_DLLTOOL"; then
5561  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5562else
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566  IFS=$as_save_IFS
5567  test -z "$as_dir" && as_dir=.
5568    for ac_exec_ext in '' $ac_executable_extensions; do
5569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572    break 2
5573  fi
5574done
5575  done
5576IFS=$as_save_IFS
5577
5578fi
5579fi
5580ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5581if test -n "$ac_ct_DLLTOOL"; then
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5583$as_echo "$ac_ct_DLLTOOL" >&6; }
5584else
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5587fi
5588
5589  if test "x$ac_ct_DLLTOOL" = x; then
5590    DLLTOOL="false"
5591  else
5592    case $cross_compiling:$ac_tool_warned in
5593yes:)
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596ac_tool_warned=yes ;;
5597esac
5598    DLLTOOL=$ac_ct_DLLTOOL
5599  fi
5600else
5601  DLLTOOL="$ac_cv_prog_DLLTOOL"
5602fi
5603
5604  if test -n "$ac_tool_prefix"; then
5605  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5606set dummy ${ac_tool_prefix}objdump; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if ${ac_cv_prog_OBJDUMP+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  if test -n "$OBJDUMP"; then
5613  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  test -z "$as_dir" && as_dir=.
5620    for ac_exec_ext in '' $ac_executable_extensions; do
5621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624    break 2
5625  fi
5626done
5627  done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632OBJDUMP=$ac_cv_prog_OBJDUMP
5633if test -n "$OBJDUMP"; then
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5635$as_echo "$OBJDUMP" >&6; }
5636else
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642fi
5643if test -z "$ac_cv_prog_OBJDUMP"; then
5644  ac_ct_OBJDUMP=$OBJDUMP
5645  # Extract the first word of "objdump", so it can be a program name with args.
5646set dummy objdump; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$ac_ct_OBJDUMP"; then
5653  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5673if test -n "$ac_ct_OBJDUMP"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5675$as_echo "$ac_ct_OBJDUMP" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681  if test "x$ac_ct_OBJDUMP" = x; then
5682    OBJDUMP="false"
5683  else
5684    case $cross_compiling:$ac_tool_warned in
5685yes:)
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688ac_tool_warned=yes ;;
5689esac
5690    OBJDUMP=$ac_ct_OBJDUMP
5691  fi
5692else
5693  OBJDUMP="$ac_cv_prog_OBJDUMP"
5694fi
5695
5696  ;;
5697esac
5698
5699test -z "$AS" && AS=as
5700
5701
5702
5703
5704
5705test -z "$DLLTOOL" && DLLTOOL=dlltool
5706
5707
5708
5709
5710
5711test -z "$OBJDUMP" && OBJDUMP=objdump
5712
5713
5714
5715
5716
5717
5718
5719case `pwd` in
5720  *\ * | *\	*)
5721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5722$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5723esac
5724
5725
5726
5727macro_version='2.4.6'
5728macro_revision='2.4.6'
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742ltmain=$ac_aux_dir/ltmain.sh
5743
5744# Backslashify metacharacters that are still active within
5745# double-quoted strings.
5746sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5747
5748# Same as above, but do not quote variable references.
5749double_quote_subst='s/\(["`\\]\)/\\\1/g'
5750
5751# Sed substitution to delay expansion of an escaped shell variable in a
5752# double_quote_subst'ed string.
5753delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5754
5755# Sed substitution to delay expansion of an escaped single quote.
5756delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5757
5758# Sed substitution to avoid accidental globbing in evaled expressions
5759no_glob_subst='s/\*/\\\*/g'
5760
5761ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5762ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5763ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5764
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5766$as_echo_n "checking how to print strings... " >&6; }
5767# Test print first, because it will be a builtin if present.
5768if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5769   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5770  ECHO='print -r --'
5771elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5772  ECHO='printf %s\n'
5773else
5774  # Use this function as a fallback that always works.
5775  func_fallback_echo ()
5776  {
5777    eval 'cat <<_LTECHO_EOF
5778$1
5779_LTECHO_EOF'
5780  }
5781  ECHO='func_fallback_echo'
5782fi
5783
5784# func_echo_all arg...
5785# Invoke $ECHO with all args, space-separated.
5786func_echo_all ()
5787{
5788    $ECHO ""
5789}
5790
5791case $ECHO in
5792  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5793$as_echo "printf" >&6; } ;;
5794  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5795$as_echo "print -r" >&6; } ;;
5796  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5797$as_echo "cat" >&6; } ;;
5798esac
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5814$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5815if ${ac_cv_path_SED+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5819     for ac_i in 1 2 3 4 5 6 7; do
5820       ac_script="$ac_script$as_nl$ac_script"
5821     done
5822     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5823     { ac_script=; unset ac_script;}
5824     if test -z "$SED"; then
5825  ac_path_SED_found=false
5826  # Loop through the user's path and test for each of PROGNAME-LIST
5827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832    for ac_prog in sed gsed; do
5833    for ac_exec_ext in '' $ac_executable_extensions; do
5834      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5835      as_fn_executable_p "$ac_path_SED" || continue
5836# Check for GNU ac_path_SED and select it if it is found.
5837  # Check for GNU $ac_path_SED
5838case `"$ac_path_SED" --version 2>&1` in
5839*GNU*)
5840  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5841*)
5842  ac_count=0
5843  $as_echo_n 0123456789 >"conftest.in"
5844  while :
5845  do
5846    cat "conftest.in" "conftest.in" >"conftest.tmp"
5847    mv "conftest.tmp" "conftest.in"
5848    cp "conftest.in" "conftest.nl"
5849    $as_echo '' >> "conftest.nl"
5850    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5851    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5852    as_fn_arith $ac_count + 1 && ac_count=$as_val
5853    if test $ac_count -gt ${ac_path_SED_max-0}; then
5854      # Best one so far, save it but keep looking for a better one
5855      ac_cv_path_SED="$ac_path_SED"
5856      ac_path_SED_max=$ac_count
5857    fi
5858    # 10*(2^10) chars as input seems more than enough
5859    test $ac_count -gt 10 && break
5860  done
5861  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5862esac
5863
5864      $ac_path_SED_found && break 3
5865    done
5866  done
5867  done
5868IFS=$as_save_IFS
5869  if test -z "$ac_cv_path_SED"; then
5870    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5871  fi
5872else
5873  ac_cv_path_SED=$SED
5874fi
5875
5876fi
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5878$as_echo "$ac_cv_path_SED" >&6; }
5879 SED="$ac_cv_path_SED"
5880  rm -f conftest.sed
5881
5882test -z "$SED" && SED=sed
5883Xsed="$SED -e 1s/^X//"
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5896$as_echo_n "checking for fgrep... " >&6; }
5897if ${ac_cv_path_FGREP+:} false; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5901   then ac_cv_path_FGREP="$GREP -F"
5902   else
5903     if test -z "$FGREP"; then
5904  ac_path_FGREP_found=false
5905  # Loop through the user's path and test for each of PROGNAME-LIST
5906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911    for ac_prog in fgrep; do
5912    for ac_exec_ext in '' $ac_executable_extensions; do
5913      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5914      as_fn_executable_p "$ac_path_FGREP" || continue
5915# Check for GNU ac_path_FGREP and select it if it is found.
5916  # Check for GNU $ac_path_FGREP
5917case `"$ac_path_FGREP" --version 2>&1` in
5918*GNU*)
5919  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5920*)
5921  ac_count=0
5922  $as_echo_n 0123456789 >"conftest.in"
5923  while :
5924  do
5925    cat "conftest.in" "conftest.in" >"conftest.tmp"
5926    mv "conftest.tmp" "conftest.in"
5927    cp "conftest.in" "conftest.nl"
5928    $as_echo 'FGREP' >> "conftest.nl"
5929    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5930    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5931    as_fn_arith $ac_count + 1 && ac_count=$as_val
5932    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5933      # Best one so far, save it but keep looking for a better one
5934      ac_cv_path_FGREP="$ac_path_FGREP"
5935      ac_path_FGREP_max=$ac_count
5936    fi
5937    # 10*(2^10) chars as input seems more than enough
5938    test $ac_count -gt 10 && break
5939  done
5940  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5941esac
5942
5943      $ac_path_FGREP_found && break 3
5944    done
5945  done
5946  done
5947IFS=$as_save_IFS
5948  if test -z "$ac_cv_path_FGREP"; then
5949    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5950  fi
5951else
5952  ac_cv_path_FGREP=$FGREP
5953fi
5954
5955   fi
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5958$as_echo "$ac_cv_path_FGREP" >&6; }
5959 FGREP="$ac_cv_path_FGREP"
5960
5961
5962test -z "$GREP" && GREP=grep
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982# Check whether --with-gnu-ld was given.
5983if test "${with_gnu_ld+set}" = set; then :
5984  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5985else
5986  with_gnu_ld=no
5987fi
5988
5989ac_prog=ld
5990if test yes = "$GCC"; then
5991  # Check if gcc -print-prog-name=ld gives a path.
5992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5993$as_echo_n "checking for ld used by $CC... " >&6; }
5994  case $host in
5995  *-*-mingw*)
5996    # gcc leaves a trailing carriage return, which upsets mingw
5997    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5998  *)
5999    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6000  esac
6001  case $ac_prog in
6002    # Accept absolute paths.
6003    [\\/]* | ?:[\\/]*)
6004      re_direlt='/[^/][^/]*/\.\./'
6005      # Canonicalize the pathname of ld
6006      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6007      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6008	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6009      done
6010      test -z "$LD" && LD=$ac_prog
6011      ;;
6012  "")
6013    # If it fails, then pretend we aren't using GCC.
6014    ac_prog=ld
6015    ;;
6016  *)
6017    # If it is relative, then search for the first ld in PATH.
6018    with_gnu_ld=unknown
6019    ;;
6020  esac
6021elif test yes = "$with_gnu_ld"; then
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6023$as_echo_n "checking for GNU ld... " >&6; }
6024else
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6026$as_echo_n "checking for non-GNU ld... " >&6; }
6027fi
6028if ${lt_cv_path_LD+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  if test -z "$LD"; then
6032  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6033  for ac_dir in $PATH; do
6034    IFS=$lt_save_ifs
6035    test -z "$ac_dir" && ac_dir=.
6036    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6037      lt_cv_path_LD=$ac_dir/$ac_prog
6038      # Check to see if the program is GNU ld.  I'd rather use --version,
6039      # but apparently some variants of GNU ld only accept -v.
6040      # Break only if it was the GNU/non-GNU ld that we prefer.
6041      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6042      *GNU* | *'with BFD'*)
6043	test no != "$with_gnu_ld" && break
6044	;;
6045      *)
6046	test yes != "$with_gnu_ld" && break
6047	;;
6048      esac
6049    fi
6050  done
6051  IFS=$lt_save_ifs
6052else
6053  lt_cv_path_LD=$LD # Let the user override the test with a path.
6054fi
6055fi
6056
6057LD=$lt_cv_path_LD
6058if test -n "$LD"; then
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6060$as_echo "$LD" >&6; }
6061else
6062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6067$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6068if ${lt_cv_prog_gnu_ld+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6072case `$LD -v 2>&1 </dev/null` in
6073*GNU* | *'with BFD'*)
6074  lt_cv_prog_gnu_ld=yes
6075  ;;
6076*)
6077  lt_cv_prog_gnu_ld=no
6078  ;;
6079esac
6080fi
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6082$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6083with_gnu_ld=$lt_cv_prog_gnu_ld
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6094$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6095if ${lt_cv_path_NM+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  if test -n "$NM"; then
6099  # Let the user override the test.
6100  lt_cv_path_NM=$NM
6101else
6102  lt_nm_to_check=${ac_tool_prefix}nm
6103  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6104    lt_nm_to_check="$lt_nm_to_check nm"
6105  fi
6106  for lt_tmp_nm in $lt_nm_to_check; do
6107    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6108    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6109      IFS=$lt_save_ifs
6110      test -z "$ac_dir" && ac_dir=.
6111      tmp_nm=$ac_dir/$lt_tmp_nm
6112      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6113	# Check to see if the nm accepts a BSD-compat flag.
6114	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6115	#   nm: unknown option "B" ignored
6116	# Tru64's nm complains that /dev/null is an invalid object file
6117	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6118	case $build_os in
6119	mingw*) lt_bad_file=conftest.nm/nofile ;;
6120	*) lt_bad_file=/dev/null ;;
6121	esac
6122	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6123	*$lt_bad_file* | *'Invalid file or object type'*)
6124	  lt_cv_path_NM="$tmp_nm -B"
6125	  break 2
6126	  ;;
6127	*)
6128	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6129	  */dev/null*)
6130	    lt_cv_path_NM="$tmp_nm -p"
6131	    break 2
6132	    ;;
6133	  *)
6134	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6135	    continue # so that we can try to find one that supports BSD flags
6136	    ;;
6137	  esac
6138	  ;;
6139	esac
6140      fi
6141    done
6142    IFS=$lt_save_ifs
6143  done
6144  : ${lt_cv_path_NM=no}
6145fi
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6148$as_echo "$lt_cv_path_NM" >&6; }
6149if test no != "$lt_cv_path_NM"; then
6150  NM=$lt_cv_path_NM
6151else
6152  # Didn't find any BSD compatible name lister, look for dumpbin.
6153  if test -n "$DUMPBIN"; then :
6154    # Let the user override the test.
6155  else
6156    if test -n "$ac_tool_prefix"; then
6157  for ac_prog in dumpbin "link -dump"
6158  do
6159    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if ${ac_cv_prog_DUMPBIN+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  if test -n "$DUMPBIN"; then
6167  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  test -z "$as_dir" && as_dir=.
6174    for ac_exec_ext in '' $ac_executable_extensions; do
6175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181  done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186DUMPBIN=$ac_cv_prog_DUMPBIN
6187if test -n "$DUMPBIN"; then
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6189$as_echo "$DUMPBIN" >&6; }
6190else
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196    test -n "$DUMPBIN" && break
6197  done
6198fi
6199if test -z "$DUMPBIN"; then
6200  ac_ct_DUMPBIN=$DUMPBIN
6201  for ac_prog in dumpbin "link -dump"
6202do
6203  # Extract the first word of "$ac_prog", so it can be a program name with args.
6204set dummy $ac_prog; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
6207if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  if test -n "$ac_ct_DUMPBIN"; then
6211  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  test -z "$as_dir" && as_dir=.
6218    for ac_exec_ext in '' $ac_executable_extensions; do
6219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222    break 2
6223  fi
6224done
6225  done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6231if test -n "$ac_ct_DUMPBIN"; then
6232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6233$as_echo "$ac_ct_DUMPBIN" >&6; }
6234else
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240  test -n "$ac_ct_DUMPBIN" && break
6241done
6242
6243  if test "x$ac_ct_DUMPBIN" = x; then
6244    DUMPBIN=":"
6245  else
6246    case $cross_compiling:$ac_tool_warned in
6247yes:)
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250ac_tool_warned=yes ;;
6251esac
6252    DUMPBIN=$ac_ct_DUMPBIN
6253  fi
6254fi
6255
6256    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6257    *COFF*)
6258      DUMPBIN="$DUMPBIN -symbols -headers"
6259      ;;
6260    *)
6261      DUMPBIN=:
6262      ;;
6263    esac
6264  fi
6265
6266  if test : != "$DUMPBIN"; then
6267    NM=$DUMPBIN
6268  fi
6269fi
6270test -z "$NM" && NM=nm
6271
6272
6273
6274
6275
6276
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6278$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6279if ${lt_cv_nm_interface+:} false; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282  lt_cv_nm_interface="BSD nm"
6283  echo "int some_variable = 0;" > conftest.$ac_ext
6284  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6285  (eval "$ac_compile" 2>conftest.err)
6286  cat conftest.err >&5
6287  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6288  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6289  cat conftest.err >&5
6290  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6291  cat conftest.out >&5
6292  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6293    lt_cv_nm_interface="MS dumpbin"
6294  fi
6295  rm -f conftest*
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6298$as_echo "$lt_cv_nm_interface" >&6; }
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6301$as_echo_n "checking whether ln -s works... " >&6; }
6302LN_S=$as_ln_s
6303if test "$LN_S" = "ln -s"; then
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6305$as_echo "yes" >&6; }
6306else
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6308$as_echo "no, using $LN_S" >&6; }
6309fi
6310
6311# find the maximum length of command line arguments
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6313$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314if ${lt_cv_sys_max_cmd_len+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317    i=0
6318  teststring=ABCD
6319
6320  case $build_os in
6321  msdosdjgpp*)
6322    # On DJGPP, this test can blow up pretty badly due to problems in libc
6323    # (any single argument exceeding 2000 bytes causes a buffer overrun
6324    # during glob expansion).  Even if it were fixed, the result of this
6325    # check would be larger than it should be.
6326    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6327    ;;
6328
6329  gnu*)
6330    # Under GNU Hurd, this test is not required because there is
6331    # no limit to the length of command line arguments.
6332    # Libtool will interpret -1 as no limit whatsoever
6333    lt_cv_sys_max_cmd_len=-1;
6334    ;;
6335
6336  cygwin* | mingw* | cegcc*)
6337    # On Win9x/ME, this test blows up -- it succeeds, but takes
6338    # about 5 minutes as the teststring grows exponentially.
6339    # Worse, since 9x/ME are not pre-emptively multitasking,
6340    # you end up with a "frozen" computer, even though with patience
6341    # the test eventually succeeds (with a max line length of 256k).
6342    # Instead, let's just punt: use the minimum linelength reported by
6343    # all of the supported platforms: 8192 (on NT/2K/XP).
6344    lt_cv_sys_max_cmd_len=8192;
6345    ;;
6346
6347  mint*)
6348    # On MiNT this can take a long time and run out of memory.
6349    lt_cv_sys_max_cmd_len=8192;
6350    ;;
6351
6352  amigaos*)
6353    # On AmigaOS with pdksh, this test takes hours, literally.
6354    # So we just punt and use a minimum line length of 8192.
6355    lt_cv_sys_max_cmd_len=8192;
6356    ;;
6357
6358  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6359    # This has been around since 386BSD, at least.  Likely further.
6360    if test -x /sbin/sysctl; then
6361      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6362    elif test -x /usr/sbin/sysctl; then
6363      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6364    else
6365      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6366    fi
6367    # And add a safety zone
6368    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6369    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6370    ;;
6371
6372  interix*)
6373    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6374    lt_cv_sys_max_cmd_len=196608
6375    ;;
6376
6377  os2*)
6378    # The test takes a long time on OS/2.
6379    lt_cv_sys_max_cmd_len=8192
6380    ;;
6381
6382  osf*)
6383    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6384    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6385    # nice to cause kernel panics so lets avoid the loop below.
6386    # First set a reasonable default.
6387    lt_cv_sys_max_cmd_len=16384
6388    #
6389    if test -x /sbin/sysconfig; then
6390      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6391        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6392      esac
6393    fi
6394    ;;
6395  sco3.2v5*)
6396    lt_cv_sys_max_cmd_len=102400
6397    ;;
6398  sysv5* | sco5v6* | sysv4.2uw2*)
6399    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6400    if test -n "$kargmax"; then
6401      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6402    else
6403      lt_cv_sys_max_cmd_len=32768
6404    fi
6405    ;;
6406  *)
6407    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6408    if test -n "$lt_cv_sys_max_cmd_len" && \
6409       test undefined != "$lt_cv_sys_max_cmd_len"; then
6410      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6411      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6412    else
6413      # Make teststring a little bigger before we do anything with it.
6414      # a 1K string should be a reasonable start.
6415      for i in 1 2 3 4 5 6 7 8; do
6416        teststring=$teststring$teststring
6417      done
6418      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6419      # If test is not a shell built-in, we'll probably end up computing a
6420      # maximum length that is only half of the actual maximum length, but
6421      # we can't tell.
6422      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6423	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6424	      test 17 != "$i" # 1/2 MB should be enough
6425      do
6426        i=`expr $i + 1`
6427        teststring=$teststring$teststring
6428      done
6429      # Only check the string length outside the loop.
6430      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6431      teststring=
6432      # Add a significant safety factor because C++ compilers can tack on
6433      # massive amounts of additional arguments before passing them to the
6434      # linker.  It appears as though 1/2 is a usable value.
6435      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6436    fi
6437    ;;
6438  esac
6439
6440fi
6441
6442if test -n "$lt_cv_sys_max_cmd_len"; then
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6444$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6445else
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6447$as_echo "none" >&6; }
6448fi
6449max_cmd_len=$lt_cv_sys_max_cmd_len
6450
6451
6452
6453
6454
6455
6456: ${CP="cp -f"}
6457: ${MV="mv -f"}
6458: ${RM="rm -f"}
6459
6460if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6461  lt_unset=unset
6462else
6463  lt_unset=false
6464fi
6465
6466
6467
6468
6469
6470# test EBCDIC or ASCII
6471case `echo X|tr X '\101'` in
6472 A) # ASCII based system
6473    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6474  lt_SP2NL='tr \040 \012'
6475  lt_NL2SP='tr \015\012 \040\040'
6476  ;;
6477 *) # EBCDIC based system
6478  lt_SP2NL='tr \100 \n'
6479  lt_NL2SP='tr \r\n \100\100'
6480  ;;
6481esac
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6492$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6493if ${lt_cv_to_host_file_cmd+:} false; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  case $host in
6497  *-*-mingw* )
6498    case $build in
6499      *-*-mingw* ) # actually msys
6500        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6501        ;;
6502      *-*-cygwin* )
6503        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6504        ;;
6505      * ) # otherwise, assume *nix
6506        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6507        ;;
6508    esac
6509    ;;
6510  *-*-cygwin* )
6511    case $build in
6512      *-*-mingw* ) # actually msys
6513        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6514        ;;
6515      *-*-cygwin* )
6516        lt_cv_to_host_file_cmd=func_convert_file_noop
6517        ;;
6518      * ) # otherwise, assume *nix
6519        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6520        ;;
6521    esac
6522    ;;
6523  * ) # unhandled hosts (and "normal" native builds)
6524    lt_cv_to_host_file_cmd=func_convert_file_noop
6525    ;;
6526esac
6527
6528fi
6529
6530to_host_file_cmd=$lt_cv_to_host_file_cmd
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6532$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6533
6534
6535
6536
6537
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6539$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6540if ${lt_cv_to_tool_file_cmd+:} false; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  #assume ordinary cross tools, or native build.
6544lt_cv_to_tool_file_cmd=func_convert_file_noop
6545case $host in
6546  *-*-mingw* )
6547    case $build in
6548      *-*-mingw* ) # actually msys
6549        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6550        ;;
6551    esac
6552    ;;
6553esac
6554
6555fi
6556
6557to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6559$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6560
6561
6562
6563
6564
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6566$as_echo_n "checking for $LD option to reload object files... " >&6; }
6567if ${lt_cv_ld_reload_flag+:} false; then :
6568  $as_echo_n "(cached) " >&6
6569else
6570  lt_cv_ld_reload_flag='-r'
6571fi
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6573$as_echo "$lt_cv_ld_reload_flag" >&6; }
6574reload_flag=$lt_cv_ld_reload_flag
6575case $reload_flag in
6576"" | " "*) ;;
6577*) reload_flag=" $reload_flag" ;;
6578esac
6579reload_cmds='$LD$reload_flag -o $output$reload_objs'
6580case $host_os in
6581  cygwin* | mingw* | pw32* | cegcc*)
6582    if test yes != "$GCC"; then
6583      reload_cmds=false
6584    fi
6585    ;;
6586  darwin*)
6587    if test yes = "$GCC"; then
6588      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6589    else
6590      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6591    fi
6592    ;;
6593esac
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603if test -n "$ac_tool_prefix"; then
6604  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6605set dummy ${ac_tool_prefix}objdump; ac_word=$2
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607$as_echo_n "checking for $ac_word... " >&6; }
6608if ${ac_cv_prog_OBJDUMP+:} false; then :
6609  $as_echo_n "(cached) " >&6
6610else
6611  if test -n "$OBJDUMP"; then
6612  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619    for ac_exec_ext in '' $ac_executable_extensions; do
6620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626  done
6627IFS=$as_save_IFS
6628
6629fi
6630fi
6631OBJDUMP=$ac_cv_prog_OBJDUMP
6632if test -n "$OBJDUMP"; then
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6634$as_echo "$OBJDUMP" >&6; }
6635else
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637$as_echo "no" >&6; }
6638fi
6639
6640
6641fi
6642if test -z "$ac_cv_prog_OBJDUMP"; then
6643  ac_ct_OBJDUMP=$OBJDUMP
6644  # Extract the first word of "objdump", so it can be a program name with args.
6645set dummy objdump; ac_word=$2
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647$as_echo_n "checking for $ac_word... " >&6; }
6648if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  if test -n "$ac_ct_OBJDUMP"; then
6652  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  test -z "$as_dir" && as_dir=.
6659    for ac_exec_ext in '' $ac_executable_extensions; do
6660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663    break 2
6664  fi
6665done
6666  done
6667IFS=$as_save_IFS
6668
6669fi
6670fi
6671ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6672if test -n "$ac_ct_OBJDUMP"; then
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6674$as_echo "$ac_ct_OBJDUMP" >&6; }
6675else
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677$as_echo "no" >&6; }
6678fi
6679
6680  if test "x$ac_ct_OBJDUMP" = x; then
6681    OBJDUMP="false"
6682  else
6683    case $cross_compiling:$ac_tool_warned in
6684yes:)
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687ac_tool_warned=yes ;;
6688esac
6689    OBJDUMP=$ac_ct_OBJDUMP
6690  fi
6691else
6692  OBJDUMP="$ac_cv_prog_OBJDUMP"
6693fi
6694
6695test -z "$OBJDUMP" && OBJDUMP=objdump
6696
6697
6698
6699
6700
6701
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6703$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6704if ${lt_cv_deplibs_check_method+:} false; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707  lt_cv_file_magic_cmd='$MAGIC_CMD'
6708lt_cv_file_magic_test_file=
6709lt_cv_deplibs_check_method='unknown'
6710# Need to set the preceding variable on all platforms that support
6711# interlibrary dependencies.
6712# 'none' -- dependencies not supported.
6713# 'unknown' -- same as none, but documents that we really don't know.
6714# 'pass_all' -- all dependencies passed with no checks.
6715# 'test_compile' -- check by making test program.
6716# 'file_magic [[regex]]' -- check by looking for files in library path
6717# that responds to the $file_magic_cmd with a given extended regex.
6718# If you have 'file' or equivalent on your system and you're not sure
6719# whether 'pass_all' will *always* work, you probably want this one.
6720
6721case $host_os in
6722aix[4-9]*)
6723  lt_cv_deplibs_check_method=pass_all
6724  ;;
6725
6726beos*)
6727  lt_cv_deplibs_check_method=pass_all
6728  ;;
6729
6730bsdi[45]*)
6731  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6732  lt_cv_file_magic_cmd='/usr/bin/file -L'
6733  lt_cv_file_magic_test_file=/shlib/libc.so
6734  ;;
6735
6736cygwin*)
6737  # func_win32_libid is a shell function defined in ltmain.sh
6738  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6739  lt_cv_file_magic_cmd='func_win32_libid'
6740  ;;
6741
6742mingw* | pw32*)
6743  # Base MSYS/MinGW do not provide the 'file' command needed by
6744  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6745  # unless we find 'file', for example because we are cross-compiling.
6746  if ( file / ) >/dev/null 2>&1; then
6747    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6748    lt_cv_file_magic_cmd='func_win32_libid'
6749  else
6750    # Keep this pattern in sync with the one in func_win32_libid.
6751    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6752    lt_cv_file_magic_cmd='$OBJDUMP -f'
6753  fi
6754  ;;
6755
6756cegcc*)
6757  # use the weaker test based on 'objdump'. See mingw*.
6758  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6759  lt_cv_file_magic_cmd='$OBJDUMP -f'
6760  ;;
6761
6762darwin* | rhapsody*)
6763  lt_cv_deplibs_check_method=pass_all
6764  ;;
6765
6766freebsd* | dragonfly*)
6767  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6768    case $host_cpu in
6769    i*86 )
6770      # Not sure whether the presence of OpenBSD here was a mistake.
6771      # Let's accept both of them until this is cleared up.
6772      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6773      lt_cv_file_magic_cmd=/usr/bin/file
6774      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6775      ;;
6776    esac
6777  else
6778    lt_cv_deplibs_check_method=pass_all
6779  fi
6780  ;;
6781
6782haiku*)
6783  lt_cv_deplibs_check_method=pass_all
6784  ;;
6785
6786hpux10.20* | hpux11*)
6787  lt_cv_file_magic_cmd=/usr/bin/file
6788  case $host_cpu in
6789  ia64*)
6790    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6791    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6792    ;;
6793  hppa*64*)
6794    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6795    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6796    ;;
6797  *)
6798    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6799    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6800    ;;
6801  esac
6802  ;;
6803
6804interix[3-9]*)
6805  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6806  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6807  ;;
6808
6809irix5* | irix6* | nonstopux*)
6810  case $LD in
6811  *-32|*"-32 ") libmagic=32-bit;;
6812  *-n32|*"-n32 ") libmagic=N32;;
6813  *-64|*"-64 ") libmagic=64-bit;;
6814  *) libmagic=never-match;;
6815  esac
6816  lt_cv_deplibs_check_method=pass_all
6817  ;;
6818
6819# This must be glibc/ELF.
6820linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6821  lt_cv_deplibs_check_method=pass_all
6822  ;;
6823
6824netbsd* | netbsdelf*-gnu)
6825  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6826    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6827  else
6828    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6829  fi
6830  ;;
6831
6832newos6*)
6833  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6834  lt_cv_file_magic_cmd=/usr/bin/file
6835  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6836  ;;
6837
6838*nto* | *qnx*)
6839  lt_cv_deplibs_check_method=pass_all
6840  ;;
6841
6842openbsd* | bitrig*)
6843  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6844    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6845  else
6846    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6847  fi
6848  ;;
6849
6850osf3* | osf4* | osf5*)
6851  lt_cv_deplibs_check_method=pass_all
6852  ;;
6853
6854rdos*)
6855  lt_cv_deplibs_check_method=pass_all
6856  ;;
6857
6858solaris*)
6859  lt_cv_deplibs_check_method=pass_all
6860  ;;
6861
6862sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6863  lt_cv_deplibs_check_method=pass_all
6864  ;;
6865
6866sysv4 | sysv4.3*)
6867  case $host_vendor in
6868  motorola)
6869    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6870    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6871    ;;
6872  ncr)
6873    lt_cv_deplibs_check_method=pass_all
6874    ;;
6875  sequent)
6876    lt_cv_file_magic_cmd='/bin/file'
6877    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6878    ;;
6879  sni)
6880    lt_cv_file_magic_cmd='/bin/file'
6881    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6882    lt_cv_file_magic_test_file=/lib/libc.so
6883    ;;
6884  siemens)
6885    lt_cv_deplibs_check_method=pass_all
6886    ;;
6887  pc)
6888    lt_cv_deplibs_check_method=pass_all
6889    ;;
6890  esac
6891  ;;
6892
6893tpf*)
6894  lt_cv_deplibs_check_method=pass_all
6895  ;;
6896os2*)
6897  lt_cv_deplibs_check_method=pass_all
6898  ;;
6899esac
6900
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6903$as_echo "$lt_cv_deplibs_check_method" >&6; }
6904
6905file_magic_glob=
6906want_nocaseglob=no
6907if test "$build" = "$host"; then
6908  case $host_os in
6909  mingw* | pw32*)
6910    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6911      want_nocaseglob=yes
6912    else
6913      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6914    fi
6915    ;;
6916  esac
6917fi
6918
6919file_magic_cmd=$lt_cv_file_magic_cmd
6920deplibs_check_method=$lt_cv_deplibs_check_method
6921test -z "$deplibs_check_method" && deplibs_check_method=unknown
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944if test -n "$ac_tool_prefix"; then
6945  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6946set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948$as_echo_n "checking for $ac_word... " >&6; }
6949if ${ac_cv_prog_DLLTOOL+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  if test -n "$DLLTOOL"; then
6953  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6954else
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958  IFS=$as_save_IFS
6959  test -z "$as_dir" && as_dir=.
6960    for ac_exec_ext in '' $ac_executable_extensions; do
6961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964    break 2
6965  fi
6966done
6967  done
6968IFS=$as_save_IFS
6969
6970fi
6971fi
6972DLLTOOL=$ac_cv_prog_DLLTOOL
6973if test -n "$DLLTOOL"; then
6974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6975$as_echo "$DLLTOOL" >&6; }
6976else
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978$as_echo "no" >&6; }
6979fi
6980
6981
6982fi
6983if test -z "$ac_cv_prog_DLLTOOL"; then
6984  ac_ct_DLLTOOL=$DLLTOOL
6985  # Extract the first word of "dlltool", so it can be a program name with args.
6986set dummy dlltool; ac_word=$2
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988$as_echo_n "checking for $ac_word... " >&6; }
6989if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6990  $as_echo_n "(cached) " >&6
6991else
6992  if test -n "$ac_ct_DLLTOOL"; then
6993  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998  IFS=$as_save_IFS
6999  test -z "$as_dir" && as_dir=.
7000    for ac_exec_ext in '' $ac_executable_extensions; do
7001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004    break 2
7005  fi
7006done
7007  done
7008IFS=$as_save_IFS
7009
7010fi
7011fi
7012ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7013if test -n "$ac_ct_DLLTOOL"; then
7014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7015$as_echo "$ac_ct_DLLTOOL" >&6; }
7016else
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018$as_echo "no" >&6; }
7019fi
7020
7021  if test "x$ac_ct_DLLTOOL" = x; then
7022    DLLTOOL="false"
7023  else
7024    case $cross_compiling:$ac_tool_warned in
7025yes:)
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7028ac_tool_warned=yes ;;
7029esac
7030    DLLTOOL=$ac_ct_DLLTOOL
7031  fi
7032else
7033  DLLTOOL="$ac_cv_prog_DLLTOOL"
7034fi
7035
7036test -z "$DLLTOOL" && DLLTOOL=dlltool
7037
7038
7039
7040
7041
7042
7043
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7045$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7046if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  lt_cv_sharedlib_from_linklib_cmd='unknown'
7050
7051case $host_os in
7052cygwin* | mingw* | pw32* | cegcc*)
7053  # two different shell functions defined in ltmain.sh;
7054  # decide which one to use based on capabilities of $DLLTOOL
7055  case `$DLLTOOL --help 2>&1` in
7056  *--identify-strict*)
7057    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7058    ;;
7059  *)
7060    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7061    ;;
7062  esac
7063  ;;
7064*)
7065  # fallback: assume linklib IS sharedlib
7066  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7067  ;;
7068esac
7069
7070fi
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7072$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7073sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7074test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7075
7076
7077
7078
7079
7080
7081
7082if test -n "$ac_tool_prefix"; then
7083  for ac_prog in ar
7084  do
7085    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7086set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if ${ac_cv_prog_AR+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  if test -n "$AR"; then
7093  ac_cv_prog_AR="$AR" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  test -z "$as_dir" && as_dir=.
7100    for ac_exec_ext in '' $ac_executable_extensions; do
7101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104    break 2
7105  fi
7106done
7107  done
7108IFS=$as_save_IFS
7109
7110fi
7111fi
7112AR=$ac_cv_prog_AR
7113if test -n "$AR"; then
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7115$as_echo "$AR" >&6; }
7116else
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121
7122    test -n "$AR" && break
7123  done
7124fi
7125if test -z "$AR"; then
7126  ac_ct_AR=$AR
7127  for ac_prog in ar
7128do
7129  # Extract the first word of "$ac_prog", so it can be a program name with args.
7130set dummy $ac_prog; ac_word=$2
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132$as_echo_n "checking for $ac_word... " >&6; }
7133if ${ac_cv_prog_ac_ct_AR+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  if test -n "$ac_ct_AR"; then
7137  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142  IFS=$as_save_IFS
7143  test -z "$as_dir" && as_dir=.
7144    for ac_exec_ext in '' $ac_executable_extensions; do
7145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146    ac_cv_prog_ac_ct_AR="$ac_prog"
7147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148    break 2
7149  fi
7150done
7151  done
7152IFS=$as_save_IFS
7153
7154fi
7155fi
7156ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157if test -n "$ac_ct_AR"; then
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7159$as_echo "$ac_ct_AR" >&6; }
7160else
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
7163fi
7164
7165
7166  test -n "$ac_ct_AR" && break
7167done
7168
7169  if test "x$ac_ct_AR" = x; then
7170    AR="false"
7171  else
7172    case $cross_compiling:$ac_tool_warned in
7173yes:)
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176ac_tool_warned=yes ;;
7177esac
7178    AR=$ac_ct_AR
7179  fi
7180fi
7181
7182: ${AR=ar}
7183: ${AR_FLAGS=cru}
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7196$as_echo_n "checking for archiver @FILE support... " >&6; }
7197if ${lt_cv_ar_at_file+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  lt_cv_ar_at_file=no
7201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203
7204int
7205main ()
7206{
7207
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212if ac_fn_c_try_compile "$LINENO"; then :
7213  echo conftest.$ac_objext > conftest.lst
7214      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7215      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7216  (eval $lt_ar_try) 2>&5
7217  ac_status=$?
7218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219  test $ac_status = 0; }
7220      if test 0 -eq "$ac_status"; then
7221	# Ensure the archiver fails upon bogus file names.
7222	rm -f conftest.$ac_objext libconftest.a
7223	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7224  (eval $lt_ar_try) 2>&5
7225  ac_status=$?
7226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227  test $ac_status = 0; }
7228	if test 0 -ne "$ac_status"; then
7229          lt_cv_ar_at_file=@
7230        fi
7231      fi
7232      rm -f conftest.* libconftest.a
7233
7234fi
7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7239$as_echo "$lt_cv_ar_at_file" >&6; }
7240
7241if test no = "$lt_cv_ar_at_file"; then
7242  archiver_list_spec=
7243else
7244  archiver_list_spec=$lt_cv_ar_at_file
7245fi
7246
7247
7248
7249
7250
7251
7252
7253if test -n "$ac_tool_prefix"; then
7254  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7255set dummy ${ac_tool_prefix}strip; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if ${ac_cv_prog_STRIP+:} false; then :
7259  $as_echo_n "(cached) " >&6
7260else
7261  if test -n "$STRIP"; then
7262  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267  IFS=$as_save_IFS
7268  test -z "$as_dir" && as_dir=.
7269    for ac_exec_ext in '' $ac_executable_extensions; do
7270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276  done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281STRIP=$ac_cv_prog_STRIP
7282if test -n "$STRIP"; then
7283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7284$as_echo "$STRIP" >&6; }
7285else
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290
7291fi
7292if test -z "$ac_cv_prog_STRIP"; then
7293  ac_ct_STRIP=$STRIP
7294  # Extract the first word of "strip", so it can be a program name with args.
7295set dummy strip; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
7298if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7299  $as_echo_n "(cached) " >&6
7300else
7301  if test -n "$ac_ct_STRIP"; then
7302  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309    for ac_exec_ext in '' $ac_executable_extensions; do
7310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311    ac_cv_prog_ac_ct_STRIP="strip"
7312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313    break 2
7314  fi
7315done
7316  done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7322if test -n "$ac_ct_STRIP"; then
7323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7324$as_echo "$ac_ct_STRIP" >&6; }
7325else
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330  if test "x$ac_ct_STRIP" = x; then
7331    STRIP=":"
7332  else
7333    case $cross_compiling:$ac_tool_warned in
7334yes:)
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337ac_tool_warned=yes ;;
7338esac
7339    STRIP=$ac_ct_STRIP
7340  fi
7341else
7342  STRIP="$ac_cv_prog_STRIP"
7343fi
7344
7345test -z "$STRIP" && STRIP=:
7346
7347
7348
7349
7350
7351
7352if test -n "$ac_tool_prefix"; then
7353  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7354set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if ${ac_cv_prog_RANLIB+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  if test -n "$RANLIB"; then
7361  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368    for ac_exec_ext in '' $ac_executable_extensions; do
7369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375  done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380RANLIB=$ac_cv_prog_RANLIB
7381if test -n "$RANLIB"; then
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7383$as_echo "$RANLIB" >&6; }
7384else
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389
7390fi
7391if test -z "$ac_cv_prog_RANLIB"; then
7392  ac_ct_RANLIB=$RANLIB
7393  # Extract the first word of "ranlib", so it can be a program name with args.
7394set dummy ranlib; ac_word=$2
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396$as_echo_n "checking for $ac_word... " >&6; }
7397if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  if test -n "$ac_ct_RANLIB"; then
7401  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7402else
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406  IFS=$as_save_IFS
7407  test -z "$as_dir" && as_dir=.
7408    for ac_exec_ext in '' $ac_executable_extensions; do
7409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410    ac_cv_prog_ac_ct_RANLIB="ranlib"
7411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412    break 2
7413  fi
7414done
7415  done
7416IFS=$as_save_IFS
7417
7418fi
7419fi
7420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7421if test -n "$ac_ct_RANLIB"; then
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7423$as_echo "$ac_ct_RANLIB" >&6; }
7424else
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426$as_echo "no" >&6; }
7427fi
7428
7429  if test "x$ac_ct_RANLIB" = x; then
7430    RANLIB=":"
7431  else
7432    case $cross_compiling:$ac_tool_warned in
7433yes:)
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436ac_tool_warned=yes ;;
7437esac
7438    RANLIB=$ac_ct_RANLIB
7439  fi
7440else
7441  RANLIB="$ac_cv_prog_RANLIB"
7442fi
7443
7444test -z "$RANLIB" && RANLIB=:
7445
7446
7447
7448
7449
7450
7451# Determine commands to create old-style static archives.
7452old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7453old_postinstall_cmds='chmod 644 $oldlib'
7454old_postuninstall_cmds=
7455
7456if test -n "$RANLIB"; then
7457  case $host_os in
7458  bitrig* | openbsd*)
7459    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7460    ;;
7461  *)
7462    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7463    ;;
7464  esac
7465  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7466fi
7467
7468case $host_os in
7469  darwin*)
7470    lock_old_archive_extraction=yes ;;
7471  *)
7472    lock_old_archive_extraction=no ;;
7473esac
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513# If no C compiler was specified, use CC.
7514LTCC=${LTCC-"$CC"}
7515
7516# If no C compiler flags were specified, use CFLAGS.
7517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7518
7519# Allow CC to be a program name with arguments.
7520compiler=$CC
7521
7522
7523# Check for command to grab the raw symbol name followed by C symbol from nm.
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7525$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7526if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529
7530# These are sane defaults that work on at least a few old systems.
7531# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7532
7533# Character class describing NM global symbol codes.
7534symcode='[BCDEGRST]'
7535
7536# Regexp to match symbols that can be accessed directly from C.
7537sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7538
7539# Define system-specific variables.
7540case $host_os in
7541aix*)
7542  symcode='[BCDT]'
7543  ;;
7544cygwin* | mingw* | pw32* | cegcc*)
7545  symcode='[ABCDGISTW]'
7546  ;;
7547hpux*)
7548  if test ia64 = "$host_cpu"; then
7549    symcode='[ABCDEGRST]'
7550  fi
7551  ;;
7552irix* | nonstopux*)
7553  symcode='[BCDEGRST]'
7554  ;;
7555osf*)
7556  symcode='[BCDEGQRST]'
7557  ;;
7558solaris*)
7559  symcode='[BDRT]'
7560  ;;
7561sco3.2v5*)
7562  symcode='[DT]'
7563  ;;
7564sysv4.2uw2*)
7565  symcode='[DT]'
7566  ;;
7567sysv5* | sco5v6* | unixware* | OpenUNIX*)
7568  symcode='[ABDT]'
7569  ;;
7570sysv4)
7571  symcode='[DFNSTU]'
7572  ;;
7573esac
7574
7575# If we're using GNU nm, then use its standard symbol codes.
7576case `$NM -V 2>&1` in
7577*GNU* | *'with BFD'*)
7578  symcode='[ABCDGIRSTW]' ;;
7579esac
7580
7581if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7582  # Gets list of data symbols to import.
7583  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7584  # Adjust the below global symbol transforms to fixup imported variables.
7585  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7586  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7587  lt_c_name_lib_hook="\
7588  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7589  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7590else
7591  # Disable hooks by default.
7592  lt_cv_sys_global_symbol_to_import=
7593  lt_cdecl_hook=
7594  lt_c_name_hook=
7595  lt_c_name_lib_hook=
7596fi
7597
7598# Transform an extracted symbol line into a proper C declaration.
7599# Some systems (esp. on ia64) link data and code symbols differently,
7600# so use this general approach.
7601lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7602$lt_cdecl_hook\
7603" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7604" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7605
7606# Transform an extracted symbol line into symbol name and symbol address
7607lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7608$lt_c_name_hook\
7609" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7610" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7611
7612# Transform an extracted symbol line into symbol name with lib prefix and
7613# symbol address.
7614lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7615$lt_c_name_lib_hook\
7616" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7617" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7618" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7619
7620# Handle CRLF in mingw tool chain
7621opt_cr=
7622case $build_os in
7623mingw*)
7624  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7625  ;;
7626esac
7627
7628# Try without a prefix underscore, then with it.
7629for ac_symprfx in "" "_"; do
7630
7631  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7632  symxfrm="\\1 $ac_symprfx\\2 \\2"
7633
7634  # Write the raw and C identifiers.
7635  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7636    # Fake it for dumpbin and say T for any non-static function,
7637    # D for any global variable and I for any imported variable.
7638    # Also find C++ and __fastcall symbols from MSVC++,
7639    # which start with @ or ?.
7640    lt_cv_sys_global_symbol_pipe="$AWK '"\
7641"     {last_section=section; section=\$ 3};"\
7642"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7643"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7644"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7645"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7646"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7647"     \$ 0!~/External *\|/{next};"\
7648"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7649"     {if(hide[section]) next};"\
7650"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7651"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7652"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7653"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7654"     ' prfx=^$ac_symprfx"
7655  else
7656    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7657  fi
7658  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7659
7660  # Check to see that the pipe works correctly.
7661  pipe_works=no
7662
7663  rm -f conftest*
7664  cat > conftest.$ac_ext <<_LT_EOF
7665#ifdef __cplusplus
7666extern "C" {
7667#endif
7668char nm_test_var;
7669void nm_test_func(void);
7670void nm_test_func(void){}
7671#ifdef __cplusplus
7672}
7673#endif
7674int main(){nm_test_var='a';nm_test_func();return(0);}
7675_LT_EOF
7676
7677  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7678  (eval $ac_compile) 2>&5
7679  ac_status=$?
7680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681  test $ac_status = 0; }; then
7682    # Now try to grab the symbols.
7683    nlist=conftest.nm
7684    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7685  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7686  ac_status=$?
7687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688  test $ac_status = 0; } && test -s "$nlist"; then
7689      # Try sorting and uniquifying the output.
7690      if sort "$nlist" | uniq > "$nlist"T; then
7691	mv -f "$nlist"T "$nlist"
7692      else
7693	rm -f "$nlist"T
7694      fi
7695
7696      # Make sure that we snagged all the symbols we need.
7697      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7698	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7699	  cat <<_LT_EOF > conftest.$ac_ext
7700/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7701#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7702/* DATA imports from DLLs on WIN32 can't be const, because runtime
7703   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7704# define LT_DLSYM_CONST
7705#elif defined __osf__
7706/* This system does not cope well with relocations in const data.  */
7707# define LT_DLSYM_CONST
7708#else
7709# define LT_DLSYM_CONST const
7710#endif
7711
7712#ifdef __cplusplus
7713extern "C" {
7714#endif
7715
7716_LT_EOF
7717	  # Now generate the symbol file.
7718	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7719
7720	  cat <<_LT_EOF >> conftest.$ac_ext
7721
7722/* The mapping between symbol names and symbols.  */
7723LT_DLSYM_CONST struct {
7724  const char *name;
7725  void       *address;
7726}
7727lt__PROGRAM__LTX_preloaded_symbols[] =
7728{
7729  { "@PROGRAM@", (void *) 0 },
7730_LT_EOF
7731	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7732	  cat <<\_LT_EOF >> conftest.$ac_ext
7733  {0, (void *) 0}
7734};
7735
7736/* This works around a problem in FreeBSD linker */
7737#ifdef FREEBSD_WORKAROUND
7738static const void *lt_preloaded_setup() {
7739  return lt__PROGRAM__LTX_preloaded_symbols;
7740}
7741#endif
7742
7743#ifdef __cplusplus
7744}
7745#endif
7746_LT_EOF
7747	  # Now try linking the two files.
7748	  mv conftest.$ac_objext conftstm.$ac_objext
7749	  lt_globsym_save_LIBS=$LIBS
7750	  lt_globsym_save_CFLAGS=$CFLAGS
7751	  LIBS=conftstm.$ac_objext
7752	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7753	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7754  (eval $ac_link) 2>&5
7755  ac_status=$?
7756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7758	    pipe_works=yes
7759	  fi
7760	  LIBS=$lt_globsym_save_LIBS
7761	  CFLAGS=$lt_globsym_save_CFLAGS
7762	else
7763	  echo "cannot find nm_test_func in $nlist" >&5
7764	fi
7765      else
7766	echo "cannot find nm_test_var in $nlist" >&5
7767      fi
7768    else
7769      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7770    fi
7771  else
7772    echo "$progname: failed program was:" >&5
7773    cat conftest.$ac_ext >&5
7774  fi
7775  rm -rf conftest* conftst*
7776
7777  # Do not use the global_symbol_pipe unless it works.
7778  if test yes = "$pipe_works"; then
7779    break
7780  else
7781    lt_cv_sys_global_symbol_pipe=
7782  fi
7783done
7784
7785fi
7786
7787if test -z "$lt_cv_sys_global_symbol_pipe"; then
7788  lt_cv_sys_global_symbol_to_cdecl=
7789fi
7790if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7792$as_echo "failed" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7795$as_echo "ok" >&6; }
7796fi
7797
7798# Response file support.
7799if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7800  nm_file_list_spec='@'
7801elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7802  nm_file_list_spec='@'
7803fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7842$as_echo_n "checking for sysroot... " >&6; }
7843
7844# Check whether --with-sysroot was given.
7845if test "${with_sysroot+set}" = set; then :
7846  withval=$with_sysroot;
7847else
7848  with_sysroot=no
7849fi
7850
7851
7852lt_sysroot=
7853case $with_sysroot in #(
7854 yes)
7855   if test yes = "$GCC"; then
7856     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7857   fi
7858   ;; #(
7859 /*)
7860   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7861   ;; #(
7862 no|'')
7863   ;; #(
7864 *)
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7866$as_echo "$with_sysroot" >&6; }
7867   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7868   ;;
7869esac
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7872$as_echo "${lt_sysroot:-no}" >&6; }
7873
7874
7875
7876
7877
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7879$as_echo_n "checking for a working dd... " >&6; }
7880if ${ac_cv_path_lt_DD+:} false; then :
7881  $as_echo_n "(cached) " >&6
7882else
7883  printf 0123456789abcdef0123456789abcdef >conftest.i
7884cat conftest.i conftest.i >conftest2.i
7885: ${lt_DD:=$DD}
7886if test -z "$lt_DD"; then
7887  ac_path_lt_DD_found=false
7888  # Loop through the user's path and test for each of PROGNAME-LIST
7889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892  IFS=$as_save_IFS
7893  test -z "$as_dir" && as_dir=.
7894    for ac_prog in dd; do
7895    for ac_exec_ext in '' $ac_executable_extensions; do
7896      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7897      as_fn_executable_p "$ac_path_lt_DD" || continue
7898if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7899  cmp -s conftest.i conftest.out \
7900  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7901fi
7902      $ac_path_lt_DD_found && break 3
7903    done
7904  done
7905  done
7906IFS=$as_save_IFS
7907  if test -z "$ac_cv_path_lt_DD"; then
7908    :
7909  fi
7910else
7911  ac_cv_path_lt_DD=$lt_DD
7912fi
7913
7914rm -f conftest.i conftest2.i conftest.out
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7917$as_echo "$ac_cv_path_lt_DD" >&6; }
7918
7919
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7921$as_echo_n "checking how to truncate binary pipes... " >&6; }
7922if ${lt_cv_truncate_bin+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  printf 0123456789abcdef0123456789abcdef >conftest.i
7926cat conftest.i conftest.i >conftest2.i
7927lt_cv_truncate_bin=
7928if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7929  cmp -s conftest.i conftest.out \
7930  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7931fi
7932rm -f conftest.i conftest2.i conftest.out
7933test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7936$as_echo "$lt_cv_truncate_bin" >&6; }
7937
7938
7939
7940
7941
7942
7943
7944# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7945func_cc_basename ()
7946{
7947    for cc_temp in $*""; do
7948      case $cc_temp in
7949        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7950        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7951        \-*) ;;
7952        *) break;;
7953      esac
7954    done
7955    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7956}
7957
7958# Check whether --enable-libtool-lock was given.
7959if test "${enable_libtool_lock+set}" = set; then :
7960  enableval=$enable_libtool_lock;
7961fi
7962
7963test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7964
7965# Some flags need to be propagated to the compiler or linker for good
7966# libtool support.
7967case $host in
7968ia64-*-hpux*)
7969  # Find out what ABI is being produced by ac_compile, and set mode
7970  # options accordingly.
7971  echo 'int i;' > conftest.$ac_ext
7972  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7973  (eval $ac_compile) 2>&5
7974  ac_status=$?
7975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7976  test $ac_status = 0; }; then
7977    case `/usr/bin/file conftest.$ac_objext` in
7978      *ELF-32*)
7979	HPUX_IA64_MODE=32
7980	;;
7981      *ELF-64*)
7982	HPUX_IA64_MODE=64
7983	;;
7984    esac
7985  fi
7986  rm -rf conftest*
7987  ;;
7988*-*-irix6*)
7989  # Find out what ABI is being produced by ac_compile, and set linker
7990  # options accordingly.
7991  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7992  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7993  (eval $ac_compile) 2>&5
7994  ac_status=$?
7995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7996  test $ac_status = 0; }; then
7997    if test yes = "$lt_cv_prog_gnu_ld"; then
7998      case `/usr/bin/file conftest.$ac_objext` in
7999	*32-bit*)
8000	  LD="${LD-ld} -melf32bsmip"
8001	  ;;
8002	*N32*)
8003	  LD="${LD-ld} -melf32bmipn32"
8004	  ;;
8005	*64-bit*)
8006	  LD="${LD-ld} -melf64bmip"
8007	;;
8008      esac
8009    else
8010      case `/usr/bin/file conftest.$ac_objext` in
8011	*32-bit*)
8012	  LD="${LD-ld} -32"
8013	  ;;
8014	*N32*)
8015	  LD="${LD-ld} -n32"
8016	  ;;
8017	*64-bit*)
8018	  LD="${LD-ld} -64"
8019	  ;;
8020      esac
8021    fi
8022  fi
8023  rm -rf conftest*
8024  ;;
8025
8026mips64*-*linux*)
8027  # Find out what ABI is being produced by ac_compile, and set linker
8028  # options accordingly.
8029  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8030  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8031  (eval $ac_compile) 2>&5
8032  ac_status=$?
8033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034  test $ac_status = 0; }; then
8035    emul=elf
8036    case `/usr/bin/file conftest.$ac_objext` in
8037      *32-bit*)
8038	emul="${emul}32"
8039	;;
8040      *64-bit*)
8041	emul="${emul}64"
8042	;;
8043    esac
8044    case `/usr/bin/file conftest.$ac_objext` in
8045      *MSB*)
8046	emul="${emul}btsmip"
8047	;;
8048      *LSB*)
8049	emul="${emul}ltsmip"
8050	;;
8051    esac
8052    case `/usr/bin/file conftest.$ac_objext` in
8053      *N32*)
8054	emul="${emul}n32"
8055	;;
8056    esac
8057    LD="${LD-ld} -m $emul"
8058  fi
8059  rm -rf conftest*
8060  ;;
8061
8062x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8063s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8064  # Find out what ABI is being produced by ac_compile, and set linker
8065  # options accordingly.  Note that the listed cases only cover the
8066  # situations where additional linker options are needed (such as when
8067  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8068  # vice versa); the common cases where no linker options are needed do
8069  # not appear in the list.
8070  echo 'int i;' > conftest.$ac_ext
8071  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8072  (eval $ac_compile) 2>&5
8073  ac_status=$?
8074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075  test $ac_status = 0; }; then
8076    case `/usr/bin/file conftest.o` in
8077      *32-bit*)
8078	case $host in
8079	  x86_64-*kfreebsd*-gnu)
8080	    LD="${LD-ld} -m elf_i386_fbsd"
8081	    ;;
8082	  x86_64-*linux*)
8083	    case `/usr/bin/file conftest.o` in
8084	      *x86-64*)
8085		LD="${LD-ld} -m elf32_x86_64"
8086		;;
8087	      *)
8088		LD="${LD-ld} -m elf_i386"
8089		;;
8090	    esac
8091	    ;;
8092	  powerpc64le-*linux*)
8093	    LD="${LD-ld} -m elf32lppclinux"
8094	    ;;
8095	  powerpc64-*linux*)
8096	    LD="${LD-ld} -m elf32ppclinux"
8097	    ;;
8098	  s390x-*linux*)
8099	    LD="${LD-ld} -m elf_s390"
8100	    ;;
8101	  sparc64-*linux*)
8102	    LD="${LD-ld} -m elf32_sparc"
8103	    ;;
8104	esac
8105	;;
8106      *64-bit*)
8107	case $host in
8108	  x86_64-*kfreebsd*-gnu)
8109	    LD="${LD-ld} -m elf_x86_64_fbsd"
8110	    ;;
8111	  x86_64-*linux*)
8112	    LD="${LD-ld} -m elf_x86_64"
8113	    ;;
8114	  powerpcle-*linux*)
8115	    LD="${LD-ld} -m elf64lppc"
8116	    ;;
8117	  powerpc-*linux*)
8118	    LD="${LD-ld} -m elf64ppc"
8119	    ;;
8120	  s390*-*linux*|s390*-*tpf*)
8121	    LD="${LD-ld} -m elf64_s390"
8122	    ;;
8123	  sparc*-*linux*)
8124	    LD="${LD-ld} -m elf64_sparc"
8125	    ;;
8126	esac
8127	;;
8128    esac
8129  fi
8130  rm -rf conftest*
8131  ;;
8132
8133*-*-sco3.2v5*)
8134  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8135  SAVE_CFLAGS=$CFLAGS
8136  CFLAGS="$CFLAGS -belf"
8137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8138$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8139if ${lt_cv_cc_needs_belf+:} false; then :
8140  $as_echo_n "(cached) " >&6
8141else
8142  ac_ext=c
8143ac_cpp='$CPP $CPPFLAGS'
8144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8146ac_compiler_gnu=$ac_cv_c_compiler_gnu
8147
8148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150
8151int
8152main ()
8153{
8154
8155  ;
8156  return 0;
8157}
8158_ACEOF
8159if ac_fn_c_try_link "$LINENO"; then :
8160  lt_cv_cc_needs_belf=yes
8161else
8162  lt_cv_cc_needs_belf=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext \
8165    conftest$ac_exeext conftest.$ac_ext
8166     ac_ext=c
8167ac_cpp='$CPP $CPPFLAGS'
8168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8174$as_echo "$lt_cv_cc_needs_belf" >&6; }
8175  if test yes != "$lt_cv_cc_needs_belf"; then
8176    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8177    CFLAGS=$SAVE_CFLAGS
8178  fi
8179  ;;
8180*-*solaris*)
8181  # Find out what ABI is being produced by ac_compile, and set linker
8182  # options accordingly.
8183  echo 'int i;' > conftest.$ac_ext
8184  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8185  (eval $ac_compile) 2>&5
8186  ac_status=$?
8187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8188  test $ac_status = 0; }; then
8189    case `/usr/bin/file conftest.o` in
8190    *64-bit*)
8191      case $lt_cv_prog_gnu_ld in
8192      yes*)
8193        case $host in
8194        i?86-*-solaris*|x86_64-*-solaris*)
8195          LD="${LD-ld} -m elf_x86_64"
8196          ;;
8197        sparc*-*-solaris*)
8198          LD="${LD-ld} -m elf64_sparc"
8199          ;;
8200        esac
8201        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8202        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8203          LD=${LD-ld}_sol2
8204        fi
8205        ;;
8206      *)
8207	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8208	  LD="${LD-ld} -64"
8209	fi
8210	;;
8211      esac
8212      ;;
8213    esac
8214  fi
8215  rm -rf conftest*
8216  ;;
8217esac
8218
8219need_locks=$enable_libtool_lock
8220
8221if test -n "$ac_tool_prefix"; then
8222  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8223set dummy ${ac_tool_prefix}mt; ac_word=$2
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  if test -n "$MANIFEST_TOOL"; then
8230  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235  IFS=$as_save_IFS
8236  test -z "$as_dir" && as_dir=.
8237    for ac_exec_ext in '' $ac_executable_extensions; do
8238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241    break 2
8242  fi
8243done
8244  done
8245IFS=$as_save_IFS
8246
8247fi
8248fi
8249MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8250if test -n "$MANIFEST_TOOL"; then
8251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8252$as_echo "$MANIFEST_TOOL" >&6; }
8253else
8254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257
8258
8259fi
8260if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8261  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8262  # Extract the first word of "mt", so it can be a program name with args.
8263set dummy mt; ac_word=$2
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265$as_echo_n "checking for $ac_word... " >&6; }
8266if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8267  $as_echo_n "(cached) " >&6
8268else
8269  if test -n "$ac_ct_MANIFEST_TOOL"; then
8270  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8271else
8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275  IFS=$as_save_IFS
8276  test -z "$as_dir" && as_dir=.
8277    for ac_exec_ext in '' $ac_executable_extensions; do
8278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281    break 2
8282  fi
8283done
8284  done
8285IFS=$as_save_IFS
8286
8287fi
8288fi
8289ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8290if test -n "$ac_ct_MANIFEST_TOOL"; then
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8292$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8293else
8294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295$as_echo "no" >&6; }
8296fi
8297
8298  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8299    MANIFEST_TOOL=":"
8300  else
8301    case $cross_compiling:$ac_tool_warned in
8302yes:)
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305ac_tool_warned=yes ;;
8306esac
8307    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8308  fi
8309else
8310  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8311fi
8312
8313test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8315$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8316if ${lt_cv_path_mainfest_tool+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  lt_cv_path_mainfest_tool=no
8320  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8321  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8322  cat conftest.err >&5
8323  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8324    lt_cv_path_mainfest_tool=yes
8325  fi
8326  rm -f conftest*
8327fi
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8329$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8330if test yes != "$lt_cv_path_mainfest_tool"; then
8331  MANIFEST_TOOL=:
8332fi
8333
8334
8335
8336
8337
8338
8339  case $host_os in
8340    rhapsody* | darwin*)
8341    if test -n "$ac_tool_prefix"; then
8342  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8343set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
8346if ${ac_cv_prog_DSYMUTIL+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  if test -n "$DSYMUTIL"; then
8350  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355  IFS=$as_save_IFS
8356  test -z "$as_dir" && as_dir=.
8357    for ac_exec_ext in '' $ac_executable_extensions; do
8358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361    break 2
8362  fi
8363done
8364  done
8365IFS=$as_save_IFS
8366
8367fi
8368fi
8369DSYMUTIL=$ac_cv_prog_DSYMUTIL
8370if test -n "$DSYMUTIL"; then
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8372$as_echo "$DSYMUTIL" >&6; }
8373else
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
8378
8379fi
8380if test -z "$ac_cv_prog_DSYMUTIL"; then
8381  ac_ct_DSYMUTIL=$DSYMUTIL
8382  # Extract the first word of "dsymutil", so it can be a program name with args.
8383set dummy dsymutil; ac_word=$2
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
8386if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  if test -n "$ac_ct_DSYMUTIL"; then
8390  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8391else
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395  IFS=$as_save_IFS
8396  test -z "$as_dir" && as_dir=.
8397    for ac_exec_ext in '' $ac_executable_extensions; do
8398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401    break 2
8402  fi
8403done
8404  done
8405IFS=$as_save_IFS
8406
8407fi
8408fi
8409ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8410if test -n "$ac_ct_DSYMUTIL"; then
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8412$as_echo "$ac_ct_DSYMUTIL" >&6; }
8413else
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418  if test "x$ac_ct_DSYMUTIL" = x; then
8419    DSYMUTIL=":"
8420  else
8421    case $cross_compiling:$ac_tool_warned in
8422yes:)
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425ac_tool_warned=yes ;;
8426esac
8427    DSYMUTIL=$ac_ct_DSYMUTIL
8428  fi
8429else
8430  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8431fi
8432
8433    if test -n "$ac_tool_prefix"; then
8434  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8435set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
8438if ${ac_cv_prog_NMEDIT+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  if test -n "$NMEDIT"; then
8442  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447  IFS=$as_save_IFS
8448  test -z "$as_dir" && as_dir=.
8449    for ac_exec_ext in '' $ac_executable_extensions; do
8450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453    break 2
8454  fi
8455done
8456  done
8457IFS=$as_save_IFS
8458
8459fi
8460fi
8461NMEDIT=$ac_cv_prog_NMEDIT
8462if test -n "$NMEDIT"; then
8463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8464$as_echo "$NMEDIT" >&6; }
8465else
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
8468fi
8469
8470
8471fi
8472if test -z "$ac_cv_prog_NMEDIT"; then
8473  ac_ct_NMEDIT=$NMEDIT
8474  # Extract the first word of "nmedit", so it can be a program name with args.
8475set dummy nmedit; ac_word=$2
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
8478if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  if test -n "$ac_ct_NMEDIT"; then
8482  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487  IFS=$as_save_IFS
8488  test -z "$as_dir" && as_dir=.
8489    for ac_exec_ext in '' $ac_executable_extensions; do
8490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493    break 2
8494  fi
8495done
8496  done
8497IFS=$as_save_IFS
8498
8499fi
8500fi
8501ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8502if test -n "$ac_ct_NMEDIT"; then
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8504$as_echo "$ac_ct_NMEDIT" >&6; }
8505else
8506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
8508fi
8509
8510  if test "x$ac_ct_NMEDIT" = x; then
8511    NMEDIT=":"
8512  else
8513    case $cross_compiling:$ac_tool_warned in
8514yes:)
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8517ac_tool_warned=yes ;;
8518esac
8519    NMEDIT=$ac_ct_NMEDIT
8520  fi
8521else
8522  NMEDIT="$ac_cv_prog_NMEDIT"
8523fi
8524
8525    if test -n "$ac_tool_prefix"; then
8526  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8527set dummy ${ac_tool_prefix}lipo; ac_word=$2
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529$as_echo_n "checking for $ac_word... " >&6; }
8530if ${ac_cv_prog_LIPO+:} false; then :
8531  $as_echo_n "(cached) " >&6
8532else
8533  if test -n "$LIPO"; then
8534  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8535else
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539  IFS=$as_save_IFS
8540  test -z "$as_dir" && as_dir=.
8541    for ac_exec_ext in '' $ac_executable_extensions; do
8542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545    break 2
8546  fi
8547done
8548  done
8549IFS=$as_save_IFS
8550
8551fi
8552fi
8553LIPO=$ac_cv_prog_LIPO
8554if test -n "$LIPO"; then
8555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8556$as_echo "$LIPO" >&6; }
8557else
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
8560fi
8561
8562
8563fi
8564if test -z "$ac_cv_prog_LIPO"; then
8565  ac_ct_LIPO=$LIPO
8566  # Extract the first word of "lipo", so it can be a program name with args.
8567set dummy lipo; ac_word=$2
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  if test -n "$ac_ct_LIPO"; then
8574  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8575else
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579  IFS=$as_save_IFS
8580  test -z "$as_dir" && as_dir=.
8581    for ac_exec_ext in '' $ac_executable_extensions; do
8582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8583    ac_cv_prog_ac_ct_LIPO="lipo"
8584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585    break 2
8586  fi
8587done
8588  done
8589IFS=$as_save_IFS
8590
8591fi
8592fi
8593ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8594if test -n "$ac_ct_LIPO"; then
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8596$as_echo "$ac_ct_LIPO" >&6; }
8597else
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
8600fi
8601
8602  if test "x$ac_ct_LIPO" = x; then
8603    LIPO=":"
8604  else
8605    case $cross_compiling:$ac_tool_warned in
8606yes:)
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609ac_tool_warned=yes ;;
8610esac
8611    LIPO=$ac_ct_LIPO
8612  fi
8613else
8614  LIPO="$ac_cv_prog_LIPO"
8615fi
8616
8617    if test -n "$ac_tool_prefix"; then
8618  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8619set dummy ${ac_tool_prefix}otool; ac_word=$2
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if ${ac_cv_prog_OTOOL+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  if test -n "$OTOOL"; then
8626  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631  IFS=$as_save_IFS
8632  test -z "$as_dir" && as_dir=.
8633    for ac_exec_ext in '' $ac_executable_extensions; do
8634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637    break 2
8638  fi
8639done
8640  done
8641IFS=$as_save_IFS
8642
8643fi
8644fi
8645OTOOL=$ac_cv_prog_OTOOL
8646if test -n "$OTOOL"; then
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8648$as_echo "$OTOOL" >&6; }
8649else
8650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
8652fi
8653
8654
8655fi
8656if test -z "$ac_cv_prog_OTOOL"; then
8657  ac_ct_OTOOL=$OTOOL
8658  # Extract the first word of "otool", so it can be a program name with args.
8659set dummy otool; ac_word=$2
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661$as_echo_n "checking for $ac_word... " >&6; }
8662if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  if test -n "$ac_ct_OTOOL"; then
8666  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8667else
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671  IFS=$as_save_IFS
8672  test -z "$as_dir" && as_dir=.
8673    for ac_exec_ext in '' $ac_executable_extensions; do
8674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675    ac_cv_prog_ac_ct_OTOOL="otool"
8676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677    break 2
8678  fi
8679done
8680  done
8681IFS=$as_save_IFS
8682
8683fi
8684fi
8685ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8686if test -n "$ac_ct_OTOOL"; then
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8688$as_echo "$ac_ct_OTOOL" >&6; }
8689else
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692fi
8693
8694  if test "x$ac_ct_OTOOL" = x; then
8695    OTOOL=":"
8696  else
8697    case $cross_compiling:$ac_tool_warned in
8698yes:)
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8701ac_tool_warned=yes ;;
8702esac
8703    OTOOL=$ac_ct_OTOOL
8704  fi
8705else
8706  OTOOL="$ac_cv_prog_OTOOL"
8707fi
8708
8709    if test -n "$ac_tool_prefix"; then
8710  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8711set dummy ${ac_tool_prefix}otool64; ac_word=$2
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713$as_echo_n "checking for $ac_word... " >&6; }
8714if ${ac_cv_prog_OTOOL64+:} false; then :
8715  $as_echo_n "(cached) " >&6
8716else
8717  if test -n "$OTOOL64"; then
8718  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8719else
8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723  IFS=$as_save_IFS
8724  test -z "$as_dir" && as_dir=.
8725    for ac_exec_ext in '' $ac_executable_extensions; do
8726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729    break 2
8730  fi
8731done
8732  done
8733IFS=$as_save_IFS
8734
8735fi
8736fi
8737OTOOL64=$ac_cv_prog_OTOOL64
8738if test -n "$OTOOL64"; then
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8740$as_echo "$OTOOL64" >&6; }
8741else
8742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743$as_echo "no" >&6; }
8744fi
8745
8746
8747fi
8748if test -z "$ac_cv_prog_OTOOL64"; then
8749  ac_ct_OTOOL64=$OTOOL64
8750  # Extract the first word of "otool64", so it can be a program name with args.
8751set dummy otool64; ac_word=$2
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753$as_echo_n "checking for $ac_word... " >&6; }
8754if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  if test -n "$ac_ct_OTOOL64"; then
8758  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8759else
8760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $PATH
8762do
8763  IFS=$as_save_IFS
8764  test -z "$as_dir" && as_dir=.
8765    for ac_exec_ext in '' $ac_executable_extensions; do
8766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767    ac_cv_prog_ac_ct_OTOOL64="otool64"
8768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769    break 2
8770  fi
8771done
8772  done
8773IFS=$as_save_IFS
8774
8775fi
8776fi
8777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8778if test -n "$ac_ct_OTOOL64"; then
8779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8780$as_echo "$ac_ct_OTOOL64" >&6; }
8781else
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783$as_echo "no" >&6; }
8784fi
8785
8786  if test "x$ac_ct_OTOOL64" = x; then
8787    OTOOL64=":"
8788  else
8789    case $cross_compiling:$ac_tool_warned in
8790yes:)
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8793ac_tool_warned=yes ;;
8794esac
8795    OTOOL64=$ac_ct_OTOOL64
8796  fi
8797else
8798  OTOOL64="$ac_cv_prog_OTOOL64"
8799fi
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8828$as_echo_n "checking for -single_module linker flag... " >&6; }
8829if ${lt_cv_apple_cc_single_mod+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  lt_cv_apple_cc_single_mod=no
8833      if test -z "$LT_MULTI_MODULE"; then
8834	# By default we will add the -single_module flag. You can override
8835	# by either setting the environment variable LT_MULTI_MODULE
8836	# non-empty at configure time, or by adding -multi_module to the
8837	# link flags.
8838	rm -rf libconftest.dylib*
8839	echo "int foo(void){return 1;}" > conftest.c
8840	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8841-dynamiclib -Wl,-single_module conftest.c" >&5
8842	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8843	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8844        _lt_result=$?
8845	# If there is a non-empty error log, and "single_module"
8846	# appears in it, assume the flag caused a linker warning
8847        if test -s conftest.err && $GREP single_module conftest.err; then
8848	  cat conftest.err >&5
8849	# Otherwise, if the output was created with a 0 exit code from
8850	# the compiler, it worked.
8851	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8852	  lt_cv_apple_cc_single_mod=yes
8853	else
8854	  cat conftest.err >&5
8855	fi
8856	rm -rf libconftest.dylib*
8857	rm -f conftest.*
8858      fi
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8861$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8862
8863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8864$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8865if ${lt_cv_ld_exported_symbols_list+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  lt_cv_ld_exported_symbols_list=no
8869      save_LDFLAGS=$LDFLAGS
8870      echo "_main" > conftest.sym
8871      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874
8875int
8876main ()
8877{
8878
8879  ;
8880  return 0;
8881}
8882_ACEOF
8883if ac_fn_c_try_link "$LINENO"; then :
8884  lt_cv_ld_exported_symbols_list=yes
8885else
8886  lt_cv_ld_exported_symbols_list=no
8887fi
8888rm -f core conftest.err conftest.$ac_objext \
8889    conftest$ac_exeext conftest.$ac_ext
8890	LDFLAGS=$save_LDFLAGS
8891
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8894$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8895
8896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8897$as_echo_n "checking for -force_load linker flag... " >&6; }
8898if ${lt_cv_ld_force_load+:} false; then :
8899  $as_echo_n "(cached) " >&6
8900else
8901  lt_cv_ld_force_load=no
8902      cat > conftest.c << _LT_EOF
8903int forced_loaded() { return 2;}
8904_LT_EOF
8905      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8906      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8907      echo "$AR cru libconftest.a conftest.o" >&5
8908      $AR cru libconftest.a conftest.o 2>&5
8909      echo "$RANLIB libconftest.a" >&5
8910      $RANLIB libconftest.a 2>&5
8911      cat > conftest.c << _LT_EOF
8912int main() { return 0;}
8913_LT_EOF
8914      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8915      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8916      _lt_result=$?
8917      if test -s conftest.err && $GREP force_load conftest.err; then
8918	cat conftest.err >&5
8919      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8920	lt_cv_ld_force_load=yes
8921      else
8922	cat conftest.err >&5
8923      fi
8924        rm -f conftest.err libconftest.a conftest conftest.c
8925        rm -rf conftest.dSYM
8926
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8929$as_echo "$lt_cv_ld_force_load" >&6; }
8930    case $host_os in
8931    rhapsody* | darwin1.[012])
8932      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8933    darwin1.*)
8934      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8935    darwin*) # darwin 5.x on
8936      # if running on 10.5 or later, the deployment target defaults
8937      # to the OS version, if on x86, and 10.4, the deployment
8938      # target defaults to 10.4. Don't you love it?
8939      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8940	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8941	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8942	10.[012][,.]*)
8943	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8944	10.*)
8945	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8946      esac
8947    ;;
8948  esac
8949    if test yes = "$lt_cv_apple_cc_single_mod"; then
8950      _lt_dar_single_mod='$single_module'
8951    fi
8952    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8953      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8954    else
8955      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8956    fi
8957    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8958      _lt_dsymutil='~$DSYMUTIL $lib || :'
8959    else
8960      _lt_dsymutil=
8961    fi
8962    ;;
8963  esac
8964
8965# func_munge_path_list VARIABLE PATH
8966# -----------------------------------
8967# VARIABLE is name of variable containing _space_ separated list of
8968# directories to be munged by the contents of PATH, which is string
8969# having a format:
8970# "DIR[:DIR]:"
8971#       string "DIR[ DIR]" will be prepended to VARIABLE
8972# ":DIR[:DIR]"
8973#       string "DIR[ DIR]" will be appended to VARIABLE
8974# "DIRP[:DIRP]::[DIRA:]DIRA"
8975#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8976#       "DIRA[ DIRA]" will be appended to VARIABLE
8977# "DIR[:DIR]"
8978#       VARIABLE will be replaced by "DIR[ DIR]"
8979func_munge_path_list ()
8980{
8981    case x$2 in
8982    x)
8983        ;;
8984    *:)
8985        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8986        ;;
8987    x:*)
8988        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8989        ;;
8990    *::*)
8991        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8992        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8993        ;;
8994    *)
8995        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8996        ;;
8997    esac
8998}
8999
9000for ac_header in dlfcn.h
9001do :
9002  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9003"
9004if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9005  cat >>confdefs.h <<_ACEOF
9006#define HAVE_DLFCN_H 1
9007_ACEOF
9008
9009fi
9010
9011done
9012
9013
9014
9015
9016
9017# Set options
9018
9019
9020
9021        enable_dlopen=no
9022
9023
9024
9025            # Check whether --enable-shared was given.
9026if test "${enable_shared+set}" = set; then :
9027  enableval=$enable_shared; p=${PACKAGE-default}
9028    case $enableval in
9029    yes) enable_shared=yes ;;
9030    no) enable_shared=no ;;
9031    *)
9032      enable_shared=no
9033      # Look at the argument we got.  We use all the common list separators.
9034      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9035      for pkg in $enableval; do
9036	IFS=$lt_save_ifs
9037	if test "X$pkg" = "X$p"; then
9038	  enable_shared=yes
9039	fi
9040      done
9041      IFS=$lt_save_ifs
9042      ;;
9043    esac
9044else
9045  enable_shared=yes
9046fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056  # Check whether --enable-static was given.
9057if test "${enable_static+set}" = set; then :
9058  enableval=$enable_static; p=${PACKAGE-default}
9059    case $enableval in
9060    yes) enable_static=yes ;;
9061    no) enable_static=no ;;
9062    *)
9063     enable_static=no
9064      # Look at the argument we got.  We use all the common list separators.
9065      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9066      for pkg in $enableval; do
9067	IFS=$lt_save_ifs
9068	if test "X$pkg" = "X$p"; then
9069	  enable_static=yes
9070	fi
9071      done
9072      IFS=$lt_save_ifs
9073      ;;
9074    esac
9075else
9076  enable_static=yes
9077fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088# Check whether --with-pic was given.
9089if test "${with_pic+set}" = set; then :
9090  withval=$with_pic; lt_p=${PACKAGE-default}
9091    case $withval in
9092    yes|no) pic_mode=$withval ;;
9093    *)
9094      pic_mode=default
9095      # Look at the argument we got.  We use all the common list separators.
9096      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9097      for lt_pkg in $withval; do
9098	IFS=$lt_save_ifs
9099	if test "X$lt_pkg" = "X$lt_p"; then
9100	  pic_mode=yes
9101	fi
9102      done
9103      IFS=$lt_save_ifs
9104      ;;
9105    esac
9106else
9107  pic_mode=default
9108fi
9109
9110
9111
9112
9113
9114
9115
9116
9117  # Check whether --enable-fast-install was given.
9118if test "${enable_fast_install+set}" = set; then :
9119  enableval=$enable_fast_install; p=${PACKAGE-default}
9120    case $enableval in
9121    yes) enable_fast_install=yes ;;
9122    no) enable_fast_install=no ;;
9123    *)
9124      enable_fast_install=no
9125      # Look at the argument we got.  We use all the common list separators.
9126      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9127      for pkg in $enableval; do
9128	IFS=$lt_save_ifs
9129	if test "X$pkg" = "X$p"; then
9130	  enable_fast_install=yes
9131	fi
9132      done
9133      IFS=$lt_save_ifs
9134      ;;
9135    esac
9136else
9137  enable_fast_install=yes
9138fi
9139
9140
9141
9142
9143
9144
9145
9146
9147  shared_archive_member_spec=
9148case $host,$enable_shared in
9149power*-*-aix[5-9]*,yes)
9150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9151$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9152
9153# Check whether --with-aix-soname was given.
9154if test "${with_aix_soname+set}" = set; then :
9155  withval=$with_aix_soname; case $withval in
9156    aix|svr4|both)
9157      ;;
9158    *)
9159      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9160      ;;
9161    esac
9162    lt_cv_with_aix_soname=$with_aix_soname
9163else
9164  if ${lt_cv_with_aix_soname+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  lt_cv_with_aix_soname=aix
9168fi
9169
9170    with_aix_soname=$lt_cv_with_aix_soname
9171fi
9172
9173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9174$as_echo "$with_aix_soname" >&6; }
9175  if test aix != "$with_aix_soname"; then
9176    # For the AIX way of multilib, we name the shared archive member
9177    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9178    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9179    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9180    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9181    if test 64 = "${OBJECT_MODE-32}"; then
9182      shared_archive_member_spec=shr_64
9183    else
9184      shared_archive_member_spec=shr
9185    fi
9186  fi
9187  ;;
9188*)
9189  with_aix_soname=aix
9190  ;;
9191esac
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202# This can be used to rebuild libtool when needed
9203LIBTOOL_DEPS=$ltmain
9204
9205# Always use our own libtool.
9206LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237test -z "$LN_S" && LN_S="ln -s"
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252if test -n "${ZSH_VERSION+set}"; then
9253   setopt NO_GLOB_SUBST
9254fi
9255
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9257$as_echo_n "checking for objdir... " >&6; }
9258if ${lt_cv_objdir+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  rm -f .libs 2>/dev/null
9262mkdir .libs 2>/dev/null
9263if test -d .libs; then
9264  lt_cv_objdir=.libs
9265else
9266  # MS-DOS does not allow filenames that begin with a dot.
9267  lt_cv_objdir=_libs
9268fi
9269rmdir .libs 2>/dev/null
9270fi
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9272$as_echo "$lt_cv_objdir" >&6; }
9273objdir=$lt_cv_objdir
9274
9275
9276
9277
9278
9279cat >>confdefs.h <<_ACEOF
9280#define LT_OBJDIR "$lt_cv_objdir/"
9281_ACEOF
9282
9283
9284
9285
9286case $host_os in
9287aix3*)
9288  # AIX sometimes has problems with the GCC collect2 program.  For some
9289  # reason, if we set the COLLECT_NAMES environment variable, the problems
9290  # vanish in a puff of smoke.
9291  if test set != "${COLLECT_NAMES+set}"; then
9292    COLLECT_NAMES=
9293    export COLLECT_NAMES
9294  fi
9295  ;;
9296esac
9297
9298# Global variables:
9299ofile=libtool
9300can_build_shared=yes
9301
9302# All known linkers require a '.a' archive for static linking (except MSVC,
9303# which needs '.lib').
9304libext=a
9305
9306with_gnu_ld=$lt_cv_prog_gnu_ld
9307
9308old_CC=$CC
9309old_CFLAGS=$CFLAGS
9310
9311# Set sane defaults for various variables
9312test -z "$CC" && CC=cc
9313test -z "$LTCC" && LTCC=$CC
9314test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9315test -z "$LD" && LD=ld
9316test -z "$ac_objext" && ac_objext=o
9317
9318func_cc_basename $compiler
9319cc_basename=$func_cc_basename_result
9320
9321
9322# Only perform the check for file, if the check method requires it
9323test -z "$MAGIC_CMD" && MAGIC_CMD=file
9324case $deplibs_check_method in
9325file_magic*)
9326  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9328$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9329if ${lt_cv_path_MAGIC_CMD+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  case $MAGIC_CMD in
9333[\\/*] |  ?:[\\/]*)
9334  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9335  ;;
9336*)
9337  lt_save_MAGIC_CMD=$MAGIC_CMD
9338  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9339  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9340  for ac_dir in $ac_dummy; do
9341    IFS=$lt_save_ifs
9342    test -z "$ac_dir" && ac_dir=.
9343    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9344      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9345      if test -n "$file_magic_test_file"; then
9346	case $deplibs_check_method in
9347	"file_magic "*)
9348	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9349	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9350	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9351	    $EGREP "$file_magic_regex" > /dev/null; then
9352	    :
9353	  else
9354	    cat <<_LT_EOF 1>&2
9355
9356*** Warning: the command libtool uses to detect shared libraries,
9357*** $file_magic_cmd, produces output that libtool cannot recognize.
9358*** The result is that libtool may fail to recognize shared libraries
9359*** as such.  This will affect the creation of libtool libraries that
9360*** depend on shared libraries, but programs linked with such libtool
9361*** libraries will work regardless of this problem.  Nevertheless, you
9362*** may want to report the problem to your system manager and/or to
9363*** bug-libtool@gnu.org
9364
9365_LT_EOF
9366	  fi ;;
9367	esac
9368      fi
9369      break
9370    fi
9371  done
9372  IFS=$lt_save_ifs
9373  MAGIC_CMD=$lt_save_MAGIC_CMD
9374  ;;
9375esac
9376fi
9377
9378MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9379if test -n "$MAGIC_CMD"; then
9380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9381$as_echo "$MAGIC_CMD" >&6; }
9382else
9383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384$as_echo "no" >&6; }
9385fi
9386
9387
9388
9389
9390
9391if test -z "$lt_cv_path_MAGIC_CMD"; then
9392  if test -n "$ac_tool_prefix"; then
9393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9394$as_echo_n "checking for file... " >&6; }
9395if ${lt_cv_path_MAGIC_CMD+:} false; then :
9396  $as_echo_n "(cached) " >&6
9397else
9398  case $MAGIC_CMD in
9399[\\/*] |  ?:[\\/]*)
9400  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9401  ;;
9402*)
9403  lt_save_MAGIC_CMD=$MAGIC_CMD
9404  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9405  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9406  for ac_dir in $ac_dummy; do
9407    IFS=$lt_save_ifs
9408    test -z "$ac_dir" && ac_dir=.
9409    if test -f "$ac_dir/file"; then
9410      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9411      if test -n "$file_magic_test_file"; then
9412	case $deplibs_check_method in
9413	"file_magic "*)
9414	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9415	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9416	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9417	    $EGREP "$file_magic_regex" > /dev/null; then
9418	    :
9419	  else
9420	    cat <<_LT_EOF 1>&2
9421
9422*** Warning: the command libtool uses to detect shared libraries,
9423*** $file_magic_cmd, produces output that libtool cannot recognize.
9424*** The result is that libtool may fail to recognize shared libraries
9425*** as such.  This will affect the creation of libtool libraries that
9426*** depend on shared libraries, but programs linked with such libtool
9427*** libraries will work regardless of this problem.  Nevertheless, you
9428*** may want to report the problem to your system manager and/or to
9429*** bug-libtool@gnu.org
9430
9431_LT_EOF
9432	  fi ;;
9433	esac
9434      fi
9435      break
9436    fi
9437  done
9438  IFS=$lt_save_ifs
9439  MAGIC_CMD=$lt_save_MAGIC_CMD
9440  ;;
9441esac
9442fi
9443
9444MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445if test -n "$MAGIC_CMD"; then
9446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9447$as_echo "$MAGIC_CMD" >&6; }
9448else
9449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450$as_echo "no" >&6; }
9451fi
9452
9453
9454  else
9455    MAGIC_CMD=:
9456  fi
9457fi
9458
9459  fi
9460  ;;
9461esac
9462
9463# Use C for the default configuration in the libtool script
9464
9465lt_save_CC=$CC
9466ac_ext=c
9467ac_cpp='$CPP $CPPFLAGS'
9468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9470ac_compiler_gnu=$ac_cv_c_compiler_gnu
9471
9472
9473# Source file extension for C test sources.
9474ac_ext=c
9475
9476# Object file extension for compiled C test sources.
9477objext=o
9478objext=$objext
9479
9480# Code to be used in simple compile tests
9481lt_simple_compile_test_code="int some_variable = 0;"
9482
9483# Code to be used in simple link tests
9484lt_simple_link_test_code='int main(){return(0);}'
9485
9486
9487
9488
9489
9490
9491
9492# If no C compiler was specified, use CC.
9493LTCC=${LTCC-"$CC"}
9494
9495# If no C compiler flags were specified, use CFLAGS.
9496LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9497
9498# Allow CC to be a program name with arguments.
9499compiler=$CC
9500
9501# Save the default compiler, since it gets overwritten when the other
9502# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9503compiler_DEFAULT=$CC
9504
9505# save warnings/boilerplate of simple test code
9506ac_outfile=conftest.$ac_objext
9507echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9508eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9509_lt_compiler_boilerplate=`cat conftest.err`
9510$RM conftest*
9511
9512ac_outfile=conftest.$ac_objext
9513echo "$lt_simple_link_test_code" >conftest.$ac_ext
9514eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9515_lt_linker_boilerplate=`cat conftest.err`
9516$RM -r conftest*
9517
9518
9519## CAVEAT EMPTOR:
9520## There is no encapsulation within the following macros, do not change
9521## the running order or otherwise move them around unless you know exactly
9522## what you are doing...
9523if test -n "$compiler"; then
9524
9525lt_prog_compiler_no_builtin_flag=
9526
9527if test yes = "$GCC"; then
9528  case $cc_basename in
9529  nvcc*)
9530    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9531  *)
9532    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9533  esac
9534
9535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9536$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9537if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540  lt_cv_prog_compiler_rtti_exceptions=no
9541   ac_outfile=conftest.$ac_objext
9542   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9543   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9544   # Insert the option either (1) after the last *FLAGS variable, or
9545   # (2) before a word containing "conftest.", or (3) at the end.
9546   # Note that $ac_compile itself does not contain backslashes and begins
9547   # with a dollar sign (not a hyphen), so the echo should work correctly.
9548   # The option is referenced via a variable to avoid confusing sed.
9549   lt_compile=`echo "$ac_compile" | $SED \
9550   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552   -e 's:$: $lt_compiler_flag:'`
9553   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9554   (eval "$lt_compile" 2>conftest.err)
9555   ac_status=$?
9556   cat conftest.err >&5
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   if (exit $ac_status) && test -s "$ac_outfile"; then
9559     # The compiler can only warn and ignore the option if not recognized
9560     # So say no if there are warnings other than the usual output.
9561     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9562     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9563     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9564       lt_cv_prog_compiler_rtti_exceptions=yes
9565     fi
9566   fi
9567   $RM conftest*
9568
9569fi
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9571$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9572
9573if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9574    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9575else
9576    :
9577fi
9578
9579fi
9580
9581
9582
9583
9584
9585
9586  lt_prog_compiler_wl=
9587lt_prog_compiler_pic=
9588lt_prog_compiler_static=
9589
9590
9591  if test yes = "$GCC"; then
9592    lt_prog_compiler_wl='-Wl,'
9593    lt_prog_compiler_static='-static'
9594
9595    case $host_os in
9596      aix*)
9597      # All AIX code is PIC.
9598      if test ia64 = "$host_cpu"; then
9599	# AIX 5 now supports IA64 processor
9600	lt_prog_compiler_static='-Bstatic'
9601      fi
9602      lt_prog_compiler_pic='-fPIC'
9603      ;;
9604
9605    amigaos*)
9606      case $host_cpu in
9607      powerpc)
9608            # see comment about AmigaOS4 .so support
9609            lt_prog_compiler_pic='-fPIC'
9610        ;;
9611      m68k)
9612            # FIXME: we need at least 68020 code to build shared libraries, but
9613            # adding the '-m68020' flag to GCC prevents building anything better,
9614            # like '-m68040'.
9615            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9616        ;;
9617      esac
9618      ;;
9619
9620    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9621      # PIC is the default for these OSes.
9622      ;;
9623
9624    mingw* | cygwin* | pw32* | os2* | cegcc*)
9625      # This hack is so that the source file can tell whether it is being
9626      # built for inclusion in a dll (and should export symbols for example).
9627      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9628      # (--disable-auto-import) libraries
9629      lt_prog_compiler_pic='-DDLL_EXPORT'
9630      case $host_os in
9631      os2*)
9632	lt_prog_compiler_static='$wl-static'
9633	;;
9634      esac
9635      ;;
9636
9637    darwin* | rhapsody*)
9638      # PIC is the default on this platform
9639      # Common symbols not allowed in MH_DYLIB files
9640      lt_prog_compiler_pic='-fno-common'
9641      ;;
9642
9643    haiku*)
9644      # PIC is the default for Haiku.
9645      # The "-static" flag exists, but is broken.
9646      lt_prog_compiler_static=
9647      ;;
9648
9649    hpux*)
9650      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9651      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9652      # sets the default TLS model and affects inlining.
9653      case $host_cpu in
9654      hppa*64*)
9655	# +Z the default
9656	;;
9657      *)
9658	lt_prog_compiler_pic='-fPIC'
9659	;;
9660      esac
9661      ;;
9662
9663    interix[3-9]*)
9664      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9665      # Instead, we relocate shared libraries at runtime.
9666      ;;
9667
9668    msdosdjgpp*)
9669      # Just because we use GCC doesn't mean we suddenly get shared libraries
9670      # on systems that don't support them.
9671      lt_prog_compiler_can_build_shared=no
9672      enable_shared=no
9673      ;;
9674
9675    *nto* | *qnx*)
9676      # QNX uses GNU C++, but need to define -shared option too, otherwise
9677      # it will coredump.
9678      lt_prog_compiler_pic='-fPIC -shared'
9679      ;;
9680
9681    sysv4*MP*)
9682      if test -d /usr/nec; then
9683	lt_prog_compiler_pic=-Kconform_pic
9684      fi
9685      ;;
9686
9687    *)
9688      lt_prog_compiler_pic='-fPIC'
9689      ;;
9690    esac
9691
9692    case $cc_basename in
9693    nvcc*) # Cuda Compiler Driver 2.2
9694      lt_prog_compiler_wl='-Xlinker '
9695      if test -n "$lt_prog_compiler_pic"; then
9696        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9697      fi
9698      ;;
9699    esac
9700  else
9701    # PORTME Check for flag to pass linker flags through the system compiler.
9702    case $host_os in
9703    aix*)
9704      lt_prog_compiler_wl='-Wl,'
9705      if test ia64 = "$host_cpu"; then
9706	# AIX 5 now supports IA64 processor
9707	lt_prog_compiler_static='-Bstatic'
9708      else
9709	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9710      fi
9711      ;;
9712
9713    darwin* | rhapsody*)
9714      # PIC is the default on this platform
9715      # Common symbols not allowed in MH_DYLIB files
9716      lt_prog_compiler_pic='-fno-common'
9717      case $cc_basename in
9718      nagfor*)
9719        # NAG Fortran compiler
9720        lt_prog_compiler_wl='-Wl,-Wl,,'
9721        lt_prog_compiler_pic='-PIC'
9722        lt_prog_compiler_static='-Bstatic'
9723        ;;
9724      esac
9725      ;;
9726
9727    mingw* | cygwin* | pw32* | os2* | cegcc*)
9728      # This hack is so that the source file can tell whether it is being
9729      # built for inclusion in a dll (and should export symbols for example).
9730      lt_prog_compiler_pic='-DDLL_EXPORT'
9731      case $host_os in
9732      os2*)
9733	lt_prog_compiler_static='$wl-static'
9734	;;
9735      esac
9736      ;;
9737
9738    hpux9* | hpux10* | hpux11*)
9739      lt_prog_compiler_wl='-Wl,'
9740      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9741      # not for PA HP-UX.
9742      case $host_cpu in
9743      hppa*64*|ia64*)
9744	# +Z the default
9745	;;
9746      *)
9747	lt_prog_compiler_pic='+Z'
9748	;;
9749      esac
9750      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9751      lt_prog_compiler_static='$wl-a ${wl}archive'
9752      ;;
9753
9754    irix5* | irix6* | nonstopux*)
9755      lt_prog_compiler_wl='-Wl,'
9756      # PIC (with -KPIC) is the default.
9757      lt_prog_compiler_static='-non_shared'
9758      ;;
9759
9760    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9761      case $cc_basename in
9762      # old Intel for x86_64, which still supported -KPIC.
9763      ecc*)
9764	lt_prog_compiler_wl='-Wl,'
9765	lt_prog_compiler_pic='-KPIC'
9766	lt_prog_compiler_static='-static'
9767        ;;
9768      # icc used to be incompatible with GCC.
9769      # ICC 10 doesn't accept -KPIC any more.
9770      icc* | ifort*)
9771	lt_prog_compiler_wl='-Wl,'
9772	lt_prog_compiler_pic='-fPIC'
9773	lt_prog_compiler_static='-static'
9774        ;;
9775      # Lahey Fortran 8.1.
9776      lf95*)
9777	lt_prog_compiler_wl='-Wl,'
9778	lt_prog_compiler_pic='--shared'
9779	lt_prog_compiler_static='--static'
9780	;;
9781      nagfor*)
9782	# NAG Fortran compiler
9783	lt_prog_compiler_wl='-Wl,-Wl,,'
9784	lt_prog_compiler_pic='-PIC'
9785	lt_prog_compiler_static='-Bstatic'
9786	;;
9787      tcc*)
9788	# Fabrice Bellard et al's Tiny C Compiler
9789	lt_prog_compiler_wl='-Wl,'
9790	lt_prog_compiler_pic='-fPIC'
9791	lt_prog_compiler_static='-static'
9792	;;
9793      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9794        # Portland Group compilers (*not* the Pentium gcc compiler,
9795	# which looks to be a dead project)
9796	lt_prog_compiler_wl='-Wl,'
9797	lt_prog_compiler_pic='-fpic'
9798	lt_prog_compiler_static='-Bstatic'
9799        ;;
9800      ccc*)
9801        lt_prog_compiler_wl='-Wl,'
9802        # All Alpha code is PIC.
9803        lt_prog_compiler_static='-non_shared'
9804        ;;
9805      xl* | bgxl* | bgf* | mpixl*)
9806	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9807	lt_prog_compiler_wl='-Wl,'
9808	lt_prog_compiler_pic='-qpic'
9809	lt_prog_compiler_static='-qstaticlink'
9810	;;
9811      *)
9812	case `$CC -V 2>&1 | sed 5q` in
9813	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9814	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9815	  lt_prog_compiler_pic='-KPIC'
9816	  lt_prog_compiler_static='-Bstatic'
9817	  lt_prog_compiler_wl=''
9818	  ;;
9819	*Sun\ F* | *Sun*Fortran*)
9820	  lt_prog_compiler_pic='-KPIC'
9821	  lt_prog_compiler_static='-Bstatic'
9822	  lt_prog_compiler_wl='-Qoption ld '
9823	  ;;
9824	*Sun\ C*)
9825	  # Sun C 5.9
9826	  lt_prog_compiler_pic='-KPIC'
9827	  lt_prog_compiler_static='-Bstatic'
9828	  lt_prog_compiler_wl='-Wl,'
9829	  ;;
9830        *Intel*\ [CF]*Compiler*)
9831	  lt_prog_compiler_wl='-Wl,'
9832	  lt_prog_compiler_pic='-fPIC'
9833	  lt_prog_compiler_static='-static'
9834	  ;;
9835	*Portland\ Group*)
9836	  lt_prog_compiler_wl='-Wl,'
9837	  lt_prog_compiler_pic='-fpic'
9838	  lt_prog_compiler_static='-Bstatic'
9839	  ;;
9840	esac
9841	;;
9842      esac
9843      ;;
9844
9845    newsos6)
9846      lt_prog_compiler_pic='-KPIC'
9847      lt_prog_compiler_static='-Bstatic'
9848      ;;
9849
9850    *nto* | *qnx*)
9851      # QNX uses GNU C++, but need to define -shared option too, otherwise
9852      # it will coredump.
9853      lt_prog_compiler_pic='-fPIC -shared'
9854      ;;
9855
9856    osf3* | osf4* | osf5*)
9857      lt_prog_compiler_wl='-Wl,'
9858      # All OSF/1 code is PIC.
9859      lt_prog_compiler_static='-non_shared'
9860      ;;
9861
9862    rdos*)
9863      lt_prog_compiler_static='-non_shared'
9864      ;;
9865
9866    solaris*)
9867      lt_prog_compiler_pic='-KPIC'
9868      lt_prog_compiler_static='-Bstatic'
9869      case $cc_basename in
9870      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9871	lt_prog_compiler_wl='-Qoption ld ';;
9872      *)
9873	lt_prog_compiler_wl='-Wl,';;
9874      esac
9875      ;;
9876
9877    sunos4*)
9878      lt_prog_compiler_wl='-Qoption ld '
9879      lt_prog_compiler_pic='-PIC'
9880      lt_prog_compiler_static='-Bstatic'
9881      ;;
9882
9883    sysv4 | sysv4.2uw2* | sysv4.3*)
9884      lt_prog_compiler_wl='-Wl,'
9885      lt_prog_compiler_pic='-KPIC'
9886      lt_prog_compiler_static='-Bstatic'
9887      ;;
9888
9889    sysv4*MP*)
9890      if test -d /usr/nec; then
9891	lt_prog_compiler_pic='-Kconform_pic'
9892	lt_prog_compiler_static='-Bstatic'
9893      fi
9894      ;;
9895
9896    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9897      lt_prog_compiler_wl='-Wl,'
9898      lt_prog_compiler_pic='-KPIC'
9899      lt_prog_compiler_static='-Bstatic'
9900      ;;
9901
9902    unicos*)
9903      lt_prog_compiler_wl='-Wl,'
9904      lt_prog_compiler_can_build_shared=no
9905      ;;
9906
9907    uts4*)
9908      lt_prog_compiler_pic='-pic'
9909      lt_prog_compiler_static='-Bstatic'
9910      ;;
9911
9912    *)
9913      lt_prog_compiler_can_build_shared=no
9914      ;;
9915    esac
9916  fi
9917
9918case $host_os in
9919  # For platforms that do not support PIC, -DPIC is meaningless:
9920  *djgpp*)
9921    lt_prog_compiler_pic=
9922    ;;
9923  *)
9924    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9925    ;;
9926esac
9927
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9929$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9930if ${lt_cv_prog_compiler_pic+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9936$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9937lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9938
9939#
9940# Check to make sure the PIC flag actually works.
9941#
9942if test -n "$lt_prog_compiler_pic"; then
9943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9944$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9945if ${lt_cv_prog_compiler_pic_works+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  lt_cv_prog_compiler_pic_works=no
9949   ac_outfile=conftest.$ac_objext
9950   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9951   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9952   # Insert the option either (1) after the last *FLAGS variable, or
9953   # (2) before a word containing "conftest.", or (3) at the end.
9954   # Note that $ac_compile itself does not contain backslashes and begins
9955   # with a dollar sign (not a hyphen), so the echo should work correctly.
9956   # The option is referenced via a variable to avoid confusing sed.
9957   lt_compile=`echo "$ac_compile" | $SED \
9958   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9959   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9960   -e 's:$: $lt_compiler_flag:'`
9961   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9962   (eval "$lt_compile" 2>conftest.err)
9963   ac_status=$?
9964   cat conftest.err >&5
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   if (exit $ac_status) && test -s "$ac_outfile"; then
9967     # The compiler can only warn and ignore the option if not recognized
9968     # So say no if there are warnings other than the usual output.
9969     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9970     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9971     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9972       lt_cv_prog_compiler_pic_works=yes
9973     fi
9974   fi
9975   $RM conftest*
9976
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9979$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9980
9981if test yes = "$lt_cv_prog_compiler_pic_works"; then
9982    case $lt_prog_compiler_pic in
9983     "" | " "*) ;;
9984     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9985     esac
9986else
9987    lt_prog_compiler_pic=
9988     lt_prog_compiler_can_build_shared=no
9989fi
9990
9991fi
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003#
10004# Check to make sure the static flag actually works.
10005#
10006wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10008$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10009if ${lt_cv_prog_compiler_static_works+:} false; then :
10010  $as_echo_n "(cached) " >&6
10011else
10012  lt_cv_prog_compiler_static_works=no
10013   save_LDFLAGS=$LDFLAGS
10014   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10015   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10016   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10017     # The linker can only warn and ignore the option if not recognized
10018     # So say no if there are warnings
10019     if test -s conftest.err; then
10020       # Append any errors to the config.log.
10021       cat conftest.err 1>&5
10022       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10023       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10024       if diff conftest.exp conftest.er2 >/dev/null; then
10025         lt_cv_prog_compiler_static_works=yes
10026       fi
10027     else
10028       lt_cv_prog_compiler_static_works=yes
10029     fi
10030   fi
10031   $RM -r conftest*
10032   LDFLAGS=$save_LDFLAGS
10033
10034fi
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10036$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10037
10038if test yes = "$lt_cv_prog_compiler_static_works"; then
10039    :
10040else
10041    lt_prog_compiler_static=
10042fi
10043
10044
10045
10046
10047
10048
10049
10050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10051$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10052if ${lt_cv_prog_compiler_c_o+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  lt_cv_prog_compiler_c_o=no
10056   $RM -r conftest 2>/dev/null
10057   mkdir conftest
10058   cd conftest
10059   mkdir out
10060   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10061
10062   lt_compiler_flag="-o out/conftest2.$ac_objext"
10063   # Insert the option either (1) after the last *FLAGS variable, or
10064   # (2) before a word containing "conftest.", or (3) at the end.
10065   # Note that $ac_compile itself does not contain backslashes and begins
10066   # with a dollar sign (not a hyphen), so the echo should work correctly.
10067   lt_compile=`echo "$ac_compile" | $SED \
10068   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10069   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10070   -e 's:$: $lt_compiler_flag:'`
10071   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10072   (eval "$lt_compile" 2>out/conftest.err)
10073   ac_status=$?
10074   cat out/conftest.err >&5
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10077   then
10078     # The compiler can only warn and ignore the option if not recognized
10079     # So say no if there are warnings
10080     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10081     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10082     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10083       lt_cv_prog_compiler_c_o=yes
10084     fi
10085   fi
10086   chmod u+w . 2>&5
10087   $RM conftest*
10088   # SGI C++ compiler will create directory out/ii_files/ for
10089   # template instantiation
10090   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10091   $RM out/* && rmdir out
10092   cd ..
10093   $RM -r conftest
10094   $RM conftest*
10095
10096fi
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10098$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10099
10100
10101
10102
10103
10104
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10106$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10107if ${lt_cv_prog_compiler_c_o+:} false; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  lt_cv_prog_compiler_c_o=no
10111   $RM -r conftest 2>/dev/null
10112   mkdir conftest
10113   cd conftest
10114   mkdir out
10115   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10116
10117   lt_compiler_flag="-o out/conftest2.$ac_objext"
10118   # Insert the option either (1) after the last *FLAGS variable, or
10119   # (2) before a word containing "conftest.", or (3) at the end.
10120   # Note that $ac_compile itself does not contain backslashes and begins
10121   # with a dollar sign (not a hyphen), so the echo should work correctly.
10122   lt_compile=`echo "$ac_compile" | $SED \
10123   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10124   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125   -e 's:$: $lt_compiler_flag:'`
10126   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10127   (eval "$lt_compile" 2>out/conftest.err)
10128   ac_status=$?
10129   cat out/conftest.err >&5
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10132   then
10133     # The compiler can only warn and ignore the option if not recognized
10134     # So say no if there are warnings
10135     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10136     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10137     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10138       lt_cv_prog_compiler_c_o=yes
10139     fi
10140   fi
10141   chmod u+w . 2>&5
10142   $RM conftest*
10143   # SGI C++ compiler will create directory out/ii_files/ for
10144   # template instantiation
10145   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10146   $RM out/* && rmdir out
10147   cd ..
10148   $RM -r conftest
10149   $RM conftest*
10150
10151fi
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10153$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10154
10155
10156
10157
10158hard_links=nottested
10159if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10160  # do not overwrite the value of need_locks provided by the user
10161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10162$as_echo_n "checking if we can lock with hard links... " >&6; }
10163  hard_links=yes
10164  $RM conftest*
10165  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10166  touch conftest.a
10167  ln conftest.a conftest.b 2>&5 || hard_links=no
10168  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10170$as_echo "$hard_links" >&6; }
10171  if test no = "$hard_links"; then
10172    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10173$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10174    need_locks=warn
10175  fi
10176else
10177  need_locks=no
10178fi
10179
10180
10181
10182
10183
10184
10185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10186$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10187
10188  runpath_var=
10189  allow_undefined_flag=
10190  always_export_symbols=no
10191  archive_cmds=
10192  archive_expsym_cmds=
10193  compiler_needs_object=no
10194  enable_shared_with_static_runtimes=no
10195  export_dynamic_flag_spec=
10196  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10197  hardcode_automatic=no
10198  hardcode_direct=no
10199  hardcode_direct_absolute=no
10200  hardcode_libdir_flag_spec=
10201  hardcode_libdir_separator=
10202  hardcode_minus_L=no
10203  hardcode_shlibpath_var=unsupported
10204  inherit_rpath=no
10205  link_all_deplibs=unknown
10206  module_cmds=
10207  module_expsym_cmds=
10208  old_archive_from_new_cmds=
10209  old_archive_from_expsyms_cmds=
10210  thread_safe_flag_spec=
10211  whole_archive_flag_spec=
10212  # include_expsyms should be a list of space-separated symbols to be *always*
10213  # included in the symbol list
10214  include_expsyms=
10215  # exclude_expsyms can be an extended regexp of symbols to exclude
10216  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10217  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10218  # as well as any symbol that contains 'd'.
10219  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10220  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10221  # platforms (ab)use it in PIC code, but their linkers get confused if
10222  # the symbol is explicitly referenced.  Since portable code cannot
10223  # rely on this symbol name, it's probably fine to never include it in
10224  # preloaded symbol tables.
10225  # Exclude shared library initialization/finalization symbols.
10226  extract_expsyms_cmds=
10227
10228  case $host_os in
10229  cygwin* | mingw* | pw32* | cegcc*)
10230    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10231    # When not using gcc, we currently assume that we are using
10232    # Microsoft Visual C++.
10233    if test yes != "$GCC"; then
10234      with_gnu_ld=no
10235    fi
10236    ;;
10237  interix*)
10238    # we just hope/assume this is gcc and not c89 (= MSVC++)
10239    with_gnu_ld=yes
10240    ;;
10241  openbsd* | bitrig*)
10242    with_gnu_ld=no
10243    ;;
10244  linux* | k*bsd*-gnu | gnu*)
10245    link_all_deplibs=no
10246    ;;
10247  esac
10248
10249  ld_shlibs=yes
10250
10251  # On some targets, GNU ld is compatible enough with the native linker
10252  # that we're better off using the native interface for both.
10253  lt_use_gnu_ld_interface=no
10254  if test yes = "$with_gnu_ld"; then
10255    case $host_os in
10256      aix*)
10257	# The AIX port of GNU ld has always aspired to compatibility
10258	# with the native linker.  However, as the warning in the GNU ld
10259	# block says, versions before 2.19.5* couldn't really create working
10260	# shared libraries, regardless of the interface used.
10261	case `$LD -v 2>&1` in
10262	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10263	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10264	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10265	  *)
10266	    lt_use_gnu_ld_interface=yes
10267	    ;;
10268	esac
10269	;;
10270      *)
10271	lt_use_gnu_ld_interface=yes
10272	;;
10273    esac
10274  fi
10275
10276  if test yes = "$lt_use_gnu_ld_interface"; then
10277    # If archive_cmds runs LD, not CC, wlarc should be empty
10278    wlarc='$wl'
10279
10280    # Set some defaults for GNU ld with shared library support. These
10281    # are reset later if shared libraries are not supported. Putting them
10282    # here allows them to be overridden if necessary.
10283    runpath_var=LD_RUN_PATH
10284    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10285    export_dynamic_flag_spec='$wl--export-dynamic'
10286    # ancient GNU ld didn't support --whole-archive et. al.
10287    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10288      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10289    else
10290      whole_archive_flag_spec=
10291    fi
10292    supports_anon_versioning=no
10293    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10294      *GNU\ gold*) supports_anon_versioning=yes ;;
10295      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10296      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10297      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10298      *\ 2.11.*) ;; # other 2.11 versions
10299      *) supports_anon_versioning=yes ;;
10300    esac
10301
10302    # See if GNU ld supports shared libraries.
10303    case $host_os in
10304    aix[3-9]*)
10305      # On AIX/PPC, the GNU linker is very broken
10306      if test ia64 != "$host_cpu"; then
10307	ld_shlibs=no
10308	cat <<_LT_EOF 1>&2
10309
10310*** Warning: the GNU linker, at least up to release 2.19, is reported
10311*** to be unable to reliably create shared libraries on AIX.
10312*** Therefore, libtool is disabling shared libraries support.  If you
10313*** really care for shared libraries, you may want to install binutils
10314*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10315*** You will then need to restart the configuration process.
10316
10317_LT_EOF
10318      fi
10319      ;;
10320
10321    amigaos*)
10322      case $host_cpu in
10323      powerpc)
10324            # see comment about AmigaOS4 .so support
10325            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10326            archive_expsym_cmds=''
10327        ;;
10328      m68k)
10329            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10330            hardcode_libdir_flag_spec='-L$libdir'
10331            hardcode_minus_L=yes
10332        ;;
10333      esac
10334      ;;
10335
10336    beos*)
10337      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338	allow_undefined_flag=unsupported
10339	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10340	# support --undefined.  This deserves some investigation.  FIXME
10341	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10342      else
10343	ld_shlibs=no
10344      fi
10345      ;;
10346
10347    cygwin* | mingw* | pw32* | cegcc*)
10348      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10349      # as there is no search path for DLLs.
10350      hardcode_libdir_flag_spec='-L$libdir'
10351      export_dynamic_flag_spec='$wl--export-all-symbols'
10352      allow_undefined_flag=unsupported
10353      always_export_symbols=no
10354      enable_shared_with_static_runtimes=yes
10355      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10356      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10357
10358      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10359        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10360	# If the export-symbols file already is a .def file, use it as
10361	# is; otherwise, prepend EXPORTS...
10362	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10363          cp $export_symbols $output_objdir/$soname.def;
10364        else
10365          echo EXPORTS > $output_objdir/$soname.def;
10366          cat $export_symbols >> $output_objdir/$soname.def;
10367        fi~
10368        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10369      else
10370	ld_shlibs=no
10371      fi
10372      ;;
10373
10374    haiku*)
10375      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10376      link_all_deplibs=yes
10377      ;;
10378
10379    os2*)
10380      hardcode_libdir_flag_spec='-L$libdir'
10381      hardcode_minus_L=yes
10382      allow_undefined_flag=unsupported
10383      shrext_cmds=.dll
10384      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10385	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10386	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10387	$ECHO EXPORTS >> $output_objdir/$libname.def~
10388	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10389	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10390	emximp -o $lib $output_objdir/$libname.def'
10391      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10392	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10393	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10394	$ECHO EXPORTS >> $output_objdir/$libname.def~
10395	prefix_cmds="$SED"~
10396	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10397	  prefix_cmds="$prefix_cmds -e 1d";
10398	fi~
10399	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10400	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10401	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10402	emximp -o $lib $output_objdir/$libname.def'
10403      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10404      enable_shared_with_static_runtimes=yes
10405      ;;
10406
10407    interix[3-9]*)
10408      hardcode_direct=no
10409      hardcode_shlibpath_var=no
10410      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10411      export_dynamic_flag_spec='$wl-E'
10412      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10413      # Instead, shared libraries are loaded at an image base (0x10000000 by
10414      # default) and relocated if they conflict, which is a slow very memory
10415      # consuming and fragmenting process.  To avoid this, we pick a random,
10416      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10417      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10418      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10419      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10420      ;;
10421
10422    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10423      tmp_diet=no
10424      if test linux-dietlibc = "$host_os"; then
10425	case $cc_basename in
10426	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10427	esac
10428      fi
10429      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10430	 && test no = "$tmp_diet"
10431      then
10432	tmp_addflag=' $pic_flag'
10433	tmp_sharedflag='-shared'
10434	case $cc_basename,$host_cpu in
10435        pgcc*)				# Portland Group C compiler
10436	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10437	  tmp_addflag=' $pic_flag'
10438	  ;;
10439	pgf77* | pgf90* | pgf95* | pgfortran*)
10440					# Portland Group f77 and f90 compilers
10441	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10442	  tmp_addflag=' $pic_flag -Mnomain' ;;
10443	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10444	  tmp_addflag=' -i_dynamic' ;;
10445	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10446	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10447	ifc* | ifort*)			# Intel Fortran compiler
10448	  tmp_addflag=' -nofor_main' ;;
10449	lf95*)				# Lahey Fortran 8.1
10450	  whole_archive_flag_spec=
10451	  tmp_sharedflag='--shared' ;;
10452        nagfor*)                        # NAGFOR 5.3
10453          tmp_sharedflag='-Wl,-shared' ;;
10454	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10455	  tmp_sharedflag='-qmkshrobj'
10456	  tmp_addflag= ;;
10457	nvcc*)	# Cuda Compiler Driver 2.2
10458	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10459	  compiler_needs_object=yes
10460	  ;;
10461	esac
10462	case `$CC -V 2>&1 | sed 5q` in
10463	*Sun\ C*)			# Sun C 5.9
10464	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10465	  compiler_needs_object=yes
10466	  tmp_sharedflag='-G' ;;
10467	*Sun\ F*)			# Sun Fortran 8.3
10468	  tmp_sharedflag='-G' ;;
10469	esac
10470	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471
10472        if test yes = "$supports_anon_versioning"; then
10473          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10474            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10475            echo "local: *; };" >> $output_objdir/$libname.ver~
10476            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10477        fi
10478
10479	case $cc_basename in
10480	tcc*)
10481	  export_dynamic_flag_spec='-rdynamic'
10482	  ;;
10483	xlf* | bgf* | bgxlf* | mpixlf*)
10484	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10485	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10486	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10487	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10488	  if test yes = "$supports_anon_versioning"; then
10489	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10490              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10491              echo "local: *; };" >> $output_objdir/$libname.ver~
10492              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10493	  fi
10494	  ;;
10495	esac
10496      else
10497        ld_shlibs=no
10498      fi
10499      ;;
10500
10501    netbsd* | netbsdelf*-gnu)
10502      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10503	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10504	wlarc=
10505      else
10506	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10507	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10508      fi
10509      ;;
10510
10511    solaris*)
10512      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10513	ld_shlibs=no
10514	cat <<_LT_EOF 1>&2
10515
10516*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10517*** create shared libraries on Solaris systems.  Therefore, libtool
10518*** is disabling shared libraries support.  We urge you to upgrade GNU
10519*** binutils to release 2.9.1 or newer.  Another option is to modify
10520*** your PATH or compiler configuration so that the native linker is
10521*** used, and then restart.
10522
10523_LT_EOF
10524      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10525	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10526	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10527      else
10528	ld_shlibs=no
10529      fi
10530      ;;
10531
10532    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10533      case `$LD -v 2>&1` in
10534        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10535	ld_shlibs=no
10536	cat <<_LT_EOF 1>&2
10537
10538*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10539*** reliably create shared libraries on SCO systems.  Therefore, libtool
10540*** is disabling shared libraries support.  We urge you to upgrade GNU
10541*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10542*** your PATH or compiler configuration so that the native linker is
10543*** used, and then restart.
10544
10545_LT_EOF
10546	;;
10547	*)
10548	  # For security reasons, it is highly recommended that you always
10549	  # use absolute paths for naming shared libraries, and exclude the
10550	  # DT_RUNPATH tag from executables and libraries.  But doing so
10551	  # requires that you compile everything twice, which is a pain.
10552	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10554	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10555	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10556	  else
10557	    ld_shlibs=no
10558	  fi
10559	;;
10560      esac
10561      ;;
10562
10563    sunos4*)
10564      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565      wlarc=
10566      hardcode_direct=yes
10567      hardcode_shlibpath_var=no
10568      ;;
10569
10570    *)
10571      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10572	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10573	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10574      else
10575	ld_shlibs=no
10576      fi
10577      ;;
10578    esac
10579
10580    if test no = "$ld_shlibs"; then
10581      runpath_var=
10582      hardcode_libdir_flag_spec=
10583      export_dynamic_flag_spec=
10584      whole_archive_flag_spec=
10585    fi
10586  else
10587    # PORTME fill in a description of your system's linker (not GNU ld)
10588    case $host_os in
10589    aix3*)
10590      allow_undefined_flag=unsupported
10591      always_export_symbols=yes
10592      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10593      # Note: this linker hardcodes the directories in LIBPATH if there
10594      # are no directories specified by -L.
10595      hardcode_minus_L=yes
10596      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10597	# Neither direct hardcoding nor static linking is supported with a
10598	# broken collect2.
10599	hardcode_direct=unsupported
10600      fi
10601      ;;
10602
10603    aix[4-9]*)
10604      if test ia64 = "$host_cpu"; then
10605	# On IA64, the linker does run time linking by default, so we don't
10606	# have to do anything special.
10607	aix_use_runtimelinking=no
10608	exp_sym_flag='-Bexport'
10609	no_entry_flag=
10610      else
10611	# If we're using GNU nm, then we don't want the "-C" option.
10612	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10613	# Without the "-l" option, or with the "-B" option, AIX nm treats
10614	# weak defined symbols like other global defined symbols, whereas
10615	# GNU nm marks them as "W".
10616	# While the 'weak' keyword is ignored in the Export File, we need
10617	# it in the Import File for the 'aix-soname' feature, so we have
10618	# to replace the "-B" option with "-P" for AIX nm.
10619	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10620	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10621	else
10622	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10623	fi
10624	aix_use_runtimelinking=no
10625
10626	# Test if we are trying to use run time linking or normal
10627	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10628	# have runtime linking enabled, and use it for executables.
10629	# For shared libraries, we enable/disable runtime linking
10630	# depending on the kind of the shared library created -
10631	# when "with_aix_soname,aix_use_runtimelinking" is:
10632	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10633	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10634	#            lib.a           static archive
10635	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10636	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10637	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10638	#            lib.a(lib.so.V) shared, rtl:no
10639	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10640	#            lib.a           static archive
10641	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10642	  for ld_flag in $LDFLAGS; do
10643	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10644	    aix_use_runtimelinking=yes
10645	    break
10646	  fi
10647	  done
10648	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10649	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10650	    # so we don't have lib.a shared libs to link our executables.
10651	    # We have to force runtime linking in this case.
10652	    aix_use_runtimelinking=yes
10653	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10654	  fi
10655	  ;;
10656	esac
10657
10658	exp_sym_flag='-bexport'
10659	no_entry_flag='-bnoentry'
10660      fi
10661
10662      # When large executables or shared objects are built, AIX ld can
10663      # have problems creating the table of contents.  If linking a library
10664      # or program results in "error TOC overflow" add -mminimal-toc to
10665      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10666      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10667
10668      archive_cmds=''
10669      hardcode_direct=yes
10670      hardcode_direct_absolute=yes
10671      hardcode_libdir_separator=':'
10672      link_all_deplibs=yes
10673      file_list_spec='$wl-f,'
10674      case $with_aix_soname,$aix_use_runtimelinking in
10675      aix,*) ;; # traditional, no import file
10676      svr4,* | *,yes) # use import file
10677	# The Import File defines what to hardcode.
10678	hardcode_direct=no
10679	hardcode_direct_absolute=no
10680	;;
10681      esac
10682
10683      if test yes = "$GCC"; then
10684	case $host_os in aix4.[012]|aix4.[012].*)
10685	# We only want to do this on AIX 4.2 and lower, the check
10686	# below for broken collect2 doesn't work under 4.3+
10687	  collect2name=`$CC -print-prog-name=collect2`
10688	  if test -f "$collect2name" &&
10689	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10690	  then
10691	  # We have reworked collect2
10692	  :
10693	  else
10694	  # We have old collect2
10695	  hardcode_direct=unsupported
10696	  # It fails to find uninstalled libraries when the uninstalled
10697	  # path is not listed in the libpath.  Setting hardcode_minus_L
10698	  # to unsupported forces relinking
10699	  hardcode_minus_L=yes
10700	  hardcode_libdir_flag_spec='-L$libdir'
10701	  hardcode_libdir_separator=
10702	  fi
10703	  ;;
10704	esac
10705	shared_flag='-shared'
10706	if test yes = "$aix_use_runtimelinking"; then
10707	  shared_flag="$shared_flag "'$wl-G'
10708	fi
10709	# Need to ensure runtime linking is disabled for the traditional
10710	# shared library, or the linker may eventually find shared libraries
10711	# /with/ Import File - we do not want to mix them.
10712	shared_flag_aix='-shared'
10713	shared_flag_svr4='-shared $wl-G'
10714      else
10715	# not using gcc
10716	if test ia64 = "$host_cpu"; then
10717	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10718	# chokes on -Wl,-G. The following line is correct:
10719	  shared_flag='-G'
10720	else
10721	  if test yes = "$aix_use_runtimelinking"; then
10722	    shared_flag='$wl-G'
10723	  else
10724	    shared_flag='$wl-bM:SRE'
10725	  fi
10726	  shared_flag_aix='$wl-bM:SRE'
10727	  shared_flag_svr4='$wl-G'
10728	fi
10729      fi
10730
10731      export_dynamic_flag_spec='$wl-bexpall'
10732      # It seems that -bexpall does not export symbols beginning with
10733      # underscore (_), so it is better to generate a list of symbols to export.
10734      always_export_symbols=yes
10735      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10736	# Warning - without using the other runtime loading flags (-brtl),
10737	# -berok will link without error, but may produce a broken library.
10738	allow_undefined_flag='-berok'
10739        # Determine the default libpath from the value encoded in an
10740        # empty executable.
10741        if test set = "${lt_cv_aix_libpath+set}"; then
10742  aix_libpath=$lt_cv_aix_libpath
10743else
10744  if ${lt_cv_aix_libpath_+:} false; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748/* end confdefs.h.  */
10749
10750int
10751main ()
10752{
10753
10754  ;
10755  return 0;
10756}
10757_ACEOF
10758if ac_fn_c_try_link "$LINENO"; then :
10759
10760  lt_aix_libpath_sed='
10761      /Import File Strings/,/^$/ {
10762	  /^0/ {
10763	      s/^0  *\([^ ]*\) *$/\1/
10764	      p
10765	  }
10766      }'
10767  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10768  # Check for a 64-bit object if we didn't find anything.
10769  if test -z "$lt_cv_aix_libpath_"; then
10770    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10771  fi
10772fi
10773rm -f core conftest.err conftest.$ac_objext \
10774    conftest$ac_exeext conftest.$ac_ext
10775  if test -z "$lt_cv_aix_libpath_"; then
10776    lt_cv_aix_libpath_=/usr/lib:/lib
10777  fi
10778
10779fi
10780
10781  aix_libpath=$lt_cv_aix_libpath_
10782fi
10783
10784        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10785        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10786      else
10787	if test ia64 = "$host_cpu"; then
10788	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10789	  allow_undefined_flag="-z nodefs"
10790	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10791	else
10792	 # Determine the default libpath from the value encoded in an
10793	 # empty executable.
10794	 if test set = "${lt_cv_aix_libpath+set}"; then
10795  aix_libpath=$lt_cv_aix_libpath
10796else
10797  if ${lt_cv_aix_libpath_+:} false; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h.  */
10802
10803int
10804main ()
10805{
10806
10807  ;
10808  return 0;
10809}
10810_ACEOF
10811if ac_fn_c_try_link "$LINENO"; then :
10812
10813  lt_aix_libpath_sed='
10814      /Import File Strings/,/^$/ {
10815	  /^0/ {
10816	      s/^0  *\([^ ]*\) *$/\1/
10817	      p
10818	  }
10819      }'
10820  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10821  # Check for a 64-bit object if we didn't find anything.
10822  if test -z "$lt_cv_aix_libpath_"; then
10823    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10824  fi
10825fi
10826rm -f core conftest.err conftest.$ac_objext \
10827    conftest$ac_exeext conftest.$ac_ext
10828  if test -z "$lt_cv_aix_libpath_"; then
10829    lt_cv_aix_libpath_=/usr/lib:/lib
10830  fi
10831
10832fi
10833
10834  aix_libpath=$lt_cv_aix_libpath_
10835fi
10836
10837	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10838	  # Warning - without using the other run time loading flags,
10839	  # -berok will link without error, but may produce a broken library.
10840	  no_undefined_flag=' $wl-bernotok'
10841	  allow_undefined_flag=' $wl-berok'
10842	  if test yes = "$with_gnu_ld"; then
10843	    # We only use this code for GNU lds that support --whole-archive.
10844	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10845	  else
10846	    # Exported symbols can be pulled into shared objects from archives
10847	    whole_archive_flag_spec='$convenience'
10848	  fi
10849	  archive_cmds_need_lc=yes
10850	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10851	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10852	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10853	  if test svr4 != "$with_aix_soname"; then
10854	    # This is similar to how AIX traditionally builds its shared libraries.
10855	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10856	  fi
10857	  if test aix != "$with_aix_soname"; then
10858	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10859	  else
10860	    # used by -dlpreopen to get the symbols
10861	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10862	  fi
10863	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10864	fi
10865      fi
10866      ;;
10867
10868    amigaos*)
10869      case $host_cpu in
10870      powerpc)
10871            # see comment about AmigaOS4 .so support
10872            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10873            archive_expsym_cmds=''
10874        ;;
10875      m68k)
10876            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10877            hardcode_libdir_flag_spec='-L$libdir'
10878            hardcode_minus_L=yes
10879        ;;
10880      esac
10881      ;;
10882
10883    bsdi[45]*)
10884      export_dynamic_flag_spec=-rdynamic
10885      ;;
10886
10887    cygwin* | mingw* | pw32* | cegcc*)
10888      # When not using gcc, we currently assume that we are using
10889      # Microsoft Visual C++.
10890      # hardcode_libdir_flag_spec is actually meaningless, as there is
10891      # no search path for DLLs.
10892      case $cc_basename in
10893      cl*)
10894	# Native MSVC
10895	hardcode_libdir_flag_spec=' '
10896	allow_undefined_flag=unsupported
10897	always_export_symbols=yes
10898	file_list_spec='@'
10899	# Tell ltmain to make .lib files, not .a files.
10900	libext=lib
10901	# Tell ltmain to make .dll files, not .so files.
10902	shrext_cmds=.dll
10903	# FIXME: Setting linknames here is a bad hack.
10904	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10905	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10906            cp "$export_symbols" "$output_objdir/$soname.def";
10907            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10908          else
10909            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10910          fi~
10911          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10912          linknames='
10913	# The linker will not automatically build a static lib if we build a DLL.
10914	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10915	enable_shared_with_static_runtimes=yes
10916	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10917	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10918	# Don't use ranlib
10919	old_postinstall_cmds='chmod 644 $oldlib'
10920	postlink_cmds='lt_outputfile="@OUTPUT@"~
10921          lt_tool_outputfile="@TOOL_OUTPUT@"~
10922          case $lt_outputfile in
10923            *.exe|*.EXE) ;;
10924            *)
10925              lt_outputfile=$lt_outputfile.exe
10926              lt_tool_outputfile=$lt_tool_outputfile.exe
10927              ;;
10928          esac~
10929          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10930            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10931            $RM "$lt_outputfile.manifest";
10932          fi'
10933	;;
10934      *)
10935	# Assume MSVC wrapper
10936	hardcode_libdir_flag_spec=' '
10937	allow_undefined_flag=unsupported
10938	# Tell ltmain to make .lib files, not .a files.
10939	libext=lib
10940	# Tell ltmain to make .dll files, not .so files.
10941	shrext_cmds=.dll
10942	# FIXME: Setting linknames here is a bad hack.
10943	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10944	# The linker will automatically build a .lib file if we build a DLL.
10945	old_archive_from_new_cmds='true'
10946	# FIXME: Should let the user specify the lib program.
10947	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10948	enable_shared_with_static_runtimes=yes
10949	;;
10950      esac
10951      ;;
10952
10953    darwin* | rhapsody*)
10954
10955
10956  archive_cmds_need_lc=no
10957  hardcode_direct=no
10958  hardcode_automatic=yes
10959  hardcode_shlibpath_var=unsupported
10960  if test yes = "$lt_cv_ld_force_load"; then
10961    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10962
10963  else
10964    whole_archive_flag_spec=''
10965  fi
10966  link_all_deplibs=yes
10967  allow_undefined_flag=$_lt_dar_allow_undefined
10968  case $cc_basename in
10969     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10970     *) _lt_dar_can_shared=$GCC ;;
10971  esac
10972  if test yes = "$_lt_dar_can_shared"; then
10973    output_verbose_link_cmd=func_echo_all
10974    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10975    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10976    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10977    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10978
10979  else
10980  ld_shlibs=no
10981  fi
10982
10983      ;;
10984
10985    dgux*)
10986      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987      hardcode_libdir_flag_spec='-L$libdir'
10988      hardcode_shlibpath_var=no
10989      ;;
10990
10991    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10992    # support.  Future versions do this automatically, but an explicit c++rt0.o
10993    # does not break anything, and helps significantly (at the cost of a little
10994    # extra space).
10995    freebsd2.2*)
10996      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10997      hardcode_libdir_flag_spec='-R$libdir'
10998      hardcode_direct=yes
10999      hardcode_shlibpath_var=no
11000      ;;
11001
11002    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11003    freebsd2.*)
11004      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11005      hardcode_direct=yes
11006      hardcode_minus_L=yes
11007      hardcode_shlibpath_var=no
11008      ;;
11009
11010    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11011    freebsd* | dragonfly*)
11012      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013      hardcode_libdir_flag_spec='-R$libdir'
11014      hardcode_direct=yes
11015      hardcode_shlibpath_var=no
11016      ;;
11017
11018    hpux9*)
11019      if test yes = "$GCC"; then
11020	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11021      else
11022	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11023      fi
11024      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11025      hardcode_libdir_separator=:
11026      hardcode_direct=yes
11027
11028      # hardcode_minus_L: Not really in the search PATH,
11029      # but as the default location of the library.
11030      hardcode_minus_L=yes
11031      export_dynamic_flag_spec='$wl-E'
11032      ;;
11033
11034    hpux10*)
11035      if test yes,no = "$GCC,$with_gnu_ld"; then
11036	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11037      else
11038	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11039      fi
11040      if test no = "$with_gnu_ld"; then
11041	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11042	hardcode_libdir_separator=:
11043	hardcode_direct=yes
11044	hardcode_direct_absolute=yes
11045	export_dynamic_flag_spec='$wl-E'
11046	# hardcode_minus_L: Not really in the search PATH,
11047	# but as the default location of the library.
11048	hardcode_minus_L=yes
11049      fi
11050      ;;
11051
11052    hpux11*)
11053      if test yes,no = "$GCC,$with_gnu_ld"; then
11054	case $host_cpu in
11055	hppa*64*)
11056	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11057	  ;;
11058	ia64*)
11059	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11060	  ;;
11061	*)
11062	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063	  ;;
11064	esac
11065      else
11066	case $host_cpu in
11067	hppa*64*)
11068	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11069	  ;;
11070	ia64*)
11071	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072	  ;;
11073	*)
11074
11075	  # Older versions of the 11.00 compiler do not understand -b yet
11076	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11077	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11078$as_echo_n "checking if $CC understands -b... " >&6; }
11079if ${lt_cv_prog_compiler__b+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  lt_cv_prog_compiler__b=no
11083   save_LDFLAGS=$LDFLAGS
11084   LDFLAGS="$LDFLAGS -b"
11085   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11086   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11087     # The linker can only warn and ignore the option if not recognized
11088     # So say no if there are warnings
11089     if test -s conftest.err; then
11090       # Append any errors to the config.log.
11091       cat conftest.err 1>&5
11092       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11093       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11094       if diff conftest.exp conftest.er2 >/dev/null; then
11095         lt_cv_prog_compiler__b=yes
11096       fi
11097     else
11098       lt_cv_prog_compiler__b=yes
11099     fi
11100   fi
11101   $RM -r conftest*
11102   LDFLAGS=$save_LDFLAGS
11103
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11106$as_echo "$lt_cv_prog_compiler__b" >&6; }
11107
11108if test yes = "$lt_cv_prog_compiler__b"; then
11109    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11110else
11111    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11112fi
11113
11114	  ;;
11115	esac
11116      fi
11117      if test no = "$with_gnu_ld"; then
11118	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11119	hardcode_libdir_separator=:
11120
11121	case $host_cpu in
11122	hppa*64*|ia64*)
11123	  hardcode_direct=no
11124	  hardcode_shlibpath_var=no
11125	  ;;
11126	*)
11127	  hardcode_direct=yes
11128	  hardcode_direct_absolute=yes
11129	  export_dynamic_flag_spec='$wl-E'
11130
11131	  # hardcode_minus_L: Not really in the search PATH,
11132	  # but as the default location of the library.
11133	  hardcode_minus_L=yes
11134	  ;;
11135	esac
11136      fi
11137      ;;
11138
11139    irix5* | irix6* | nonstopux*)
11140      if test yes = "$GCC"; then
11141	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11142	# Try to use the -exported_symbol ld option, if it does not
11143	# work, assume that -exports_file does not work either and
11144	# implicitly export all symbols.
11145	# This should be the same for all languages, so no per-tag cache variable.
11146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11147$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11148if ${lt_cv_irix_exported_symbol+:} false; then :
11149  $as_echo_n "(cached) " >&6
11150else
11151  save_LDFLAGS=$LDFLAGS
11152	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11153	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155int foo (void) { return 0; }
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158  lt_cv_irix_exported_symbol=yes
11159else
11160  lt_cv_irix_exported_symbol=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163    conftest$ac_exeext conftest.$ac_ext
11164           LDFLAGS=$save_LDFLAGS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11167$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11168	if test yes = "$lt_cv_irix_exported_symbol"; then
11169          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11170	fi
11171	link_all_deplibs=no
11172      else
11173	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11174	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11175      fi
11176      archive_cmds_need_lc='no'
11177      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11178      hardcode_libdir_separator=:
11179      inherit_rpath=yes
11180      link_all_deplibs=yes
11181      ;;
11182
11183    linux*)
11184      case $cc_basename in
11185      tcc*)
11186	# Fabrice Bellard et al's Tiny C Compiler
11187	ld_shlibs=yes
11188	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11189	;;
11190      esac
11191      ;;
11192
11193    netbsd* | netbsdelf*-gnu)
11194      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11195	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11196      else
11197	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11198      fi
11199      hardcode_libdir_flag_spec='-R$libdir'
11200      hardcode_direct=yes
11201      hardcode_shlibpath_var=no
11202      ;;
11203
11204    newsos6)
11205      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11206      hardcode_direct=yes
11207      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11208      hardcode_libdir_separator=:
11209      hardcode_shlibpath_var=no
11210      ;;
11211
11212    *nto* | *qnx*)
11213      ;;
11214
11215    openbsd* | bitrig*)
11216      if test -f /usr/libexec/ld.so; then
11217	hardcode_direct=yes
11218	hardcode_shlibpath_var=no
11219	hardcode_direct_absolute=yes
11220	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11221	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11222	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11223	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11224	  export_dynamic_flag_spec='$wl-E'
11225	else
11226	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11227	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11228	fi
11229      else
11230	ld_shlibs=no
11231      fi
11232      ;;
11233
11234    os2*)
11235      hardcode_libdir_flag_spec='-L$libdir'
11236      hardcode_minus_L=yes
11237      allow_undefined_flag=unsupported
11238      shrext_cmds=.dll
11239      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11240	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11241	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11242	$ECHO EXPORTS >> $output_objdir/$libname.def~
11243	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11244	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11245	emximp -o $lib $output_objdir/$libname.def'
11246      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11247	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11248	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11249	$ECHO EXPORTS >> $output_objdir/$libname.def~
11250	prefix_cmds="$SED"~
11251	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11252	  prefix_cmds="$prefix_cmds -e 1d";
11253	fi~
11254	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11255	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11256	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11257	emximp -o $lib $output_objdir/$libname.def'
11258      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11259      enable_shared_with_static_runtimes=yes
11260      ;;
11261
11262    osf3*)
11263      if test yes = "$GCC"; then
11264	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11265	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11266      else
11267	allow_undefined_flag=' -expect_unresolved \*'
11268	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11269      fi
11270      archive_cmds_need_lc='no'
11271      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11272      hardcode_libdir_separator=:
11273      ;;
11274
11275    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11276      if test yes = "$GCC"; then
11277	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11278	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11279	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11280      else
11281	allow_undefined_flag=' -expect_unresolved \*'
11282	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11283	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11284          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11285
11286	# Both c and cxx compiler support -rpath directly
11287	hardcode_libdir_flag_spec='-rpath $libdir'
11288      fi
11289      archive_cmds_need_lc='no'
11290      hardcode_libdir_separator=:
11291      ;;
11292
11293    solaris*)
11294      no_undefined_flag=' -z defs'
11295      if test yes = "$GCC"; then
11296	wlarc='$wl'
11297	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11298	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11299          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11300      else
11301	case `$CC -V 2>&1` in
11302	*"Compilers 5.0"*)
11303	  wlarc=''
11304	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11305	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11306            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11307	  ;;
11308	*)
11309	  wlarc='$wl'
11310	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11311	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11312            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11313	  ;;
11314	esac
11315      fi
11316      hardcode_libdir_flag_spec='-R$libdir'
11317      hardcode_shlibpath_var=no
11318      case $host_os in
11319      solaris2.[0-5] | solaris2.[0-5].*) ;;
11320      *)
11321	# The compiler driver will combine and reorder linker options,
11322	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11323	# but is careful enough not to reorder.
11324	# Supported since Solaris 2.6 (maybe 2.5.1?)
11325	if test yes = "$GCC"; then
11326	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11327	else
11328	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11329	fi
11330	;;
11331      esac
11332      link_all_deplibs=yes
11333      ;;
11334
11335    sunos4*)
11336      if test sequent = "$host_vendor"; then
11337	# Use $CC to link under sequent, because it throws in some extra .o
11338	# files that make .init and .fini sections work.
11339	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11340      else
11341	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11342      fi
11343      hardcode_libdir_flag_spec='-L$libdir'
11344      hardcode_direct=yes
11345      hardcode_minus_L=yes
11346      hardcode_shlibpath_var=no
11347      ;;
11348
11349    sysv4)
11350      case $host_vendor in
11351	sni)
11352	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353	  hardcode_direct=yes # is this really true???
11354	;;
11355	siemens)
11356	  ## LD is ld it makes a PLAMLIB
11357	  ## CC just makes a GrossModule.
11358	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11359	  reload_cmds='$CC -r -o $output$reload_objs'
11360	  hardcode_direct=no
11361        ;;
11362	motorola)
11363	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11365	;;
11366      esac
11367      runpath_var='LD_RUN_PATH'
11368      hardcode_shlibpath_var=no
11369      ;;
11370
11371    sysv4.3*)
11372      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11373      hardcode_shlibpath_var=no
11374      export_dynamic_flag_spec='-Bexport'
11375      ;;
11376
11377    sysv4*MP*)
11378      if test -d /usr/nec; then
11379	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11380	hardcode_shlibpath_var=no
11381	runpath_var=LD_RUN_PATH
11382	hardcode_runpath_var=yes
11383	ld_shlibs=yes
11384      fi
11385      ;;
11386
11387    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11388      no_undefined_flag='$wl-z,text'
11389      archive_cmds_need_lc=no
11390      hardcode_shlibpath_var=no
11391      runpath_var='LD_RUN_PATH'
11392
11393      if test yes = "$GCC"; then
11394	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396      else
11397	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399      fi
11400      ;;
11401
11402    sysv5* | sco3.2v5* | sco5v6*)
11403      # Note: We CANNOT use -z defs as we might desire, because we do not
11404      # link with -lc, and that would cause any symbols used from libc to
11405      # always be unresolved, which means just about no library would
11406      # ever link correctly.  If we're not using GNU ld we use -z text
11407      # though, which does catch some bad symbols but isn't as heavy-handed
11408      # as -z defs.
11409      no_undefined_flag='$wl-z,text'
11410      allow_undefined_flag='$wl-z,nodefs'
11411      archive_cmds_need_lc=no
11412      hardcode_shlibpath_var=no
11413      hardcode_libdir_flag_spec='$wl-R,$libdir'
11414      hardcode_libdir_separator=':'
11415      link_all_deplibs=yes
11416      export_dynamic_flag_spec='$wl-Bexport'
11417      runpath_var='LD_RUN_PATH'
11418
11419      if test yes = "$GCC"; then
11420	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11422      else
11423	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425      fi
11426      ;;
11427
11428    uts4*)
11429      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11430      hardcode_libdir_flag_spec='-L$libdir'
11431      hardcode_shlibpath_var=no
11432      ;;
11433
11434    *)
11435      ld_shlibs=no
11436      ;;
11437    esac
11438
11439    if test sni = "$host_vendor"; then
11440      case $host in
11441      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11442	export_dynamic_flag_spec='$wl-Blargedynsym'
11443	;;
11444      esac
11445    fi
11446  fi
11447
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11449$as_echo "$ld_shlibs" >&6; }
11450test no = "$ld_shlibs" && can_build_shared=no
11451
11452with_gnu_ld=$with_gnu_ld
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468#
11469# Do we need to explicitly link libc?
11470#
11471case "x$archive_cmds_need_lc" in
11472x|xyes)
11473  # Assume -lc should be added
11474  archive_cmds_need_lc=yes
11475
11476  if test yes,yes = "$GCC,$enable_shared"; then
11477    case $archive_cmds in
11478    *'~'*)
11479      # FIXME: we may have to deal with multi-command sequences.
11480      ;;
11481    '$CC '*)
11482      # Test whether the compiler implicitly links with -lc since on some
11483      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11484      # to ld, don't add -lc before -lgcc.
11485      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11486$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11487if ${lt_cv_archive_cmds_need_lc+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  $RM conftest*
11491	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11492
11493	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11494  (eval $ac_compile) 2>&5
11495  ac_status=$?
11496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11497  test $ac_status = 0; } 2>conftest.err; then
11498	  soname=conftest
11499	  lib=conftest
11500	  libobjs=conftest.$ac_objext
11501	  deplibs=
11502	  wl=$lt_prog_compiler_wl
11503	  pic_flag=$lt_prog_compiler_pic
11504	  compiler_flags=-v
11505	  linker_flags=-v
11506	  verstring=
11507	  output_objdir=.
11508	  libname=conftest
11509	  lt_save_allow_undefined_flag=$allow_undefined_flag
11510	  allow_undefined_flag=
11511	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11512  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11513  ac_status=$?
11514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515  test $ac_status = 0; }
11516	  then
11517	    lt_cv_archive_cmds_need_lc=no
11518	  else
11519	    lt_cv_archive_cmds_need_lc=yes
11520	  fi
11521	  allow_undefined_flag=$lt_save_allow_undefined_flag
11522	else
11523	  cat conftest.err 1>&5
11524	fi
11525	$RM conftest*
11526
11527fi
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11529$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11530      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11531      ;;
11532    esac
11533  fi
11534  ;;
11535esac
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11689$as_echo_n "checking dynamic linker characteristics... " >&6; }
11690
11691if test yes = "$GCC"; then
11692  case $host_os in
11693    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11694    *) lt_awk_arg='/^libraries:/' ;;
11695  esac
11696  case $host_os in
11697    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11698    *) lt_sed_strip_eq='s|=/|/|g' ;;
11699  esac
11700  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11701  case $lt_search_path_spec in
11702  *\;*)
11703    # if the path contains ";" then we assume it to be the separator
11704    # otherwise default to the standard path separator (i.e. ":") - it is
11705    # assumed that no part of a normal pathname contains ";" but that should
11706    # okay in the real world where ";" in dirpaths is itself problematic.
11707    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11708    ;;
11709  *)
11710    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11711    ;;
11712  esac
11713  # Ok, now we have the path, separated by spaces, we can step through it
11714  # and add multilib dir if necessary...
11715  lt_tmp_lt_search_path_spec=
11716  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11717  # ...but if some path component already ends with the multilib dir we assume
11718  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11719  case "$lt_multi_os_dir; $lt_search_path_spec " in
11720  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11721    lt_multi_os_dir=
11722    ;;
11723  esac
11724  for lt_sys_path in $lt_search_path_spec; do
11725    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11726      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11727    elif test -n "$lt_multi_os_dir"; then
11728      test -d "$lt_sys_path" && \
11729	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11730    fi
11731  done
11732  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11733BEGIN {RS = " "; FS = "/|\n";} {
11734  lt_foo = "";
11735  lt_count = 0;
11736  for (lt_i = NF; lt_i > 0; lt_i--) {
11737    if ($lt_i != "" && $lt_i != ".") {
11738      if ($lt_i == "..") {
11739        lt_count++;
11740      } else {
11741        if (lt_count == 0) {
11742          lt_foo = "/" $lt_i lt_foo;
11743        } else {
11744          lt_count--;
11745        }
11746      }
11747    }
11748  }
11749  if (lt_foo != "") { lt_freq[lt_foo]++; }
11750  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11751}'`
11752  # AWK program above erroneously prepends '/' to C:/dos/paths
11753  # for these hosts.
11754  case $host_os in
11755    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11756      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11757  esac
11758  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11759else
11760  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11761fi
11762library_names_spec=
11763libname_spec='lib$name'
11764soname_spec=
11765shrext_cmds=.so
11766postinstall_cmds=
11767postuninstall_cmds=
11768finish_cmds=
11769finish_eval=
11770shlibpath_var=
11771shlibpath_overrides_runpath=unknown
11772version_type=none
11773dynamic_linker="$host_os ld.so"
11774sys_lib_dlsearch_path_spec="/lib /usr/lib"
11775need_lib_prefix=unknown
11776hardcode_into_libs=no
11777
11778# when you set need_version to no, make sure it does not cause -set_version
11779# flags to be left without arguments
11780need_version=unknown
11781
11782
11783
11784case $host_os in
11785aix3*)
11786  version_type=linux # correct to gnu/linux during the next big refactor
11787  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11788  shlibpath_var=LIBPATH
11789
11790  # AIX 3 has no versioning support, so we append a major version to the name.
11791  soname_spec='$libname$release$shared_ext$major'
11792  ;;
11793
11794aix[4-9]*)
11795  version_type=linux # correct to gnu/linux during the next big refactor
11796  need_lib_prefix=no
11797  need_version=no
11798  hardcode_into_libs=yes
11799  if test ia64 = "$host_cpu"; then
11800    # AIX 5 supports IA64
11801    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11802    shlibpath_var=LD_LIBRARY_PATH
11803  else
11804    # With GCC up to 2.95.x, collect2 would create an import file
11805    # for dependence libraries.  The import file would start with
11806    # the line '#! .'.  This would cause the generated library to
11807    # depend on '.', always an invalid library.  This was fixed in
11808    # development snapshots of GCC prior to 3.0.
11809    case $host_os in
11810      aix4 | aix4.[01] | aix4.[01].*)
11811      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11812	   echo ' yes '
11813	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11814	:
11815      else
11816	can_build_shared=no
11817      fi
11818      ;;
11819    esac
11820    # Using Import Files as archive members, it is possible to support
11821    # filename-based versioning of shared library archives on AIX. While
11822    # this would work for both with and without runtime linking, it will
11823    # prevent static linking of such archives. So we do filename-based
11824    # shared library versioning with .so extension only, which is used
11825    # when both runtime linking and shared linking is enabled.
11826    # Unfortunately, runtime linking may impact performance, so we do
11827    # not want this to be the default eventually. Also, we use the
11828    # versioned .so libs for executables only if there is the -brtl
11829    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11830    # To allow for filename-based versioning support, we need to create
11831    # libNAME.so.V as an archive file, containing:
11832    # *) an Import File, referring to the versioned filename of the
11833    #    archive as well as the shared archive member, telling the
11834    #    bitwidth (32 or 64) of that shared object, and providing the
11835    #    list of exported symbols of that shared object, eventually
11836    #    decorated with the 'weak' keyword
11837    # *) the shared object with the F_LOADONLY flag set, to really avoid
11838    #    it being seen by the linker.
11839    # At run time we better use the real file rather than another symlink,
11840    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11841
11842    case $with_aix_soname,$aix_use_runtimelinking in
11843    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11844    # soname into executable. Probably we can add versioning support to
11845    # collect2, so additional links can be useful in future.
11846    aix,yes) # traditional libtool
11847      dynamic_linker='AIX unversionable lib.so'
11848      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11849      # instead of lib<name>.a to let people know that these are not
11850      # typical AIX shared libraries.
11851      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11852      ;;
11853    aix,no) # traditional AIX only
11854      dynamic_linker='AIX lib.a(lib.so.V)'
11855      # We preserve .a as extension for shared libraries through AIX4.2
11856      # and later when we are not doing run time linking.
11857      library_names_spec='$libname$release.a $libname.a'
11858      soname_spec='$libname$release$shared_ext$major'
11859      ;;
11860    svr4,*) # full svr4 only
11861      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11862      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11863      # We do not specify a path in Import Files, so LIBPATH fires.
11864      shlibpath_overrides_runpath=yes
11865      ;;
11866    *,yes) # both, prefer svr4
11867      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11868      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11869      # unpreferred sharedlib libNAME.a needs extra handling
11870      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11871      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11872      # We do not specify a path in Import Files, so LIBPATH fires.
11873      shlibpath_overrides_runpath=yes
11874      ;;
11875    *,no) # both, prefer aix
11876      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11877      library_names_spec='$libname$release.a $libname.a'
11878      soname_spec='$libname$release$shared_ext$major'
11879      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11880      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11881      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11882      ;;
11883    esac
11884    shlibpath_var=LIBPATH
11885  fi
11886  ;;
11887
11888amigaos*)
11889  case $host_cpu in
11890  powerpc)
11891    # Since July 2007 AmigaOS4 officially supports .so libraries.
11892    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11893    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894    ;;
11895  m68k)
11896    library_names_spec='$libname.ixlibrary $libname.a'
11897    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11898    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11899    ;;
11900  esac
11901  ;;
11902
11903beos*)
11904  library_names_spec='$libname$shared_ext'
11905  dynamic_linker="$host_os ld.so"
11906  shlibpath_var=LIBRARY_PATH
11907  ;;
11908
11909bsdi[45]*)
11910  version_type=linux # correct to gnu/linux during the next big refactor
11911  need_version=no
11912  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11913  soname_spec='$libname$release$shared_ext$major'
11914  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11915  shlibpath_var=LD_LIBRARY_PATH
11916  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11917  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11918  # the default ld.so.conf also contains /usr/contrib/lib and
11919  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11920  # libtool to hard-code these into programs
11921  ;;
11922
11923cygwin* | mingw* | pw32* | cegcc*)
11924  version_type=windows
11925  shrext_cmds=.dll
11926  need_version=no
11927  need_lib_prefix=no
11928
11929  case $GCC,$cc_basename in
11930  yes,*)
11931    # gcc
11932    library_names_spec='$libname.dll.a'
11933    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11934    postinstall_cmds='base_file=`basename \$file`~
11935      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11936      dldir=$destdir/`dirname \$dlpath`~
11937      test -d \$dldir || mkdir -p \$dldir~
11938      $install_prog $dir/$dlname \$dldir/$dlname~
11939      chmod a+x \$dldir/$dlname~
11940      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11941        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11942      fi'
11943    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11944      dlpath=$dir/\$dldll~
11945       $RM \$dlpath'
11946    shlibpath_overrides_runpath=yes
11947
11948    case $host_os in
11949    cygwin*)
11950      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11951      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11952
11953      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11954      ;;
11955    mingw* | cegcc*)
11956      # MinGW DLLs use traditional 'lib' prefix
11957      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11958      ;;
11959    pw32*)
11960      # pw32 DLLs use 'pw' prefix rather than 'lib'
11961      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11962      ;;
11963    esac
11964    dynamic_linker='Win32 ld.exe'
11965    ;;
11966
11967  *,cl*)
11968    # Native MSVC
11969    libname_spec='$name'
11970    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11971    library_names_spec='$libname.dll.lib'
11972
11973    case $build_os in
11974    mingw*)
11975      sys_lib_search_path_spec=
11976      lt_save_ifs=$IFS
11977      IFS=';'
11978      for lt_path in $LIB
11979      do
11980        IFS=$lt_save_ifs
11981        # Let DOS variable expansion print the short 8.3 style file name.
11982        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11983        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11984      done
11985      IFS=$lt_save_ifs
11986      # Convert to MSYS style.
11987      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11988      ;;
11989    cygwin*)
11990      # Convert to unix form, then to dos form, then back to unix form
11991      # but this time dos style (no spaces!) so that the unix form looks
11992      # like /cygdrive/c/PROGRA~1:/cygdr...
11993      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11994      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11995      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11996      ;;
11997    *)
11998      sys_lib_search_path_spec=$LIB
11999      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12000        # It is most probably a Windows format PATH.
12001        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12002      else
12003        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12004      fi
12005      # FIXME: find the short name or the path components, as spaces are
12006      # common. (e.g. "Program Files" -> "PROGRA~1")
12007      ;;
12008    esac
12009
12010    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12011    postinstall_cmds='base_file=`basename \$file`~
12012      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12013      dldir=$destdir/`dirname \$dlpath`~
12014      test -d \$dldir || mkdir -p \$dldir~
12015      $install_prog $dir/$dlname \$dldir/$dlname'
12016    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12017      dlpath=$dir/\$dldll~
12018       $RM \$dlpath'
12019    shlibpath_overrides_runpath=yes
12020    dynamic_linker='Win32 link.exe'
12021    ;;
12022
12023  *)
12024    # Assume MSVC wrapper
12025    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12026    dynamic_linker='Win32 ld.exe'
12027    ;;
12028  esac
12029  # FIXME: first we should search . and the directory the executable is in
12030  shlibpath_var=PATH
12031  ;;
12032
12033darwin* | rhapsody*)
12034  dynamic_linker="$host_os dyld"
12035  version_type=darwin
12036  need_lib_prefix=no
12037  need_version=no
12038  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12039  soname_spec='$libname$release$major$shared_ext'
12040  shlibpath_overrides_runpath=yes
12041  shlibpath_var=DYLD_LIBRARY_PATH
12042  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12043
12044  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12045  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12046  ;;
12047
12048dgux*)
12049  version_type=linux # correct to gnu/linux during the next big refactor
12050  need_lib_prefix=no
12051  need_version=no
12052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053  soname_spec='$libname$release$shared_ext$major'
12054  shlibpath_var=LD_LIBRARY_PATH
12055  ;;
12056
12057freebsd* | dragonfly*)
12058  # DragonFly does not have aout.  When/if they implement a new
12059  # versioning mechanism, adjust this.
12060  if test -x /usr/bin/objformat; then
12061    objformat=`/usr/bin/objformat`
12062  else
12063    case $host_os in
12064    freebsd[23].*) objformat=aout ;;
12065    *) objformat=elf ;;
12066    esac
12067  fi
12068  version_type=freebsd-$objformat
12069  case $version_type in
12070    freebsd-elf*)
12071      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072      soname_spec='$libname$release$shared_ext$major'
12073      need_version=no
12074      need_lib_prefix=no
12075      ;;
12076    freebsd-*)
12077      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12078      need_version=yes
12079      ;;
12080  esac
12081  shlibpath_var=LD_LIBRARY_PATH
12082  case $host_os in
12083  freebsd2.*)
12084    shlibpath_overrides_runpath=yes
12085    ;;
12086  freebsd3.[01]* | freebsdelf3.[01]*)
12087    shlibpath_overrides_runpath=yes
12088    hardcode_into_libs=yes
12089    ;;
12090  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12091  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12092    shlibpath_overrides_runpath=no
12093    hardcode_into_libs=yes
12094    ;;
12095  *) # from 4.6 on, and DragonFly
12096    shlibpath_overrides_runpath=yes
12097    hardcode_into_libs=yes
12098    ;;
12099  esac
12100  ;;
12101
12102haiku*)
12103  version_type=linux # correct to gnu/linux during the next big refactor
12104  need_lib_prefix=no
12105  need_version=no
12106  dynamic_linker="$host_os runtime_loader"
12107  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12108  soname_spec='$libname$release$shared_ext$major'
12109  shlibpath_var=LIBRARY_PATH
12110  shlibpath_overrides_runpath=no
12111  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12112  hardcode_into_libs=yes
12113  ;;
12114
12115hpux9* | hpux10* | hpux11*)
12116  # Give a soname corresponding to the major version so that dld.sl refuses to
12117  # link against other versions.
12118  version_type=sunos
12119  need_lib_prefix=no
12120  need_version=no
12121  case $host_cpu in
12122  ia64*)
12123    shrext_cmds='.so'
12124    hardcode_into_libs=yes
12125    dynamic_linker="$host_os dld.so"
12126    shlibpath_var=LD_LIBRARY_PATH
12127    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12128    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129    soname_spec='$libname$release$shared_ext$major'
12130    if test 32 = "$HPUX_IA64_MODE"; then
12131      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12132      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12133    else
12134      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12135      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12136    fi
12137    ;;
12138  hppa*64*)
12139    shrext_cmds='.sl'
12140    hardcode_into_libs=yes
12141    dynamic_linker="$host_os dld.sl"
12142    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12143    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12144    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145    soname_spec='$libname$release$shared_ext$major'
12146    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12147    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12148    ;;
12149  *)
12150    shrext_cmds='.sl'
12151    dynamic_linker="$host_os dld.sl"
12152    shlibpath_var=SHLIB_PATH
12153    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12154    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155    soname_spec='$libname$release$shared_ext$major'
12156    ;;
12157  esac
12158  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12159  postinstall_cmds='chmod 555 $lib'
12160  # or fails outright, so override atomically:
12161  install_override_mode=555
12162  ;;
12163
12164interix[3-9]*)
12165  version_type=linux # correct to gnu/linux during the next big refactor
12166  need_lib_prefix=no
12167  need_version=no
12168  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12169  soname_spec='$libname$release$shared_ext$major'
12170  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12171  shlibpath_var=LD_LIBRARY_PATH
12172  shlibpath_overrides_runpath=no
12173  hardcode_into_libs=yes
12174  ;;
12175
12176irix5* | irix6* | nonstopux*)
12177  case $host_os in
12178    nonstopux*) version_type=nonstopux ;;
12179    *)
12180	if test yes = "$lt_cv_prog_gnu_ld"; then
12181		version_type=linux # correct to gnu/linux during the next big refactor
12182	else
12183		version_type=irix
12184	fi ;;
12185  esac
12186  need_lib_prefix=no
12187  need_version=no
12188  soname_spec='$libname$release$shared_ext$major'
12189  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12190  case $host_os in
12191  irix5* | nonstopux*)
12192    libsuff= shlibsuff=
12193    ;;
12194  *)
12195    case $LD in # libtool.m4 will add one of these switches to LD
12196    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12197      libsuff= shlibsuff= libmagic=32-bit;;
12198    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12199      libsuff=32 shlibsuff=N32 libmagic=N32;;
12200    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12201      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12202    *) libsuff= shlibsuff= libmagic=never-match;;
12203    esac
12204    ;;
12205  esac
12206  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12207  shlibpath_overrides_runpath=no
12208  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12209  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12210  hardcode_into_libs=yes
12211  ;;
12212
12213# No shared lib support for Linux oldld, aout, or coff.
12214linux*oldld* | linux*aout* | linux*coff*)
12215  dynamic_linker=no
12216  ;;
12217
12218linux*android*)
12219  version_type=none # Android doesn't support versioned libraries.
12220  need_lib_prefix=no
12221  need_version=no
12222  library_names_spec='$libname$release$shared_ext'
12223  soname_spec='$libname$release$shared_ext'
12224  finish_cmds=
12225  shlibpath_var=LD_LIBRARY_PATH
12226  shlibpath_overrides_runpath=yes
12227
12228  # This implies no fast_install, which is unacceptable.
12229  # Some rework will be needed to allow for fast_install
12230  # before this can be enabled.
12231  hardcode_into_libs=yes
12232
12233  dynamic_linker='Android linker'
12234  # Don't embed -rpath directories since the linker doesn't support them.
12235  hardcode_libdir_flag_spec='-L$libdir'
12236  ;;
12237
12238# This must be glibc/ELF.
12239linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12240  version_type=linux # correct to gnu/linux during the next big refactor
12241  need_lib_prefix=no
12242  need_version=no
12243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12244  soname_spec='$libname$release$shared_ext$major'
12245  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12246  shlibpath_var=LD_LIBRARY_PATH
12247  shlibpath_overrides_runpath=no
12248
12249  # Some binutils ld are patched to set DT_RUNPATH
12250  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12251  $as_echo_n "(cached) " >&6
12252else
12253  lt_cv_shlibpath_overrides_runpath=no
12254    save_LDFLAGS=$LDFLAGS
12255    save_libdir=$libdir
12256    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12257	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h.  */
12260
12261int
12262main ()
12263{
12264
12265  ;
12266  return 0;
12267}
12268_ACEOF
12269if ac_fn_c_try_link "$LINENO"; then :
12270  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12271  lt_cv_shlibpath_overrides_runpath=yes
12272fi
12273fi
12274rm -f core conftest.err conftest.$ac_objext \
12275    conftest$ac_exeext conftest.$ac_ext
12276    LDFLAGS=$save_LDFLAGS
12277    libdir=$save_libdir
12278
12279fi
12280
12281  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12282
12283  # This implies no fast_install, which is unacceptable.
12284  # Some rework will be needed to allow for fast_install
12285  # before this can be enabled.
12286  hardcode_into_libs=yes
12287
12288  # Ideally, we could use ldconfig to report *all* directores which are
12289  # searched for libraries, however this is still not possible.  Aside from not
12290  # being certain /sbin/ldconfig is available, command
12291  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12292  # even though it is searched at run-time.  Try to do the best guess by
12293  # appending ld.so.conf contents (and includes) to the search path.
12294  if test -f /etc/ld.so.conf; then
12295    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12296    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12297  fi
12298
12299  # We used to test for /lib/ld.so.1 and disable shared libraries on
12300  # powerpc, because MkLinux only supported shared libraries with the
12301  # GNU dynamic linker.  Since this was broken with cross compilers,
12302  # most powerpc-linux boxes support dynamic linking these days and
12303  # people can always --disable-shared, the test was removed, and we
12304  # assume the GNU/Linux dynamic linker is in use.
12305  dynamic_linker='GNU/Linux ld.so'
12306  ;;
12307
12308netbsdelf*-gnu)
12309  version_type=linux
12310  need_lib_prefix=no
12311  need_version=no
12312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12313  soname_spec='${libname}${release}${shared_ext}$major'
12314  shlibpath_var=LD_LIBRARY_PATH
12315  shlibpath_overrides_runpath=no
12316  hardcode_into_libs=yes
12317  dynamic_linker='NetBSD ld.elf_so'
12318  ;;
12319
12320netbsd*)
12321  version_type=sunos
12322  need_lib_prefix=no
12323  need_version=no
12324  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12325    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12326    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12327    dynamic_linker='NetBSD (a.out) ld.so'
12328  else
12329    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12330    soname_spec='$libname$release$shared_ext$major'
12331    dynamic_linker='NetBSD ld.elf_so'
12332  fi
12333  shlibpath_var=LD_LIBRARY_PATH
12334  shlibpath_overrides_runpath=yes
12335  hardcode_into_libs=yes
12336  ;;
12337
12338newsos6)
12339  version_type=linux # correct to gnu/linux during the next big refactor
12340  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341  shlibpath_var=LD_LIBRARY_PATH
12342  shlibpath_overrides_runpath=yes
12343  ;;
12344
12345*nto* | *qnx*)
12346  version_type=qnx
12347  need_lib_prefix=no
12348  need_version=no
12349  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12350  soname_spec='$libname$release$shared_ext$major'
12351  shlibpath_var=LD_LIBRARY_PATH
12352  shlibpath_overrides_runpath=no
12353  hardcode_into_libs=yes
12354  dynamic_linker='ldqnx.so'
12355  ;;
12356
12357openbsd* | bitrig*)
12358  version_type=sunos
12359  sys_lib_dlsearch_path_spec=/usr/lib
12360  need_lib_prefix=no
12361  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12362    need_version=no
12363  else
12364    need_version=yes
12365  fi
12366  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12368  shlibpath_var=LD_LIBRARY_PATH
12369  shlibpath_overrides_runpath=yes
12370  ;;
12371
12372os2*)
12373  libname_spec='$name'
12374  version_type=windows
12375  shrext_cmds=.dll
12376  need_version=no
12377  need_lib_prefix=no
12378  # OS/2 can only load a DLL with a base name of 8 characters or less.
12379  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12380    v=$($ECHO $release$versuffix | tr -d .-);
12381    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12382    $ECHO $n$v`$shared_ext'
12383  library_names_spec='${libname}_dll.$libext'
12384  dynamic_linker='OS/2 ld.exe'
12385  shlibpath_var=BEGINLIBPATH
12386  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12387  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12388  postinstall_cmds='base_file=`basename \$file`~
12389    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12390    dldir=$destdir/`dirname \$dlpath`~
12391    test -d \$dldir || mkdir -p \$dldir~
12392    $install_prog $dir/$dlname \$dldir/$dlname~
12393    chmod a+x \$dldir/$dlname~
12394    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12395      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12396    fi'
12397  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12398    dlpath=$dir/\$dldll~
12399    $RM \$dlpath'
12400  ;;
12401
12402osf3* | osf4* | osf5*)
12403  version_type=osf
12404  need_lib_prefix=no
12405  need_version=no
12406  soname_spec='$libname$release$shared_ext$major'
12407  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12408  shlibpath_var=LD_LIBRARY_PATH
12409  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12410  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12411  ;;
12412
12413rdos*)
12414  dynamic_linker=no
12415  ;;
12416
12417solaris*)
12418  version_type=linux # correct to gnu/linux during the next big refactor
12419  need_lib_prefix=no
12420  need_version=no
12421  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422  soname_spec='$libname$release$shared_ext$major'
12423  shlibpath_var=LD_LIBRARY_PATH
12424  shlibpath_overrides_runpath=yes
12425  hardcode_into_libs=yes
12426  # ldd complains unless libraries are executable
12427  postinstall_cmds='chmod +x $lib'
12428  ;;
12429
12430sunos4*)
12431  version_type=sunos
12432  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12433  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12434  shlibpath_var=LD_LIBRARY_PATH
12435  shlibpath_overrides_runpath=yes
12436  if test yes = "$with_gnu_ld"; then
12437    need_lib_prefix=no
12438  fi
12439  need_version=yes
12440  ;;
12441
12442sysv4 | sysv4.3*)
12443  version_type=linux # correct to gnu/linux during the next big refactor
12444  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12445  soname_spec='$libname$release$shared_ext$major'
12446  shlibpath_var=LD_LIBRARY_PATH
12447  case $host_vendor in
12448    sni)
12449      shlibpath_overrides_runpath=no
12450      need_lib_prefix=no
12451      runpath_var=LD_RUN_PATH
12452      ;;
12453    siemens)
12454      need_lib_prefix=no
12455      ;;
12456    motorola)
12457      need_lib_prefix=no
12458      need_version=no
12459      shlibpath_overrides_runpath=no
12460      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12461      ;;
12462  esac
12463  ;;
12464
12465sysv4*MP*)
12466  if test -d /usr/nec; then
12467    version_type=linux # correct to gnu/linux during the next big refactor
12468    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12469    soname_spec='$libname$shared_ext.$major'
12470    shlibpath_var=LD_LIBRARY_PATH
12471  fi
12472  ;;
12473
12474sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12475  version_type=sco
12476  need_lib_prefix=no
12477  need_version=no
12478  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12479  soname_spec='$libname$release$shared_ext$major'
12480  shlibpath_var=LD_LIBRARY_PATH
12481  shlibpath_overrides_runpath=yes
12482  hardcode_into_libs=yes
12483  if test yes = "$with_gnu_ld"; then
12484    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12485  else
12486    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12487    case $host_os in
12488      sco3.2v5*)
12489        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12490	;;
12491    esac
12492  fi
12493  sys_lib_dlsearch_path_spec='/usr/lib'
12494  ;;
12495
12496tpf*)
12497  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12498  version_type=linux # correct to gnu/linux during the next big refactor
12499  need_lib_prefix=no
12500  need_version=no
12501  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12502  shlibpath_var=LD_LIBRARY_PATH
12503  shlibpath_overrides_runpath=no
12504  hardcode_into_libs=yes
12505  ;;
12506
12507uts4*)
12508  version_type=linux # correct to gnu/linux during the next big refactor
12509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12510  soname_spec='$libname$release$shared_ext$major'
12511  shlibpath_var=LD_LIBRARY_PATH
12512  ;;
12513
12514*)
12515  dynamic_linker=no
12516  ;;
12517esac
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12519$as_echo "$dynamic_linker" >&6; }
12520test no = "$dynamic_linker" && can_build_shared=no
12521
12522variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12523if test yes = "$GCC"; then
12524  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12525fi
12526
12527if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12528  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12529fi
12530
12531if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12532  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12533fi
12534
12535# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12536configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12537
12538# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12539func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12540
12541# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12542configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12641$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12642hardcode_action=
12643if test -n "$hardcode_libdir_flag_spec" ||
12644   test -n "$runpath_var" ||
12645   test yes = "$hardcode_automatic"; then
12646
12647  # We can hardcode non-existent directories.
12648  if test no != "$hardcode_direct" &&
12649     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12650     # have to relink, otherwise we might link with an installed library
12651     # when we should be linking with a yet-to-be-installed one
12652     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12653     test no != "$hardcode_minus_L"; then
12654    # Linking always hardcodes the temporary library directory.
12655    hardcode_action=relink
12656  else
12657    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12658    hardcode_action=immediate
12659  fi
12660else
12661  # We cannot hardcode anything, or else we can only hardcode existing
12662  # directories.
12663  hardcode_action=unsupported
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12666$as_echo "$hardcode_action" >&6; }
12667
12668if test relink = "$hardcode_action" ||
12669   test yes = "$inherit_rpath"; then
12670  # Fast installation is not supported
12671  enable_fast_install=no
12672elif test yes = "$shlibpath_overrides_runpath" ||
12673     test no = "$enable_shared"; then
12674  # Fast installation is not necessary
12675  enable_fast_install=needless
12676fi
12677
12678
12679
12680
12681
12682
12683  if test yes != "$enable_dlopen"; then
12684  enable_dlopen=unknown
12685  enable_dlopen_self=unknown
12686  enable_dlopen_self_static=unknown
12687else
12688  lt_cv_dlopen=no
12689  lt_cv_dlopen_libs=
12690
12691  case $host_os in
12692  beos*)
12693    lt_cv_dlopen=load_add_on
12694    lt_cv_dlopen_libs=
12695    lt_cv_dlopen_self=yes
12696    ;;
12697
12698  mingw* | pw32* | cegcc*)
12699    lt_cv_dlopen=LoadLibrary
12700    lt_cv_dlopen_libs=
12701    ;;
12702
12703  cygwin*)
12704    lt_cv_dlopen=dlopen
12705    lt_cv_dlopen_libs=
12706    ;;
12707
12708  darwin*)
12709    # if libdl is installed we need to link against it
12710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12711$as_echo_n "checking for dlopen in -ldl... " >&6; }
12712if ${ac_cv_lib_dl_dlopen+:} false; then :
12713  $as_echo_n "(cached) " >&6
12714else
12715  ac_check_lib_save_LIBS=$LIBS
12716LIBS="-ldl  $LIBS"
12717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718/* end confdefs.h.  */
12719
12720/* Override any GCC internal prototype to avoid an error.
12721   Use char because int might match the return type of a GCC
12722   builtin and then its argument prototype would still apply.  */
12723#ifdef __cplusplus
12724extern "C"
12725#endif
12726char dlopen ();
12727int
12728main ()
12729{
12730return dlopen ();
12731  ;
12732  return 0;
12733}
12734_ACEOF
12735if ac_fn_c_try_link "$LINENO"; then :
12736  ac_cv_lib_dl_dlopen=yes
12737else
12738  ac_cv_lib_dl_dlopen=no
12739fi
12740rm -f core conftest.err conftest.$ac_objext \
12741    conftest$ac_exeext conftest.$ac_ext
12742LIBS=$ac_check_lib_save_LIBS
12743fi
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12745$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12746if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12747  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12748else
12749
12750    lt_cv_dlopen=dyld
12751    lt_cv_dlopen_libs=
12752    lt_cv_dlopen_self=yes
12753
12754fi
12755
12756    ;;
12757
12758  tpf*)
12759    # Don't try to run any link tests for TPF.  We know it's impossible
12760    # because TPF is a cross-compiler, and we know how we open DSOs.
12761    lt_cv_dlopen=dlopen
12762    lt_cv_dlopen_libs=
12763    lt_cv_dlopen_self=no
12764    ;;
12765
12766  *)
12767    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12768if test "x$ac_cv_func_shl_load" = xyes; then :
12769  lt_cv_dlopen=shl_load
12770else
12771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12772$as_echo_n "checking for shl_load in -ldld... " >&6; }
12773if ${ac_cv_lib_dld_shl_load+:} false; then :
12774  $as_echo_n "(cached) " >&6
12775else
12776  ac_check_lib_save_LIBS=$LIBS
12777LIBS="-ldld  $LIBS"
12778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h.  */
12780
12781/* Override any GCC internal prototype to avoid an error.
12782   Use char because int might match the return type of a GCC
12783   builtin and then its argument prototype would still apply.  */
12784#ifdef __cplusplus
12785extern "C"
12786#endif
12787char shl_load ();
12788int
12789main ()
12790{
12791return shl_load ();
12792  ;
12793  return 0;
12794}
12795_ACEOF
12796if ac_fn_c_try_link "$LINENO"; then :
12797  ac_cv_lib_dld_shl_load=yes
12798else
12799  ac_cv_lib_dld_shl_load=no
12800fi
12801rm -f core conftest.err conftest.$ac_objext \
12802    conftest$ac_exeext conftest.$ac_ext
12803LIBS=$ac_check_lib_save_LIBS
12804fi
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12806$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12807if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12808  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12809else
12810  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12811if test "x$ac_cv_func_dlopen" = xyes; then :
12812  lt_cv_dlopen=dlopen
12813else
12814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12815$as_echo_n "checking for dlopen in -ldl... " >&6; }
12816if ${ac_cv_lib_dl_dlopen+:} false; then :
12817  $as_echo_n "(cached) " >&6
12818else
12819  ac_check_lib_save_LIBS=$LIBS
12820LIBS="-ldl  $LIBS"
12821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h.  */
12823
12824/* Override any GCC internal prototype to avoid an error.
12825   Use char because int might match the return type of a GCC
12826   builtin and then its argument prototype would still apply.  */
12827#ifdef __cplusplus
12828extern "C"
12829#endif
12830char dlopen ();
12831int
12832main ()
12833{
12834return dlopen ();
12835  ;
12836  return 0;
12837}
12838_ACEOF
12839if ac_fn_c_try_link "$LINENO"; then :
12840  ac_cv_lib_dl_dlopen=yes
12841else
12842  ac_cv_lib_dl_dlopen=no
12843fi
12844rm -f core conftest.err conftest.$ac_objext \
12845    conftest$ac_exeext conftest.$ac_ext
12846LIBS=$ac_check_lib_save_LIBS
12847fi
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12849$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12850if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12851  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12852else
12853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12854$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12855if ${ac_cv_lib_svld_dlopen+:} false; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  ac_check_lib_save_LIBS=$LIBS
12859LIBS="-lsvld  $LIBS"
12860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862
12863/* Override any GCC internal prototype to avoid an error.
12864   Use char because int might match the return type of a GCC
12865   builtin and then its argument prototype would still apply.  */
12866#ifdef __cplusplus
12867extern "C"
12868#endif
12869char dlopen ();
12870int
12871main ()
12872{
12873return dlopen ();
12874  ;
12875  return 0;
12876}
12877_ACEOF
12878if ac_fn_c_try_link "$LINENO"; then :
12879  ac_cv_lib_svld_dlopen=yes
12880else
12881  ac_cv_lib_svld_dlopen=no
12882fi
12883rm -f core conftest.err conftest.$ac_objext \
12884    conftest$ac_exeext conftest.$ac_ext
12885LIBS=$ac_check_lib_save_LIBS
12886fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12888$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12889if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12890  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12891else
12892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12893$as_echo_n "checking for dld_link in -ldld... " >&6; }
12894if ${ac_cv_lib_dld_dld_link+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  ac_check_lib_save_LIBS=$LIBS
12898LIBS="-ldld  $LIBS"
12899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h.  */
12901
12902/* Override any GCC internal prototype to avoid an error.
12903   Use char because int might match the return type of a GCC
12904   builtin and then its argument prototype would still apply.  */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908char dld_link ();
12909int
12910main ()
12911{
12912return dld_link ();
12913  ;
12914  return 0;
12915}
12916_ACEOF
12917if ac_fn_c_try_link "$LINENO"; then :
12918  ac_cv_lib_dld_dld_link=yes
12919else
12920  ac_cv_lib_dld_dld_link=no
12921fi
12922rm -f core conftest.err conftest.$ac_objext \
12923    conftest$ac_exeext conftest.$ac_ext
12924LIBS=$ac_check_lib_save_LIBS
12925fi
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12927$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12928if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12929  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12930fi
12931
12932
12933fi
12934
12935
12936fi
12937
12938
12939fi
12940
12941
12942fi
12943
12944
12945fi
12946
12947    ;;
12948  esac
12949
12950  if test no = "$lt_cv_dlopen"; then
12951    enable_dlopen=no
12952  else
12953    enable_dlopen=yes
12954  fi
12955
12956  case $lt_cv_dlopen in
12957  dlopen)
12958    save_CPPFLAGS=$CPPFLAGS
12959    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12960
12961    save_LDFLAGS=$LDFLAGS
12962    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12963
12964    save_LIBS=$LIBS
12965    LIBS="$lt_cv_dlopen_libs $LIBS"
12966
12967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12968$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12969if ${lt_cv_dlopen_self+:} false; then :
12970  $as_echo_n "(cached) " >&6
12971else
12972  	  if test yes = "$cross_compiling"; then :
12973  lt_cv_dlopen_self=cross
12974else
12975  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12976  lt_status=$lt_dlunknown
12977  cat > conftest.$ac_ext <<_LT_EOF
12978#line $LINENO "configure"
12979#include "confdefs.h"
12980
12981#if HAVE_DLFCN_H
12982#include <dlfcn.h>
12983#endif
12984
12985#include <stdio.h>
12986
12987#ifdef RTLD_GLOBAL
12988#  define LT_DLGLOBAL		RTLD_GLOBAL
12989#else
12990#  ifdef DL_GLOBAL
12991#    define LT_DLGLOBAL		DL_GLOBAL
12992#  else
12993#    define LT_DLGLOBAL		0
12994#  endif
12995#endif
12996
12997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12998   find out it does not work in some platform. */
12999#ifndef LT_DLLAZY_OR_NOW
13000#  ifdef RTLD_LAZY
13001#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13002#  else
13003#    ifdef DL_LAZY
13004#      define LT_DLLAZY_OR_NOW		DL_LAZY
13005#    else
13006#      ifdef RTLD_NOW
13007#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13008#      else
13009#        ifdef DL_NOW
13010#          define LT_DLLAZY_OR_NOW	DL_NOW
13011#        else
13012#          define LT_DLLAZY_OR_NOW	0
13013#        endif
13014#      endif
13015#    endif
13016#  endif
13017#endif
13018
13019/* When -fvisibility=hidden is used, assume the code has been annotated
13020   correspondingly for the symbols needed.  */
13021#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13022int fnord () __attribute__((visibility("default")));
13023#endif
13024
13025int fnord () { return 42; }
13026int main ()
13027{
13028  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13029  int status = $lt_dlunknown;
13030
13031  if (self)
13032    {
13033      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13034      else
13035        {
13036	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13037          else puts (dlerror ());
13038	}
13039      /* dlclose (self); */
13040    }
13041  else
13042    puts (dlerror ());
13043
13044  return status;
13045}
13046_LT_EOF
13047  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13048  (eval $ac_link) 2>&5
13049  ac_status=$?
13050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13051  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13052    (./conftest; exit; ) >&5 2>/dev/null
13053    lt_status=$?
13054    case x$lt_status in
13055      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13056      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13057      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13058    esac
13059  else :
13060    # compilation failed
13061    lt_cv_dlopen_self=no
13062  fi
13063fi
13064rm -fr conftest*
13065
13066
13067fi
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13069$as_echo "$lt_cv_dlopen_self" >&6; }
13070
13071    if test yes = "$lt_cv_dlopen_self"; then
13072      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13073      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13074$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13075if ${lt_cv_dlopen_self_static+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078  	  if test yes = "$cross_compiling"; then :
13079  lt_cv_dlopen_self_static=cross
13080else
13081  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13082  lt_status=$lt_dlunknown
13083  cat > conftest.$ac_ext <<_LT_EOF
13084#line $LINENO "configure"
13085#include "confdefs.h"
13086
13087#if HAVE_DLFCN_H
13088#include <dlfcn.h>
13089#endif
13090
13091#include <stdio.h>
13092
13093#ifdef RTLD_GLOBAL
13094#  define LT_DLGLOBAL		RTLD_GLOBAL
13095#else
13096#  ifdef DL_GLOBAL
13097#    define LT_DLGLOBAL		DL_GLOBAL
13098#  else
13099#    define LT_DLGLOBAL		0
13100#  endif
13101#endif
13102
13103/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13104   find out it does not work in some platform. */
13105#ifndef LT_DLLAZY_OR_NOW
13106#  ifdef RTLD_LAZY
13107#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13108#  else
13109#    ifdef DL_LAZY
13110#      define LT_DLLAZY_OR_NOW		DL_LAZY
13111#    else
13112#      ifdef RTLD_NOW
13113#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13114#      else
13115#        ifdef DL_NOW
13116#          define LT_DLLAZY_OR_NOW	DL_NOW
13117#        else
13118#          define LT_DLLAZY_OR_NOW	0
13119#        endif
13120#      endif
13121#    endif
13122#  endif
13123#endif
13124
13125/* When -fvisibility=hidden is used, assume the code has been annotated
13126   correspondingly for the symbols needed.  */
13127#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13128int fnord () __attribute__((visibility("default")));
13129#endif
13130
13131int fnord () { return 42; }
13132int main ()
13133{
13134  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13135  int status = $lt_dlunknown;
13136
13137  if (self)
13138    {
13139      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13140      else
13141        {
13142	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13143          else puts (dlerror ());
13144	}
13145      /* dlclose (self); */
13146    }
13147  else
13148    puts (dlerror ());
13149
13150  return status;
13151}
13152_LT_EOF
13153  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13154  (eval $ac_link) 2>&5
13155  ac_status=$?
13156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13157  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13158    (./conftest; exit; ) >&5 2>/dev/null
13159    lt_status=$?
13160    case x$lt_status in
13161      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13162      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13163      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13164    esac
13165  else :
13166    # compilation failed
13167    lt_cv_dlopen_self_static=no
13168  fi
13169fi
13170rm -fr conftest*
13171
13172
13173fi
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13175$as_echo "$lt_cv_dlopen_self_static" >&6; }
13176    fi
13177
13178    CPPFLAGS=$save_CPPFLAGS
13179    LDFLAGS=$save_LDFLAGS
13180    LIBS=$save_LIBS
13181    ;;
13182  esac
13183
13184  case $lt_cv_dlopen_self in
13185  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13186  *) enable_dlopen_self=unknown ;;
13187  esac
13188
13189  case $lt_cv_dlopen_self_static in
13190  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13191  *) enable_dlopen_self_static=unknown ;;
13192  esac
13193fi
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211striplib=
13212old_striplib=
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13214$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13215if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13216  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13217  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13219$as_echo "yes" >&6; }
13220else
13221# FIXME - insert some real tests, host_os isn't really good enough
13222  case $host_os in
13223  darwin*)
13224    if test -n "$STRIP"; then
13225      striplib="$STRIP -x"
13226      old_striplib="$STRIP -S"
13227      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13228$as_echo "yes" >&6; }
13229    else
13230      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232    fi
13233    ;;
13234  *)
13235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236$as_echo "no" >&6; }
13237    ;;
13238  esac
13239fi
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252  # Report what library types will actually be built
13253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13254$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13256$as_echo "$can_build_shared" >&6; }
13257
13258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13259$as_echo_n "checking whether to build shared libraries... " >&6; }
13260  test no = "$can_build_shared" && enable_shared=no
13261
13262  # On AIX, shared libraries and static libraries use the same namespace, and
13263  # are all built from PIC.
13264  case $host_os in
13265  aix3*)
13266    test yes = "$enable_shared" && enable_static=no
13267    if test -n "$RANLIB"; then
13268      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13269      postinstall_cmds='$RANLIB $lib'
13270    fi
13271    ;;
13272
13273  aix[4-9]*)
13274    if test ia64 != "$host_cpu"; then
13275      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13276      yes,aix,yes) ;;			# shared object as lib.so file only
13277      yes,svr4,*) ;;			# shared object as lib.so archive member only
13278      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13279      esac
13280    fi
13281    ;;
13282  esac
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13284$as_echo "$enable_shared" >&6; }
13285
13286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13287$as_echo_n "checking whether to build static libraries... " >&6; }
13288  # Make sure either enable_shared or enable_static is yes.
13289  test yes = "$enable_shared" || enable_static=yes
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13291$as_echo "$enable_static" >&6; }
13292
13293
13294
13295
13296fi
13297ac_ext=c
13298ac_cpp='$CPP $CPPFLAGS'
13299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13301ac_compiler_gnu=$ac_cv_c_compiler_gnu
13302
13303CC=$lt_save_CC
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319        ac_config_commands="$ac_config_commands libtool"
13320
13321
13322
13323
13324# Only expand once:
13325
13326
13327
13328
13329AM_CPPFLAGS='-I$(top_srcdir)/include -I$(top_builddir)/include'
13330
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13332$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13333if ${ac_cv_header_time+:} false; then :
13334  $as_echo_n "(cached) " >&6
13335else
13336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338#include <sys/types.h>
13339#include <sys/time.h>
13340#include <time.h>
13341
13342int
13343main ()
13344{
13345if ((struct tm *) 0)
13346return 0;
13347  ;
13348  return 0;
13349}
13350_ACEOF
13351if ac_fn_c_try_compile "$LINENO"; then :
13352  ac_cv_header_time=yes
13353else
13354  ac_cv_header_time=no
13355fi
13356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13359$as_echo "$ac_cv_header_time" >&6; }
13360if test $ac_cv_header_time = yes; then
13361
13362$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13363
13364fi
13365
13366ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "#include <sys/time.h>
13367    #include <time.h>
13368"
13369if test "x$ac_cv_type_struct_timeval" = xyes; then :
13370
13371cat >>confdefs.h <<_ACEOF
13372#define HAVE_STRUCT_TIMEVAL 1
13373_ACEOF
13374
13375
13376fi
13377
13378rm -f include/inttypes.h
13379    ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13380if test "x$ac_cv_header_inttypes_h" = xyes; then :
13381
13382else
13383  # ------ AX CREATE STDINT H -------------------------------------
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13385$as_echo_n "checking for stdint types... " >&6; }
13386ac_stdint_h=`echo include/inttypes.h`
13387# try to shortcircuit - if the default include path of the compiler
13388# can find a "stdint.h" header then we assume that all compilers can.
13389if ${ac_cv_header_stdint_t+:} false; then :
13390  $as_echo_n "(cached) " >&6
13391else
13392
13393old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13394old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13395old_CFLAGS="$CFLAGS"     ; CFLAGS=""
13396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397/* end confdefs.h.  */
13398#include <stdint.h>
13399int
13400main ()
13401{
13402int_least32_t v = 0;
13403  ;
13404  return 0;
13405}
13406_ACEOF
13407if ac_fn_c_try_compile "$LINENO"; then :
13408  ac_cv_stdint_result="(assuming C99 compatible system)"
13409 ac_cv_header_stdint_t="stdint.h";
13410else
13411  ac_cv_header_stdint_t=""
13412fi
13413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414CXXFLAGS="$old_CXXFLAGS"
13415CPPFLAGS="$old_CPPFLAGS"
13416CFLAGS="$old_CFLAGS"
13417fi
13418
13419
13420v="... $ac_cv_header_stdint_h"
13421if test "$ac_stdint_h" = "stdint.h" ; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13423$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13424elif test "$ac_stdint_h" = "inttypes.h" ; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13426$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13427elif test "_$ac_cv_header_stdint_t" = "_" ; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
13429$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
13430else
13431 ac_cv_header_stdint="$ac_cv_header_stdint_t"
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
13433$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
13434fi
13435
13436if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
13437
13438
13439inttype_headers=`echo  | sed -e 's/,/ /g'`
13440
13441ac_cv_stdint_result="(no helpful system typedefs seen)"
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13443$as_echo_n "checking for stdint uintptr_t... " >&6; }
13444if ${ac_cv_header_stdint_x+:} false; then :
13445  $as_echo_n "(cached) " >&6
13446else
13447
13448 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
13449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13450$as_echo "(..)" >&6; }
13451  for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
13452   unset ac_cv_type_uintptr_t
13453   unset ac_cv_type_uint64_t
13454   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
13455"
13456if test "x$ac_cv_type_uintptr_t" = xyes; then :
13457  ac_cv_header_stdint_x=$i
13458else
13459       continue
13460fi
13461
13462   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13463"
13464if test "x$ac_cv_type_uint64_t" = xyes; then :
13465  and64="/uint64_t"
13466else
13467  and64=""
13468fi
13469
13470   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
13471   break;
13472  done
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13474$as_echo_n "checking for stdint uintptr_t... " >&6; }
13475
13476fi
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
13478$as_echo "$ac_cv_header_stdint_x" >&6; }
13479
13480if test "_$ac_cv_header_stdint_x" = "_" ; then
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13482$as_echo_n "checking for stdint uint32_t... " >&6; }
13483if ${ac_cv_header_stdint_o+:} false; then :
13484  $as_echo_n "(cached) " >&6
13485else
13486
13487 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
13488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13489$as_echo "(..)" >&6; }
13490  for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
13491   unset ac_cv_type_uint32_t
13492   unset ac_cv_type_uint64_t
13493   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
13494"
13495if test "x$ac_cv_type_uint32_t" = xyes; then :
13496  ac_cv_header_stdint_o=$i
13497else
13498       continue
13499fi
13500
13501   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13502"
13503if test "x$ac_cv_type_uint64_t" = xyes; then :
13504  and64="/uint64_t"
13505else
13506  and64=""
13507fi
13508
13509   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
13510   break;
13511  done
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13513$as_echo_n "checking for stdint uint32_t... " >&6; }
13514
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
13517$as_echo "$ac_cv_header_stdint_o" >&6; }
13518fi
13519
13520if test "_$ac_cv_header_stdint_x" = "_" ; then
13521if test "_$ac_cv_header_stdint_o" = "_" ; then
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13523$as_echo_n "checking for stdint u_int32_t... " >&6; }
13524if ${ac_cv_header_stdint_u+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527
13528 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
13529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13530$as_echo "(..)" >&6; }
13531  for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
13532   unset ac_cv_type_u_int32_t
13533   unset ac_cv_type_u_int64_t
13534   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
13535"
13536if test "x$ac_cv_type_u_int32_t" = xyes; then :
13537  ac_cv_header_stdint_u=$i
13538else
13539       continue
13540fi
13541
13542   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
13543"
13544if test "x$ac_cv_type_u_int64_t" = xyes; then :
13545  and64="/u_int64_t"
13546else
13547  and64=""
13548fi
13549
13550   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
13551   break;
13552  done
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13554$as_echo_n "checking for stdint u_int32_t... " >&6; }
13555
13556fi
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
13558$as_echo "$ac_cv_header_stdint_u" >&6; }
13559fi fi
13560
13561if test "_$ac_cv_header_stdint_x" = "_" ; then
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
13563$as_echo_n "checking for stdint datatype model... " >&6; }
13564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13565$as_echo "(..)" >&6; }
13566   # The cast to long int works around a bug in the HP C Compiler
13567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13569# This bug is HP SR number 8606223364.
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13571$as_echo_n "checking size of char... " >&6; }
13572if ${ac_cv_sizeof_char+:} false; then :
13573  $as_echo_n "(cached) " >&6
13574else
13575  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13576
13577else
13578  if test "$ac_cv_type_char" = yes; then
13579     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13581as_fn_error 77 "cannot compute sizeof (char)
13582See \`config.log' for more details" "$LINENO" 5; }
13583   else
13584     ac_cv_sizeof_char=0
13585   fi
13586fi
13587
13588fi
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13590$as_echo "$ac_cv_sizeof_char" >&6; }
13591
13592
13593
13594cat >>confdefs.h <<_ACEOF
13595#define SIZEOF_CHAR $ac_cv_sizeof_char
13596_ACEOF
13597
13598
13599   # The cast to long int works around a bug in the HP C Compiler
13600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13602# This bug is HP SR number 8606223364.
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13604$as_echo_n "checking size of short... " >&6; }
13605if ${ac_cv_sizeof_short+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13609
13610else
13611  if test "$ac_cv_type_short" = yes; then
13612     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13614as_fn_error 77 "cannot compute sizeof (short)
13615See \`config.log' for more details" "$LINENO" 5; }
13616   else
13617     ac_cv_sizeof_short=0
13618   fi
13619fi
13620
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13623$as_echo "$ac_cv_sizeof_short" >&6; }
13624
13625
13626
13627cat >>confdefs.h <<_ACEOF
13628#define SIZEOF_SHORT $ac_cv_sizeof_short
13629_ACEOF
13630
13631
13632   # The cast to long int works around a bug in the HP C Compiler
13633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13635# This bug is HP SR number 8606223364.
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13637$as_echo_n "checking size of int... " >&6; }
13638if ${ac_cv_sizeof_int+:} false; then :
13639  $as_echo_n "(cached) " >&6
13640else
13641  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13642
13643else
13644  if test "$ac_cv_type_int" = yes; then
13645     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13647as_fn_error 77 "cannot compute sizeof (int)
13648See \`config.log' for more details" "$LINENO" 5; }
13649   else
13650     ac_cv_sizeof_int=0
13651   fi
13652fi
13653
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13656$as_echo "$ac_cv_sizeof_int" >&6; }
13657
13658
13659
13660cat >>confdefs.h <<_ACEOF
13661#define SIZEOF_INT $ac_cv_sizeof_int
13662_ACEOF
13663
13664
13665   # The cast to long int works around a bug in the HP C Compiler
13666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13668# This bug is HP SR number 8606223364.
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13670$as_echo_n "checking size of long... " >&6; }
13671if ${ac_cv_sizeof_long+:} false; then :
13672  $as_echo_n "(cached) " >&6
13673else
13674  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13675
13676else
13677  if test "$ac_cv_type_long" = yes; then
13678     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13680as_fn_error 77 "cannot compute sizeof (long)
13681See \`config.log' for more details" "$LINENO" 5; }
13682   else
13683     ac_cv_sizeof_long=0
13684   fi
13685fi
13686
13687fi
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13689$as_echo "$ac_cv_sizeof_long" >&6; }
13690
13691
13692
13693cat >>confdefs.h <<_ACEOF
13694#define SIZEOF_LONG $ac_cv_sizeof_long
13695_ACEOF
13696
13697
13698   # The cast to long int works around a bug in the HP C Compiler
13699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13701# This bug is HP SR number 8606223364.
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13703$as_echo_n "checking size of void*... " >&6; }
13704if ${ac_cv_sizeof_voidp+:} false; then :
13705  $as_echo_n "(cached) " >&6
13706else
13707  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
13708
13709else
13710  if test "$ac_cv_type_voidp" = yes; then
13711     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13713as_fn_error 77 "cannot compute sizeof (void*)
13714See \`config.log' for more details" "$LINENO" 5; }
13715   else
13716     ac_cv_sizeof_voidp=0
13717   fi
13718fi
13719
13720fi
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13722$as_echo "$ac_cv_sizeof_voidp" >&6; }
13723
13724
13725
13726cat >>confdefs.h <<_ACEOF
13727#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13728_ACEOF
13729
13730
13731   ac_cv_stdint_char_model=""
13732   ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
13733   ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
13734   ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
13735   ac_cv_stdint_long_model=""
13736   ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
13737   ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
13738   ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
13739   name="$ac_cv_stdint_long_model"
13740   case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
13741    122/242)     name="$name,  IP16 (standard 16bit machine)" ;;
13742    122/244)     name="$name,  LP32 (standard 32bit mac/win)" ;;
13743    122/*)       name="$name        (unusual int16 model)" ;;
13744    124/444)     name="$name, ILP32 (standard 32bit unixish)" ;;
13745    124/488)     name="$name,  LP64 (standard 64bit unixish)" ;;
13746    124/448)     name="$name, LLP64 (unusual  64bit unixish)" ;;
13747    124/*)       name="$name        (unusual int32 model)" ;;
13748    128/888)     name="$name, ILP64 (unusual  64bit numeric)" ;;
13749    128/*)       name="$name        (unusual int64 model)" ;;
13750    222/*|444/*) name="$name        (unusual dsptype)" ;;
13751     *)          name="$name        (very unusal model)" ;;
13752   esac
13753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model...  $name" >&5
13754$as_echo "combined for stdint datatype model...  $name" >&6; }
13755fi
13756
13757if test "_$ac_cv_header_stdint_x" != "_" ; then
13758   ac_cv_header_stdint="$ac_cv_header_stdint_x"
13759elif  test "_$ac_cv_header_stdint_o" != "_" ; then
13760   ac_cv_header_stdint="$ac_cv_header_stdint_o"
13761elif  test "_$ac_cv_header_stdint_u" != "_" ; then
13762   ac_cv_header_stdint="$ac_cv_header_stdint_u"
13763else
13764   ac_cv_header_stdint="stddef.h"
13765fi
13766
13767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
13768$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
13770$as_echo "($ac_cv_header_stdint)" >&6; }
13771unset ac_cv_type_int_least32_t
13772unset ac_cv_type_int_fast32_t
13773ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
13774"
13775if test "x$ac_cv_type_int_least32_t" = xyes; then :
13776
13777fi
13778
13779ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
13780"
13781if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13782
13783fi
13784
13785ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
13786"
13787if test "x$ac_cv_type_intmax_t" = xyes; then :
13788
13789fi
13790
13791
13792fi # shortcircut to system "stdint.h"
13793# ------------------ PREPARE VARIABLES ------------------------------
13794if test "$GCC" = "yes" ; then
13795ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
13796else
13797ac_cv_stdint_message="using $CC"
13798fi
13799
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
13801$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
13802
13803# ----------------- DONE inttypes.h checks START header -------------
13804ac_config_commands="$ac_config_commands $ac_stdint_h"
13805
13806
13807fi
13808
13809
13810
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13812$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13813if ${ac_cv_c_const+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818
13819int
13820main ()
13821{
13822
13823#ifndef __cplusplus
13824  /* Ultrix mips cc rejects this sort of thing.  */
13825  typedef int charset[2];
13826  const charset cs = { 0, 0 };
13827  /* SunOS 4.1.1 cc rejects this.  */
13828  char const *const *pcpcc;
13829  char **ppc;
13830  /* NEC SVR4.0.2 mips cc rejects this.  */
13831  struct point {int x, y;};
13832  static struct point const zero = {0,0};
13833  /* AIX XL C 1.02.0.0 rejects this.
13834     It does not let you subtract one const X* pointer from another in
13835     an arm of an if-expression whose if-part is not a constant
13836     expression */
13837  const char *g = "string";
13838  pcpcc = &g + (g ? g-g : 0);
13839  /* HPUX 7.0 cc rejects these. */
13840  ++pcpcc;
13841  ppc = (char**) pcpcc;
13842  pcpcc = (char const *const *) ppc;
13843  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13844    char tx;
13845    char *t = &tx;
13846    char const *s = 0 ? (char *) 0 : (char const *) 0;
13847
13848    *t++ = 0;
13849    if (s) return 0;
13850  }
13851  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13852    int x[] = {25, 17};
13853    const int *foo = &x[0];
13854    ++foo;
13855  }
13856  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13857    typedef const int *iptr;
13858    iptr p = 0;
13859    ++p;
13860  }
13861  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13862       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13863    struct s { int j; const int *ap[3]; } bx;
13864    struct s *b = &bx; b->j = 5;
13865  }
13866  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13867    const int foo = 10;
13868    if (!foo) return 0;
13869  }
13870  return !cs[0] && !zero.x;
13871#endif
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_c_try_compile "$LINENO"; then :
13878  ac_cv_c_const=yes
13879else
13880  ac_cv_c_const=no
13881fi
13882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883fi
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13885$as_echo "$ac_cv_c_const" >&6; }
13886if test $ac_cv_c_const = no; then
13887
13888$as_echo "#define const /**/" >>confdefs.h
13889
13890fi
13891
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for restrict" >&5
13893$as_echo_n "checking for restrict... " >&6; }
13894    ac_cv_c_restrict=no
13895    for ac_kw in restrict __restrict__ __restrict; do
13896        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897/* end confdefs.h.  */
13898
13899int
13900main ()
13901{
13902char * $ac_kw p;
13903  ;
13904  return 0;
13905}
13906_ACEOF
13907if ac_fn_c_try_compile "$LINENO"; then :
13908  ac_cv_c_restrict=$ac_kw; break
13909fi
13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911    done
13912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13913$as_echo "$ac_cv_c_restrict" >&6; }
13914    case $ac_cv_c_restrict in
13915        restrict) ;;
13916        no)
13917$as_echo "#define restrict /**/" >>confdefs.h
13918 ;;
13919        *)      cat >>confdefs.h <<_ACEOF
13920#define restrict $ac_cv_c_restrict
13921_ACEOF
13922 ;;
13923    esac
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
13925$as_echo_n "checking for __builtin_expect... " >&6; }
13926if ${ac_cv_builtin_expect+:} false; then :
13927  $as_echo_n "(cached) " >&6
13928else
13929  cat > conftest.c <<EOF
13930#line 13930 "configure"
13931int foo (int a)
13932{
13933    a = __builtin_expect (a, 10);
13934    return a == 10 ? 0 : 1;
13935}
13936EOF
13937        if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
13938            -o conftest conftest.c -lgcc >&5'
13939  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13940  (eval $ac_try) 2>&5
13941  ac_status=$?
13942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943  test $ac_status = 0; }; }; then
13944            ac_cv_builtin_expect=yes
13945        else
13946            ac_cv_builtin_expect=no
13947        fi
13948        rm -f conftest*
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_expect" >&5
13951$as_echo "$ac_cv_builtin_expect" >&6; }
13952    if test x"$ac_cv_builtin_expect" = x"yes"; then
13953
13954$as_echo "#define HAVE_BUILTIN_EXPECT /**/" >>confdefs.h
13955
13956    fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13958$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13959if ${ac_cv_c_bigendian+:} false; then :
13960  $as_echo_n "(cached) " >&6
13961else
13962  ac_cv_c_bigendian=unknown
13963    # See if we're dealing with a universal compiler.
13964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966#ifndef __APPLE_CC__
13967	       not a universal capable compiler
13968	     #endif
13969	     typedef int dummy;
13970
13971_ACEOF
13972if ac_fn_c_try_compile "$LINENO"; then :
13973
13974	# Check for potential -arch flags.  It is not universal unless
13975	# there are at least two -arch flags with different values.
13976	ac_arch=
13977	ac_prev=
13978	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13979	 if test -n "$ac_prev"; then
13980	   case $ac_word in
13981	     i?86 | x86_64 | ppc | ppc64)
13982	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13983		 ac_arch=$ac_word
13984	       else
13985		 ac_cv_c_bigendian=universal
13986		 break
13987	       fi
13988	       ;;
13989	   esac
13990	   ac_prev=
13991	 elif test "x$ac_word" = "x-arch"; then
13992	   ac_prev=arch
13993	 fi
13994       done
13995fi
13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997    if test $ac_cv_c_bigendian = unknown; then
13998      # See if sys/param.h defines the BYTE_ORDER macro.
13999      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000/* end confdefs.h.  */
14001#include <sys/types.h>
14002	     #include <sys/param.h>
14003
14004int
14005main ()
14006{
14007#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14008		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14009		     && LITTLE_ENDIAN)
14010	      bogus endian macros
14011	     #endif
14012
14013  ;
14014  return 0;
14015}
14016_ACEOF
14017if ac_fn_c_try_compile "$LINENO"; then :
14018  # It does; now see whether it defined to BIG_ENDIAN or not.
14019	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020/* end confdefs.h.  */
14021#include <sys/types.h>
14022		#include <sys/param.h>
14023
14024int
14025main ()
14026{
14027#if BYTE_ORDER != BIG_ENDIAN
14028		 not big endian
14029		#endif
14030
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035if ac_fn_c_try_compile "$LINENO"; then :
14036  ac_cv_c_bigendian=yes
14037else
14038  ac_cv_c_bigendian=no
14039fi
14040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041fi
14042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043    fi
14044    if test $ac_cv_c_bigendian = unknown; then
14045      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14046      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047/* end confdefs.h.  */
14048#include <limits.h>
14049
14050int
14051main ()
14052{
14053#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14054	      bogus endian macros
14055	     #endif
14056
14057  ;
14058  return 0;
14059}
14060_ACEOF
14061if ac_fn_c_try_compile "$LINENO"; then :
14062  # It does; now see whether it defined to _BIG_ENDIAN or not.
14063	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064/* end confdefs.h.  */
14065#include <limits.h>
14066
14067int
14068main ()
14069{
14070#ifndef _BIG_ENDIAN
14071		 not big endian
14072		#endif
14073
14074  ;
14075  return 0;
14076}
14077_ACEOF
14078if ac_fn_c_try_compile "$LINENO"; then :
14079  ac_cv_c_bigendian=yes
14080else
14081  ac_cv_c_bigendian=no
14082fi
14083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084fi
14085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086    fi
14087    if test $ac_cv_c_bigendian = unknown; then
14088      # Compile a test program.
14089      if test "$cross_compiling" = yes; then :
14090  # Try to guess by grepping values from an object file.
14091	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093short int ascii_mm[] =
14094		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14095		short int ascii_ii[] =
14096		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14097		int use_ascii (int i) {
14098		  return ascii_mm[i] + ascii_ii[i];
14099		}
14100		short int ebcdic_ii[] =
14101		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14102		short int ebcdic_mm[] =
14103		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14104		int use_ebcdic (int i) {
14105		  return ebcdic_mm[i] + ebcdic_ii[i];
14106		}
14107		extern int foo;
14108
14109int
14110main ()
14111{
14112return use_ascii (foo) == use_ebcdic (foo);
14113  ;
14114  return 0;
14115}
14116_ACEOF
14117if ac_fn_c_try_compile "$LINENO"; then :
14118  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14119	      ac_cv_c_bigendian=yes
14120	    fi
14121	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14122	      if test "$ac_cv_c_bigendian" = unknown; then
14123		ac_cv_c_bigendian=no
14124	      else
14125		# finding both strings is unlikely to happen, but who knows?
14126		ac_cv_c_bigendian=unknown
14127	      fi
14128	    fi
14129fi
14130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131else
14132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133/* end confdefs.h.  */
14134$ac_includes_default
14135int
14136main ()
14137{
14138
14139	     /* Are we little or big endian?  From Harbison&Steele.  */
14140	     union
14141	     {
14142	       long int l;
14143	       char c[sizeof (long int)];
14144	     } u;
14145	     u.l = 1;
14146	     return u.c[sizeof (long int) - 1] == 1;
14147
14148  ;
14149  return 0;
14150}
14151_ACEOF
14152if ac_fn_c_try_run "$LINENO"; then :
14153  ac_cv_c_bigendian=no
14154else
14155  ac_cv_c_bigendian=yes
14156fi
14157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14158  conftest.$ac_objext conftest.beam conftest.$ac_ext
14159fi
14160
14161    fi
14162fi
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14164$as_echo "$ac_cv_c_bigendian" >&6; }
14165 case $ac_cv_c_bigendian in #(
14166   yes)
14167     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14168;; #(
14169   no)
14170      ;; #(
14171   universal)
14172
14173$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14174
14175     ;; #(
14176   *)
14177     as_fn_error $? "unknown endianness
14178 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14179 esac
14180
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14182$as_echo_n "checking for working volatile... " >&6; }
14183if ${ac_cv_c_volatile+:} false; then :
14184  $as_echo_n "(cached) " >&6
14185else
14186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187/* end confdefs.h.  */
14188
14189int
14190main ()
14191{
14192
14193volatile int x;
14194int * volatile y = (int *) 0;
14195return !x && !y;
14196  ;
14197  return 0;
14198}
14199_ACEOF
14200if ac_fn_c_try_compile "$LINENO"; then :
14201  ac_cv_c_volatile=yes
14202else
14203  ac_cv_c_volatile=no
14204fi
14205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206fi
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14208$as_echo "$ac_cv_c_volatile" >&6; }
14209if test $ac_cv_c_volatile = no; then
14210
14211$as_echo "#define volatile /**/" >>confdefs.h
14212
14213fi
14214
14215ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14216if test "x$ac_cv_type_size_t" = xyes; then :
14217
14218else
14219
14220cat >>confdefs.h <<_ACEOF
14221#define size_t unsigned int
14222_ACEOF
14223
14224fi
14225
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14227$as_echo_n "checking return type of signal handlers... " >&6; }
14228if ${ac_cv_type_signal+:} false; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232/* end confdefs.h.  */
14233#include <sys/types.h>
14234#include <signal.h>
14235
14236int
14237main ()
14238{
14239return *(signal (0, 0)) (0) == 1;
14240  ;
14241  return 0;
14242}
14243_ACEOF
14244if ac_fn_c_try_compile "$LINENO"; then :
14245  ac_cv_type_signal=int
14246else
14247  ac_cv_type_signal=void
14248fi
14249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250fi
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14252$as_echo "$ac_cv_type_signal" >&6; }
14253
14254cat >>confdefs.h <<_ACEOF
14255#define RETSIGTYPE $ac_cv_type_signal
14256_ACEOF
14257
14258
14259# Check whether --enable-largefile was given.
14260if test "${enable_largefile+set}" = set; then :
14261  enableval=$enable_largefile;
14262fi
14263
14264if test "$enable_largefile" != no; then
14265
14266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14267$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14268if ${ac_cv_sys_largefile_CC+:} false; then :
14269  $as_echo_n "(cached) " >&6
14270else
14271  ac_cv_sys_largefile_CC=no
14272     if test "$GCC" != yes; then
14273       ac_save_CC=$CC
14274       while :; do
14275	 # IRIX 6.2 and later do not support large files by default,
14276	 # so use the C compiler's -n32 option if that helps.
14277	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h.  */
14279#include <sys/types.h>
14280 /* Check that off_t can represent 2**63 - 1 correctly.
14281    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14282    since some C++ compilers masquerading as C compilers
14283    incorrectly reject 9223372036854775807.  */
14284#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14285  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14286		       && LARGE_OFF_T % 2147483647 == 1)
14287		      ? 1 : -1];
14288int
14289main ()
14290{
14291
14292  ;
14293  return 0;
14294}
14295_ACEOF
14296	 if ac_fn_c_try_compile "$LINENO"; then :
14297  break
14298fi
14299rm -f core conftest.err conftest.$ac_objext
14300	 CC="$CC -n32"
14301	 if ac_fn_c_try_compile "$LINENO"; then :
14302  ac_cv_sys_largefile_CC=' -n32'; break
14303fi
14304rm -f core conftest.err conftest.$ac_objext
14305	 break
14306       done
14307       CC=$ac_save_CC
14308       rm -f conftest.$ac_ext
14309    fi
14310fi
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14312$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14313  if test "$ac_cv_sys_largefile_CC" != no; then
14314    CC=$CC$ac_cv_sys_largefile_CC
14315  fi
14316
14317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14318$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14319if ${ac_cv_sys_file_offset_bits+:} false; then :
14320  $as_echo_n "(cached) " >&6
14321else
14322  while :; do
14323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h.  */
14325#include <sys/types.h>
14326 /* Check that off_t can represent 2**63 - 1 correctly.
14327    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14328    since some C++ compilers masquerading as C compilers
14329    incorrectly reject 9223372036854775807.  */
14330#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14331  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14332		       && LARGE_OFF_T % 2147483647 == 1)
14333		      ? 1 : -1];
14334int
14335main ()
14336{
14337
14338  ;
14339  return 0;
14340}
14341_ACEOF
14342if ac_fn_c_try_compile "$LINENO"; then :
14343  ac_cv_sys_file_offset_bits=no; break
14344fi
14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347/* end confdefs.h.  */
14348#define _FILE_OFFSET_BITS 64
14349#include <sys/types.h>
14350 /* Check that off_t can represent 2**63 - 1 correctly.
14351    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14352    since some C++ compilers masquerading as C compilers
14353    incorrectly reject 9223372036854775807.  */
14354#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14355  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14356		       && LARGE_OFF_T % 2147483647 == 1)
14357		      ? 1 : -1];
14358int
14359main ()
14360{
14361
14362  ;
14363  return 0;
14364}
14365_ACEOF
14366if ac_fn_c_try_compile "$LINENO"; then :
14367  ac_cv_sys_file_offset_bits=64; break
14368fi
14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370  ac_cv_sys_file_offset_bits=unknown
14371  break
14372done
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14375$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14376case $ac_cv_sys_file_offset_bits in #(
14377  no | unknown) ;;
14378  *)
14379cat >>confdefs.h <<_ACEOF
14380#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14381_ACEOF
14382;;
14383esac
14384rm -rf conftest*
14385  if test $ac_cv_sys_file_offset_bits = unknown; then
14386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14387$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14388if ${ac_cv_sys_large_files+:} false; then :
14389  $as_echo_n "(cached) " >&6
14390else
14391  while :; do
14392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h.  */
14394#include <sys/types.h>
14395 /* Check that off_t can represent 2**63 - 1 correctly.
14396    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14397    since some C++ compilers masquerading as C compilers
14398    incorrectly reject 9223372036854775807.  */
14399#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14400  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14401		       && LARGE_OFF_T % 2147483647 == 1)
14402		      ? 1 : -1];
14403int
14404main ()
14405{
14406
14407  ;
14408  return 0;
14409}
14410_ACEOF
14411if ac_fn_c_try_compile "$LINENO"; then :
14412  ac_cv_sys_large_files=no; break
14413fi
14414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h.  */
14417#define _LARGE_FILES 1
14418#include <sys/types.h>
14419 /* Check that off_t can represent 2**63 - 1 correctly.
14420    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14421    since some C++ compilers masquerading as C compilers
14422    incorrectly reject 9223372036854775807.  */
14423#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14424  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14425		       && LARGE_OFF_T % 2147483647 == 1)
14426		      ? 1 : -1];
14427int
14428main ()
14429{
14430
14431  ;
14432  return 0;
14433}
14434_ACEOF
14435if ac_fn_c_try_compile "$LINENO"; then :
14436  ac_cv_sys_large_files=1; break
14437fi
14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439  ac_cv_sys_large_files=unknown
14440  break
14441done
14442fi
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14444$as_echo "$ac_cv_sys_large_files" >&6; }
14445case $ac_cv_sys_large_files in #(
14446  no | unknown) ;;
14447  *)
14448cat >>confdefs.h <<_ACEOF
14449#define _LARGE_FILES $ac_cv_sys_large_files
14450_ACEOF
14451;;
14452esac
14453rm -rf conftest*
14454  fi
14455
14456
14457fi
14458
14459
14460for ac_func in gettimeofday ftime
14461do :
14462  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14463ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14464if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14465  cat >>confdefs.h <<_ACEOF
14466#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14467_ACEOF
14468
14469fi
14470done
14471
14472
14473case "$target" in
14474    i?86-*|k?-*)
14475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports -prefer-non-pic flag" >&5
14476$as_echo_n "checking if libtool supports -prefer-non-pic flag... " >&6; }
14477    mkdir ac_test_libtool; cd ac_test_libtool; ac_cv_libtool_non_pic=no
14478    echo "int g (int i); static int h (int i) {return g (i);} int f (int i) {return h (i);}" >f.c
14479    echo "int (* hook) (int) = 0; int g (int i) {if (hook) i = hook (i); return i + 1;}" >g.c
14480    ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \
14481                -c f.c >/dev/null 2>&1 && \
14482        ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \
14483                -c g.c >/dev/null 2>&1 && \
14484        ../libtool --mode=link $CC $CFLAGS -prefer-non-pic -o libfoo.la \
14485                -rpath / f.lo g.lo >/dev/null 2>&1 &&
14486        ac_cv_libtool_non_pic=yes
14487    cd ..; rm -fr ac_test_libtool; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtool_non_pic" >&5
14488$as_echo "$ac_cv_libtool_non_pic" >&6; }
14489    if test x"$ac_cv_libtool_non_pic" = x"yes"; then
14490        LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS -prefer-non-pic"
14491    else
14492        :
14493    fi
14494  ;;
14495esac
14496
14497
14498# Check whether --enable-accel-detect was given.
14499if test "${enable_accel_detect+set}" = set; then :
14500  enableval=$enable_accel_detect;
14501fi
14502
14503if test x"$enable_accel_detect" != x"no"; then
14504
14505$as_echo "#define ACCEL_DETECT /**/" >>confdefs.h
14506
14507fi
14508
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14510$as_echo_n "checking for X... " >&6; }
14511
14512
14513# Check whether --with-x was given.
14514if test "${with_x+set}" = set; then :
14515  withval=$with_x;
14516fi
14517
14518# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14519if test "x$with_x" = xno; then
14520  # The user explicitly disabled X.
14521  have_x=disabled
14522else
14523  case $x_includes,$x_libraries in #(
14524    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14525    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14526  $as_echo_n "(cached) " >&6
14527else
14528  # One or both of the vars are not set, and there is no cached value.
14529ac_x_includes=no ac_x_libraries=no
14530rm -f -r conftest.dir
14531if mkdir conftest.dir; then
14532  cd conftest.dir
14533  cat >Imakefile <<'_ACEOF'
14534incroot:
14535	@echo incroot='${INCROOT}'
14536usrlibdir:
14537	@echo usrlibdir='${USRLIBDIR}'
14538libdir:
14539	@echo libdir='${LIBDIR}'
14540_ACEOF
14541  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14542    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14543    for ac_var in incroot usrlibdir libdir; do
14544      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14545    done
14546    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14547    for ac_extension in a so sl dylib la dll; do
14548      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14549	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14550	ac_im_usrlibdir=$ac_im_libdir; break
14551      fi
14552    done
14553    # Screen out bogus values from the imake configuration.  They are
14554    # bogus both because they are the default anyway, and because
14555    # using them would break gcc on systems where it needs fixed includes.
14556    case $ac_im_incroot in
14557	/usr/include) ac_x_includes= ;;
14558	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14559    esac
14560    case $ac_im_usrlibdir in
14561	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
14562	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14563    esac
14564  fi
14565  cd ..
14566  rm -f -r conftest.dir
14567fi
14568
14569# Standard set of common directories for X headers.
14570# Check X11 before X11Rn because it is often a symlink to the current release.
14571ac_x_header_dirs='
14572/usr/X11/include
14573/usr/X11R7/include
14574/usr/X11R6/include
14575/usr/X11R5/include
14576/usr/X11R4/include
14577
14578/usr/include/X11
14579/usr/include/X11R7
14580/usr/include/X11R6
14581/usr/include/X11R5
14582/usr/include/X11R4
14583
14584/usr/local/X11/include
14585/usr/local/X11R7/include
14586/usr/local/X11R6/include
14587/usr/local/X11R5/include
14588/usr/local/X11R4/include
14589
14590/usr/local/include/X11
14591/usr/local/include/X11R7
14592/usr/local/include/X11R6
14593/usr/local/include/X11R5
14594/usr/local/include/X11R4
14595
14596/usr/X386/include
14597/usr/x386/include
14598/usr/XFree86/include/X11
14599
14600/usr/include
14601/usr/local/include
14602/usr/unsupported/include
14603/usr/athena/include
14604/usr/local/x11r5/include
14605/usr/lpp/Xamples/include
14606
14607/usr/openwin/include
14608/usr/openwin/share/include'
14609
14610if test "$ac_x_includes" = no; then
14611  # Guess where to find include files, by looking for Xlib.h.
14612  # First, try using that file with no special directory specified.
14613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615#include <X11/Xlib.h>
14616_ACEOF
14617if ac_fn_c_try_cpp "$LINENO"; then :
14618  # We can compile using X headers with no special include directory.
14619ac_x_includes=
14620else
14621  for ac_dir in $ac_x_header_dirs; do
14622  if test -r "$ac_dir/X11/Xlib.h"; then
14623    ac_x_includes=$ac_dir
14624    break
14625  fi
14626done
14627fi
14628rm -f conftest.err conftest.i conftest.$ac_ext
14629fi # $ac_x_includes = no
14630
14631if test "$ac_x_libraries" = no; then
14632  # Check for the libraries.
14633  # See if we find them without any special options.
14634  # Don't add to $LIBS permanently.
14635  ac_save_LIBS=$LIBS
14636  LIBS="-lX11 $LIBS"
14637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638/* end confdefs.h.  */
14639#include <X11/Xlib.h>
14640int
14641main ()
14642{
14643XrmInitialize ()
14644  ;
14645  return 0;
14646}
14647_ACEOF
14648if ac_fn_c_try_link "$LINENO"; then :
14649  LIBS=$ac_save_LIBS
14650# We can link X programs with no special library path.
14651ac_x_libraries=
14652else
14653  LIBS=$ac_save_LIBS
14654for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14655do
14656  # Don't even attempt the hair of trying to link an X program!
14657  for ac_extension in a so sl dylib la dll; do
14658    if test -r "$ac_dir/libX11.$ac_extension"; then
14659      ac_x_libraries=$ac_dir
14660      break 2
14661    fi
14662  done
14663done
14664fi
14665rm -f core conftest.err conftest.$ac_objext \
14666    conftest$ac_exeext conftest.$ac_ext
14667fi # $ac_x_libraries = no
14668
14669case $ac_x_includes,$ac_x_libraries in #(
14670  no,* | *,no | *\'*)
14671    # Didn't find X, or a directory has "'" in its name.
14672    ac_cv_have_x="have_x=no";; #(
14673  *)
14674    # Record where we found X for the cache.
14675    ac_cv_have_x="have_x=yes\
14676	ac_x_includes='$ac_x_includes'\
14677	ac_x_libraries='$ac_x_libraries'"
14678esac
14679fi
14680;; #(
14681    *) have_x=yes;;
14682  esac
14683  eval "$ac_cv_have_x"
14684fi # $with_x != no
14685
14686if test "$have_x" != yes; then
14687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14688$as_echo "$have_x" >&6; }
14689  no_x=yes
14690else
14691  # If each of the values was on the command line, it overrides each guess.
14692  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14693  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14694  # Update the cache value to reflect the command line values.
14695  ac_cv_have_x="have_x=yes\
14696	ac_x_includes='$x_includes'\
14697	ac_x_libraries='$x_libraries'"
14698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14699$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14700fi
14701
14702if test "$no_x" = yes; then
14703  # Not all programs may use this symbol, but it does not hurt to define it.
14704
14705$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
14706
14707  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14708else
14709  if test -n "$x_includes"; then
14710    X_CFLAGS="$X_CFLAGS -I$x_includes"
14711  fi
14712
14713  # It would also be nice to do this for all -L options, not just this one.
14714  if test -n "$x_libraries"; then
14715    X_LIBS="$X_LIBS -L$x_libraries"
14716    # For Solaris; some versions of Sun CC require a space after -R and
14717    # others require no space.  Words are not sufficient . . . .
14718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
14719$as_echo_n "checking whether -R must be followed by a space... " >&6; }
14720    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
14721    ac_xsave_c_werror_flag=$ac_c_werror_flag
14722    ac_c_werror_flag=yes
14723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724/* end confdefs.h.  */
14725
14726int
14727main ()
14728{
14729
14730  ;
14731  return 0;
14732}
14733_ACEOF
14734if ac_fn_c_try_link "$LINENO"; then :
14735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736$as_echo "no" >&6; }
14737       X_LIBS="$X_LIBS -R$x_libraries"
14738else
14739  LIBS="$ac_xsave_LIBS -R $x_libraries"
14740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742
14743int
14744main ()
14745{
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_link "$LINENO"; then :
14752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14753$as_echo "yes" >&6; }
14754	  X_LIBS="$X_LIBS -R $x_libraries"
14755else
14756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
14757$as_echo "neither works" >&6; }
14758fi
14759rm -f core conftest.err conftest.$ac_objext \
14760    conftest$ac_exeext conftest.$ac_ext
14761fi
14762rm -f core conftest.err conftest.$ac_objext \
14763    conftest$ac_exeext conftest.$ac_ext
14764    ac_c_werror_flag=$ac_xsave_c_werror_flag
14765    LIBS=$ac_xsave_LIBS
14766  fi
14767
14768  # Check for system-dependent libraries X programs must link with.
14769  # Do this before checking for the system-independent R6 libraries
14770  # (-lICE), since we may need -lsocket or whatever for X linking.
14771
14772  if test "$ISC" = yes; then
14773    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14774  else
14775    # Martyn Johnson says this is needed for Ultrix, if the X
14776    # libraries were built with DECnet support.  And Karl Berry says
14777    # the Alpha needs dnet_stub (dnet does not exist).
14778    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
14779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780/* end confdefs.h.  */
14781
14782/* Override any GCC internal prototype to avoid an error.
14783   Use char because int might match the return type of a GCC
14784   builtin and then its argument prototype would still apply.  */
14785#ifdef __cplusplus
14786extern "C"
14787#endif
14788char XOpenDisplay ();
14789int
14790main ()
14791{
14792return XOpenDisplay ();
14793  ;
14794  return 0;
14795}
14796_ACEOF
14797if ac_fn_c_try_link "$LINENO"; then :
14798
14799else
14800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14801$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14802if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
14803  $as_echo_n "(cached) " >&6
14804else
14805  ac_check_lib_save_LIBS=$LIBS
14806LIBS="-ldnet  $LIBS"
14807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808/* end confdefs.h.  */
14809
14810/* Override any GCC internal prototype to avoid an error.
14811   Use char because int might match the return type of a GCC
14812   builtin and then its argument prototype would still apply.  */
14813#ifdef __cplusplus
14814extern "C"
14815#endif
14816char dnet_ntoa ();
14817int
14818main ()
14819{
14820return dnet_ntoa ();
14821  ;
14822  return 0;
14823}
14824_ACEOF
14825if ac_fn_c_try_link "$LINENO"; then :
14826  ac_cv_lib_dnet_dnet_ntoa=yes
14827else
14828  ac_cv_lib_dnet_dnet_ntoa=no
14829fi
14830rm -f core conftest.err conftest.$ac_objext \
14831    conftest$ac_exeext conftest.$ac_ext
14832LIBS=$ac_check_lib_save_LIBS
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14835$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14836if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
14837  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14838fi
14839
14840    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14841      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14842$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14843if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
14844  $as_echo_n "(cached) " >&6
14845else
14846  ac_check_lib_save_LIBS=$LIBS
14847LIBS="-ldnet_stub  $LIBS"
14848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849/* end confdefs.h.  */
14850
14851/* Override any GCC internal prototype to avoid an error.
14852   Use char because int might match the return type of a GCC
14853   builtin and then its argument prototype would still apply.  */
14854#ifdef __cplusplus
14855extern "C"
14856#endif
14857char dnet_ntoa ();
14858int
14859main ()
14860{
14861return dnet_ntoa ();
14862  ;
14863  return 0;
14864}
14865_ACEOF
14866if ac_fn_c_try_link "$LINENO"; then :
14867  ac_cv_lib_dnet_stub_dnet_ntoa=yes
14868else
14869  ac_cv_lib_dnet_stub_dnet_ntoa=no
14870fi
14871rm -f core conftest.err conftest.$ac_objext \
14872    conftest$ac_exeext conftest.$ac_ext
14873LIBS=$ac_check_lib_save_LIBS
14874fi
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14876$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14877if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
14878  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14879fi
14880
14881    fi
14882fi
14883rm -f core conftest.err conftest.$ac_objext \
14884    conftest$ac_exeext conftest.$ac_ext
14885    LIBS="$ac_xsave_LIBS"
14886
14887    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14888    # to get the SysV transport functions.
14889    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14890    # needs -lnsl.
14891    # The nsl library prevents programs from opening the X display
14892    # on Irix 5.2, according to T.E. Dickey.
14893    # The functions gethostbyname, getservbyname, and inet_addr are
14894    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14895    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14896if test "x$ac_cv_func_gethostbyname" = xyes; then :
14897
14898fi
14899
14900    if test $ac_cv_func_gethostbyname = no; then
14901      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14902$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14903if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14904  $as_echo_n "(cached) " >&6
14905else
14906  ac_check_lib_save_LIBS=$LIBS
14907LIBS="-lnsl  $LIBS"
14908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h.  */
14910
14911/* Override any GCC internal prototype to avoid an error.
14912   Use char because int might match the return type of a GCC
14913   builtin and then its argument prototype would still apply.  */
14914#ifdef __cplusplus
14915extern "C"
14916#endif
14917char gethostbyname ();
14918int
14919main ()
14920{
14921return gethostbyname ();
14922  ;
14923  return 0;
14924}
14925_ACEOF
14926if ac_fn_c_try_link "$LINENO"; then :
14927  ac_cv_lib_nsl_gethostbyname=yes
14928else
14929  ac_cv_lib_nsl_gethostbyname=no
14930fi
14931rm -f core conftest.err conftest.$ac_objext \
14932    conftest$ac_exeext conftest.$ac_ext
14933LIBS=$ac_check_lib_save_LIBS
14934fi
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14936$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14937if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
14938  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14939fi
14940
14941      if test $ac_cv_lib_nsl_gethostbyname = no; then
14942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14943$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14944if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
14945  $as_echo_n "(cached) " >&6
14946else
14947  ac_check_lib_save_LIBS=$LIBS
14948LIBS="-lbsd  $LIBS"
14949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950/* end confdefs.h.  */
14951
14952/* Override any GCC internal prototype to avoid an error.
14953   Use char because int might match the return type of a GCC
14954   builtin and then its argument prototype would still apply.  */
14955#ifdef __cplusplus
14956extern "C"
14957#endif
14958char gethostbyname ();
14959int
14960main ()
14961{
14962return gethostbyname ();
14963  ;
14964  return 0;
14965}
14966_ACEOF
14967if ac_fn_c_try_link "$LINENO"; then :
14968  ac_cv_lib_bsd_gethostbyname=yes
14969else
14970  ac_cv_lib_bsd_gethostbyname=no
14971fi
14972rm -f core conftest.err conftest.$ac_objext \
14973    conftest$ac_exeext conftest.$ac_ext
14974LIBS=$ac_check_lib_save_LIBS
14975fi
14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14977$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14978if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
14979  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14980fi
14981
14982      fi
14983    fi
14984
14985    # lieder@skyler.mavd.honeywell.com says without -lsocket,
14986    # socket/setsockopt and other routines are undefined under SCO ODT
14987    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14988    # on later versions), says Simon Leinen: it contains gethostby*
14989    # variants that don't use the name server (or something).  -lsocket
14990    # must be given before -lnsl if both are needed.  We assume that
14991    # if connect needs -lnsl, so does gethostbyname.
14992    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14993if test "x$ac_cv_func_connect" = xyes; then :
14994
14995fi
14996
14997    if test $ac_cv_func_connect = no; then
14998      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14999$as_echo_n "checking for connect in -lsocket... " >&6; }
15000if ${ac_cv_lib_socket_connect+:} false; then :
15001  $as_echo_n "(cached) " >&6
15002else
15003  ac_check_lib_save_LIBS=$LIBS
15004LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006/* end confdefs.h.  */
15007
15008/* Override any GCC internal prototype to avoid an error.
15009   Use char because int might match the return type of a GCC
15010   builtin and then its argument prototype would still apply.  */
15011#ifdef __cplusplus
15012extern "C"
15013#endif
15014char connect ();
15015int
15016main ()
15017{
15018return connect ();
15019  ;
15020  return 0;
15021}
15022_ACEOF
15023if ac_fn_c_try_link "$LINENO"; then :
15024  ac_cv_lib_socket_connect=yes
15025else
15026  ac_cv_lib_socket_connect=no
15027fi
15028rm -f core conftest.err conftest.$ac_objext \
15029    conftest$ac_exeext conftest.$ac_ext
15030LIBS=$ac_check_lib_save_LIBS
15031fi
15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15033$as_echo "$ac_cv_lib_socket_connect" >&6; }
15034if test "x$ac_cv_lib_socket_connect" = xyes; then :
15035  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15036fi
15037
15038    fi
15039
15040    # Guillermo Gomez says -lposix is necessary on A/UX.
15041    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15042if test "x$ac_cv_func_remove" = xyes; then :
15043
15044fi
15045
15046    if test $ac_cv_func_remove = no; then
15047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15048$as_echo_n "checking for remove in -lposix... " >&6; }
15049if ${ac_cv_lib_posix_remove+:} false; then :
15050  $as_echo_n "(cached) " >&6
15051else
15052  ac_check_lib_save_LIBS=$LIBS
15053LIBS="-lposix  $LIBS"
15054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h.  */
15056
15057/* Override any GCC internal prototype to avoid an error.
15058   Use char because int might match the return type of a GCC
15059   builtin and then its argument prototype would still apply.  */
15060#ifdef __cplusplus
15061extern "C"
15062#endif
15063char remove ();
15064int
15065main ()
15066{
15067return remove ();
15068  ;
15069  return 0;
15070}
15071_ACEOF
15072if ac_fn_c_try_link "$LINENO"; then :
15073  ac_cv_lib_posix_remove=yes
15074else
15075  ac_cv_lib_posix_remove=no
15076fi
15077rm -f core conftest.err conftest.$ac_objext \
15078    conftest$ac_exeext conftest.$ac_ext
15079LIBS=$ac_check_lib_save_LIBS
15080fi
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15082$as_echo "$ac_cv_lib_posix_remove" >&6; }
15083if test "x$ac_cv_lib_posix_remove" = xyes; then :
15084  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15085fi
15086
15087    fi
15088
15089    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15090    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15091if test "x$ac_cv_func_shmat" = xyes; then :
15092
15093fi
15094
15095    if test $ac_cv_func_shmat = no; then
15096      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15097$as_echo_n "checking for shmat in -lipc... " >&6; }
15098if ${ac_cv_lib_ipc_shmat+:} false; then :
15099  $as_echo_n "(cached) " >&6
15100else
15101  ac_check_lib_save_LIBS=$LIBS
15102LIBS="-lipc  $LIBS"
15103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105
15106/* Override any GCC internal prototype to avoid an error.
15107   Use char because int might match the return type of a GCC
15108   builtin and then its argument prototype would still apply.  */
15109#ifdef __cplusplus
15110extern "C"
15111#endif
15112char shmat ();
15113int
15114main ()
15115{
15116return shmat ();
15117  ;
15118  return 0;
15119}
15120_ACEOF
15121if ac_fn_c_try_link "$LINENO"; then :
15122  ac_cv_lib_ipc_shmat=yes
15123else
15124  ac_cv_lib_ipc_shmat=no
15125fi
15126rm -f core conftest.err conftest.$ac_objext \
15127    conftest$ac_exeext conftest.$ac_ext
15128LIBS=$ac_check_lib_save_LIBS
15129fi
15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15131$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15132if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
15133  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15134fi
15135
15136    fi
15137  fi
15138
15139  # Check for libraries that X11R6 Xt/Xaw programs need.
15140  ac_save_LDFLAGS=$LDFLAGS
15141  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15142  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15143  # check for ICE first), but we must link in the order -lSM -lICE or
15144  # we get undefined symbols.  So assume we have SM if we have ICE.
15145  # These have to be linked with before -lX11, unlike the other
15146  # libraries we check for below, so use a different variable.
15147  # John Interrante, Karl Berry
15148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15149$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15150if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
15151  $as_echo_n "(cached) " >&6
15152else
15153  ac_check_lib_save_LIBS=$LIBS
15154LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h.  */
15157
15158/* Override any GCC internal prototype to avoid an error.
15159   Use char because int might match the return type of a GCC
15160   builtin and then its argument prototype would still apply.  */
15161#ifdef __cplusplus
15162extern "C"
15163#endif
15164char IceConnectionNumber ();
15165int
15166main ()
15167{
15168return IceConnectionNumber ();
15169  ;
15170  return 0;
15171}
15172_ACEOF
15173if ac_fn_c_try_link "$LINENO"; then :
15174  ac_cv_lib_ICE_IceConnectionNumber=yes
15175else
15176  ac_cv_lib_ICE_IceConnectionNumber=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext \
15179    conftest$ac_exeext conftest.$ac_ext
15180LIBS=$ac_check_lib_save_LIBS
15181fi
15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15183$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15184if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
15185  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15186fi
15187
15188  LDFLAGS=$ac_save_LDFLAGS
15189
15190fi
15191
15192if test x"$no_x" != x"yes"; then
15193        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5
15194$as_echo_n "checking for XShmCreateImage in -lXext... " >&6; }
15195if ${ac_cv_lib_Xext_XShmCreateImage+:} false; then :
15196  $as_echo_n "(cached) " >&6
15197else
15198  ac_check_lib_save_LIBS=$LIBS
15199LIBS="-lXext $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
15200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201/* end confdefs.h.  */
15202
15203/* Override any GCC internal prototype to avoid an error.
15204   Use char because int might match the return type of a GCC
15205   builtin and then its argument prototype would still apply.  */
15206#ifdef __cplusplus
15207extern "C"
15208#endif
15209char XShmCreateImage ();
15210int
15211main ()
15212{
15213return XShmCreateImage ();
15214  ;
15215  return 0;
15216}
15217_ACEOF
15218if ac_fn_c_try_link "$LINENO"; then :
15219  ac_cv_lib_Xext_XShmCreateImage=yes
15220else
15221  ac_cv_lib_Xext_XShmCreateImage=no
15222fi
15223rm -f core conftest.err conftest.$ac_objext \
15224    conftest$ac_exeext conftest.$ac_ext
15225LIBS=$ac_check_lib_save_LIBS
15226fi
15227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
15228$as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; }
15229if test "x$ac_cv_lib_Xext_XShmCreateImage" = xyes; then :
15230
15231$as_echo "#define LIBVO_X11 /**/" >>confdefs.h
15232
15233        LIBVO_CFLAGS="$LIBVO_CFLAGS $X_CFLAGS"
15234        LIBVO_LIBS="$LIBVO_LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXext -lX11"
15235                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XvShmCreateImage in -lXv" >&5
15236$as_echo_n "checking for XvShmCreateImage in -lXv... " >&6; }
15237if ${ac_cv_lib_Xv_XvShmCreateImage+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  ac_check_lib_save_LIBS=$LIBS
15241LIBS="-lXv $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXext -lX11 $LIBS"
15242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243/* end confdefs.h.  */
15244
15245/* Override any GCC internal prototype to avoid an error.
15246   Use char because int might match the return type of a GCC
15247   builtin and then its argument prototype would still apply.  */
15248#ifdef __cplusplus
15249extern "C"
15250#endif
15251char XvShmCreateImage ();
15252int
15253main ()
15254{
15255return XvShmCreateImage ();
15256  ;
15257  return 0;
15258}
15259_ACEOF
15260if ac_fn_c_try_link "$LINENO"; then :
15261  ac_cv_lib_Xv_XvShmCreateImage=yes
15262else
15263  ac_cv_lib_Xv_XvShmCreateImage=no
15264fi
15265rm -f core conftest.err conftest.$ac_objext \
15266    conftest$ac_exeext conftest.$ac_ext
15267LIBS=$ac_check_lib_save_LIBS
15268fi
15269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
15270$as_echo "$ac_cv_lib_Xv_XvShmCreateImage" >&6; }
15271if test "x$ac_cv_lib_Xv_XvShmCreateImage" = xyes; then :
15272
15273$as_echo "#define LIBVO_XV /**/" >>confdefs.h
15274
15275            LIBVO_LIBS="$LIBVO_LIBS -lXv"
15276fi
15277
15278fi
15279
15280fi
15281
15282# Check whether --enable-directx was given.
15283if test "${enable_directx+set}" = set; then :
15284  enableval=$enable_directx;
15285fi
15286
15287case $enable_directx in
15288    ""|yes)     ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
15289if test "x$ac_cv_header_ddraw_h" = xyes; then :
15290
15291$as_echo "#define LIBVO_DX /**/" >>confdefs.h
15292
15293                    LIBVO_LIBS="$LIBVO_LIBS -lgdi32"
15294fi
15295
15296;;
15297    no)         ;;
15298    *)          if test -f "$enable_directx/ddraw.h"; then
15299
15300$as_echo "#define LIBVO_DX /**/" >>confdefs.h
15301
15302                    LIBVO_CFLAGS="$LIBVO_CFLAGS -I$enable_directx"
15303                    LIBVO_LIBS="$LIBVO_LIBS -lgdi32"
15304                else
15305                    as_fn_error $? "Cannot find $enable_directx/ddraw.h" "$LINENO" 5
15306                fi;;
15307esac
15308
15309# Check whether --enable-sdl was given.
15310if test "${enable_sdl+set}" = set; then :
15311  enableval=$enable_sdl;
15312fi
15313
15314if test x"$enable_sdl" != x"no"; then
15315    # Extract the first word of "sdl-config", so it can be a program name with args.
15316set dummy sdl-config; ac_word=$2
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15318$as_echo_n "checking for $ac_word... " >&6; }
15319if ${ac_cv_prog_SDLCONFIG+:} false; then :
15320  $as_echo_n "(cached) " >&6
15321else
15322  if test -n "$SDLCONFIG"; then
15323  ac_cv_prog_SDLCONFIG="$SDLCONFIG" # Let the user override the test.
15324else
15325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15326for as_dir in $PATH
15327do
15328  IFS=$as_save_IFS
15329  test -z "$as_dir" && as_dir=.
15330    for ac_exec_ext in '' $ac_executable_extensions; do
15331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15332    ac_cv_prog_SDLCONFIG="yes"
15333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15334    break 2
15335  fi
15336done
15337  done
15338IFS=$as_save_IFS
15339
15340fi
15341fi
15342SDLCONFIG=$ac_cv_prog_SDLCONFIG
15343if test -n "$SDLCONFIG"; then
15344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDLCONFIG" >&5
15345$as_echo "$SDLCONFIG" >&6; }
15346else
15347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348$as_echo "no" >&6; }
15349fi
15350
15351
15352    if test x"$SDLCONFIG" = x"yes"; then
15353
15354$as_echo "#define LIBVO_SDL /**/" >>confdefs.h
15355
15356        LIBVO_CFLAGS="$LIBVO_CFLAGS `sdl-config --cflags`"
15357        LIBVO_LIBS="$LIBVO_LIBS `sdl-config --libs`"
15358    fi
15359fi
15360
15361
15362
15363
15364# Check whether --enable-warnings was given.
15365if test "${enable_warnings+set}" = set; then :
15366  enableval=$enable_warnings;
15367fi
15368
15369if test x"$enable_warnings" = x"yes" -a x"$GCC" = x"yes"; then
15370        TRY_CFLAGS="$OPT_CFLAGS -Werror"
15371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
15372$as_echo_n "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... " >&6; }
15373    SAVE_CFLAGS="$CFLAGS"
15374    CFLAGS="$TRY_CFLAGS $CFLAGS"
15375    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376/* end confdefs.h.  */
15377
15378int
15379main ()
15380{
15381
15382  ;
15383  return 0;
15384}
15385_ACEOF
15386if ac_fn_c_try_compile "$LINENO"; then :
15387  ac_cv_try_cflags_ok=yes
15388else
15389  ac_cv_try_cflags_ok=no
15390fi
15391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392    CFLAGS="$SAVE_CFLAGS"
15393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
15394$as_echo "$ac_cv_try_cflags_ok" >&6; }
15395    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
15396        OPT_CFLAGS="$TRY_CFLAGS"
15397    else
15398        :
15399    fi
15400elif test x"$TENDRA" = x"yes"; then
15401        OPT_CFLAGS="$OPT_CFLAGS -DTenDRA_check"
15402fi
15403
15404MPEG2DEC_CFLAGS="$OPT_CFLAGS"
15405
15406# Check whether --enable-gprof was given.
15407if test "${enable_gprof+set}" = set; then :
15408  enableval=$enable_gprof;
15409fi
15410
15411if test x"$enable_gprof" = x"yes"; then
15412
15413$as_echo "#define MPEG2DEC_GPROF /**/" >>confdefs.h
15414
15415    MPEG2DEC_CFLAGS=`echo "$MPEG2DEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"`
15416    MPEG2DEC_CFLAGS="$MPEG2DEC_CFLAGS -p"
15417fi
15418
15419
15420
15421SAV_CFLAGS=$CFLAGS;
15422    if test x"$GCC" = xyes; then CFLAGS="$CFLAGS -Werror"; fi
15423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__ ((aligned ())) support" >&5
15424$as_echo_n "checking __attribute__ ((aligned ())) support... " >&6; }
15425if ${ac_cv_c_attribute_aligned+:} false; then :
15426  $as_echo_n "(cached) " >&6
15427else
15428  ac_cv_c_attribute_aligned=0
15429        for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
15430            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431/* end confdefs.h.  */
15432
15433int
15434main ()
15435{
15436static struct s {
15437                    char a;
15438                    char b __attribute__ ((aligned($ac_cv_c_attr_align_try)));
15439                } S = {0, 0};
15440                switch (1) {
15441                    case 0:
15442                    case (long)(&((struct s *)0)->b) == $ac_cv_c_attr_align_try:
15443                        return 0;
15444                }
15445                return (long)&S;
15446  ;
15447  return 0;
15448}
15449_ACEOF
15450if ac_fn_c_try_compile "$LINENO"; then :
15451  ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
15452fi
15453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454        done
15455fi
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute_aligned" >&5
15457$as_echo "$ac_cv_c_attribute_aligned" >&6; }
15458    if test x"$ac_cv_c_attribute_aligned" != x"0"; then
15459
15460cat >>confdefs.h <<_ACEOF
15461#define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
15462_ACEOF
15463
15464    fi
15465    CFLAGS=$SAV_CFLAGS
15466
15467cat >confcache <<\_ACEOF
15468# This file is a shell script that caches the results of configure
15469# tests run on this system so they can be shared between configure
15470# scripts and configure runs, see configure's option --config-cache.
15471# It is not useful on other systems.  If it contains results you don't
15472# want to keep, you may remove or edit it.
15473#
15474# config.status only pays attention to the cache file if you give it
15475# the --recheck option to rerun configure.
15476#
15477# `ac_cv_env_foo' variables (set or unset) will be overridden when
15478# loading this file, other *unset* `ac_cv_foo' will be assigned the
15479# following values.
15480
15481_ACEOF
15482
15483# The following way of writing the cache mishandles newlines in values,
15484# but we know of no workaround that is simple, portable, and efficient.
15485# So, we kill variables containing newlines.
15486# Ultrix sh set writes to stderr and can't be redirected directly,
15487# and sets the high bit in the cache file unless we assign to the vars.
15488(
15489  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15490    eval ac_val=\$$ac_var
15491    case $ac_val in #(
15492    *${as_nl}*)
15493      case $ac_var in #(
15494      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15495$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15496      esac
15497      case $ac_var in #(
15498      _ | IFS | as_nl) ;; #(
15499      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15500      *) { eval $ac_var=; unset $ac_var;} ;;
15501      esac ;;
15502    esac
15503  done
15504
15505  (set) 2>&1 |
15506    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15507    *${as_nl}ac_space=\ *)
15508      # `set' does not quote correctly, so add quotes: double-quote
15509      # substitution turns \\\\ into \\, and sed turns \\ into \.
15510      sed -n \
15511	"s/'/'\\\\''/g;
15512	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15513      ;; #(
15514    *)
15515      # `set' quotes correctly as required by POSIX, so do not add quotes.
15516      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15517      ;;
15518    esac |
15519    sort
15520) |
15521  sed '
15522     /^ac_cv_env_/b end
15523     t clear
15524     :clear
15525     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15526     t end
15527     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15528     :end' >>confcache
15529if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15530  if test -w "$cache_file"; then
15531    if test "x$cache_file" != "x/dev/null"; then
15532      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15533$as_echo "$as_me: updating cache $cache_file" >&6;}
15534      if test ! -f "$cache_file" || test -h "$cache_file"; then
15535	cat confcache >"$cache_file"
15536      else
15537        case $cache_file in #(
15538        */* | ?:*)
15539	  mv -f confcache "$cache_file"$$ &&
15540	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15541        *)
15542	  mv -f confcache "$cache_file" ;;
15543	esac
15544      fi
15545    fi
15546  else
15547    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15548$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15549  fi
15550fi
15551rm -f confcache
15552
15553test "x$prefix" = xNONE && prefix=$ac_default_prefix
15554# Let make expand exec_prefix.
15555test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15556
15557DEFS=-DHAVE_CONFIG_H
15558
15559ac_libobjs=
15560ac_ltlibobjs=
15561U=
15562for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15563  # 1. Remove the extension, and $U if already installed.
15564  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15565  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15566  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15567  #    will be set to the directory where LIBOBJS objects are built.
15568  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15569  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15570done
15571LIBOBJS=$ac_libobjs
15572
15573LTLIBOBJS=$ac_ltlibobjs
15574
15575
15576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15577$as_echo_n "checking that generated files are newer than configure... " >&6; }
15578   if test -n "$am_sleep_pid"; then
15579     # Hide warnings about reused PIDs.
15580     wait $am_sleep_pid 2>/dev/null
15581   fi
15582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15583$as_echo "done" >&6; }
15584 if test -n "$EXEEXT"; then
15585  am__EXEEXT_TRUE=
15586  am__EXEEXT_FALSE='#'
15587else
15588  am__EXEEXT_TRUE='#'
15589  am__EXEEXT_FALSE=
15590fi
15591
15592if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15593  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15594Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595fi
15596if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15597  as_fn_error $? "conditional \"AMDEP\" was never defined.
15598Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599fi
15600if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15601  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15602Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603fi
15604if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15605  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15606Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607fi
15608if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
15609  as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
15610Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611fi
15612
15613
15614: "${CONFIG_STATUS=./config.status}"
15615ac_write_fail=0
15616ac_clean_files_save=$ac_clean_files
15617ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15618{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15619$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15620as_write_fail=0
15621cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15622#! $SHELL
15623# Generated by $as_me.
15624# Run this file to recreate the current configuration.
15625# Compiler output produced by configure, useful for debugging
15626# configure, is in config.log if it exists.
15627
15628debug=false
15629ac_cs_recheck=false
15630ac_cs_silent=false
15631
15632SHELL=\${CONFIG_SHELL-$SHELL}
15633export SHELL
15634_ASEOF
15635cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15636## -------------------- ##
15637## M4sh Initialization. ##
15638## -------------------- ##
15639
15640# Be more Bourne compatible
15641DUALCASE=1; export DUALCASE # for MKS sh
15642if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15643  emulate sh
15644  NULLCMD=:
15645  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15646  # is contrary to our usage.  Disable this feature.
15647  alias -g '${1+"$@"}'='"$@"'
15648  setopt NO_GLOB_SUBST
15649else
15650  case `(set -o) 2>/dev/null` in #(
15651  *posix*) :
15652    set -o posix ;; #(
15653  *) :
15654     ;;
15655esac
15656fi
15657
15658
15659as_nl='
15660'
15661export as_nl
15662# Printing a long string crashes Solaris 7 /usr/bin/printf.
15663as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15666# Prefer a ksh shell builtin over an external printf program on Solaris,
15667# but without wasting forks for bash or zsh.
15668if test -z "$BASH_VERSION$ZSH_VERSION" \
15669    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15670  as_echo='print -r --'
15671  as_echo_n='print -rn --'
15672elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15673  as_echo='printf %s\n'
15674  as_echo_n='printf %s'
15675else
15676  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15677    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15678    as_echo_n='/usr/ucb/echo -n'
15679  else
15680    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15681    as_echo_n_body='eval
15682      arg=$1;
15683      case $arg in #(
15684      *"$as_nl"*)
15685	expr "X$arg" : "X\\(.*\\)$as_nl";
15686	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15687      esac;
15688      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15689    '
15690    export as_echo_n_body
15691    as_echo_n='sh -c $as_echo_n_body as_echo'
15692  fi
15693  export as_echo_body
15694  as_echo='sh -c $as_echo_body as_echo'
15695fi
15696
15697# The user is always right.
15698if test "${PATH_SEPARATOR+set}" != set; then
15699  PATH_SEPARATOR=:
15700  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15701    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15702      PATH_SEPARATOR=';'
15703  }
15704fi
15705
15706
15707# IFS
15708# We need space, tab and new line, in precisely that order.  Quoting is
15709# there to prevent editors from complaining about space-tab.
15710# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15711# splitting by setting IFS to empty value.)
15712IFS=" ""	$as_nl"
15713
15714# Find who we are.  Look in the path if we contain no directory separator.
15715as_myself=
15716case $0 in #((
15717  *[\\/]* ) as_myself=$0 ;;
15718  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719for as_dir in $PATH
15720do
15721  IFS=$as_save_IFS
15722  test -z "$as_dir" && as_dir=.
15723    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15724  done
15725IFS=$as_save_IFS
15726
15727     ;;
15728esac
15729# We did not find ourselves, most probably we were run as `sh COMMAND'
15730# in which case we are not to be found in the path.
15731if test "x$as_myself" = x; then
15732  as_myself=$0
15733fi
15734if test ! -f "$as_myself"; then
15735  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15736  exit 1
15737fi
15738
15739# Unset variables that we do not need and which cause bugs (e.g. in
15740# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15741# suppresses any "Segmentation fault" message there.  '((' could
15742# trigger a bug in pdksh 5.2.14.
15743for as_var in BASH_ENV ENV MAIL MAILPATH
15744do eval test x\${$as_var+set} = xset \
15745  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15746done
15747PS1='$ '
15748PS2='> '
15749PS4='+ '
15750
15751# NLS nuisances.
15752LC_ALL=C
15753export LC_ALL
15754LANGUAGE=C
15755export LANGUAGE
15756
15757# CDPATH.
15758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15759
15760
15761# as_fn_error STATUS ERROR [LINENO LOG_FD]
15762# ----------------------------------------
15763# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15764# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15765# script with STATUS, using 1 if that was 0.
15766as_fn_error ()
15767{
15768  as_status=$1; test $as_status -eq 0 && as_status=1
15769  if test "$4"; then
15770    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15771    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15772  fi
15773  $as_echo "$as_me: error: $2" >&2
15774  as_fn_exit $as_status
15775} # as_fn_error
15776
15777
15778# as_fn_set_status STATUS
15779# -----------------------
15780# Set $? to STATUS, without forking.
15781as_fn_set_status ()
15782{
15783  return $1
15784} # as_fn_set_status
15785
15786# as_fn_exit STATUS
15787# -----------------
15788# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15789as_fn_exit ()
15790{
15791  set +e
15792  as_fn_set_status $1
15793  exit $1
15794} # as_fn_exit
15795
15796# as_fn_unset VAR
15797# ---------------
15798# Portably unset VAR.
15799as_fn_unset ()
15800{
15801  { eval $1=; unset $1;}
15802}
15803as_unset=as_fn_unset
15804# as_fn_append VAR VALUE
15805# ----------------------
15806# Append the text in VALUE to the end of the definition contained in VAR. Take
15807# advantage of any shell optimizations that allow amortized linear growth over
15808# repeated appends, instead of the typical quadratic growth present in naive
15809# implementations.
15810if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15811  eval 'as_fn_append ()
15812  {
15813    eval $1+=\$2
15814  }'
15815else
15816  as_fn_append ()
15817  {
15818    eval $1=\$$1\$2
15819  }
15820fi # as_fn_append
15821
15822# as_fn_arith ARG...
15823# ------------------
15824# Perform arithmetic evaluation on the ARGs, and store the result in the
15825# global $as_val. Take advantage of shells that can avoid forks. The arguments
15826# must be portable across $(()) and expr.
15827if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15828  eval 'as_fn_arith ()
15829  {
15830    as_val=$(( $* ))
15831  }'
15832else
15833  as_fn_arith ()
15834  {
15835    as_val=`expr "$@" || test $? -eq 1`
15836  }
15837fi # as_fn_arith
15838
15839
15840if expr a : '\(a\)' >/dev/null 2>&1 &&
15841   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15842  as_expr=expr
15843else
15844  as_expr=false
15845fi
15846
15847if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15848  as_basename=basename
15849else
15850  as_basename=false
15851fi
15852
15853if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15854  as_dirname=dirname
15855else
15856  as_dirname=false
15857fi
15858
15859as_me=`$as_basename -- "$0" ||
15860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15861	 X"$0" : 'X\(//\)$' \| \
15862	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15863$as_echo X/"$0" |
15864    sed '/^.*\/\([^/][^/]*\)\/*$/{
15865	    s//\1/
15866	    q
15867	  }
15868	  /^X\/\(\/\/\)$/{
15869	    s//\1/
15870	    q
15871	  }
15872	  /^X\/\(\/\).*/{
15873	    s//\1/
15874	    q
15875	  }
15876	  s/.*/./; q'`
15877
15878# Avoid depending upon Character Ranges.
15879as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15881as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15882as_cr_digits='0123456789'
15883as_cr_alnum=$as_cr_Letters$as_cr_digits
15884
15885ECHO_C= ECHO_N= ECHO_T=
15886case `echo -n x` in #(((((
15887-n*)
15888  case `echo 'xy\c'` in
15889  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15890  xy)  ECHO_C='\c';;
15891  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15892       ECHO_T='	';;
15893  esac;;
15894*)
15895  ECHO_N='-n';;
15896esac
15897
15898rm -f conf$$ conf$$.exe conf$$.file
15899if test -d conf$$.dir; then
15900  rm -f conf$$.dir/conf$$.file
15901else
15902  rm -f conf$$.dir
15903  mkdir conf$$.dir 2>/dev/null
15904fi
15905if (echo >conf$$.file) 2>/dev/null; then
15906  if ln -s conf$$.file conf$$ 2>/dev/null; then
15907    as_ln_s='ln -s'
15908    # ... but there are two gotchas:
15909    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15910    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15911    # In both cases, we have to default to `cp -pR'.
15912    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15913      as_ln_s='cp -pR'
15914  elif ln conf$$.file conf$$ 2>/dev/null; then
15915    as_ln_s=ln
15916  else
15917    as_ln_s='cp -pR'
15918  fi
15919else
15920  as_ln_s='cp -pR'
15921fi
15922rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15923rmdir conf$$.dir 2>/dev/null
15924
15925
15926# as_fn_mkdir_p
15927# -------------
15928# Create "$as_dir" as a directory, including parents if necessary.
15929as_fn_mkdir_p ()
15930{
15931
15932  case $as_dir in #(
15933  -*) as_dir=./$as_dir;;
15934  esac
15935  test -d "$as_dir" || eval $as_mkdir_p || {
15936    as_dirs=
15937    while :; do
15938      case $as_dir in #(
15939      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15940      *) as_qdir=$as_dir;;
15941      esac
15942      as_dirs="'$as_qdir' $as_dirs"
15943      as_dir=`$as_dirname -- "$as_dir" ||
15944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945	 X"$as_dir" : 'X\(//\)[^/]' \| \
15946	 X"$as_dir" : 'X\(//\)$' \| \
15947	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15948$as_echo X"$as_dir" |
15949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950	    s//\1/
15951	    q
15952	  }
15953	  /^X\(\/\/\)[^/].*/{
15954	    s//\1/
15955	    q
15956	  }
15957	  /^X\(\/\/\)$/{
15958	    s//\1/
15959	    q
15960	  }
15961	  /^X\(\/\).*/{
15962	    s//\1/
15963	    q
15964	  }
15965	  s/.*/./; q'`
15966      test -d "$as_dir" && break
15967    done
15968    test -z "$as_dirs" || eval "mkdir $as_dirs"
15969  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15970
15971
15972} # as_fn_mkdir_p
15973if mkdir -p . 2>/dev/null; then
15974  as_mkdir_p='mkdir -p "$as_dir"'
15975else
15976  test -d ./-p && rmdir ./-p
15977  as_mkdir_p=false
15978fi
15979
15980
15981# as_fn_executable_p FILE
15982# -----------------------
15983# Test if FILE is an executable regular file.
15984as_fn_executable_p ()
15985{
15986  test -f "$1" && test -x "$1"
15987} # as_fn_executable_p
15988as_test_x='test -x'
15989as_executable_p=as_fn_executable_p
15990
15991# Sed expression to map a string onto a valid CPP name.
15992as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15993
15994# Sed expression to map a string onto a valid variable name.
15995as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15996
15997
15998exec 6>&1
15999## ----------------------------------- ##
16000## Main body of $CONFIG_STATUS script. ##
16001## ----------------------------------- ##
16002_ASEOF
16003test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16004
16005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006# Save the log message, to keep $0 and so on meaningful, and to
16007# report actual input values of CONFIG_FILES etc. instead of their
16008# values after options handling.
16009ac_log="
16010This file was extended by libmpeg2 $as_me 0.5.1, which was
16011generated by GNU Autoconf 2.69.  Invocation command line was
16012
16013  CONFIG_FILES    = $CONFIG_FILES
16014  CONFIG_HEADERS  = $CONFIG_HEADERS
16015  CONFIG_LINKS    = $CONFIG_LINKS
16016  CONFIG_COMMANDS = $CONFIG_COMMANDS
16017  $ $0 $@
16018
16019on `(hostname || uname -n) 2>/dev/null | sed 1q`
16020"
16021
16022_ACEOF
16023
16024case $ac_config_files in *"
16025"*) set x $ac_config_files; shift; ac_config_files=$*;;
16026esac
16027
16028case $ac_config_headers in *"
16029"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16030esac
16031
16032
16033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16034# Files that config.status was made for.
16035config_files="$ac_config_files"
16036config_headers="$ac_config_headers"
16037config_commands="$ac_config_commands"
16038
16039_ACEOF
16040
16041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16042ac_cs_usage="\
16043\`$as_me' instantiates files and other configuration actions
16044from templates according to the current configuration.  Unless the files
16045and actions are specified as TAGs, all are instantiated by default.
16046
16047Usage: $0 [OPTION]... [TAG]...
16048
16049  -h, --help       print this help, then exit
16050  -V, --version    print version number and configuration settings, then exit
16051      --config     print configuration, then exit
16052  -q, --quiet, --silent
16053                   do not print progress messages
16054  -d, --debug      don't remove temporary files
16055      --recheck    update $as_me by reconfiguring in the same conditions
16056      --file=FILE[:TEMPLATE]
16057                   instantiate the configuration file FILE
16058      --header=FILE[:TEMPLATE]
16059                   instantiate the configuration header FILE
16060
16061Configuration files:
16062$config_files
16063
16064Configuration headers:
16065$config_headers
16066
16067Configuration commands:
16068$config_commands
16069
16070Report bugs to the package provider."
16071
16072_ACEOF
16073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16075ac_cs_version="\\
16076libmpeg2 config.status 0.5.1
16077configured by $0, generated by GNU Autoconf 2.69,
16078  with options \\"\$ac_cs_config\\"
16079
16080Copyright (C) 2012 Free Software Foundation, Inc.
16081This config.status script is free software; the Free Software Foundation
16082gives unlimited permission to copy, distribute and modify it."
16083
16084ac_pwd='$ac_pwd'
16085srcdir='$srcdir'
16086INSTALL='$INSTALL'
16087MKDIR_P='$MKDIR_P'
16088AWK='$AWK'
16089test -n "\$AWK" || AWK=awk
16090_ACEOF
16091
16092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093# The default lists apply if the user does not specify any file.
16094ac_need_defaults=:
16095while test $# != 0
16096do
16097  case $1 in
16098  --*=?*)
16099    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16100    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16101    ac_shift=:
16102    ;;
16103  --*=)
16104    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16105    ac_optarg=
16106    ac_shift=:
16107    ;;
16108  *)
16109    ac_option=$1
16110    ac_optarg=$2
16111    ac_shift=shift
16112    ;;
16113  esac
16114
16115  case $ac_option in
16116  # Handling of the options.
16117  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16118    ac_cs_recheck=: ;;
16119  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16120    $as_echo "$ac_cs_version"; exit ;;
16121  --config | --confi | --conf | --con | --co | --c )
16122    $as_echo "$ac_cs_config"; exit ;;
16123  --debug | --debu | --deb | --de | --d | -d )
16124    debug=: ;;
16125  --file | --fil | --fi | --f )
16126    $ac_shift
16127    case $ac_optarg in
16128    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16129    '') as_fn_error $? "missing file argument" ;;
16130    esac
16131    as_fn_append CONFIG_FILES " '$ac_optarg'"
16132    ac_need_defaults=false;;
16133  --header | --heade | --head | --hea )
16134    $ac_shift
16135    case $ac_optarg in
16136    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16137    esac
16138    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16139    ac_need_defaults=false;;
16140  --he | --h)
16141    # Conflict between --help and --header
16142    as_fn_error $? "ambiguous option: \`$1'
16143Try \`$0 --help' for more information.";;
16144  --help | --hel | -h )
16145    $as_echo "$ac_cs_usage"; exit ;;
16146  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16147  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16148    ac_cs_silent=: ;;
16149
16150  # This is an error.
16151  -*) as_fn_error $? "unrecognized option: \`$1'
16152Try \`$0 --help' for more information." ;;
16153
16154  *) as_fn_append ac_config_targets " $1"
16155     ac_need_defaults=false ;;
16156
16157  esac
16158  shift
16159done
16160
16161ac_configure_extra_args=
16162
16163if $ac_cs_silent; then
16164  exec 6>/dev/null
16165  ac_configure_extra_args="$ac_configure_extra_args --silent"
16166fi
16167
16168_ACEOF
16169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170if \$ac_cs_recheck; then
16171  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16172  shift
16173  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16174  CONFIG_SHELL='$SHELL'
16175  export CONFIG_SHELL
16176  exec "\$@"
16177fi
16178
16179_ACEOF
16180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16181exec 5>>config.log
16182{
16183  echo
16184  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16185## Running $as_me. ##
16186_ASBOX
16187  $as_echo "$ac_log"
16188} >&5
16189
16190_ACEOF
16191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16192#
16193# INIT-COMMANDS
16194#
16195AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16196
16197
16198# The HP-UX ksh and POSIX shell print the target directory to stdout
16199# if CDPATH is set.
16200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16201
16202sed_quote_subst='$sed_quote_subst'
16203double_quote_subst='$double_quote_subst'
16204delay_variable_subst='$delay_variable_subst'
16205AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16206DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16207OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16208macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16209macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16210enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16211enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16212pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16213enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16214shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16215SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16216ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16217PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16218host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16219host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16220host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16221build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16222build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16223build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16224SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16225Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16226GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16227EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16228FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16229LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16230NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16231LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16232max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16233ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16234exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16235lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16236lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16237lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16238lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16239lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16240reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16241reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16242deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16243file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16244file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16245want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16246sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16247AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16248AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16249archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16250STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16251RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16252old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16253old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16254old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16255lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16256CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16257CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16258compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16259GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16260lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16261lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16262lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16263lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16264lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16265lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16266nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16267lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16268lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16269objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16270MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16271lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16272lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16273lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16274lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16275lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16276need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16277MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16278DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16279NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16280LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16281OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16282OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16283libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16284shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16285extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16286archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16287enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16288export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16289whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16290compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16291old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16292old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16293archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16294archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16295module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16296module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16297with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16298allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16299no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16300hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16301hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16302hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16303hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16304hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16305hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16306hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16307inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16308link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16309always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16310export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16311exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16312include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16313prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16314postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16315file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16316variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16317need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16318need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16319version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16320runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16321shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16322shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16323libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16324library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16325soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16326install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16327postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16328postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16329finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16330finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16331hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16332sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16333configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16334configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16335hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16336enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16337enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16338enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16339old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16340striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16341
16342LTCC='$LTCC'
16343LTCFLAGS='$LTCFLAGS'
16344compiler='$compiler_DEFAULT'
16345
16346# A function that is used when there is no print builtin or printf.
16347func_fallback_echo ()
16348{
16349  eval 'cat <<_LTECHO_EOF
16350\$1
16351_LTECHO_EOF'
16352}
16353
16354# Quote evaled strings.
16355for var in AS \
16356DLLTOOL \
16357OBJDUMP \
16358SHELL \
16359ECHO \
16360PATH_SEPARATOR \
16361SED \
16362GREP \
16363EGREP \
16364FGREP \
16365LD \
16366NM \
16367LN_S \
16368lt_SP2NL \
16369lt_NL2SP \
16370reload_flag \
16371deplibs_check_method \
16372file_magic_cmd \
16373file_magic_glob \
16374want_nocaseglob \
16375sharedlib_from_linklib_cmd \
16376AR \
16377AR_FLAGS \
16378archiver_list_spec \
16379STRIP \
16380RANLIB \
16381CC \
16382CFLAGS \
16383compiler \
16384lt_cv_sys_global_symbol_pipe \
16385lt_cv_sys_global_symbol_to_cdecl \
16386lt_cv_sys_global_symbol_to_import \
16387lt_cv_sys_global_symbol_to_c_name_address \
16388lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16389lt_cv_nm_interface \
16390nm_file_list_spec \
16391lt_cv_truncate_bin \
16392lt_prog_compiler_no_builtin_flag \
16393lt_prog_compiler_pic \
16394lt_prog_compiler_wl \
16395lt_prog_compiler_static \
16396lt_cv_prog_compiler_c_o \
16397need_locks \
16398MANIFEST_TOOL \
16399DSYMUTIL \
16400NMEDIT \
16401LIPO \
16402OTOOL \
16403OTOOL64 \
16404shrext_cmds \
16405export_dynamic_flag_spec \
16406whole_archive_flag_spec \
16407compiler_needs_object \
16408with_gnu_ld \
16409allow_undefined_flag \
16410no_undefined_flag \
16411hardcode_libdir_flag_spec \
16412hardcode_libdir_separator \
16413exclude_expsyms \
16414include_expsyms \
16415file_list_spec \
16416variables_saved_for_relink \
16417libname_spec \
16418library_names_spec \
16419soname_spec \
16420install_override_mode \
16421finish_eval \
16422old_striplib \
16423striplib; do
16424    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16425    *[\\\\\\\`\\"\\\$]*)
16426      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16427      ;;
16428    *)
16429      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16430      ;;
16431    esac
16432done
16433
16434# Double-quote double-evaled strings.
16435for var in reload_cmds \
16436old_postinstall_cmds \
16437old_postuninstall_cmds \
16438old_archive_cmds \
16439extract_expsyms_cmds \
16440old_archive_from_new_cmds \
16441old_archive_from_expsyms_cmds \
16442archive_cmds \
16443archive_expsym_cmds \
16444module_cmds \
16445module_expsym_cmds \
16446export_symbols_cmds \
16447prelink_cmds \
16448postlink_cmds \
16449postinstall_cmds \
16450postuninstall_cmds \
16451finish_cmds \
16452sys_lib_search_path_spec \
16453configure_time_dlsearch_path \
16454configure_time_lt_sys_library_path; do
16455    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16456    *[\\\\\\\`\\"\\\$]*)
16457      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16458      ;;
16459    *)
16460      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16461      ;;
16462    esac
16463done
16464
16465ac_aux_dir='$ac_aux_dir'
16466
16467# See if we are running on zsh, and set the options that allow our
16468# commands through without removal of \ escapes INIT.
16469if test -n "\${ZSH_VERSION+set}"; then
16470   setopt NO_GLOB_SUBST
16471fi
16472
16473
16474    PACKAGE='$PACKAGE'
16475    VERSION='$VERSION'
16476    RM='$RM'
16477    ofile='$ofile'
16478
16479
16480
16481# variables for create stdint.h replacement
16482PACKAGE="$PACKAGE"
16483VERSION="$VERSION"
16484ac_stdint_h="$ac_stdint_h"
16485_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
16486ac_cv_stdint_message="$ac_cv_stdint_message"
16487ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
16488ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
16489ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
16490ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
16491ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16492ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16493ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
16494ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
16495ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16496ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16497ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
16498
16499
16500_ACEOF
16501
16502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16503
16504# Handling of arguments.
16505for ac_config_target in $ac_config_targets
16506do
16507  case $ac_config_target in
16508    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16509    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16510    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16511    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16512    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16513    "libmpeg2/Makefile") CONFIG_FILES="$CONFIG_FILES libmpeg2/Makefile" ;;
16514    "libmpeg2/convert/Makefile") CONFIG_FILES="$CONFIG_FILES libmpeg2/convert/Makefile" ;;
16515    "libvo/Makefile") CONFIG_FILES="$CONFIG_FILES libvo/Makefile" ;;
16516    "libmpeg2/libmpeg2.pc") CONFIG_FILES="$CONFIG_FILES libmpeg2/libmpeg2.pc" ;;
16517    "libmpeg2/convert/libmpeg2convert.pc") CONFIG_FILES="$CONFIG_FILES libmpeg2/convert/libmpeg2convert.pc" ;;
16518    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16519    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16520    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16521    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
16522
16523  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16524  esac
16525done
16526
16527
16528# If the user did not use the arguments to specify the items to instantiate,
16529# then the envvar interface is used.  Set only those that are not.
16530# We use the long form for the default assignment because of an extremely
16531# bizarre bug on SunOS 4.1.3.
16532if $ac_need_defaults; then
16533  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16534  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16535  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16536fi
16537
16538# Have a temporary directory for convenience.  Make it in the build tree
16539# simply because there is no reason against having it here, and in addition,
16540# creating and moving files from /tmp can sometimes cause problems.
16541# Hook for its removal unless debugging.
16542# Note that there is a small window in which the directory will not be cleaned:
16543# after its creation but before its name has been assigned to `$tmp'.
16544$debug ||
16545{
16546  tmp= ac_tmp=
16547  trap 'exit_status=$?
16548  : "${ac_tmp:=$tmp}"
16549  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16550' 0
16551  trap 'as_fn_exit 1' 1 2 13 15
16552}
16553# Create a (secure) tmp directory for tmp files.
16554
16555{
16556  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16557  test -d "$tmp"
16558}  ||
16559{
16560  tmp=./conf$$-$RANDOM
16561  (umask 077 && mkdir "$tmp")
16562} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16563ac_tmp=$tmp
16564
16565# Set up the scripts for CONFIG_FILES section.
16566# No need to generate them if there are no CONFIG_FILES.
16567# This happens for instance with `./config.status config.h'.
16568if test -n "$CONFIG_FILES"; then
16569
16570
16571ac_cr=`echo X | tr X '\015'`
16572# On cygwin, bash can eat \r inside `` if the user requested igncr.
16573# But we know of no other shell where ac_cr would be empty at this
16574# point, so we can use a bashism as a fallback.
16575if test "x$ac_cr" = x; then
16576  eval ac_cr=\$\'\\r\'
16577fi
16578ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16579if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16580  ac_cs_awk_cr='\\r'
16581else
16582  ac_cs_awk_cr=$ac_cr
16583fi
16584
16585echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16586_ACEOF
16587
16588
16589{
16590  echo "cat >conf$$subs.awk <<_ACEOF" &&
16591  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16592  echo "_ACEOF"
16593} >conf$$subs.sh ||
16594  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16595ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16596ac_delim='%!_!# '
16597for ac_last_try in false false false false false :; do
16598  . ./conf$$subs.sh ||
16599    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16600
16601  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16602  if test $ac_delim_n = $ac_delim_num; then
16603    break
16604  elif $ac_last_try; then
16605    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16606  else
16607    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16608  fi
16609done
16610rm -f conf$$subs.sh
16611
16612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16613cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16614_ACEOF
16615sed -n '
16616h
16617s/^/S["/; s/!.*/"]=/
16618p
16619g
16620s/^[^!]*!//
16621:repl
16622t repl
16623s/'"$ac_delim"'$//
16624t delim
16625:nl
16626h
16627s/\(.\{148\}\)..*/\1/
16628t more1
16629s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16630p
16631n
16632b repl
16633:more1
16634s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16635p
16636g
16637s/.\{148\}//
16638t nl
16639:delim
16640h
16641s/\(.\{148\}\)..*/\1/
16642t more2
16643s/["\\]/\\&/g; s/^/"/; s/$/"/
16644p
16645b
16646:more2
16647s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16648p
16649g
16650s/.\{148\}//
16651t delim
16652' <conf$$subs.awk | sed '
16653/^[^""]/{
16654  N
16655  s/\n//
16656}
16657' >>$CONFIG_STATUS || ac_write_fail=1
16658rm -f conf$$subs.awk
16659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660_ACAWK
16661cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16662  for (key in S) S_is_set[key] = 1
16663  FS = ""
16664
16665}
16666{
16667  line = $ 0
16668  nfields = split(line, field, "@")
16669  substed = 0
16670  len = length(field[1])
16671  for (i = 2; i < nfields; i++) {
16672    key = field[i]
16673    keylen = length(key)
16674    if (S_is_set[key]) {
16675      value = S[key]
16676      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16677      len += length(value) + length(field[++i])
16678      substed = 1
16679    } else
16680      len += 1 + keylen
16681  }
16682
16683  print line
16684}
16685
16686_ACAWK
16687_ACEOF
16688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16690  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16691else
16692  cat
16693fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16694  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16695_ACEOF
16696
16697# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16698# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16699# trailing colons and then remove the whole line if VPATH becomes empty
16700# (actually we leave an empty line to preserve line numbers).
16701if test "x$srcdir" = x.; then
16702  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16703h
16704s///
16705s/^/:/
16706s/[	 ]*$/:/
16707s/:\$(srcdir):/:/g
16708s/:\${srcdir}:/:/g
16709s/:@srcdir@:/:/g
16710s/^:*//
16711s/:*$//
16712x
16713s/\(=[	 ]*\).*/\1/
16714G
16715s/\n//
16716s/^[^=]*=[	 ]*$//
16717}'
16718fi
16719
16720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721fi # test -n "$CONFIG_FILES"
16722
16723# Set up the scripts for CONFIG_HEADERS section.
16724# No need to generate them if there are no CONFIG_HEADERS.
16725# This happens for instance with `./config.status Makefile'.
16726if test -n "$CONFIG_HEADERS"; then
16727cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16728BEGIN {
16729_ACEOF
16730
16731# Transform confdefs.h into an awk script `defines.awk', embedded as
16732# here-document in config.status, that substitutes the proper values into
16733# config.h.in to produce config.h.
16734
16735# Create a delimiter string that does not exist in confdefs.h, to ease
16736# handling of long lines.
16737ac_delim='%!_!# '
16738for ac_last_try in false false :; do
16739  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16740  if test -z "$ac_tt"; then
16741    break
16742  elif $ac_last_try; then
16743    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16744  else
16745    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16746  fi
16747done
16748
16749# For the awk script, D is an array of macro values keyed by name,
16750# likewise P contains macro parameters if any.  Preserve backslash
16751# newline sequences.
16752
16753ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16754sed -n '
16755s/.\{148\}/&'"$ac_delim"'/g
16756t rset
16757:rset
16758s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16759t def
16760d
16761:def
16762s/\\$//
16763t bsnl
16764s/["\\]/\\&/g
16765s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16766D["\1"]=" \3"/p
16767s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16768d
16769:bsnl
16770s/["\\]/\\&/g
16771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16772D["\1"]=" \3\\\\\\n"\\/p
16773t cont
16774s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16775t cont
16776d
16777:cont
16778n
16779s/.\{148\}/&'"$ac_delim"'/g
16780t clear
16781:clear
16782s/\\$//
16783t bsnlc
16784s/["\\]/\\&/g; s/^/"/; s/$/"/p
16785d
16786:bsnlc
16787s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16788b cont
16789' <confdefs.h | sed '
16790s/'"$ac_delim"'/"\\\
16791"/g' >>$CONFIG_STATUS || ac_write_fail=1
16792
16793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794  for (key in D) D_is_set[key] = 1
16795  FS = ""
16796}
16797/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16798  line = \$ 0
16799  split(line, arg, " ")
16800  if (arg[1] == "#") {
16801    defundef = arg[2]
16802    mac1 = arg[3]
16803  } else {
16804    defundef = substr(arg[1], 2)
16805    mac1 = arg[2]
16806  }
16807  split(mac1, mac2, "(") #)
16808  macro = mac2[1]
16809  prefix = substr(line, 1, index(line, defundef) - 1)
16810  if (D_is_set[macro]) {
16811    # Preserve the white space surrounding the "#".
16812    print prefix "define", macro P[macro] D[macro]
16813    next
16814  } else {
16815    # Replace #undef with comments.  This is necessary, for example,
16816    # in the case of _POSIX_SOURCE, which is predefined and required
16817    # on some systems where configure will not decide to define it.
16818    if (defundef == "undef") {
16819      print "/*", prefix defundef, macro, "*/"
16820      next
16821    }
16822  }
16823}
16824{ print }
16825_ACAWK
16826_ACEOF
16827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16828  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16829fi # test -n "$CONFIG_HEADERS"
16830
16831
16832eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16833shift
16834for ac_tag
16835do
16836  case $ac_tag in
16837  :[FHLC]) ac_mode=$ac_tag; continue;;
16838  esac
16839  case $ac_mode$ac_tag in
16840  :[FHL]*:*);;
16841  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16842  :[FH]-) ac_tag=-:-;;
16843  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16844  esac
16845  ac_save_IFS=$IFS
16846  IFS=:
16847  set x $ac_tag
16848  IFS=$ac_save_IFS
16849  shift
16850  ac_file=$1
16851  shift
16852
16853  case $ac_mode in
16854  :L) ac_source=$1;;
16855  :[FH])
16856    ac_file_inputs=
16857    for ac_f
16858    do
16859      case $ac_f in
16860      -) ac_f="$ac_tmp/stdin";;
16861      *) # Look for the file first in the build tree, then in the source tree
16862	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16863	 # because $ac_f cannot contain `:'.
16864	 test -f "$ac_f" ||
16865	   case $ac_f in
16866	   [\\/$]*) false;;
16867	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16868	   esac ||
16869	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16870      esac
16871      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16872      as_fn_append ac_file_inputs " '$ac_f'"
16873    done
16874
16875    # Let's still pretend it is `configure' which instantiates (i.e., don't
16876    # use $as_me), people would be surprised to read:
16877    #    /* config.h.  Generated by config.status.  */
16878    configure_input='Generated from '`
16879	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16880	`' by configure.'
16881    if test x"$ac_file" != x-; then
16882      configure_input="$ac_file.  $configure_input"
16883      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16884$as_echo "$as_me: creating $ac_file" >&6;}
16885    fi
16886    # Neutralize special characters interpreted by sed in replacement strings.
16887    case $configure_input in #(
16888    *\&* | *\|* | *\\* )
16889       ac_sed_conf_input=`$as_echo "$configure_input" |
16890       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16891    *) ac_sed_conf_input=$configure_input;;
16892    esac
16893
16894    case $ac_tag in
16895    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16896      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16897    esac
16898    ;;
16899  esac
16900
16901  ac_dir=`$as_dirname -- "$ac_file" ||
16902$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16903	 X"$ac_file" : 'X\(//\)[^/]' \| \
16904	 X"$ac_file" : 'X\(//\)$' \| \
16905	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16906$as_echo X"$ac_file" |
16907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16908	    s//\1/
16909	    q
16910	  }
16911	  /^X\(\/\/\)[^/].*/{
16912	    s//\1/
16913	    q
16914	  }
16915	  /^X\(\/\/\)$/{
16916	    s//\1/
16917	    q
16918	  }
16919	  /^X\(\/\).*/{
16920	    s//\1/
16921	    q
16922	  }
16923	  s/.*/./; q'`
16924  as_dir="$ac_dir"; as_fn_mkdir_p
16925  ac_builddir=.
16926
16927case "$ac_dir" in
16928.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16929*)
16930  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16931  # A ".." for each directory in $ac_dir_suffix.
16932  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16933  case $ac_top_builddir_sub in
16934  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16935  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16936  esac ;;
16937esac
16938ac_abs_top_builddir=$ac_pwd
16939ac_abs_builddir=$ac_pwd$ac_dir_suffix
16940# for backward compatibility:
16941ac_top_builddir=$ac_top_build_prefix
16942
16943case $srcdir in
16944  .)  # We are building in place.
16945    ac_srcdir=.
16946    ac_top_srcdir=$ac_top_builddir_sub
16947    ac_abs_top_srcdir=$ac_pwd ;;
16948  [\\/]* | ?:[\\/]* )  # Absolute name.
16949    ac_srcdir=$srcdir$ac_dir_suffix;
16950    ac_top_srcdir=$srcdir
16951    ac_abs_top_srcdir=$srcdir ;;
16952  *) # Relative name.
16953    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16954    ac_top_srcdir=$ac_top_build_prefix$srcdir
16955    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16956esac
16957ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16958
16959
16960  case $ac_mode in
16961  :F)
16962  #
16963  # CONFIG_FILE
16964  #
16965
16966  case $INSTALL in
16967  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16968  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16969  esac
16970  ac_MKDIR_P=$MKDIR_P
16971  case $MKDIR_P in
16972  [\\/$]* | ?:[\\/]* ) ;;
16973  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16974  esac
16975_ACEOF
16976
16977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16978# If the template does not know about datarootdir, expand it.
16979# FIXME: This hack should be removed a few years after 2.60.
16980ac_datarootdir_hack=; ac_datarootdir_seen=
16981ac_sed_dataroot='
16982/datarootdir/ {
16983  p
16984  q
16985}
16986/@datadir@/p
16987/@docdir@/p
16988/@infodir@/p
16989/@localedir@/p
16990/@mandir@/p'
16991case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16992*datarootdir*) ac_datarootdir_seen=yes;;
16993*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16994  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16995$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16996_ACEOF
16997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998  ac_datarootdir_hack='
16999  s&@datadir@&$datadir&g
17000  s&@docdir@&$docdir&g
17001  s&@infodir@&$infodir&g
17002  s&@localedir@&$localedir&g
17003  s&@mandir@&$mandir&g
17004  s&\\\${datarootdir}&$datarootdir&g' ;;
17005esac
17006_ACEOF
17007
17008# Neutralize VPATH when `$srcdir' = `.'.
17009# Shell code in configure.ac might set extrasub.
17010# FIXME: do we really want to maintain this feature?
17011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17012ac_sed_extra="$ac_vpsub
17013$extrasub
17014_ACEOF
17015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17016:t
17017/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17018s|@configure_input@|$ac_sed_conf_input|;t t
17019s&@top_builddir@&$ac_top_builddir_sub&;t t
17020s&@top_build_prefix@&$ac_top_build_prefix&;t t
17021s&@srcdir@&$ac_srcdir&;t t
17022s&@abs_srcdir@&$ac_abs_srcdir&;t t
17023s&@top_srcdir@&$ac_top_srcdir&;t t
17024s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17025s&@builddir@&$ac_builddir&;t t
17026s&@abs_builddir@&$ac_abs_builddir&;t t
17027s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17028s&@INSTALL@&$ac_INSTALL&;t t
17029s&@MKDIR_P@&$ac_MKDIR_P&;t t
17030$ac_datarootdir_hack
17031"
17032eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17033  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17034
17035test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17036  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17037  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17038      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17039  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17040which seems to be undefined.  Please make sure it is defined" >&5
17041$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17042which seems to be undefined.  Please make sure it is defined" >&2;}
17043
17044  rm -f "$ac_tmp/stdin"
17045  case $ac_file in
17046  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17047  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17048  esac \
17049  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17050 ;;
17051  :H)
17052  #
17053  # CONFIG_HEADER
17054  #
17055  if test x"$ac_file" != x-; then
17056    {
17057      $as_echo "/* $configure_input  */" \
17058      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17059    } >"$ac_tmp/config.h" \
17060      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17061    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17062      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17063$as_echo "$as_me: $ac_file is unchanged" >&6;}
17064    else
17065      rm -f "$ac_file"
17066      mv "$ac_tmp/config.h" "$ac_file" \
17067	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17068    fi
17069  else
17070    $as_echo "/* $configure_input  */" \
17071      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17072      || as_fn_error $? "could not create -" "$LINENO" 5
17073  fi
17074# Compute "$ac_file"'s index in $config_headers.
17075_am_arg="$ac_file"
17076_am_stamp_count=1
17077for _am_header in $config_headers :; do
17078  case $_am_header in
17079    $_am_arg | $_am_arg:* )
17080      break ;;
17081    * )
17082      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17083  esac
17084done
17085echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17086$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17087	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17088	 X"$_am_arg" : 'X\(//\)$' \| \
17089	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17090$as_echo X"$_am_arg" |
17091    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17092	    s//\1/
17093	    q
17094	  }
17095	  /^X\(\/\/\)[^/].*/{
17096	    s//\1/
17097	    q
17098	  }
17099	  /^X\(\/\/\)$/{
17100	    s//\1/
17101	    q
17102	  }
17103	  /^X\(\/\).*/{
17104	    s//\1/
17105	    q
17106	  }
17107	  s/.*/./; q'`/stamp-h$_am_stamp_count
17108 ;;
17109
17110  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17111$as_echo "$as_me: executing $ac_file commands" >&6;}
17112 ;;
17113  esac
17114
17115
17116  case $ac_file$ac_mode in
17117    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17118  # Older Autoconf quotes --file arguments for eval, but not when files
17119  # are listed without --file.  Let's play safe and only enable the eval
17120  # if we detect the quoting.
17121  case $CONFIG_FILES in
17122  *\'*) eval set x "$CONFIG_FILES" ;;
17123  *)   set x $CONFIG_FILES ;;
17124  esac
17125  shift
17126  for mf
17127  do
17128    # Strip MF so we end up with the name of the file.
17129    mf=`echo "$mf" | sed -e 's/:.*$//'`
17130    # Check whether this is an Automake generated Makefile or not.
17131    # We used to match only the files named 'Makefile.in', but
17132    # some people rename them; so instead we look at the file content.
17133    # Grep'ing the first line is not enough: some people post-process
17134    # each Makefile.in and add a new line on top of each file to say so.
17135    # Grep'ing the whole file is not good either: AIX grep has a line
17136    # limit of 2048, but all sed's we know have understand at least 4000.
17137    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17138      dirpart=`$as_dirname -- "$mf" ||
17139$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17140	 X"$mf" : 'X\(//\)[^/]' \| \
17141	 X"$mf" : 'X\(//\)$' \| \
17142	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17143$as_echo X"$mf" |
17144    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17145	    s//\1/
17146	    q
17147	  }
17148	  /^X\(\/\/\)[^/].*/{
17149	    s//\1/
17150	    q
17151	  }
17152	  /^X\(\/\/\)$/{
17153	    s//\1/
17154	    q
17155	  }
17156	  /^X\(\/\).*/{
17157	    s//\1/
17158	    q
17159	  }
17160	  s/.*/./; q'`
17161    else
17162      continue
17163    fi
17164    # Extract the definition of DEPDIR, am__include, and am__quote
17165    # from the Makefile without running 'make'.
17166    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17167    test -z "$DEPDIR" && continue
17168    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17169    test -z "$am__include" && continue
17170    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17171    # Find all dependency output files, they are included files with
17172    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17173    # simplest approach to changing $(DEPDIR) to its actual value in the
17174    # expansion.
17175    for file in `sed -n "
17176      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17177	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17178      # Make sure the directory exists.
17179      test -f "$dirpart/$file" && continue
17180      fdir=`$as_dirname -- "$file" ||
17181$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17182	 X"$file" : 'X\(//\)[^/]' \| \
17183	 X"$file" : 'X\(//\)$' \| \
17184	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17185$as_echo X"$file" |
17186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17187	    s//\1/
17188	    q
17189	  }
17190	  /^X\(\/\/\)[^/].*/{
17191	    s//\1/
17192	    q
17193	  }
17194	  /^X\(\/\/\)$/{
17195	    s//\1/
17196	    q
17197	  }
17198	  /^X\(\/\).*/{
17199	    s//\1/
17200	    q
17201	  }
17202	  s/.*/./; q'`
17203      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17204      # echo "creating $dirpart/$file"
17205      echo '# dummy' > "$dirpart/$file"
17206    done
17207  done
17208}
17209 ;;
17210    "libtool":C)
17211
17212    # See if we are running on zsh, and set the options that allow our
17213    # commands through without removal of \ escapes.
17214    if test -n "${ZSH_VERSION+set}"; then
17215      setopt NO_GLOB_SUBST
17216    fi
17217
17218    cfgfile=${ofile}T
17219    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17220    $RM "$cfgfile"
17221
17222    cat <<_LT_EOF >> "$cfgfile"
17223#! $SHELL
17224# Generated automatically by $as_me ($PACKAGE) $VERSION
17225# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17226
17227# Provide generalized library-building support services.
17228# Written by Gordon Matzigkeit, 1996
17229
17230# Copyright (C) 2014 Free Software Foundation, Inc.
17231# This is free software; see the source for copying conditions.  There is NO
17232# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17233
17234# GNU Libtool is free software; you can redistribute it and/or modify
17235# it under the terms of the GNU General Public License as published by
17236# the Free Software Foundation; either version 2 of of the License, or
17237# (at your option) any later version.
17238#
17239# As a special exception to the GNU General Public License, if you
17240# distribute this file as part of a program or library that is built
17241# using GNU Libtool, you may include this file under the  same
17242# distribution terms that you use for the rest of that program.
17243#
17244# GNU Libtool is distributed in the hope that it will be useful, but
17245# WITHOUT ANY WARRANTY; without even the implied warranty of
17246# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17247# GNU General Public License for more details.
17248#
17249# You should have received a copy of the GNU General Public License
17250# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17251
17252
17253# The names of the tagged configurations supported by this script.
17254available_tags=''
17255
17256# Configured defaults for sys_lib_dlsearch_path munging.
17257: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17258
17259# ### BEGIN LIBTOOL CONFIG
17260
17261# Assembler program.
17262AS=$lt_AS
17263
17264# DLL creation program.
17265DLLTOOL=$lt_DLLTOOL
17266
17267# Object dumper program.
17268OBJDUMP=$lt_OBJDUMP
17269
17270# Which release of libtool.m4 was used?
17271macro_version=$macro_version
17272macro_revision=$macro_revision
17273
17274# Whether or not to build shared libraries.
17275build_libtool_libs=$enable_shared
17276
17277# Whether or not to build static libraries.
17278build_old_libs=$enable_static
17279
17280# What type of objects to build.
17281pic_mode=$pic_mode
17282
17283# Whether or not to optimize for fast installation.
17284fast_install=$enable_fast_install
17285
17286# Shared archive member basename,for filename based shared library versioning on AIX.
17287shared_archive_member_spec=$shared_archive_member_spec
17288
17289# Shell to use when invoking shell scripts.
17290SHELL=$lt_SHELL
17291
17292# An echo program that protects backslashes.
17293ECHO=$lt_ECHO
17294
17295# The PATH separator for the build system.
17296PATH_SEPARATOR=$lt_PATH_SEPARATOR
17297
17298# The host system.
17299host_alias=$host_alias
17300host=$host
17301host_os=$host_os
17302
17303# The build system.
17304build_alias=$build_alias
17305build=$build
17306build_os=$build_os
17307
17308# A sed program that does not truncate output.
17309SED=$lt_SED
17310
17311# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17312Xsed="\$SED -e 1s/^X//"
17313
17314# A grep program that handles long lines.
17315GREP=$lt_GREP
17316
17317# An ERE matcher.
17318EGREP=$lt_EGREP
17319
17320# A literal string matcher.
17321FGREP=$lt_FGREP
17322
17323# A BSD- or MS-compatible name lister.
17324NM=$lt_NM
17325
17326# Whether we need soft or hard links.
17327LN_S=$lt_LN_S
17328
17329# What is the maximum length of a command?
17330max_cmd_len=$max_cmd_len
17331
17332# Object file suffix (normally "o").
17333objext=$ac_objext
17334
17335# Executable file suffix (normally "").
17336exeext=$exeext
17337
17338# whether the shell understands "unset".
17339lt_unset=$lt_unset
17340
17341# turn spaces into newlines.
17342SP2NL=$lt_lt_SP2NL
17343
17344# turn newlines into spaces.
17345NL2SP=$lt_lt_NL2SP
17346
17347# convert \$build file names to \$host format.
17348to_host_file_cmd=$lt_cv_to_host_file_cmd
17349
17350# convert \$build files to toolchain format.
17351to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17352
17353# Method to check whether dependent libraries are shared objects.
17354deplibs_check_method=$lt_deplibs_check_method
17355
17356# Command to use when deplibs_check_method = "file_magic".
17357file_magic_cmd=$lt_file_magic_cmd
17358
17359# How to find potential files when deplibs_check_method = "file_magic".
17360file_magic_glob=$lt_file_magic_glob
17361
17362# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17363want_nocaseglob=$lt_want_nocaseglob
17364
17365# Command to associate shared and link libraries.
17366sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17367
17368# The archiver.
17369AR=$lt_AR
17370
17371# Flags to create an archive.
17372AR_FLAGS=$lt_AR_FLAGS
17373
17374# How to feed a file listing to the archiver.
17375archiver_list_spec=$lt_archiver_list_spec
17376
17377# A symbol stripping program.
17378STRIP=$lt_STRIP
17379
17380# Commands used to install an old-style archive.
17381RANLIB=$lt_RANLIB
17382old_postinstall_cmds=$lt_old_postinstall_cmds
17383old_postuninstall_cmds=$lt_old_postuninstall_cmds
17384
17385# Whether to use a lock for old archive extraction.
17386lock_old_archive_extraction=$lock_old_archive_extraction
17387
17388# A C compiler.
17389LTCC=$lt_CC
17390
17391# LTCC compiler flags.
17392LTCFLAGS=$lt_CFLAGS
17393
17394# Take the output of nm and produce a listing of raw symbols and C names.
17395global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17396
17397# Transform the output of nm in a proper C declaration.
17398global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17399
17400# Transform the output of nm into a list of symbols to manually relocate.
17401global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17402
17403# Transform the output of nm in a C name address pair.
17404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17405
17406# Transform the output of nm in a C name address pair when lib prefix is needed.
17407global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17408
17409# The name lister interface.
17410nm_interface=$lt_lt_cv_nm_interface
17411
17412# Specify filename containing input files for \$NM.
17413nm_file_list_spec=$lt_nm_file_list_spec
17414
17415# The root where to search for dependent libraries,and where our libraries should be installed.
17416lt_sysroot=$lt_sysroot
17417
17418# Command to truncate a binary pipe.
17419lt_truncate_bin=$lt_lt_cv_truncate_bin
17420
17421# The name of the directory that contains temporary libtool files.
17422objdir=$objdir
17423
17424# Used to examine libraries when file_magic_cmd begins with "file".
17425MAGIC_CMD=$MAGIC_CMD
17426
17427# Must we lock files when doing compilation?
17428need_locks=$lt_need_locks
17429
17430# Manifest tool.
17431MANIFEST_TOOL=$lt_MANIFEST_TOOL
17432
17433# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17434DSYMUTIL=$lt_DSYMUTIL
17435
17436# Tool to change global to local symbols on Mac OS X.
17437NMEDIT=$lt_NMEDIT
17438
17439# Tool to manipulate fat objects and archives on Mac OS X.
17440LIPO=$lt_LIPO
17441
17442# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17443OTOOL=$lt_OTOOL
17444
17445# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17446OTOOL64=$lt_OTOOL64
17447
17448# Old archive suffix (normally "a").
17449libext=$libext
17450
17451# Shared library suffix (normally ".so").
17452shrext_cmds=$lt_shrext_cmds
17453
17454# The commands to extract the exported symbol list from a shared archive.
17455extract_expsyms_cmds=$lt_extract_expsyms_cmds
17456
17457# Variables whose values should be saved in libtool wrapper scripts and
17458# restored at link time.
17459variables_saved_for_relink=$lt_variables_saved_for_relink
17460
17461# Do we need the "lib" prefix for modules?
17462need_lib_prefix=$need_lib_prefix
17463
17464# Do we need a version for libraries?
17465need_version=$need_version
17466
17467# Library versioning type.
17468version_type=$version_type
17469
17470# Shared library runtime path variable.
17471runpath_var=$runpath_var
17472
17473# Shared library path variable.
17474shlibpath_var=$shlibpath_var
17475
17476# Is shlibpath searched before the hard-coded library search path?
17477shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17478
17479# Format of library name prefix.
17480libname_spec=$lt_libname_spec
17481
17482# List of archive names.  First name is the real one, the rest are links.
17483# The last name is the one that the linker finds with -lNAME
17484library_names_spec=$lt_library_names_spec
17485
17486# The coded name of the library, if different from the real name.
17487soname_spec=$lt_soname_spec
17488
17489# Permission mode override for installation of shared libraries.
17490install_override_mode=$lt_install_override_mode
17491
17492# Command to use after installation of a shared archive.
17493postinstall_cmds=$lt_postinstall_cmds
17494
17495# Command to use after uninstallation of a shared archive.
17496postuninstall_cmds=$lt_postuninstall_cmds
17497
17498# Commands used to finish a libtool library installation in a directory.
17499finish_cmds=$lt_finish_cmds
17500
17501# As "finish_cmds", except a single script fragment to be evaled but
17502# not shown.
17503finish_eval=$lt_finish_eval
17504
17505# Whether we should hardcode library paths into libraries.
17506hardcode_into_libs=$hardcode_into_libs
17507
17508# Compile-time system search path for libraries.
17509sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17510
17511# Detected run-time system search path for libraries.
17512sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17513
17514# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17515configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17516
17517# Whether dlopen is supported.
17518dlopen_support=$enable_dlopen
17519
17520# Whether dlopen of programs is supported.
17521dlopen_self=$enable_dlopen_self
17522
17523# Whether dlopen of statically linked programs is supported.
17524dlopen_self_static=$enable_dlopen_self_static
17525
17526# Commands to strip libraries.
17527old_striplib=$lt_old_striplib
17528striplib=$lt_striplib
17529
17530
17531# The linker used to build libraries.
17532LD=$lt_LD
17533
17534# How to create reloadable object files.
17535reload_flag=$lt_reload_flag
17536reload_cmds=$lt_reload_cmds
17537
17538# Commands used to build an old-style archive.
17539old_archive_cmds=$lt_old_archive_cmds
17540
17541# A language specific compiler.
17542CC=$lt_compiler
17543
17544# Is the compiler the GNU compiler?
17545with_gcc=$GCC
17546
17547# Compiler flag to turn off builtin functions.
17548no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17549
17550# Additional compiler flags for building library objects.
17551pic_flag=$lt_lt_prog_compiler_pic
17552
17553# How to pass a linker flag through the compiler.
17554wl=$lt_lt_prog_compiler_wl
17555
17556# Compiler flag to prevent dynamic linking.
17557link_static_flag=$lt_lt_prog_compiler_static
17558
17559# Does compiler simultaneously support -c and -o options?
17560compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17561
17562# Whether or not to add -lc for building shared libraries.
17563build_libtool_need_lc=$archive_cmds_need_lc
17564
17565# Whether or not to disallow shared libs when runtime libs are static.
17566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17567
17568# Compiler flag to allow reflexive dlopens.
17569export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17570
17571# Compiler flag to generate shared objects directly from archives.
17572whole_archive_flag_spec=$lt_whole_archive_flag_spec
17573
17574# Whether the compiler copes with passing no objects directly.
17575compiler_needs_object=$lt_compiler_needs_object
17576
17577# Create an old-style archive from a shared archive.
17578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17579
17580# Create a temporary old-style archive to link instead of a shared archive.
17581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17582
17583# Commands used to build a shared archive.
17584archive_cmds=$lt_archive_cmds
17585archive_expsym_cmds=$lt_archive_expsym_cmds
17586
17587# Commands used to build a loadable module if different from building
17588# a shared archive.
17589module_cmds=$lt_module_cmds
17590module_expsym_cmds=$lt_module_expsym_cmds
17591
17592# Whether we are building with GNU ld or not.
17593with_gnu_ld=$lt_with_gnu_ld
17594
17595# Flag that allows shared libraries with undefined symbols to be built.
17596allow_undefined_flag=$lt_allow_undefined_flag
17597
17598# Flag that enforces no undefined symbols.
17599no_undefined_flag=$lt_no_undefined_flag
17600
17601# Flag to hardcode \$libdir into a binary during linking.
17602# This must work even if \$libdir does not exist
17603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17604
17605# Whether we need a single "-rpath" flag with a separated argument.
17606hardcode_libdir_separator=$lt_hardcode_libdir_separator
17607
17608# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17609# DIR into the resulting binary.
17610hardcode_direct=$hardcode_direct
17611
17612# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17613# DIR into the resulting binary and the resulting library dependency is
17614# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17615# library is relocated.
17616hardcode_direct_absolute=$hardcode_direct_absolute
17617
17618# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17619# into the resulting binary.
17620hardcode_minus_L=$hardcode_minus_L
17621
17622# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17623# into the resulting binary.
17624hardcode_shlibpath_var=$hardcode_shlibpath_var
17625
17626# Set to "yes" if building a shared library automatically hardcodes DIR
17627# into the library and all subsequent libraries and executables linked
17628# against it.
17629hardcode_automatic=$hardcode_automatic
17630
17631# Set to yes if linker adds runtime paths of dependent libraries
17632# to runtime path list.
17633inherit_rpath=$inherit_rpath
17634
17635# Whether libtool must link a program against all its dependency libraries.
17636link_all_deplibs=$link_all_deplibs
17637
17638# Set to "yes" if exported symbols are required.
17639always_export_symbols=$always_export_symbols
17640
17641# The commands to list exported symbols.
17642export_symbols_cmds=$lt_export_symbols_cmds
17643
17644# Symbols that should not be listed in the preloaded symbols.
17645exclude_expsyms=$lt_exclude_expsyms
17646
17647# Symbols that must always be exported.
17648include_expsyms=$lt_include_expsyms
17649
17650# Commands necessary for linking programs (against libraries) with templates.
17651prelink_cmds=$lt_prelink_cmds
17652
17653# Commands necessary for finishing linking programs.
17654postlink_cmds=$lt_postlink_cmds
17655
17656# Specify filename containing input files.
17657file_list_spec=$lt_file_list_spec
17658
17659# How to hardcode a shared library path into an executable.
17660hardcode_action=$hardcode_action
17661
17662# ### END LIBTOOL CONFIG
17663
17664_LT_EOF
17665
17666    cat <<'_LT_EOF' >> "$cfgfile"
17667
17668# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17669
17670# func_munge_path_list VARIABLE PATH
17671# -----------------------------------
17672# VARIABLE is name of variable containing _space_ separated list of
17673# directories to be munged by the contents of PATH, which is string
17674# having a format:
17675# "DIR[:DIR]:"
17676#       string "DIR[ DIR]" will be prepended to VARIABLE
17677# ":DIR[:DIR]"
17678#       string "DIR[ DIR]" will be appended to VARIABLE
17679# "DIRP[:DIRP]::[DIRA:]DIRA"
17680#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17681#       "DIRA[ DIRA]" will be appended to VARIABLE
17682# "DIR[:DIR]"
17683#       VARIABLE will be replaced by "DIR[ DIR]"
17684func_munge_path_list ()
17685{
17686    case x$2 in
17687    x)
17688        ;;
17689    *:)
17690        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17691        ;;
17692    x:*)
17693        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17694        ;;
17695    *::*)
17696        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17697        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17698        ;;
17699    *)
17700        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17701        ;;
17702    esac
17703}
17704
17705
17706# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17707func_cc_basename ()
17708{
17709    for cc_temp in $*""; do
17710      case $cc_temp in
17711        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17712        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17713        \-*) ;;
17714        *) break;;
17715      esac
17716    done
17717    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17718}
17719
17720
17721# ### END FUNCTIONS SHARED WITH CONFIGURE
17722
17723_LT_EOF
17724
17725  case $host_os in
17726  aix3*)
17727    cat <<\_LT_EOF >> "$cfgfile"
17728# AIX sometimes has problems with the GCC collect2 program.  For some
17729# reason, if we set the COLLECT_NAMES environment variable, the problems
17730# vanish in a puff of smoke.
17731if test set != "${COLLECT_NAMES+set}"; then
17732  COLLECT_NAMES=
17733  export COLLECT_NAMES
17734fi
17735_LT_EOF
17736    ;;
17737  esac
17738
17739
17740ltmain=$ac_aux_dir/ltmain.sh
17741
17742
17743  # We use sed instead of cat because bash on DJGPP gets confused if
17744  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17745  # text mode, it properly converts lines to CR/LF.  This bash problem
17746  # is reportedly fixed, but why not run on old versions too?
17747  sed '$q' "$ltmain" >> "$cfgfile" \
17748     || (rm -f "$cfgfile"; exit 1)
17749
17750   mv -f "$cfgfile" "$ofile" ||
17751    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17752  chmod +x "$ofile"
17753
17754 ;;
17755    "$ac_stdint_h":C)
17756{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
17757$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
17758ac_stdint=$tmp/_stdint.h
17759
17760echo "#ifndef" $_ac_stdint_h >$ac_stdint
17761echo "#define" $_ac_stdint_h "1" >>$ac_stdint
17762echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
17763echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
17764echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
17765if test "_$ac_cv_header_stdint_t" != "_" ; then
17766echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
17767fi
17768
17769cat >>$ac_stdint <<STDINT_EOF
17770
17771/* ................... shortcircuit part ........................... */
17772
17773#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
17774#include <stdint.h>
17775#else
17776#include <stddef.h>
17777
17778/* .................... configured part ............................ */
17779
17780STDINT_EOF
17781
17782echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
17783if test "_$ac_cv_header_stdint_x" != "_" ; then
17784  ac_header="$ac_cv_header_stdint_x"
17785  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
17786else
17787  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
17788fi
17789
17790echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
17791if  test "_$ac_cv_header_stdint_o" != "_" ; then
17792  ac_header="$ac_cv_header_stdint_o"
17793  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
17794else
17795  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
17796fi
17797
17798echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
17799if  test "_$ac_cv_header_stdint_u" != "_" ; then
17800  ac_header="$ac_cv_header_stdint_u"
17801  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
17802else
17803  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
17804fi
17805
17806echo "" >>$ac_stdint
17807
17808if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
17809  echo "#include <$ac_header>" >>$ac_stdint
17810  echo "" >>$ac_stdint
17811fi fi
17812
17813echo "/* which 64bit typedef has been found */" >>$ac_stdint
17814if test "$ac_cv_type_uint64_t" = "yes" ; then
17815echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
17816else
17817echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
17818fi
17819if test "$ac_cv_type_u_int64_t" = "yes" ; then
17820echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
17821else
17822echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
17823fi
17824echo "" >>$ac_stdint
17825
17826echo "/* which type model has been detected */" >>$ac_stdint
17827if test "_$ac_cv_stdint_char_model" != "_" ; then
17828echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
17829echo "#define   _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
17830else
17831echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
17832echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
17833fi
17834echo "" >>$ac_stdint
17835
17836echo "/* whether int_least types were detected */" >>$ac_stdint
17837if test "$ac_cv_type_int_least32_t" = "yes"; then
17838echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
17839else
17840echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
17841fi
17842echo "/* whether int_fast types were detected */" >>$ac_stdint
17843if test "$ac_cv_type_int_fast32_t" = "yes"; then
17844echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
17845else
17846echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
17847fi
17848echo "/* whether intmax_t type was detected */" >>$ac_stdint
17849if test "$ac_cv_type_intmax_t" = "yes"; then
17850echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
17851else
17852echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
17853fi
17854echo "" >>$ac_stdint
17855
17856  cat >>$ac_stdint <<STDINT_EOF
17857/* .................... detections part ............................ */
17858
17859/* whether we need to define bitspecific types from compiler base types */
17860#ifndef _STDINT_HEADER_INTPTR
17861#ifndef _STDINT_HEADER_UINT32
17862#ifndef _STDINT_HEADER_U_INT32
17863#define _STDINT_NEED_INT_MODEL_T
17864#else
17865#define _STDINT_HAVE_U_INT_TYPES
17866#endif
17867#endif
17868#endif
17869
17870#ifdef _STDINT_HAVE_U_INT_TYPES
17871#undef _STDINT_NEED_INT_MODEL_T
17872#endif
17873
17874#ifdef  _STDINT_CHAR_MODEL
17875#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
17876#ifndef _STDINT_BYTE_MODEL
17877#define _STDINT_BYTE_MODEL 12
17878#endif
17879#endif
17880#endif
17881
17882#ifndef _STDINT_HAVE_INT_LEAST32_T
17883#define _STDINT_NEED_INT_LEAST_T
17884#endif
17885
17886#ifndef _STDINT_HAVE_INT_FAST32_T
17887#define _STDINT_NEED_INT_FAST_T
17888#endif
17889
17890#ifndef _STDINT_HEADER_INTPTR
17891#define _STDINT_NEED_INTPTR_T
17892#ifndef _STDINT_HAVE_INTMAX_T
17893#define _STDINT_NEED_INTMAX_T
17894#endif
17895#endif
17896
17897
17898/* .................... definition part ............................ */
17899
17900/* some system headers have good uint64_t */
17901#ifndef _HAVE_UINT64_T
17902#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
17903#define _HAVE_UINT64_T
17904#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
17905#define _HAVE_UINT64_T
17906typedef u_int64_t uint64_t;
17907#endif
17908#endif
17909
17910#ifndef _HAVE_UINT64_T
17911/* .. here are some common heuristics using compiler runtime specifics */
17912#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
17913#define _HAVE_UINT64_T
17914typedef long long int64_t;
17915typedef unsigned long long uint64_t;
17916
17917#elif !defined __STRICT_ANSI__
17918#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17919#define _HAVE_UINT64_T
17920typedef __int64 int64_t;
17921typedef unsigned __int64 uint64_t;
17922
17923#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
17924/* note: all ELF-systems seem to have loff-support which needs 64-bit */
17925#if !defined _NO_LONGLONG
17926#define _HAVE_UINT64_T
17927typedef long long int64_t;
17928typedef unsigned long long uint64_t;
17929#endif
17930
17931#elif defined __alpha || (defined __mips && defined _ABIN32)
17932#if !defined _NO_LONGLONG
17933typedef long int64_t;
17934typedef unsigned long uint64_t;
17935#endif
17936  /* compiler/cpu type to define int64_t */
17937#endif
17938#endif
17939#endif
17940
17941#if defined _STDINT_HAVE_U_INT_TYPES
17942/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
17943typedef u_int8_t uint8_t;
17944typedef u_int16_t uint16_t;
17945typedef u_int32_t uint32_t;
17946
17947/* glibc compatibility */
17948#ifndef __int8_t_defined
17949#define __int8_t_defined
17950#endif
17951#endif
17952
17953#ifdef _STDINT_NEED_INT_MODEL_T
17954/* we must guess all the basic types. Apart from byte-adressable system, */
17955/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
17956/* (btw, those nibble-addressable systems are way off, or so we assume) */
17957
17958
17959#if defined _STDINT_BYTE_MODEL
17960#if _STDINT_LONG_MODEL+0 == 242
17961/* 2:4:2 =  IP16 = a normal 16-bit system                */
17962typedef unsigned char   uint8_t;
17963typedef unsigned short  uint16_t;
17964typedef unsigned long   uint32_t;
17965#ifndef __int8_t_defined
17966#define __int8_t_defined
17967typedef          char    int8_t;
17968typedef          short   int16_t;
17969typedef          long    int32_t;
17970#endif
17971#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
17972/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
17973/* 4:4:4 = ILP32 = a normal 32-bit system                */
17974typedef unsigned char   uint8_t;
17975typedef unsigned short  uint16_t;
17976typedef unsigned int    uint32_t;
17977#ifndef __int8_t_defined
17978#define __int8_t_defined
17979typedef          char    int8_t;
17980typedef          short   int16_t;
17981typedef          int     int32_t;
17982#endif
17983#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
17984/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
17985/* 4:8:8 =  LP64 = a normal 64-bit system                 */
17986typedef unsigned char   uint8_t;
17987typedef unsigned short  uint16_t;
17988typedef unsigned int    uint32_t;
17989#ifndef __int8_t_defined
17990#define __int8_t_defined
17991typedef          char    int8_t;
17992typedef          short   int16_t;
17993typedef          int     int32_t;
17994#endif
17995/* this system has a "long" of 64bit */
17996#ifndef _HAVE_UINT64_T
17997#define _HAVE_UINT64_T
17998typedef unsigned long   uint64_t;
17999typedef          long    int64_t;
18000#endif
18001#elif _STDINT_LONG_MODEL+0 == 448
18002/*      LLP64   a 64-bit system derived from a 32-bit system */
18003typedef unsigned char   uint8_t;
18004typedef unsigned short  uint16_t;
18005typedef unsigned int    uint32_t;
18006#ifndef __int8_t_defined
18007#define __int8_t_defined
18008typedef          char    int8_t;
18009typedef          short   int16_t;
18010typedef          int     int32_t;
18011#endif
18012/* assuming the system has a "long long" */
18013#ifndef _HAVE_UINT64_T
18014#define _HAVE_UINT64_T
18015typedef unsigned long long uint64_t;
18016typedef          long long  int64_t;
18017#endif
18018#else
18019#define _STDINT_NO_INT32_T
18020#endif
18021#else
18022#define _STDINT_NO_INT8_T
18023#define _STDINT_NO_INT32_T
18024#endif
18025#endif
18026
18027/*
18028 * quote from SunOS-5.8 sys/inttypes.h:
18029 * Use at your own risk.  As of February 1996, the committee is squarely
18030 * behind the fixed sized types; the "least" and "fast" types are still being
18031 * discussed.  The probability that the "fast" types may be removed before
18032 * the standard is finalized is high enough that they are not currently
18033 * implemented.
18034 */
18035
18036#if defined _STDINT_NEED_INT_LEAST_T
18037typedef  int8_t    int_least8_t;
18038typedef  int16_t   int_least16_t;
18039typedef  int32_t   int_least32_t;
18040#ifdef _HAVE_UINT64_T
18041typedef  int64_t   int_least64_t;
18042#endif
18043
18044typedef uint8_t   uint_least8_t;
18045typedef uint16_t  uint_least16_t;
18046typedef uint32_t  uint_least32_t;
18047#ifdef _HAVE_UINT64_T
18048typedef uint64_t  uint_least64_t;
18049#endif
18050  /* least types */
18051#endif
18052
18053#if defined _STDINT_NEED_INT_FAST_T
18054typedef  int8_t    int_fast8_t;
18055typedef  int       int_fast16_t;
18056typedef  int32_t   int_fast32_t;
18057#ifdef _HAVE_UINT64_T
18058typedef  int64_t   int_fast64_t;
18059#endif
18060
18061typedef uint8_t   uint_fast8_t;
18062typedef unsigned  uint_fast16_t;
18063typedef uint32_t  uint_fast32_t;
18064#ifdef _HAVE_UINT64_T
18065typedef uint64_t  uint_fast64_t;
18066#endif
18067  /* fast types */
18068#endif
18069
18070#ifdef _STDINT_NEED_INTMAX_T
18071#ifdef _HAVE_UINT64_T
18072typedef  int64_t       intmax_t;
18073typedef uint64_t      uintmax_t;
18074#else
18075typedef          long  intmax_t;
18076typedef unsigned long uintmax_t;
18077#endif
18078#endif
18079
18080#ifdef _STDINT_NEED_INTPTR_T
18081#ifndef __intptr_t_defined
18082#define __intptr_t_defined
18083/* we encourage using "long" to store pointer values, never use "int" ! */
18084#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
18085typedef  unsinged int   uintptr_t;
18086typedef           int    intptr_t;
18087#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
18088typedef  unsigned long  uintptr_t;
18089typedef           long   intptr_t;
18090#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
18091typedef        uint64_t uintptr_t;
18092typedef         int64_t  intptr_t;
18093#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
18094typedef  unsigned long  uintptr_t;
18095typedef           long   intptr_t;
18096#endif
18097#endif
18098#endif
18099
18100  /* shortcircuit*/
18101#endif
18102  /* once */
18103#endif
18104#endif
18105STDINT_EOF
18106    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
18107      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
18108$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
18109    else
18110      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
18111$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18112	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
18113	 X"$ac_stdint_h" : 'X\(//\)$' \| \
18114	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
18115$as_echo X"$ac_stdint_h" |
18116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18117	    s//\1/
18118	    q
18119	  }
18120	  /^X\(\/\/\)[^/].*/{
18121	    s//\1/
18122	    q
18123	  }
18124	  /^X\(\/\/\)$/{
18125	    s//\1/
18126	    q
18127	  }
18128	  /^X\(\/\).*/{
18129	    s//\1/
18130	    q
18131	  }
18132	  s/.*/./; q'`
18133      as_dir="$ac_dir"; as_fn_mkdir_p
18134      rm -f $ac_stdint_h
18135      mv $ac_stdint $ac_stdint_h
18136    fi
18137 ;;
18138
18139  esac
18140done # for ac_tag
18141
18142
18143as_fn_exit 0
18144_ACEOF
18145ac_clean_files=$ac_clean_files_save
18146
18147test $ac_write_fail = 0 ||
18148  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18149
18150
18151# configure is writing to config.log, and then calls config.status.
18152# config.status does its own redirection, appending to config.log.
18153# Unfortunately, on DOS this fails, as config.log is still kept open
18154# by configure, so config.status won't be able to write to it; its
18155# output is simply discarded.  So we exec the FD to /dev/null,
18156# effectively closing config.log, so it can be properly (re)opened and
18157# appended to by config.status.  When coming back to configure, we
18158# need to make the FD available again.
18159if test "$no_create" != yes; then
18160  ac_cs_success=:
18161  ac_config_status_args=
18162  test "$silent" = yes &&
18163    ac_config_status_args="$ac_config_status_args --quiet"
18164  exec 5>/dev/null
18165  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18166  exec 5>>config.log
18167  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18168  # would make configure fail if this is the last instruction.
18169  $ac_cs_success || as_fn_exit 1
18170fi
18171if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18172  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18173$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18174fi
18175
18176