1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libburn 1.5.4.
4#
5# Report bugs to <http://libburnia-project.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://libburnia-project.org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libburn'
592PACKAGE_TARNAME='libburn'
593PACKAGE_VERSION='1.5.4'
594PACKAGE_STRING='libburn 1.5.4'
595PACKAGE_BUGREPORT='http://libburnia-project.org'
596PACKAGE_URL=''
597
598ac_default_prefix=/usr/local
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LIBBURNIA_LDCONFIG_CMD
640LIBLDFLAGS
641LIBCDIO_LIBS
642LIBCDIO_CFLAGS
643PKG_CONFIG_LIBDIR
644PKG_CONFIG_PATH
645PKG_CONFIG
646LIBBURN_ARCH_LIBS
647LIBBURNIA_PKGCONFDIR
648ARCH
649THREAD_LIBS
650LIBTOOL_DEPS
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660DLLTOOL
661OBJDUMP
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668SED
669LIBTOOL
670EGREP
671GREP
672CPP
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690BURN_BINARY_AGE
691BURN_INTERFACE_AGE
692LT_CURRENT_MINUS_AGE
693LT_AGE
694LT_REVISION
695LT_CURRENT
696LT_RELEASE
697BURN_VERSION
698BURN_MICRO_VERSION
699BURN_MINOR_VERSION
700BURN_MAJOR_VERSION
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705am__untar
706am__tar
707AMTAR
708am__leading_dot
709SET_MAKE
710AWK
711mkdir_p
712MKDIR_P
713INSTALL_STRIP_PROGRAM
714STRIP
715install_sh
716MAKEINFO
717AUTOHEADER
718AUTOMAKE
719AUTOCONF
720ACLOCAL
721VERSION
722PACKAGE
723CYGPATH_W
724am__isrc
725INSTALL_DATA
726INSTALL_SCRIPT
727INSTALL_PROGRAM
728target_os
729target_vendor
730target_cpu
731target
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_silent_rules
782enable_dependency_tracking
783enable_largefile
784enable_shared
785enable_static
786with_pic
787enable_fast_install
788with_gnu_ld
789with_sysroot
790enable_libtool_lock
791enable_track_src_odirect
792enable_dvd_obs_64k
793enable_dvd_obs_pad
794enable_pkg_check_modules
795enable_libcdio
796enable_versioned_libs
797enable_ldconfig_at_install
798enable_debug
799enable_libdir_pkgconfig
800enable_pkgconfig_path
801'
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810CPP
811PKG_CONFIG
812PKG_CONFIG_PATH
813PKG_CONFIG_LIBDIR
814LIBCDIO_CFLAGS
815LIBCDIO_LIBS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107    ac_prev=sbindir ;;
1108  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109  | --sbi=* | --sb=*)
1110    sbindir=$ac_optarg ;;
1111
1112  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114  | --sharedst | --shareds | --shared | --share | --shar \
1115  | --sha | --sh)
1116    ac_prev=sharedstatedir ;;
1117  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120  | --sha=* | --sh=*)
1121    sharedstatedir=$ac_optarg ;;
1122
1123  -site | --site | --sit)
1124    ac_prev=site ;;
1125  -site=* | --site=* | --sit=*)
1126    site=$ac_optarg ;;
1127
1128  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129    ac_prev=srcdir ;;
1130  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131    srcdir=$ac_optarg ;;
1132
1133  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134  | --syscon | --sysco | --sysc | --sys | --sy)
1135    ac_prev=sysconfdir ;;
1136  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138    sysconfdir=$ac_optarg ;;
1139
1140  -target | --target | --targe | --targ | --tar | --ta | --t)
1141    ac_prev=target_alias ;;
1142  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143    target_alias=$ac_optarg ;;
1144
1145  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146    verbose=yes ;;
1147
1148  -version | --version | --versio | --versi | --vers | -V)
1149    ac_init_version=: ;;
1150
1151  -with-* | --with-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=\$ac_optarg ;;
1166
1167  -without-* | --without-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=no ;;
1182
1183  --x)
1184    # Obsolete; use --with-x.
1185    with_x=yes ;;
1186
1187  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188  | --x-incl | --x-inc | --x-in | --x-i)
1189    ac_prev=x_includes ;;
1190  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192    x_includes=$ac_optarg ;;
1193
1194  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196    ac_prev=x_libraries ;;
1197  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199    x_libraries=$ac_optarg ;;
1200
1201  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203    ;;
1204
1205  *=*)
1206    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207    # Reject names that are not valid shell variable names.
1208    case $ac_envvar in #(
1209      '' | [0-9]* | *[!_$as_cr_alnum]* )
1210      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211    esac
1212    eval $ac_envvar=\$ac_optarg
1213    export $ac_envvar ;;
1214
1215  *)
1216    # FIXME: should be removed in autoconf 3.0.
1217    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221    ;;
1222
1223  esac
1224done
1225
1226if test -n "$ac_prev"; then
1227  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228  as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232  case $enable_option_checking in
1233    no) ;;
1234    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236  esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241		datadir sysconfdir sharedstatedir localstatedir includedir \
1242		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243		libdir localedir mandir
1244do
1245  eval ac_val=\$$ac_var
1246  # Remove trailing slashes.
1247  case $ac_val in
1248    */ )
1249      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250      eval $ac_var=\$ac_val;;
1251  esac
1252  # Be sure to have absolute directory names.
1253  case $ac_val in
1254    [\\/$]* | ?:[\\/]* )  continue;;
1255    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256  esac
1257  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269  if test "x$build_alias" = x; then
1270    cross_compiling=maybe
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures libburn 1.5.4 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking ...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/libburn]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421  --target=TARGET   configure for building compilers for TARGET [HOST]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426  case $ac_init_help in
1427     short | recursive ) echo "Configuration of libburn 1.5.4:";;
1428   esac
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --enable-dependency-tracking
1438                          do not reject slow dependency extractors
1439  --disable-dependency-tracking
1440                          speeds up one-time build
1441  --disable-largefile     omit support for large files
1442  --enable-shared[=PKGS]  build shared libraries [default=yes]
1443  --enable-static[=PKGS]  build static libraries [default=yes]
1444  --enable-fast-install[=PKGS]
1445                          optimize for fast installation [default=yes]
1446  --disable-libtool-lock  avoid locking (might break parallel builds)
1447  --enable-track-src-odirect   Banned for now: (Enable use of O_DIRECT with track input, default=no)
1448  --enable-dvd-obs-64k    64 KB default size for DVD writing, default=no
1449  --enable-dvd-obs-pad    pad DVD DAO sessions to 32 or 64 KB, default=no
1450  --enable-pkg-check-modules      Enable pkg-config check for libcdio , default=no
1451  --enable-libcdio        Enable use of libcdio as system adapter, default=no (except on MSWindows)
1452  --enable-versioned-libs Enable strict symbol encapsulation , default=yes
1453  --enable-ldconfig-at-install    On GNU/Linux run ldconfig, default=yes
1454  --enable-debug          Disable aggressive optimizations default=yes
1455  --enable-libdir-pkgconfig  Install to $libdir/pkgconfig on any OS, default=no
1456  --enable-pkgconfig-path=DIR  Absolute path of directory for libisofs-*.pc
1457
1458Optional Packages:
1459  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                          both]
1463  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1464  --with-sysroot=DIR Search for dependent libraries within DIR
1465                        (or the compiler's sysroot if not specified).
1466
1467Some influential environment variables:
1468  CC          C compiler command
1469  CFLAGS      C compiler flags
1470  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471              nonstandard directory <lib dir>
1472  LIBS        libraries to pass to the linker, e.g. -l<library>
1473  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474              you have headers in a nonstandard directory <include dir>
1475  CPP         C preprocessor
1476  PKG_CONFIG  path to pkg-config utility
1477  PKG_CONFIG_PATH
1478              directories to add to pkg-config's search path
1479  PKG_CONFIG_LIBDIR
1480              path overriding pkg-config's built-in search path
1481  LIBCDIO_CFLAGS
1482              C compiler flags for LIBCDIO, overriding pkg-config
1483  LIBCDIO_LIBS
1484              linker flags for LIBCDIO, overriding pkg-config
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to <http://libburnia-project.org>.
1490_ACEOF
1491ac_status=$?
1492fi
1493
1494if test "$ac_init_help" = "recursive"; then
1495  # If there are subdirs, report their specific --help.
1496  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497    test -d "$ac_dir" ||
1498      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499      continue
1500    ac_builddir=.
1501
1502case "$ac_dir" in
1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504*)
1505  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506  # A ".." for each directory in $ac_dir_suffix.
1507  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508  case $ac_top_builddir_sub in
1509  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511  esac ;;
1512esac
1513ac_abs_top_builddir=$ac_pwd
1514ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515# for backward compatibility:
1516ac_top_builddir=$ac_top_build_prefix
1517
1518case $srcdir in
1519  .)  # We are building in place.
1520    ac_srcdir=.
1521    ac_top_srcdir=$ac_top_builddir_sub
1522    ac_abs_top_srcdir=$ac_pwd ;;
1523  [\\/]* | ?:[\\/]* )  # Absolute name.
1524    ac_srcdir=$srcdir$ac_dir_suffix;
1525    ac_top_srcdir=$srcdir
1526    ac_abs_top_srcdir=$srcdir ;;
1527  *) # Relative name.
1528    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529    ac_top_srcdir=$ac_top_build_prefix$srcdir
1530    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531esac
1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534    cd "$ac_dir" || { ac_status=$?; continue; }
1535    # Check for guested configure.
1536    if test -f "$ac_srcdir/configure.gnu"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539    elif test -f "$ac_srcdir/configure"; then
1540      echo &&
1541      $SHELL "$ac_srcdir/configure" --help=recursive
1542    else
1543      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544    fi || ac_status=$?
1545    cd "$ac_pwd" || { ac_status=$?; break; }
1546  done
1547fi
1548
1549test -n "$ac_init_help" && exit $ac_status
1550if $ac_init_version; then
1551  cat <<\_ACEOF
1552libburn configure 1.5.4
1553generated by GNU Autoconf 2.69
1554
1555Copyright (C) 2012 Free Software Foundation, Inc.
1556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
1558_ACEOF
1559  exit
1560fi
1561
1562## ------------------------ ##
1563## Autoconf initialization. ##
1564## ------------------------ ##
1565
1566# ac_fn_c_try_compile LINENO
1567# --------------------------
1568# Try to compile conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_compile ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  rm -f conftest.$ac_objext
1573  if { { ac_try="$ac_compile"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_compile") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } && {
1589	 test -z "$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       } && test -s conftest.$ac_objext; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597	ac_retval=1
1598fi
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600  as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_compile
1603
1604# ac_fn_c_try_run LINENO
1605# ----------------------
1606# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607# that executables *can* be run.
1608ac_fn_c_try_run ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614  *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618  (eval "$ac_link") 2>&5
1619  ac_status=$?
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622  { { case "(($ac_try" in
1623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624  *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628  (eval "$ac_try") 2>&5
1629  ac_status=$?
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; }; }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: program exited with status $ac_status" >&5
1635       $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638       ac_retval=$ac_status
1639fi
1640  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_run
1645
1646# ac_fn_c_try_cpp LINENO
1647# ----------------------
1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_cpp ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  if { { ac_try="$ac_cpp conftest.$ac_ext"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } > conftest.i && {
1668	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       }; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676    ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_cpp
1682
1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists and can be compiled using the include files in
1686# INCLUDES, setting the cache variable VAR accordingly.
1687ac_fn_c_check_header_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if eval \${$3+:} false; then :
1693  $as_echo_n "(cached) " >&6
1694else
1695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h.  */
1697$4
1698#include <$2>
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"; then :
1701  eval "$3=yes"
1702else
1703  eval "$3=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707eval ac_res=\$$3
1708	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712} # ac_fn_c_check_header_compile
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  rm -f conftest.$ac_objext conftest$ac_exeext
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && {
1737	 test -z "$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       } && test -s conftest$ac_exeext && {
1740	 test "$cross_compiling" = yes ||
1741	 test -x conftest$ac_exeext
1742       }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1
1749fi
1750  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752  # interfere with the next link command; also delete a directory that is
1753  # left behind by Apple's compiler.  We do this before executing the actions.
1754  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756  as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_link
1759
1760# ac_fn_c_check_func LINENO FUNC VAR
1761# ----------------------------------
1762# Tests whether FUNC exists, setting the cache variable VAR accordingly
1763ac_fn_c_check_func ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if eval \${$3+:} false; then :
1769  $as_echo_n "(cached) " >&6
1770else
1771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h.  */
1773/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1775#define $2 innocuous_$2
1776
1777/* System header to define __stub macros and hopefully few prototypes,
1778    which can conflict with char $2 (); below.
1779    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780    <limits.h> exists even on freestanding compilers.  */
1781
1782#ifdef __STDC__
1783# include <limits.h>
1784#else
1785# include <assert.h>
1786#endif
1787
1788#undef $2
1789
1790/* Override any GCC internal prototype to avoid an error.
1791   Use char because int might match the return type of a GCC
1792   builtin and then its argument prototype would still apply.  */
1793#ifdef __cplusplus
1794extern "C"
1795#endif
1796char $2 ();
1797/* The GNU C library defines this for functions which it implements
1798    to always fail with ENOSYS.  Some functions are actually named
1799    something starting with __ and the normal name is an alias.  */
1800#if defined __stub_$2 || defined __stub___$2
1801choke me
1802#endif
1803
1804int
1805main ()
1806{
1807return $2 ();
1808  ;
1809  return 0;
1810}
1811_ACEOF
1812if ac_fn_c_try_link "$LINENO"; then :
1813  eval "$3=yes"
1814else
1815  eval "$3=no"
1816fi
1817rm -f core conftest.err conftest.$ac_objext \
1818    conftest$ac_exeext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825} # ac_fn_c_check_func
1826
1827# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828# -------------------------------------------------------
1829# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830# the include files in INCLUDES and setting the cache variable VAR
1831# accordingly.
1832ac_fn_c_check_header_mongrel ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  if eval \${$3+:} false; then :
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840fi
1841eval ac_res=\$$3
1842	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844else
1845  # Is the header compilable?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847$as_echo_n "checking $2 usability... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850$4
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"; then :
1854  ac_header_compiler=yes
1855else
1856  ac_header_compiler=no
1857fi
1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860$as_echo "$ac_header_compiler" >&6; }
1861
1862# Is the header present?
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864$as_echo_n "checking $2 presence... " >&6; }
1865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867#include <$2>
1868_ACEOF
1869if ac_fn_c_try_cpp "$LINENO"; then :
1870  ac_header_preproc=yes
1871else
1872  ac_header_preproc=no
1873fi
1874rm -f conftest.err conftest.i conftest.$ac_ext
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876$as_echo "$ac_header_preproc" >&6; }
1877
1878# So?  What about this header?
1879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1880  yes:no: )
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885    ;;
1886  no:yes:* )
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1890$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1894$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1895    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897( $as_echo "## ------------------------------------------- ##
1898## Report this to http://libburnia-project.org ##
1899## ------------------------------------------- ##"
1900     ) | sed "s/^/$as_me: WARNING:     /" >&2
1901    ;;
1902esac
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907else
1908  eval "$3=\$ac_header_compiler"
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913fi
1914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916} # ac_fn_c_check_header_mongrel
1917cat >config.log <<_ACEOF
1918This file contains any messages produced by compilers while
1919running configure, to aid debugging if configure makes a mistake.
1920
1921It was created by libburn $as_me 1.5.4, which was
1922generated by GNU Autoconf 2.69.  Invocation command line was
1923
1924  $ $0 $@
1925
1926_ACEOF
1927exec 5>>config.log
1928{
1929cat <<_ASUNAME
1930## --------- ##
1931## Platform. ##
1932## --------- ##
1933
1934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1942
1943/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1944/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1947/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1948/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1949/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1950
1951_ASUNAME
1952
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956  IFS=$as_save_IFS
1957  test -z "$as_dir" && as_dir=.
1958    $as_echo "PATH: $as_dir"
1959  done
1960IFS=$as_save_IFS
1961
1962} >&5
1963
1964cat >&5 <<_ACEOF
1965
1966
1967## ----------- ##
1968## Core tests. ##
1969## ----------- ##
1970
1971_ACEOF
1972
1973
1974# Keep a trace of the command line.
1975# Strip out --no-create and --no-recursion so they do not pile up.
1976# Strip out --silent because we don't want to record it for future runs.
1977# Also quote any args containing shell meta-characters.
1978# Make two passes to allow for proper duplicate-argument suppression.
1979ac_configure_args=
1980ac_configure_args0=
1981ac_configure_args1=
1982ac_must_keep_next=false
1983for ac_pass in 1 2
1984do
1985  for ac_arg
1986  do
1987    case $ac_arg in
1988    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990    | -silent | --silent | --silen | --sile | --sil)
1991      continue ;;
1992    *\'*)
1993      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994    esac
1995    case $ac_pass in
1996    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997    2)
1998      as_fn_append ac_configure_args1 " '$ac_arg'"
1999      if test $ac_must_keep_next = true; then
2000	ac_must_keep_next=false # Got value, back to normal.
2001      else
2002	case $ac_arg in
2003	  *=* | --config-cache | -C | -disable-* | --disable-* \
2004	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006	  | -with-* | --with-* | -without-* | --without-* | --x)
2007	    case "$ac_configure_args0 " in
2008	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009	    esac
2010	    ;;
2011	  -* ) ac_must_keep_next=true ;;
2012	esac
2013      fi
2014      as_fn_append ac_configure_args " '$ac_arg'"
2015      ;;
2016    esac
2017  done
2018done
2019{ ac_configure_args0=; unset ac_configure_args0;}
2020{ ac_configure_args1=; unset ac_configure_args1;}
2021
2022# When interrupted or exit'd, cleanup temporary files, and complete
2023# config.log.  We remove comments because anyway the quotes in there
2024# would cause problems or look ugly.
2025# WARNING: Use '\'' to represent an apostrophe within the trap.
2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027trap 'exit_status=$?
2028  # Save into config.log some information that might help in debugging.
2029  {
2030    echo
2031
2032    $as_echo "## ---------------- ##
2033## Cache variables. ##
2034## ---------------- ##"
2035    echo
2036    # The following way of writing the cache mishandles newlines in values,
2037(
2038  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039    eval ac_val=\$$ac_var
2040    case $ac_val in #(
2041    *${as_nl}*)
2042      case $ac_var in #(
2043      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045      esac
2046      case $ac_var in #(
2047      _ | IFS | as_nl) ;; #(
2048      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049      *) { eval $ac_var=; unset $ac_var;} ;;
2050      esac ;;
2051    esac
2052  done
2053  (set) 2>&1 |
2054    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055    *${as_nl}ac_space=\ *)
2056      sed -n \
2057	"s/'\''/'\''\\\\'\'''\''/g;
2058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059      ;; #(
2060    *)
2061      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062      ;;
2063    esac |
2064    sort
2065)
2066    echo
2067
2068    $as_echo "## ----------------- ##
2069## Output variables. ##
2070## ----------------- ##"
2071    echo
2072    for ac_var in $ac_subst_vars
2073    do
2074      eval ac_val=\$$ac_var
2075      case $ac_val in
2076      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077      esac
2078      $as_echo "$ac_var='\''$ac_val'\''"
2079    done | sort
2080    echo
2081
2082    if test -n "$ac_subst_files"; then
2083      $as_echo "## ------------------- ##
2084## File substitutions. ##
2085## ------------------- ##"
2086      echo
2087      for ac_var in $ac_subst_files
2088      do
2089	eval ac_val=\$$ac_var
2090	case $ac_val in
2091	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092	esac
2093	$as_echo "$ac_var='\''$ac_val'\''"
2094      done | sort
2095      echo
2096    fi
2097
2098    if test -s confdefs.h; then
2099      $as_echo "## ----------- ##
2100## confdefs.h. ##
2101## ----------- ##"
2102      echo
2103      cat confdefs.h
2104      echo
2105    fi
2106    test "$ac_signal" != 0 &&
2107      $as_echo "$as_me: caught signal $ac_signal"
2108    $as_echo "$as_me: exit $exit_status"
2109  } >&5
2110  rm -f core *.core core.conftest.* &&
2111    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112    exit $exit_status
2113' 0
2114for ac_signal in 1 2 13 15; do
2115  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116done
2117ac_signal=0
2118
2119# confdefs.h avoids OS command line length limits that DEFS can exceed.
2120rm -f -r conftest* confdefs.h
2121
2122$as_echo "/* confdefs.h */" > confdefs.h
2123
2124# Predefined preprocessor variables.
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_NAME "$PACKAGE_NAME"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_VERSION "$PACKAGE_VERSION"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_STRING "$PACKAGE_STRING"
2140_ACEOF
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_URL "$PACKAGE_URL"
2148_ACEOF
2149
2150
2151# Let the site file select an alternate cache file if it wants to.
2152# Prefer an explicitly selected file to automatically selected ones.
2153ac_site_file1=NONE
2154ac_site_file2=NONE
2155if test -n "$CONFIG_SITE"; then
2156  # We do not want a PATH search for config.site.
2157  case $CONFIG_SITE in #((
2158    -*)  ac_site_file1=./$CONFIG_SITE;;
2159    */*) ac_site_file1=$CONFIG_SITE;;
2160    *)   ac_site_file1=./$CONFIG_SITE;;
2161  esac
2162elif test "x$prefix" != xNONE; then
2163  ac_site_file1=$prefix/share/config.site
2164  ac_site_file2=$prefix/etc/config.site
2165else
2166  ac_site_file1=$ac_default_prefix/share/config.site
2167  ac_site_file2=$ac_default_prefix/etc/config.site
2168fi
2169for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2170do
2171  test "x$ac_site_file" = xNONE && continue
2172  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2173    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2174$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2175    sed 's/^/| /' "$ac_site_file" >&5
2176    . "$ac_site_file" \
2177      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179as_fn_error $? "failed to load site script $ac_site_file
2180See \`config.log' for more details" "$LINENO" 5; }
2181  fi
2182done
2183
2184if test -r "$cache_file"; then
2185  # Some versions of bash will fail to source /dev/null (special files
2186  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2187  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189$as_echo "$as_me: loading cache $cache_file" >&6;}
2190    case $cache_file in
2191      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192      *)                      . "./$cache_file";;
2193    esac
2194  fi
2195else
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197$as_echo "$as_me: creating cache $cache_file" >&6;}
2198  >$cache_file
2199fi
2200
2201# Check that the precious variables saved in the cache have kept the same
2202# value.
2203ac_cache_corrupted=false
2204for ac_var in $ac_precious_vars; do
2205  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206  eval ac_new_set=\$ac_env_${ac_var}_set
2207  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208  eval ac_new_val=\$ac_env_${ac_var}_value
2209  case $ac_old_set,$ac_new_set in
2210    set,)
2211      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2213      ac_cache_corrupted=: ;;
2214    ,set)
2215      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2217      ac_cache_corrupted=: ;;
2218    ,);;
2219    *)
2220      if test "x$ac_old_val" != "x$ac_new_val"; then
2221	# differences in whitespace do not lead to failure.
2222	ac_old_val_w=`echo x $ac_old_val`
2223	ac_new_val_w=`echo x $ac_new_val`
2224	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227	  ac_cache_corrupted=:
2228	else
2229	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231	  eval $ac_var=\$ac_old_val
2232	fi
2233	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2234$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2235	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2236$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2237      fi;;
2238  esac
2239  # Pass precious variables to config.status.
2240  if test "$ac_new_set" = set; then
2241    case $ac_new_val in
2242    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2243    *) ac_arg=$ac_var=$ac_new_val ;;
2244    esac
2245    case " $ac_configure_args " in
2246      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2247      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248    esac
2249  fi
2250done
2251if $ac_cache_corrupted; then
2252  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257fi
2258## -------------------- ##
2259## Main body of script. ##
2260## -------------------- ##
2261
2262ac_ext=c
2263ac_cpp='$CPP $CPPFLAGS'
2264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
2270
2271ac_aux_dir=
2272for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2273  if test -f "$ac_dir/install-sh"; then
2274    ac_aux_dir=$ac_dir
2275    ac_install_sh="$ac_aux_dir/install-sh -c"
2276    break
2277  elif test -f "$ac_dir/install.sh"; then
2278    ac_aux_dir=$ac_dir
2279    ac_install_sh="$ac_aux_dir/install.sh -c"
2280    break
2281  elif test -f "$ac_dir/shtool"; then
2282    ac_aux_dir=$ac_dir
2283    ac_install_sh="$ac_aux_dir/shtool install -c"
2284    break
2285  fi
2286done
2287if test -z "$ac_aux_dir"; then
2288  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2289fi
2290
2291# These three variables are undocumented and unsupported,
2292# and are intended to be withdrawn in a future Autoconf release.
2293# They can cause serious problems if a builder's source tree is in a directory
2294# whose full name contains unusual characters.
2295ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2296ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2297ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2298
2299
2300# Make sure we can run config.sub.
2301$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2303
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2305$as_echo_n "checking build system type... " >&6; }
2306if ${ac_cv_build+:} false; then :
2307  $as_echo_n "(cached) " >&6
2308else
2309  ac_build_alias=$build_alias
2310test "x$ac_build_alias" = x &&
2311  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312test "x$ac_build_alias" = x &&
2313  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2314ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2315  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2316
2317fi
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2319$as_echo "$ac_cv_build" >&6; }
2320case $ac_cv_build in
2321*-*-*) ;;
2322*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2323esac
2324build=$ac_cv_build
2325ac_save_IFS=$IFS; IFS='-'
2326set x $ac_cv_build
2327shift
2328build_cpu=$1
2329build_vendor=$2
2330shift; shift
2331# Remember, the first character of IFS is used to create $*,
2332# except with old shells:
2333build_os=$*
2334IFS=$ac_save_IFS
2335case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2336
2337
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2339$as_echo_n "checking host system type... " >&6; }
2340if ${ac_cv_host+:} false; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  if test "x$host_alias" = x; then
2344  ac_cv_host=$ac_cv_build
2345else
2346  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2347    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2348fi
2349
2350fi
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2352$as_echo "$ac_cv_host" >&6; }
2353case $ac_cv_host in
2354*-*-*) ;;
2355*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2356esac
2357host=$ac_cv_host
2358ac_save_IFS=$IFS; IFS='-'
2359set x $ac_cv_host
2360shift
2361host_cpu=$1
2362host_vendor=$2
2363shift; shift
2364# Remember, the first character of IFS is used to create $*,
2365# except with old shells:
2366host_os=$*
2367IFS=$ac_save_IFS
2368case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2369
2370
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2372$as_echo_n "checking target system type... " >&6; }
2373if ${ac_cv_target+:} false; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  if test "x$target_alias" = x; then
2377  ac_cv_target=$ac_cv_host
2378else
2379  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2380    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2381fi
2382
2383fi
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2385$as_echo "$ac_cv_target" >&6; }
2386case $ac_cv_target in
2387*-*-*) ;;
2388*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2389esac
2390target=$ac_cv_target
2391ac_save_IFS=$IFS; IFS='-'
2392set x $ac_cv_target
2393shift
2394target_cpu=$1
2395target_vendor=$2
2396shift; shift
2397# Remember, the first character of IFS is used to create $*,
2398# except with old shells:
2399target_os=$*
2400IFS=$ac_save_IFS
2401case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2402
2403
2404# The aliases save the names the user supplied, while $host etc.
2405# will get canonicalized.
2406test -n "$target_alias" &&
2407  test "$program_prefix$program_suffix$program_transform_name" = \
2408    NONENONEs,x,x, &&
2409  program_prefix=${target_alias}-
2410
2411
2412case $target_os in
2413freebsd* | dragonfly* | netbsd*)
2414        LDFLAGS="$LDFLAGS -L/usr/local/lib"
2415        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2416        ;;
2417esac
2418
2419
2420am__api_version='1.14'
2421
2422# Find a good install program.  We prefer a C program (faster),
2423# so one script is as good as another.  But avoid the broken or
2424# incompatible versions:
2425# SysV /etc/install, /usr/sbin/install
2426# SunOS /usr/etc/install
2427# IRIX /sbin/install
2428# AIX /bin/install
2429# AmigaOS /C/install, which installs bootblocks on floppy discs
2430# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433# OS/2's system install, which has a completely different semantic
2434# ./install, which can be erroneously created by make from ./install.sh.
2435# Reject install programs that cannot install multiple files.
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2437$as_echo_n "checking for a BSD-compatible install... " >&6; }
2438if test -z "$INSTALL"; then
2439if ${ac_cv_path_install+:} false; then :
2440  $as_echo_n "(cached) " >&6
2441else
2442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445  IFS=$as_save_IFS
2446  test -z "$as_dir" && as_dir=.
2447    # Account for people who put trailing slashes in PATH elements.
2448case $as_dir/ in #((
2449  ./ | .// | /[cC]/* | \
2450  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2451  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2452  /usr/ucb/* ) ;;
2453  *)
2454    # OSF1 and SCO ODT 3.0 have their own names for install.
2455    # Don't use installbsd from OSF since it installs stuff as root
2456    # by default.
2457    for ac_prog in ginstall scoinst install; do
2458      for ac_exec_ext in '' $ac_executable_extensions; do
2459	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2460	  if test $ac_prog = install &&
2461	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2462	    # AIX install.  It has an incompatible calling convention.
2463	    :
2464	  elif test $ac_prog = install &&
2465	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466	    # program-specific install script used by HP pwplus--don't use.
2467	    :
2468	  else
2469	    rm -rf conftest.one conftest.two conftest.dir
2470	    echo one > conftest.one
2471	    echo two > conftest.two
2472	    mkdir conftest.dir
2473	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2474	      test -s conftest.one && test -s conftest.two &&
2475	      test -s conftest.dir/conftest.one &&
2476	      test -s conftest.dir/conftest.two
2477	    then
2478	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2479	      break 3
2480	    fi
2481	  fi
2482	fi
2483      done
2484    done
2485    ;;
2486esac
2487
2488  done
2489IFS=$as_save_IFS
2490
2491rm -rf conftest.one conftest.two conftest.dir
2492
2493fi
2494  if test "${ac_cv_path_install+set}" = set; then
2495    INSTALL=$ac_cv_path_install
2496  else
2497    # As a last resort, use the slow shell script.  Don't cache a
2498    # value for INSTALL within a source directory, because that will
2499    # break other packages using the cache if that directory is
2500    # removed, or if the value is a relative name.
2501    INSTALL=$ac_install_sh
2502  fi
2503fi
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2505$as_echo "$INSTALL" >&6; }
2506
2507# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2508# It thinks the first close brace ends the variable substitution.
2509test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510
2511test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512
2513test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2516$as_echo_n "checking whether build environment is sane... " >&6; }
2517# Reject unsafe characters in $srcdir or the absolute working directory
2518# name.  Accept space and tab only in the latter.
2519am_lf='
2520'
2521case `pwd` in
2522  *[\\\"\#\$\&\'\`$am_lf]*)
2523    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2524esac
2525case $srcdir in
2526  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2527    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2528esac
2529
2530# Do 'set' in a subshell so we don't clobber the current shell's
2531# arguments.  Must try -L first in case configure is actually a
2532# symlink; some systems play weird games with the mod time of symlinks
2533# (eg FreeBSD returns the mod time of the symlink's containing
2534# directory).
2535if (
2536   am_has_slept=no
2537   for am_try in 1 2; do
2538     echo "timestamp, slept: $am_has_slept" > conftest.file
2539     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2540     if test "$*" = "X"; then
2541	# -L didn't work.
2542	set X `ls -t "$srcdir/configure" conftest.file`
2543     fi
2544     if test "$*" != "X $srcdir/configure conftest.file" \
2545	&& test "$*" != "X conftest.file $srcdir/configure"; then
2546
2547	# If neither matched, then we have a broken ls.  This can happen
2548	# if, for instance, CONFIG_SHELL is bash and it inherits a
2549	# broken ls alias from the environment.  This has actually
2550	# happened.  Such a system could not be considered "sane".
2551	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2552  alias in your environment" "$LINENO" 5
2553     fi
2554     if test "$2" = conftest.file || test $am_try -eq 2; then
2555       break
2556     fi
2557     # Just in case.
2558     sleep 1
2559     am_has_slept=yes
2560   done
2561   test "$2" = conftest.file
2562   )
2563then
2564   # Ok.
2565   :
2566else
2567   as_fn_error $? "newly created file is older than distributed files!
2568Check your system clock" "$LINENO" 5
2569fi
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571$as_echo "yes" >&6; }
2572# If we didn't sleep, we still need to ensure time stamps of config.status and
2573# generated files are strictly newer.
2574am_sleep_pid=
2575if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2576  ( sleep 1 ) &
2577  am_sleep_pid=$!
2578fi
2579
2580rm -f conftest.file
2581
2582test "$program_prefix" != NONE &&
2583  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2584# Use a double $ so make ignores it.
2585test "$program_suffix" != NONE &&
2586  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2587# Double any \ or $.
2588# By default was `s,x,x', remove it if useless.
2589ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2590program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2591
2592# Expand $ac_aux_dir to an absolute path.
2593am_aux_dir=`cd "$ac_aux_dir" && pwd`
2594
2595if test x"${MISSING+set}" != xset; then
2596  case $am_aux_dir in
2597  *\ * | *\	*)
2598    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2599  *)
2600    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2601  esac
2602fi
2603# Use eval to expand $SHELL
2604if eval "$MISSING --is-lightweight"; then
2605  am_missing_run="$MISSING "
2606else
2607  am_missing_run=
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2609$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2610fi
2611
2612if test x"${install_sh}" != xset; then
2613  case $am_aux_dir in
2614  *\ * | *\	*)
2615    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2616  *)
2617    install_sh="\${SHELL} $am_aux_dir/install-sh"
2618  esac
2619fi
2620
2621# Installed binaries are usually stripped using 'strip' when the user
2622# run "make install-strip".  However 'strip' might not be the right
2623# tool to use in cross-compilation environments, therefore Automake
2624# will honor the 'STRIP' environment variable to overrule this program.
2625if test "$cross_compiling" != no; then
2626  if test -n "$ac_tool_prefix"; then
2627  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2628set dummy ${ac_tool_prefix}strip; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if ${ac_cv_prog_STRIP+:} false; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  if test -n "$STRIP"; then
2635  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642    for ac_exec_ext in '' $ac_executable_extensions; do
2643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646    break 2
2647  fi
2648done
2649  done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654STRIP=$ac_cv_prog_STRIP
2655if test -n "$STRIP"; then
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2657$as_echo "$STRIP" >&6; }
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663
2664fi
2665if test -z "$ac_cv_prog_STRIP"; then
2666  ac_ct_STRIP=$STRIP
2667  # Extract the first word of "strip", so it can be a program name with args.
2668set dummy strip; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$ac_ct_STRIP"; then
2675  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684    ac_cv_prog_ac_ct_STRIP="strip"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2695if test -n "$ac_ct_STRIP"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2697$as_echo "$ac_ct_STRIP" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703  if test "x$ac_ct_STRIP" = x; then
2704    STRIP=":"
2705  else
2706    case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710ac_tool_warned=yes ;;
2711esac
2712    STRIP=$ac_ct_STRIP
2713  fi
2714else
2715  STRIP="$ac_cv_prog_STRIP"
2716fi
2717
2718fi
2719INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2720
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2722$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2723if test -z "$MKDIR_P"; then
2724  if ${ac_cv_path_mkdir+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_prog in mkdir gmkdir; do
2733	 for ac_exec_ext in '' $ac_executable_extensions; do
2734	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2735	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2736	     'mkdir (GNU coreutils) '* | \
2737	     'mkdir (coreutils) '* | \
2738	     'mkdir (fileutils) '4.1*)
2739	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2740	       break 3;;
2741	   esac
2742	 done
2743       done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748
2749  test -d ./--version && rmdir ./--version
2750  if test "${ac_cv_path_mkdir+set}" = set; then
2751    MKDIR_P="$ac_cv_path_mkdir -p"
2752  else
2753    # As a last resort, use the slow shell script.  Don't cache a
2754    # value for MKDIR_P within a source directory, because that will
2755    # break other packages using the cache if that directory is
2756    # removed, or if the value is a relative name.
2757    MKDIR_P="$ac_install_sh -d"
2758  fi
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2761$as_echo "$MKDIR_P" >&6; }
2762
2763for ac_prog in gawk mawk nawk awk
2764do
2765  # Extract the first word of "$ac_prog", so it can be a program name with args.
2766set dummy $ac_prog; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_AWK+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$AWK"; then
2773  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_AWK="$ac_prog"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792AWK=$ac_cv_prog_AWK
2793if test -n "$AWK"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795$as_echo "$AWK" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802  test -n "$AWK" && break
2803done
2804
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807set x ${MAKE-make}
2808ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  cat >conftest.make <<\_ACEOF
2813SHELL = /bin/sh
2814all:
2815	@echo '@@@%%%=$(MAKE)=@@@%%%'
2816_ACEOF
2817# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819  *@@@%%%=?*=@@@%%%*)
2820    eval ac_cv_prog_make_${ac_make}_set=yes;;
2821  *)
2822    eval ac_cv_prog_make_${ac_make}_set=no;;
2823esac
2824rm -f conftest.make
2825fi
2826if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828$as_echo "yes" >&6; }
2829  SET_MAKE=
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833  SET_MAKE="MAKE=${MAKE-make}"
2834fi
2835
2836rm -rf .tst 2>/dev/null
2837mkdir .tst 2>/dev/null
2838if test -d .tst; then
2839  am__leading_dot=.
2840else
2841  am__leading_dot=_
2842fi
2843rmdir .tst 2>/dev/null
2844
2845# Check whether --enable-silent-rules was given.
2846if test "${enable_silent_rules+set}" = set; then :
2847  enableval=$enable_silent_rules;
2848fi
2849
2850case $enable_silent_rules in # (((
2851  yes) AM_DEFAULT_VERBOSITY=0;;
2852   no) AM_DEFAULT_VERBOSITY=1;;
2853    *) AM_DEFAULT_VERBOSITY=1;;
2854esac
2855am_make=${MAKE-make}
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2857$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2858if ${am_cv_make_support_nested_variables+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if $as_echo 'TRUE=$(BAR$(V))
2862BAR0=false
2863BAR1=true
2864V=1
2865am__doit:
2866	@$(TRUE)
2867.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2868  am_cv_make_support_nested_variables=yes
2869else
2870  am_cv_make_support_nested_variables=no
2871fi
2872fi
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2874$as_echo "$am_cv_make_support_nested_variables" >&6; }
2875if test $am_cv_make_support_nested_variables = yes; then
2876    AM_V='$(V)'
2877  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2878else
2879  AM_V=$AM_DEFAULT_VERBOSITY
2880  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2881fi
2882AM_BACKSLASH='\'
2883
2884if test "`cd $srcdir && pwd`" != "`pwd`"; then
2885  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2886  # is not polluted with repeated "-I."
2887  am__isrc=' -I$(srcdir)'
2888  # test to see if srcdir already configured
2889  if test -f $srcdir/config.status; then
2890    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2891  fi
2892fi
2893
2894# test whether we have cygpath
2895if test -z "$CYGPATH_W"; then
2896  if (cygpath --version) >/dev/null 2>/dev/null; then
2897    CYGPATH_W='cygpath -w'
2898  else
2899    CYGPATH_W=echo
2900  fi
2901fi
2902
2903
2904# Define the identity of the package.
2905 PACKAGE='libburn'
2906 VERSION='1.5.4'
2907
2908
2909cat >>confdefs.h <<_ACEOF
2910#define PACKAGE "$PACKAGE"
2911_ACEOF
2912
2913
2914cat >>confdefs.h <<_ACEOF
2915#define VERSION "$VERSION"
2916_ACEOF
2917
2918# Some tools Automake needs.
2919
2920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2921
2922
2923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2924
2925
2926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2927
2928
2929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2930
2931
2932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2933
2934# For better backward compatibility.  To be removed once Automake 1.9.x
2935# dies out for good.  For more background, see:
2936# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2937# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2938mkdir_p='$(MKDIR_P)'
2939
2940# We need awk for the "check" target.  The system "awk" is bad on
2941# some platforms.
2942# Always define AMTAR for backward compatibility.  Yes, it's still used
2943# in the wild :-(  We should find a proper way to deprecate it ...
2944AMTAR='$${TAR-tar}'
2945
2946
2947# We'll loop over all known methods to create a tar archive until one works.
2948_am_tools='gnutar  pax cpio none'
2949
2950am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2951
2952
2953
2954
2955
2956
2957# POSIX will say in a future version that running "rm -f" with no argument
2958# is OK; and we want to be able to make that assumption in our Makefile
2959# recipes.  So use an aggressive probe to check that the usage we want is
2960# actually supported "in the wild" to an acceptable degree.
2961# See automake bug#10828.
2962# To make any issue more visible, cause the running configure to be aborted
2963# by default if the 'rm' program in use doesn't match our expectations; the
2964# user can still override this though.
2965if rm -f && rm -fr && rm -rf; then : OK; else
2966  cat >&2 <<'END'
2967Oops!
2968
2969Your 'rm' program seems unable to run without file operands specified
2970on the command line, even when the '-f' option is present.  This is contrary
2971to the behaviour of most rm programs out there, and not conforming with
2972the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2973
2974Please tell bug-automake@gnu.org about your system, including the value
2975of your $PATH and any error possibly output before this message.  This
2976can help us improve future automake versions.
2977
2978END
2979  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2980    echo 'Configuration will proceed anyway, since you have set the' >&2
2981    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2982    echo >&2
2983  else
2984    cat >&2 <<'END'
2985Aborting the configuration process, to ensure you take notice of the issue.
2986
2987You can download and install GNU coreutils to get an 'rm' implementation
2988that behaves properly: <http://www.gnu.org/software/coreutils/>.
2989
2990If you want to complete the configuration process using your problematic
2991'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2992to "yes", and re-run configure.
2993
2994END
2995    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2996  fi
2997fi
2998
2999
3000
3001BURN_MAJOR_VERSION=1
3002BURN_MINOR_VERSION=5
3003BURN_MICRO_VERSION=4
3004BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
3005
3006
3007
3008
3009
3010
3011LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
3012LT_CURRENT=111
3013LT_AGE=107
3014LT_REVISION=0
3015LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
3016
3017
3018
3019
3020
3021
3022
3023BURN_INTERFACE_AGE=$LT_REVISION
3024BURN_BINARY_AGE=`expr $LT_AGE + $BURN_INTERFACE_AGE`
3025
3026
3027
3028
3029test "$prefix" = "NONE" && prefix=$ac_default_prefix
3030
3031
3032DEPDIR="${am__leading_dot}deps"
3033
3034ac_config_commands="$ac_config_commands depfiles"
3035
3036
3037am_make=${MAKE-make}
3038cat > confinc << 'END'
3039am__doit:
3040	@echo this is the am__doit target
3041.PHONY: am__doit
3042END
3043# If we don't find an include directive, just comment out the code.
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3045$as_echo_n "checking for style of include used by $am_make... " >&6; }
3046am__include="#"
3047am__quote=
3048_am_result=none
3049# First try GNU make style include.
3050echo "include confinc" > confmf
3051# Ignore all kinds of additional output from 'make'.
3052case `$am_make -s -f confmf 2> /dev/null` in #(
3053*the\ am__doit\ target*)
3054  am__include=include
3055  am__quote=
3056  _am_result=GNU
3057  ;;
3058esac
3059# Now try BSD make style include.
3060if test "$am__include" = "#"; then
3061   echo '.include "confinc"' > confmf
3062   case `$am_make -s -f confmf 2> /dev/null` in #(
3063   *the\ am__doit\ target*)
3064     am__include=.include
3065     am__quote="\""
3066     _am_result=BSD
3067     ;;
3068   esac
3069fi
3070
3071
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3073$as_echo "$_am_result" >&6; }
3074rm -f confinc confmf
3075
3076# Check whether --enable-dependency-tracking was given.
3077if test "${enable_dependency_tracking+set}" = set; then :
3078  enableval=$enable_dependency_tracking;
3079fi
3080
3081if test "x$enable_dependency_tracking" != xno; then
3082  am_depcomp="$ac_aux_dir/depcomp"
3083  AMDEPBACKSLASH='\'
3084  am__nodep='_no'
3085fi
3086 if test "x$enable_dependency_tracking" != xno; then
3087  AMDEP_TRUE=
3088  AMDEP_FALSE='#'
3089else
3090  AMDEP_TRUE='#'
3091  AMDEP_FALSE=
3092fi
3093
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100if test -n "$ac_tool_prefix"; then
3101  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3102set dummy ${ac_tool_prefix}gcc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116    for ac_exec_ext in '' $ac_executable_extensions; do
3117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138fi
3139if test -z "$ac_cv_prog_CC"; then
3140  ac_ct_CC=$CC
3141  # Extract the first word of "gcc", so it can be a program name with args.
3142set dummy gcc; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_ac_ct_CC+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$ac_ct_CC"; then
3149  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_ac_ct_CC="gcc"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169if test -n "$ac_ct_CC"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171$as_echo "$ac_ct_CC" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177  if test "x$ac_ct_CC" = x; then
3178    CC=""
3179  else
3180    case $cross_compiling:$ac_tool_warned in
3181yes:)
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184ac_tool_warned=yes ;;
3185esac
3186    CC=$ac_ct_CC
3187  fi
3188else
3189  CC="$ac_cv_prog_CC"
3190fi
3191
3192if test -z "$CC"; then
3193          if test -n "$ac_tool_prefix"; then
3194    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3195set dummy ${ac_tool_prefix}cc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$CC"; then
3202  ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_exec_ext in '' $ac_executable_extensions; do
3210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_prog_CC="${ac_tool_prefix}cc"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221CC=$ac_cv_prog_CC
3222if test -n "$CC"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224$as_echo "$CC" >&6; }
3225else
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231  fi
3232fi
3233if test -z "$CC"; then
3234  # Extract the first word of "cc", so it can be a program name with args.
3235set dummy cc; ac_word=$2
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237$as_echo_n "checking for $ac_word... " >&6; }
3238if ${ac_cv_prog_CC+:} false; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  if test -n "$CC"; then
3242  ac_cv_prog_CC="$CC" # Let the user override the test.
3243else
3244  ac_prog_rejected=no
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250    for ac_exec_ext in '' $ac_executable_extensions; do
3251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3253       ac_prog_rejected=yes
3254       continue
3255     fi
3256    ac_cv_prog_CC="cc"
3257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261  done
3262IFS=$as_save_IFS
3263
3264if test $ac_prog_rejected = yes; then
3265  # We found a bogon in the path, so make sure we never use it.
3266  set dummy $ac_cv_prog_CC
3267  shift
3268  if test $# != 0; then
3269    # We chose a different compiler from the bogus one.
3270    # However, it has the same basename, so the bogon will be chosen
3271    # first if we set CC to just the basename; use the full file name.
3272    shift
3273    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3274  fi
3275fi
3276fi
3277fi
3278CC=$ac_cv_prog_CC
3279if test -n "$CC"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281$as_echo "$CC" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287
3288fi
3289if test -z "$CC"; then
3290  if test -n "$ac_tool_prefix"; then
3291  for ac_prog in cl.exe
3292  do
3293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if ${ac_cv_prog_CC+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$CC"; then
3301  ac_cv_prog_CC="$CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323$as_echo "$CC" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330    test -n "$CC" && break
3331  done
3332fi
3333if test -z "$CC"; then
3334  ac_ct_CC=$CC
3335  for ac_prog in cl.exe
3336do
3337  # Extract the first word of "$ac_prog", so it can be a program name with args.
3338set dummy $ac_prog; ac_word=$2
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340$as_echo_n "checking for $ac_word... " >&6; }
3341if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344  if test -n "$ac_ct_CC"; then
3345  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350  IFS=$as_save_IFS
3351  test -z "$as_dir" && as_dir=.
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354    ac_cv_prog_ac_ct_CC="$ac_prog"
3355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356    break 2
3357  fi
3358done
3359  done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365if test -n "$ac_ct_CC"; then
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367$as_echo "$ac_ct_CC" >&6; }
3368else
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373
3374  test -n "$ac_ct_CC" && break
3375done
3376
3377  if test "x$ac_ct_CC" = x; then
3378    CC=""
3379  else
3380    case $cross_compiling:$ac_tool_warned in
3381yes:)
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384ac_tool_warned=yes ;;
3385esac
3386    CC=$ac_ct_CC
3387  fi
3388fi
3389
3390fi
3391
3392
3393test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error $? "no acceptable C compiler found in \$PATH
3396See \`config.log' for more details" "$LINENO" 5; }
3397
3398# Provide some information about the compiler.
3399$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3400set X $ac_compile
3401ac_compiler=$2
3402for ac_option in --version -v -V -qversion; do
3403  { { ac_try="$ac_compiler $ac_option >&5"
3404case "(($ac_try" in
3405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406  *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409$as_echo "$ac_try_echo"; } >&5
3410  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3411  ac_status=$?
3412  if test -s conftest.err; then
3413    sed '10a\
3414... rest of stderr output deleted ...
3415         10q' conftest.err >conftest.er1
3416    cat conftest.er1 >&5
3417  fi
3418  rm -f conftest.er1 conftest.err
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }
3421done
3422
3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425
3426int
3427main ()
3428{
3429
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434ac_clean_files_save=$ac_clean_files
3435ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3436# Try to create an executable without -o first, disregard a.out.
3437# It will help us diagnose broken compilers, and finding out an intuition
3438# of exeext.
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440$as_echo_n "checking whether the C compiler works... " >&6; }
3441ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3442
3443# The possible output files:
3444ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3445
3446ac_rmfiles=
3447for ac_file in $ac_files
3448do
3449  case $ac_file in
3450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3452  esac
3453done
3454rm -f $ac_rmfiles
3455
3456if { { ac_try="$ac_link_default"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463  (eval "$ac_link_default") 2>&5
3464  ac_status=$?
3465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466  test $ac_status = 0; }; then :
3467  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3468# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3469# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3470# so that the user can short-circuit this test for compilers unknown to
3471# Autoconf.
3472for ac_file in $ac_files ''
3473do
3474  test -f "$ac_file" || continue
3475  case $ac_file in
3476    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3477	;;
3478    [ab].out )
3479	# We found the default executable, but exeext='' is most
3480	# certainly right.
3481	break;;
3482    *.* )
3483	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3484	then :; else
3485	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486	fi
3487	# We set ac_cv_exeext here because the later test for it is not
3488	# safe: cross compilers may not add the suffix if given an `-o'
3489	# argument, so we may need to know it at that point already.
3490	# Even if this section looks crufty: it has the advantage of
3491	# actually working.
3492	break;;
3493    * )
3494	break;;
3495  esac
3496done
3497test "$ac_cv_exeext" = no && ac_cv_exeext=
3498
3499else
3500  ac_file=''
3501fi
3502if test -z "$ac_file"; then :
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505$as_echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error 77 "C compiler cannot create executables
3511See \`config.log' for more details" "$LINENO" 5; }
3512else
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514$as_echo "yes" >&6; }
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517$as_echo_n "checking for C compiler default output file name... " >&6; }
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519$as_echo "$ac_file" >&6; }
3520ac_exeext=$ac_cv_exeext
3521
3522rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3523ac_clean_files=$ac_clean_files_save
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525$as_echo_n "checking for suffix of executables... " >&6; }
3526if { { ac_try="$ac_link"
3527case "(($ac_try" in
3528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529  *) ac_try_echo=$ac_try;;
3530esac
3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532$as_echo "$ac_try_echo"; } >&5
3533  (eval "$ac_link") 2>&5
3534  ac_status=$?
3535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536  test $ac_status = 0; }; then :
3537  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3539# work properly (i.e., refer to `conftest.exe'), while it won't with
3540# `rm'.
3541for ac_file in conftest.exe conftest conftest.*; do
3542  test -f "$ac_file" || continue
3543  case $ac_file in
3544    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546	  break;;
3547    * ) break;;
3548  esac
3549done
3550else
3551  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3554See \`config.log' for more details" "$LINENO" 5; }
3555fi
3556rm -f conftest conftest$ac_cv_exeext
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558$as_echo "$ac_cv_exeext" >&6; }
3559
3560rm -f conftest.$ac_ext
3561EXEEXT=$ac_cv_exeext
3562ac_exeext=$EXEEXT
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <stdio.h>
3566int
3567main ()
3568{
3569FILE *f = fopen ("conftest.out", "w");
3570 return ferror (f) || fclose (f) != 0;
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576ac_clean_files="$ac_clean_files conftest.out"
3577# Check that the compiler produces executables we can run.  If not, either
3578# the compiler is broken, or we cross compile.
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580$as_echo_n "checking whether we are cross compiling... " >&6; }
3581if test "$cross_compiling" != yes; then
3582  { { ac_try="$ac_link"
3583case "(($ac_try" in
3584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585  *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589  (eval "$ac_link") 2>&5
3590  ac_status=$?
3591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592  test $ac_status = 0; }
3593  if { ac_try='./conftest$ac_cv_exeext'
3594  { { case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600  (eval "$ac_try") 2>&5
3601  ac_status=$?
3602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603  test $ac_status = 0; }; }; then
3604    cross_compiling=no
3605  else
3606    if test "$cross_compiling" = maybe; then
3607	cross_compiling=yes
3608    else
3609	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611as_fn_error $? "cannot run C compiled programs.
3612If you meant to cross compile, use \`--host'.
3613See \`config.log' for more details" "$LINENO" 5; }
3614    fi
3615  fi
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618$as_echo "$cross_compiling" >&6; }
3619
3620rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3621ac_clean_files=$ac_clean_files_save
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623$as_echo_n "checking for suffix of object files... " >&6; }
3624if ${ac_cv_objext+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h.  */
3629
3630int
3631main ()
3632{
3633
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638rm -f conftest.o conftest.obj
3639if { { ac_try="$ac_compile"
3640case "(($ac_try" in
3641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642  *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645$as_echo "$ac_try_echo"; } >&5
3646  (eval "$ac_compile") 2>&5
3647  ac_status=$?
3648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649  test $ac_status = 0; }; then :
3650  for ac_file in conftest.o conftest.obj conftest.*; do
3651  test -f "$ac_file" || continue;
3652  case $ac_file in
3653    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655       break;;
3656  esac
3657done
3658else
3659  $as_echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664as_fn_error $? "cannot compute suffix of object files: cannot compile
3665See \`config.log' for more details" "$LINENO" 5; }
3666fi
3667rm -f conftest.$ac_cv_objext conftest.$ac_ext
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670$as_echo "$ac_cv_objext" >&6; }
3671OBJEXT=$ac_cv_objext
3672ac_objext=$OBJEXT
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675if ${ac_cv_c_compiler_gnu+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684#ifndef __GNUC__
3685       choke me
3686#endif
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693  ac_compiler_gnu=yes
3694else
3695  ac_compiler_gnu=no
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_cv_c_compiler_gnu=$ac_compiler_gnu
3699
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703if test $ac_compiler_gnu = yes; then
3704  GCC=yes
3705else
3706  GCC=
3707fi
3708ac_test_CFLAGS=${CFLAGS+set}
3709ac_save_CFLAGS=$CFLAGS
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711$as_echo_n "checking whether $CC accepts -g... " >&6; }
3712if ${ac_cv_prog_cc_g+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  ac_save_c_werror_flag=$ac_c_werror_flag
3716   ac_c_werror_flag=yes
3717   ac_cv_prog_cc_g=no
3718   CFLAGS="-g"
3719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730if ac_fn_c_try_compile "$LINENO"; then :
3731  ac_cv_prog_cc_g=yes
3732else
3733  CFLAGS=""
3734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"; then :
3746
3747else
3748  ac_c_werror_flag=$ac_save_c_werror_flag
3749	 CFLAGS="-g"
3750	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752
3753int
3754main ()
3755{
3756
3757  ;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_compile "$LINENO"; then :
3762  ac_cv_prog_cc_g=yes
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769   ac_c_werror_flag=$ac_save_c_werror_flag
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772$as_echo "$ac_cv_prog_cc_g" >&6; }
3773if test "$ac_test_CFLAGS" = set; then
3774  CFLAGS=$ac_save_CFLAGS
3775elif test $ac_cv_prog_cc_g = yes; then
3776  if test "$GCC" = yes; then
3777    CFLAGS="-g -O2"
3778  else
3779    CFLAGS="-g"
3780  fi
3781else
3782  if test "$GCC" = yes; then
3783    CFLAGS="-O2"
3784  else
3785    CFLAGS=
3786  fi
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790if ${ac_cv_prog_cc_c89+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  ac_cv_prog_cc_c89=no
3794ac_save_CC=$CC
3795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h.  */
3797#include <stdarg.h>
3798#include <stdio.h>
3799struct stat;
3800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3801struct buf { int x; };
3802FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803static char *e (p, i)
3804     char **p;
3805     int i;
3806{
3807  return p[i];
3808}
3809static char *f (char * (*g) (char **, int), char **p, ...)
3810{
3811  char *s;
3812  va_list v;
3813  va_start (v,p);
3814  s = g (p, va_arg (v,int));
3815  va_end (v);
3816  return s;
3817}
3818
3819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3820   function prototypes and stuff, but not '\xHH' hex character constants.
3821   These don't provoke an error unfortunately, instead are silently treated
3822   as 'x'.  The following induces an error, until -std is added to get
3823   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3824   array size at least.  It's necessary to write '\x00'==0 to get something
3825   that's true only with -std.  */
3826int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827
3828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829   inside strings and character constants.  */
3830#define FOO(x) 'x'
3831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832
3833int test (int i, double x);
3834struct s1 {int (*f) (int a);};
3835struct s2 {int (*f) (double a);};
3836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837int argc;
3838char **argv;
3839int
3840main ()
3841{
3842return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849do
3850  CC="$ac_save_CC $ac_arg"
3851  if ac_fn_c_try_compile "$LINENO"; then :
3852  ac_cv_prog_cc_c89=$ac_arg
3853fi
3854rm -f core conftest.err conftest.$ac_objext
3855  test "x$ac_cv_prog_cc_c89" != "xno" && break
3856done
3857rm -f conftest.$ac_ext
3858CC=$ac_save_CC
3859
3860fi
3861# AC_CACHE_VAL
3862case "x$ac_cv_prog_cc_c89" in
3863  x)
3864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865$as_echo "none needed" >&6; } ;;
3866  xno)
3867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868$as_echo "unsupported" >&6; } ;;
3869  *)
3870    CC="$CC $ac_cv_prog_cc_c89"
3871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873esac
3874if test "x$ac_cv_prog_cc_c89" != xno; then :
3875
3876fi
3877
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884ac_ext=c
3885ac_cpp='$CPP $CPPFLAGS'
3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3890$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3891if ${am_cv_prog_cc_c_o+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905  # Make sure it works both with $CC and with simple cc.
3906  # Following AC_PROG_CC_C_O, we do the test twice because some
3907  # compilers refuse to overwrite an existing .o file with -o,
3908  # though they will create one.
3909  am_cv_prog_cc_c_o=yes
3910  for am_i in 1 2; do
3911    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3912   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } \
3916         && test -f conftest2.$ac_objext; then
3917      : OK
3918    else
3919      am_cv_prog_cc_c_o=no
3920      break
3921    fi
3922  done
3923  rm -f core conftest*
3924  unset am_i
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3927$as_echo "$am_cv_prog_cc_c_o" >&6; }
3928if test "$am_cv_prog_cc_c_o" != yes; then
3929   # Losing compiler, so override with the script.
3930   # FIXME: It is wrong to rewrite CC.
3931   # But if we don't then we get into trouble of one sort or another.
3932   # A longer-term fix would be to have automake use am__CC in this case,
3933   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3934   CC="$am_aux_dir/compile $CC"
3935fi
3936ac_ext=c
3937ac_cpp='$CPP $CPPFLAGS'
3938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942
3943depcc="$CC"   am_compiler_list=
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3946$as_echo_n "checking dependency style of $depcc... " >&6; }
3947if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3951  # We make a subdir and do the tests there.  Otherwise we can end up
3952  # making bogus files that we don't know about and never remove.  For
3953  # instance it was reported that on HP-UX the gcc test will end up
3954  # making a dummy file named 'D' -- because '-MD' means "put the output
3955  # in D".
3956  rm -rf conftest.dir
3957  mkdir conftest.dir
3958  # Copy depcomp to subdir because otherwise we won't find it if we're
3959  # using a relative directory.
3960  cp "$am_depcomp" conftest.dir
3961  cd conftest.dir
3962  # We will build objects and dependencies in a subdirectory because
3963  # it helps to detect inapplicable dependency modes.  For instance
3964  # both Tru64's cc and ICC support -MD to output dependencies as a
3965  # side effect of compilation, but ICC will put the dependencies in
3966  # the current directory while Tru64 will put them in the object
3967  # directory.
3968  mkdir sub
3969
3970  am_cv_CC_dependencies_compiler_type=none
3971  if test "$am_compiler_list" = ""; then
3972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3973  fi
3974  am__universal=false
3975  case " $depcc " in #(
3976     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3977     esac
3978
3979  for depmode in $am_compiler_list; do
3980    # Setup a source with many dependencies, because some compilers
3981    # like to wrap large dependency lists on column 80 (with \), and
3982    # we should not choose a depcomp mode which is confused by this.
3983    #
3984    # We need to recreate these files for each test, as the compiler may
3985    # overwrite some of them when testing with obscure command lines.
3986    # This happens at least with the AIX C compiler.
3987    : > sub/conftest.c
3988    for i in 1 2 3 4 5 6; do
3989      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3990      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3991      # Solaris 10 /bin/sh.
3992      echo '/* dummy */' > sub/conftst$i.h
3993    done
3994    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3995
3996    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3997    # mode.  It turns out that the SunPro C++ compiler does not properly
3998    # handle '-M -o', and we need to detect this.  Also, some Intel
3999    # versions had trouble with output in subdirs.
4000    am__obj=sub/conftest.${OBJEXT-o}
4001    am__minus_obj="-o $am__obj"
4002    case $depmode in
4003    gcc)
4004      # This depmode causes a compiler race in universal mode.
4005      test "$am__universal" = false || continue
4006      ;;
4007    nosideeffect)
4008      # After this tag, mechanisms are not by side-effect, so they'll
4009      # only be used when explicitly requested.
4010      if test "x$enable_dependency_tracking" = xyes; then
4011	continue
4012      else
4013	break
4014      fi
4015      ;;
4016    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4017      # This compiler won't grok '-c -o', but also, the minuso test has
4018      # not run yet.  These depmodes are late enough in the game, and
4019      # so weak that their functioning should not be impacted.
4020      am__obj=conftest.${OBJEXT-o}
4021      am__minus_obj=
4022      ;;
4023    none) break ;;
4024    esac
4025    if depmode=$depmode \
4026       source=sub/conftest.c object=$am__obj \
4027       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4028       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4029         >/dev/null 2>conftest.err &&
4030       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4031       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4032       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4033       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4034      # icc doesn't choke on unknown options, it will just issue warnings
4035      # or remarks (even with -Werror).  So we grep stderr for any message
4036      # that says an option was ignored or not supported.
4037      # When given -MP, icc 7.0 and 7.1 complain thusly:
4038      #   icc: Command line warning: ignoring option '-M'; no argument required
4039      # The diagnosis changed in icc 8.0:
4040      #   icc: Command line remark: option '-MP' not supported
4041      if (grep 'ignoring option' conftest.err ||
4042          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4043        am_cv_CC_dependencies_compiler_type=$depmode
4044        break
4045      fi
4046    fi
4047  done
4048
4049  cd ..
4050  rm -rf conftest.dir
4051else
4052  am_cv_CC_dependencies_compiler_type=none
4053fi
4054
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4057$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4058CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4059
4060 if
4061  test "x$enable_dependency_tracking" != xno \
4062  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4063  am__fastdepCC_TRUE=
4064  am__fastdepCC_FALSE='#'
4065else
4066  am__fastdepCC_TRUE='#'
4067  am__fastdepCC_FALSE=
4068fi
4069
4070
4071
4072
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4074$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4075if ${ac_cv_c_const+:} false; then :
4076  $as_echo_n "(cached) " >&6
4077else
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080
4081int
4082main ()
4083{
4084
4085#ifndef __cplusplus
4086  /* Ultrix mips cc rejects this sort of thing.  */
4087  typedef int charset[2];
4088  const charset cs = { 0, 0 };
4089  /* SunOS 4.1.1 cc rejects this.  */
4090  char const *const *pcpcc;
4091  char **ppc;
4092  /* NEC SVR4.0.2 mips cc rejects this.  */
4093  struct point {int x, y;};
4094  static struct point const zero = {0,0};
4095  /* AIX XL C 1.02.0.0 rejects this.
4096     It does not let you subtract one const X* pointer from another in
4097     an arm of an if-expression whose if-part is not a constant
4098     expression */
4099  const char *g = "string";
4100  pcpcc = &g + (g ? g-g : 0);
4101  /* HPUX 7.0 cc rejects these. */
4102  ++pcpcc;
4103  ppc = (char**) pcpcc;
4104  pcpcc = (char const *const *) ppc;
4105  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4106    char tx;
4107    char *t = &tx;
4108    char const *s = 0 ? (char *) 0 : (char const *) 0;
4109
4110    *t++ = 0;
4111    if (s) return 0;
4112  }
4113  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4114    int x[] = {25, 17};
4115    const int *foo = &x[0];
4116    ++foo;
4117  }
4118  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4119    typedef const int *iptr;
4120    iptr p = 0;
4121    ++p;
4122  }
4123  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4124       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4125    struct s { int j; const int *ap[3]; } bx;
4126    struct s *b = &bx; b->j = 5;
4127  }
4128  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4129    const int foo = 10;
4130    if (!foo) return 0;
4131  }
4132  return !cs[0] && !zero.x;
4133#endif
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_compile "$LINENO"; then :
4140  ac_cv_c_const=yes
4141else
4142  ac_cv_c_const=no
4143fi
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4147$as_echo "$ac_cv_c_const" >&6; }
4148if test $ac_cv_c_const = no; then
4149
4150$as_echo "#define const /**/" >>confdefs.h
4151
4152fi
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4155$as_echo_n "checking for inline... " >&6; }
4156if ${ac_cv_c_inline+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  ac_cv_c_inline=no
4160for ac_kw in inline __inline__ __inline; do
4161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#ifndef __cplusplus
4164typedef int foo_t;
4165static $ac_kw foo_t static_foo () {return 0; }
4166$ac_kw foo_t foo () {return 0; }
4167#endif
4168
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"; then :
4171  ac_cv_c_inline=$ac_kw
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174  test "$ac_cv_c_inline" != no && break
4175done
4176
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4179$as_echo "$ac_cv_c_inline" >&6; }
4180
4181case $ac_cv_c_inline in
4182  inline | yes) ;;
4183  *)
4184    case $ac_cv_c_inline in
4185      no) ac_val=;;
4186      *) ac_val=$ac_cv_c_inline;;
4187    esac
4188    cat >>confdefs.h <<_ACEOF
4189#ifndef __cplusplus
4190#define inline $ac_val
4191#endif
4192_ACEOF
4193    ;;
4194esac
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4202$as_echo_n "checking how to run the C preprocessor... " >&6; }
4203# On Suns, sometimes $CPP names a directory.
4204if test -n "$CPP" && test -d "$CPP"; then
4205  CPP=
4206fi
4207if test -z "$CPP"; then
4208  if ${ac_cv_prog_CPP+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211      # Double quotes because CPP needs to be expanded
4212    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213    do
4214      ac_preproc_ok=false
4215for ac_c_preproc_warn_flag in '' yes
4216do
4217  # Use a header file that comes with gcc, so configuring glibc
4218  # with a fresh cross-compiler works.
4219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220  # <limits.h> exists even on freestanding compilers.
4221  # On the NeXT, cc -E runs the code through the compiler's parser,
4222  # not just through cpp. "Syntax error" is here to catch this case.
4223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225#ifdef __STDC__
4226# include <limits.h>
4227#else
4228# include <assert.h>
4229#endif
4230		     Syntax error
4231_ACEOF
4232if ac_fn_c_try_cpp "$LINENO"; then :
4233
4234else
4235  # Broken: fails on valid input.
4236continue
4237fi
4238rm -f conftest.err conftest.i conftest.$ac_ext
4239
4240  # OK, works on sane cases.  Now check whether nonexistent headers
4241  # can be detected and how.
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244#include <ac_nonexistent.h>
4245_ACEOF
4246if ac_fn_c_try_cpp "$LINENO"; then :
4247  # Broken: success on invalid input.
4248continue
4249else
4250  # Passes both tests.
4251ac_preproc_ok=:
4252break
4253fi
4254rm -f conftest.err conftest.i conftest.$ac_ext
4255
4256done
4257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258rm -f conftest.i conftest.err conftest.$ac_ext
4259if $ac_preproc_ok; then :
4260  break
4261fi
4262
4263    done
4264    ac_cv_prog_CPP=$CPP
4265
4266fi
4267  CPP=$ac_cv_prog_CPP
4268else
4269  ac_cv_prog_CPP=$CPP
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4272$as_echo "$CPP" >&6; }
4273ac_preproc_ok=false
4274for ac_c_preproc_warn_flag in '' yes
4275do
4276  # Use a header file that comes with gcc, so configuring glibc
4277  # with a fresh cross-compiler works.
4278  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279  # <limits.h> exists even on freestanding compilers.
4280  # On the NeXT, cc -E runs the code through the compiler's parser,
4281  # not just through cpp. "Syntax error" is here to catch this case.
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284#ifdef __STDC__
4285# include <limits.h>
4286#else
4287# include <assert.h>
4288#endif
4289		     Syntax error
4290_ACEOF
4291if ac_fn_c_try_cpp "$LINENO"; then :
4292
4293else
4294  # Broken: fails on valid input.
4295continue
4296fi
4297rm -f conftest.err conftest.i conftest.$ac_ext
4298
4299  # OK, works on sane cases.  Now check whether nonexistent headers
4300  # can be detected and how.
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <ac_nonexistent.h>
4304_ACEOF
4305if ac_fn_c_try_cpp "$LINENO"; then :
4306  # Broken: success on invalid input.
4307continue
4308else
4309  # Passes both tests.
4310ac_preproc_ok=:
4311break
4312fi
4313rm -f conftest.err conftest.i conftest.$ac_ext
4314
4315done
4316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317rm -f conftest.i conftest.err conftest.$ac_ext
4318if $ac_preproc_ok; then :
4319
4320else
4321  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4324See \`config.log' for more details" "$LINENO" 5; }
4325fi
4326
4327ac_ext=c
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4335$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4336if ${ac_cv_path_GREP+:} false; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339  if test -z "$GREP"; then
4340  ac_path_GREP_found=false
4341  # Loop through the user's path and test for each of PROGNAME-LIST
4342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344do
4345  IFS=$as_save_IFS
4346  test -z "$as_dir" && as_dir=.
4347    for ac_prog in grep ggrep; do
4348    for ac_exec_ext in '' $ac_executable_extensions; do
4349      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4350      as_fn_executable_p "$ac_path_GREP" || continue
4351# Check for GNU ac_path_GREP and select it if it is found.
4352  # Check for GNU $ac_path_GREP
4353case `"$ac_path_GREP" --version 2>&1` in
4354*GNU*)
4355  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4356*)
4357  ac_count=0
4358  $as_echo_n 0123456789 >"conftest.in"
4359  while :
4360  do
4361    cat "conftest.in" "conftest.in" >"conftest.tmp"
4362    mv "conftest.tmp" "conftest.in"
4363    cp "conftest.in" "conftest.nl"
4364    $as_echo 'GREP' >> "conftest.nl"
4365    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367    as_fn_arith $ac_count + 1 && ac_count=$as_val
4368    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4369      # Best one so far, save it but keep looking for a better one
4370      ac_cv_path_GREP="$ac_path_GREP"
4371      ac_path_GREP_max=$ac_count
4372    fi
4373    # 10*(2^10) chars as input seems more than enough
4374    test $ac_count -gt 10 && break
4375  done
4376  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4377esac
4378
4379      $ac_path_GREP_found && break 3
4380    done
4381  done
4382  done
4383IFS=$as_save_IFS
4384  if test -z "$ac_cv_path_GREP"; then
4385    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386  fi
4387else
4388  ac_cv_path_GREP=$GREP
4389fi
4390
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4393$as_echo "$ac_cv_path_GREP" >&6; }
4394 GREP="$ac_cv_path_GREP"
4395
4396
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4398$as_echo_n "checking for egrep... " >&6; }
4399if ${ac_cv_path_EGREP+:} false; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4403   then ac_cv_path_EGREP="$GREP -E"
4404   else
4405     if test -z "$EGREP"; then
4406  ac_path_EGREP_found=false
4407  # Loop through the user's path and test for each of PROGNAME-LIST
4408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410do
4411  IFS=$as_save_IFS
4412  test -z "$as_dir" && as_dir=.
4413    for ac_prog in egrep; do
4414    for ac_exec_ext in '' $ac_executable_extensions; do
4415      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416      as_fn_executable_p "$ac_path_EGREP" || continue
4417# Check for GNU ac_path_EGREP and select it if it is found.
4418  # Check for GNU $ac_path_EGREP
4419case `"$ac_path_EGREP" --version 2>&1` in
4420*GNU*)
4421  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422*)
4423  ac_count=0
4424  $as_echo_n 0123456789 >"conftest.in"
4425  while :
4426  do
4427    cat "conftest.in" "conftest.in" >"conftest.tmp"
4428    mv "conftest.tmp" "conftest.in"
4429    cp "conftest.in" "conftest.nl"
4430    $as_echo 'EGREP' >> "conftest.nl"
4431    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433    as_fn_arith $ac_count + 1 && ac_count=$as_val
4434    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435      # Best one so far, save it but keep looking for a better one
4436      ac_cv_path_EGREP="$ac_path_EGREP"
4437      ac_path_EGREP_max=$ac_count
4438    fi
4439    # 10*(2^10) chars as input seems more than enough
4440    test $ac_count -gt 10 && break
4441  done
4442  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443esac
4444
4445      $ac_path_EGREP_found && break 3
4446    done
4447  done
4448  done
4449IFS=$as_save_IFS
4450  if test -z "$ac_cv_path_EGREP"; then
4451    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4452  fi
4453else
4454  ac_cv_path_EGREP=$EGREP
4455fi
4456
4457   fi
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4460$as_echo "$ac_cv_path_EGREP" >&6; }
4461 EGREP="$ac_cv_path_EGREP"
4462
4463
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4465$as_echo_n "checking for ANSI C header files... " >&6; }
4466if ${ac_cv_header_stdc+:} false; then :
4467  $as_echo_n "(cached) " >&6
4468else
4469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h.  */
4471#include <stdlib.h>
4472#include <stdarg.h>
4473#include <string.h>
4474#include <float.h>
4475
4476int
4477main ()
4478{
4479
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484if ac_fn_c_try_compile "$LINENO"; then :
4485  ac_cv_header_stdc=yes
4486else
4487  ac_cv_header_stdc=no
4488fi
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490
4491if test $ac_cv_header_stdc = yes; then
4492  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h.  */
4495#include <string.h>
4496
4497_ACEOF
4498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499  $EGREP "memchr" >/dev/null 2>&1; then :
4500
4501else
4502  ac_cv_header_stdc=no
4503fi
4504rm -f conftest*
4505
4506fi
4507
4508if test $ac_cv_header_stdc = yes; then
4509  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512#include <stdlib.h>
4513
4514_ACEOF
4515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516  $EGREP "free" >/dev/null 2>&1; then :
4517
4518else
4519  ac_cv_header_stdc=no
4520fi
4521rm -f conftest*
4522
4523fi
4524
4525if test $ac_cv_header_stdc = yes; then
4526  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527  if test "$cross_compiling" = yes; then :
4528  :
4529else
4530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532#include <ctype.h>
4533#include <stdlib.h>
4534#if ((' ' & 0x0FF) == 0x020)
4535# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537#else
4538# define ISLOWER(c) \
4539		   (('a' <= (c) && (c) <= 'i') \
4540		     || ('j' <= (c) && (c) <= 'r') \
4541		     || ('s' <= (c) && (c) <= 'z'))
4542# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4543#endif
4544
4545#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546int
4547main ()
4548{
4549  int i;
4550  for (i = 0; i < 256; i++)
4551    if (XOR (islower (i), ISLOWER (i))
4552	|| toupper (i) != TOUPPER (i))
4553      return 2;
4554  return 0;
4555}
4556_ACEOF
4557if ac_fn_c_try_run "$LINENO"; then :
4558
4559else
4560  ac_cv_header_stdc=no
4561fi
4562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4563  conftest.$ac_objext conftest.beam conftest.$ac_ext
4564fi
4565
4566fi
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4569$as_echo "$ac_cv_header_stdc" >&6; }
4570if test $ac_cv_header_stdc = yes; then
4571
4572$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573
4574fi
4575
4576# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4577for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4578		  inttypes.h stdint.h unistd.h
4579do :
4580  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4581ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582"
4583if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4584  cat >>confdefs.h <<_ACEOF
4585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586_ACEOF
4587
4588fi
4589
4590done
4591
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4594$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4595if ${ac_cv_c_bigendian+:} false; then :
4596  $as_echo_n "(cached) " >&6
4597else
4598  ac_cv_c_bigendian=unknown
4599    # See if we're dealing with a universal compiler.
4600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h.  */
4602#ifndef __APPLE_CC__
4603	       not a universal capable compiler
4604	     #endif
4605	     typedef int dummy;
4606
4607_ACEOF
4608if ac_fn_c_try_compile "$LINENO"; then :
4609
4610	# Check for potential -arch flags.  It is not universal unless
4611	# there are at least two -arch flags with different values.
4612	ac_arch=
4613	ac_prev=
4614	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4615	 if test -n "$ac_prev"; then
4616	   case $ac_word in
4617	     i?86 | x86_64 | ppc | ppc64)
4618	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4619		 ac_arch=$ac_word
4620	       else
4621		 ac_cv_c_bigendian=universal
4622		 break
4623	       fi
4624	       ;;
4625	   esac
4626	   ac_prev=
4627	 elif test "x$ac_word" = "x-arch"; then
4628	   ac_prev=arch
4629	 fi
4630       done
4631fi
4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633    if test $ac_cv_c_bigendian = unknown; then
4634      # See if sys/param.h defines the BYTE_ORDER macro.
4635      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h.  */
4637#include <sys/types.h>
4638	     #include <sys/param.h>
4639
4640int
4641main ()
4642{
4643#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4644		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4645		     && LITTLE_ENDIAN)
4646	      bogus endian macros
4647	     #endif
4648
4649  ;
4650  return 0;
4651}
4652_ACEOF
4653if ac_fn_c_try_compile "$LINENO"; then :
4654  # It does; now see whether it defined to BIG_ENDIAN or not.
4655	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h.  */
4657#include <sys/types.h>
4658		#include <sys/param.h>
4659
4660int
4661main ()
4662{
4663#if BYTE_ORDER != BIG_ENDIAN
4664		 not big endian
4665		#endif
4666
4667  ;
4668  return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_compile "$LINENO"; then :
4672  ac_cv_c_bigendian=yes
4673else
4674  ac_cv_c_bigendian=no
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679    fi
4680    if test $ac_cv_c_bigendian = unknown; then
4681      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684#include <limits.h>
4685
4686int
4687main ()
4688{
4689#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4690	      bogus endian macros
4691	     #endif
4692
4693  ;
4694  return 0;
4695}
4696_ACEOF
4697if ac_fn_c_try_compile "$LINENO"; then :
4698  # It does; now see whether it defined to _BIG_ENDIAN or not.
4699	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701#include <limits.h>
4702
4703int
4704main ()
4705{
4706#ifndef _BIG_ENDIAN
4707		 not big endian
4708		#endif
4709
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714if ac_fn_c_try_compile "$LINENO"; then :
4715  ac_cv_c_bigendian=yes
4716else
4717  ac_cv_c_bigendian=no
4718fi
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720fi
4721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722    fi
4723    if test $ac_cv_c_bigendian = unknown; then
4724      # Compile a test program.
4725      if test "$cross_compiling" = yes; then :
4726  # Try to guess by grepping values from an object file.
4727	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h.  */
4729short int ascii_mm[] =
4730		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4731		short int ascii_ii[] =
4732		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4733		int use_ascii (int i) {
4734		  return ascii_mm[i] + ascii_ii[i];
4735		}
4736		short int ebcdic_ii[] =
4737		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4738		short int ebcdic_mm[] =
4739		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4740		int use_ebcdic (int i) {
4741		  return ebcdic_mm[i] + ebcdic_ii[i];
4742		}
4743		extern int foo;
4744
4745int
4746main ()
4747{
4748return use_ascii (foo) == use_ebcdic (foo);
4749  ;
4750  return 0;
4751}
4752_ACEOF
4753if ac_fn_c_try_compile "$LINENO"; then :
4754  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4755	      ac_cv_c_bigendian=yes
4756	    fi
4757	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4758	      if test "$ac_cv_c_bigendian" = unknown; then
4759		ac_cv_c_bigendian=no
4760	      else
4761		# finding both strings is unlikely to happen, but who knows?
4762		ac_cv_c_bigendian=unknown
4763	      fi
4764	    fi
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767else
4768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770$ac_includes_default
4771int
4772main ()
4773{
4774
4775	     /* Are we little or big endian?  From Harbison&Steele.  */
4776	     union
4777	     {
4778	       long int l;
4779	       char c[sizeof (long int)];
4780	     } u;
4781	     u.l = 1;
4782	     return u.c[sizeof (long int) - 1] == 1;
4783
4784  ;
4785  return 0;
4786}
4787_ACEOF
4788if ac_fn_c_try_run "$LINENO"; then :
4789  ac_cv_c_bigendian=no
4790else
4791  ac_cv_c_bigendian=yes
4792fi
4793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4794  conftest.$ac_objext conftest.beam conftest.$ac_ext
4795fi
4796
4797    fi
4798fi
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4800$as_echo "$ac_cv_c_bigendian" >&6; }
4801 case $ac_cv_c_bigendian in #(
4802   yes)
4803     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4804;; #(
4805   no)
4806      ;; #(
4807   universal)
4808
4809$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4810
4811     ;; #(
4812   *)
4813     as_fn_error $? "unknown endianness
4814 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4815 esac
4816
4817
4818# Check whether --enable-largefile was given.
4819if test "${enable_largefile+set}" = set; then :
4820  enableval=$enable_largefile;
4821fi
4822
4823if test "$enable_largefile" != no; then
4824
4825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4826$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4827if ${ac_cv_sys_largefile_CC+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  ac_cv_sys_largefile_CC=no
4831     if test "$GCC" != yes; then
4832       ac_save_CC=$CC
4833       while :; do
4834	 # IRIX 6.2 and later do not support large files by default,
4835	 # so use the C compiler's -n32 option if that helps.
4836	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h.  */
4838#include <sys/types.h>
4839 /* Check that off_t can represent 2**63 - 1 correctly.
4840    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4841    since some C++ compilers masquerading as C compilers
4842    incorrectly reject 9223372036854775807.  */
4843#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4844  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4845		       && LARGE_OFF_T % 2147483647 == 1)
4846		      ? 1 : -1];
4847int
4848main ()
4849{
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855	 if ac_fn_c_try_compile "$LINENO"; then :
4856  break
4857fi
4858rm -f core conftest.err conftest.$ac_objext
4859	 CC="$CC -n32"
4860	 if ac_fn_c_try_compile "$LINENO"; then :
4861  ac_cv_sys_largefile_CC=' -n32'; break
4862fi
4863rm -f core conftest.err conftest.$ac_objext
4864	 break
4865       done
4866       CC=$ac_save_CC
4867       rm -f conftest.$ac_ext
4868    fi
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4871$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4872  if test "$ac_cv_sys_largefile_CC" != no; then
4873    CC=$CC$ac_cv_sys_largefile_CC
4874  fi
4875
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4877$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4878if ${ac_cv_sys_file_offset_bits+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  while :; do
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884#include <sys/types.h>
4885 /* Check that off_t can represent 2**63 - 1 correctly.
4886    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4887    since some C++ compilers masquerading as C compilers
4888    incorrectly reject 9223372036854775807.  */
4889#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4890  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4891		       && LARGE_OFF_T % 2147483647 == 1)
4892		      ? 1 : -1];
4893int
4894main ()
4895{
4896
4897  ;
4898  return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_compile "$LINENO"; then :
4902  ac_cv_sys_file_offset_bits=no; break
4903fi
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907#define _FILE_OFFSET_BITS 64
4908#include <sys/types.h>
4909 /* Check that off_t can represent 2**63 - 1 correctly.
4910    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4911    since some C++ compilers masquerading as C compilers
4912    incorrectly reject 9223372036854775807.  */
4913#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4914  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4915		       && LARGE_OFF_T % 2147483647 == 1)
4916		      ? 1 : -1];
4917int
4918main ()
4919{
4920
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925if ac_fn_c_try_compile "$LINENO"; then :
4926  ac_cv_sys_file_offset_bits=64; break
4927fi
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929  ac_cv_sys_file_offset_bits=unknown
4930  break
4931done
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4934$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4935case $ac_cv_sys_file_offset_bits in #(
4936  no | unknown) ;;
4937  *)
4938cat >>confdefs.h <<_ACEOF
4939#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4940_ACEOF
4941;;
4942esac
4943rm -rf conftest*
4944  if test $ac_cv_sys_file_offset_bits = unknown; then
4945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4946$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4947if ${ac_cv_sys_large_files+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  while :; do
4951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952/* end confdefs.h.  */
4953#include <sys/types.h>
4954 /* Check that off_t can represent 2**63 - 1 correctly.
4955    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4956    since some C++ compilers masquerading as C compilers
4957    incorrectly reject 9223372036854775807.  */
4958#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4959  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4960		       && LARGE_OFF_T % 2147483647 == 1)
4961		      ? 1 : -1];
4962int
4963main ()
4964{
4965
4966  ;
4967  return 0;
4968}
4969_ACEOF
4970if ac_fn_c_try_compile "$LINENO"; then :
4971  ac_cv_sys_large_files=no; break
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976#define _LARGE_FILES 1
4977#include <sys/types.h>
4978 /* Check that off_t can represent 2**63 - 1 correctly.
4979    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4980    since some C++ compilers masquerading as C compilers
4981    incorrectly reject 9223372036854775807.  */
4982#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4983  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4984		       && LARGE_OFF_T % 2147483647 == 1)
4985		      ? 1 : -1];
4986int
4987main ()
4988{
4989
4990  ;
4991  return 0;
4992}
4993_ACEOF
4994if ac_fn_c_try_compile "$LINENO"; then :
4995  ac_cv_sys_large_files=1; break
4996fi
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998  ac_cv_sys_large_files=unknown
4999  break
5000done
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5003$as_echo "$ac_cv_sys_large_files" >&6; }
5004case $ac_cv_sys_large_files in #(
5005  no | unknown) ;;
5006  *)
5007cat >>confdefs.h <<_ACEOF
5008#define _LARGE_FILES $ac_cv_sys_large_files
5009_ACEOF
5010;;
5011esac
5012rm -rf conftest*
5013  fi
5014
5015
5016fi
5017
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5019$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5020if ${ac_cv_sys_largefile_source+:} false; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023  while :; do
5024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h.  */
5026#include <sys/types.h> /* for off_t */
5027     #include <stdio.h>
5028int
5029main ()
5030{
5031int (*fp) (FILE *, off_t, int) = fseeko;
5032     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5033  ;
5034  return 0;
5035}
5036_ACEOF
5037if ac_fn_c_try_link "$LINENO"; then :
5038  ac_cv_sys_largefile_source=no; break
5039fi
5040rm -f core conftest.err conftest.$ac_objext \
5041    conftest$ac_exeext conftest.$ac_ext
5042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044#define _LARGEFILE_SOURCE 1
5045#include <sys/types.h> /* for off_t */
5046     #include <stdio.h>
5047int
5048main ()
5049{
5050int (*fp) (FILE *, off_t, int) = fseeko;
5051     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_link "$LINENO"; then :
5057  ac_cv_sys_largefile_source=1; break
5058fi
5059rm -f core conftest.err conftest.$ac_objext \
5060    conftest$ac_exeext conftest.$ac_ext
5061  ac_cv_sys_largefile_source=unknown
5062  break
5063done
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5066$as_echo "$ac_cv_sys_largefile_source" >&6; }
5067case $ac_cv_sys_largefile_source in #(
5068  no | unknown) ;;
5069  *)
5070cat >>confdefs.h <<_ACEOF
5071#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5072_ACEOF
5073;;
5074esac
5075rm -rf conftest*
5076
5077# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5078# in glibc 2.1.3, but that breaks too many other things.
5079# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5080if test $ac_cv_sys_largefile_source != unknown; then
5081
5082$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5083
5084fi
5085
5086ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
5087if test "x$ac_cv_func_fseeko" = xyes; then :
5088
5089fi
5090
5091if test ! $ac_cv_func_fseeko; then
5092   as_fn_error $? "Libburn requires largefile support." "$LINENO" 5
5093fi
5094
5095case `pwd` in
5096  *\ * | *\	*)
5097    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5098$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5099esac
5100
5101
5102
5103macro_version='2.4.2'
5104macro_revision='1.3337'
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118ltmain="$ac_aux_dir/ltmain.sh"
5119
5120# Backslashify metacharacters that are still active within
5121# double-quoted strings.
5122sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5123
5124# Same as above, but do not quote variable references.
5125double_quote_subst='s/\(["`\\]\)/\\\1/g'
5126
5127# Sed substitution to delay expansion of an escaped shell variable in a
5128# double_quote_subst'ed string.
5129delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5130
5131# Sed substitution to delay expansion of an escaped single quote.
5132delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5133
5134# Sed substitution to avoid accidental globbing in evaled expressions
5135no_glob_subst='s/\*/\\\*/g'
5136
5137ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5138ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5139ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5142$as_echo_n "checking how to print strings... " >&6; }
5143# Test print first, because it will be a builtin if present.
5144if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5145   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5146  ECHO='print -r --'
5147elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5148  ECHO='printf %s\n'
5149else
5150  # Use this function as a fallback that always works.
5151  func_fallback_echo ()
5152  {
5153    eval 'cat <<_LTECHO_EOF
5154$1
5155_LTECHO_EOF'
5156  }
5157  ECHO='func_fallback_echo'
5158fi
5159
5160# func_echo_all arg...
5161# Invoke $ECHO with all args, space-separated.
5162func_echo_all ()
5163{
5164    $ECHO ""
5165}
5166
5167case "$ECHO" in
5168  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5169$as_echo "printf" >&6; } ;;
5170  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5171$as_echo "print -r" >&6; } ;;
5172  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5173$as_echo "cat" >&6; } ;;
5174esac
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5190$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5191if ${ac_cv_path_SED+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5195     for ac_i in 1 2 3 4 5 6 7; do
5196       ac_script="$ac_script$as_nl$ac_script"
5197     done
5198     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5199     { ac_script=; unset ac_script;}
5200     if test -z "$SED"; then
5201  ac_path_SED_found=false
5202  # Loop through the user's path and test for each of PROGNAME-LIST
5203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208    for ac_prog in sed gsed; do
5209    for ac_exec_ext in '' $ac_executable_extensions; do
5210      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5211      as_fn_executable_p "$ac_path_SED" || continue
5212# Check for GNU ac_path_SED and select it if it is found.
5213  # Check for GNU $ac_path_SED
5214case `"$ac_path_SED" --version 2>&1` in
5215*GNU*)
5216  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5217*)
5218  ac_count=0
5219  $as_echo_n 0123456789 >"conftest.in"
5220  while :
5221  do
5222    cat "conftest.in" "conftest.in" >"conftest.tmp"
5223    mv "conftest.tmp" "conftest.in"
5224    cp "conftest.in" "conftest.nl"
5225    $as_echo '' >> "conftest.nl"
5226    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228    as_fn_arith $ac_count + 1 && ac_count=$as_val
5229    if test $ac_count -gt ${ac_path_SED_max-0}; then
5230      # Best one so far, save it but keep looking for a better one
5231      ac_cv_path_SED="$ac_path_SED"
5232      ac_path_SED_max=$ac_count
5233    fi
5234    # 10*(2^10) chars as input seems more than enough
5235    test $ac_count -gt 10 && break
5236  done
5237  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238esac
5239
5240      $ac_path_SED_found && break 3
5241    done
5242  done
5243  done
5244IFS=$as_save_IFS
5245  if test -z "$ac_cv_path_SED"; then
5246    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5247  fi
5248else
5249  ac_cv_path_SED=$SED
5250fi
5251
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5254$as_echo "$ac_cv_path_SED" >&6; }
5255 SED="$ac_cv_path_SED"
5256  rm -f conftest.sed
5257
5258test -z "$SED" && SED=sed
5259Xsed="$SED -e 1s/^X//"
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5272$as_echo_n "checking for fgrep... " >&6; }
5273if ${ac_cv_path_FGREP+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5277   then ac_cv_path_FGREP="$GREP -F"
5278   else
5279     if test -z "$FGREP"; then
5280  ac_path_FGREP_found=false
5281  # Loop through the user's path and test for each of PROGNAME-LIST
5282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284do
5285  IFS=$as_save_IFS
5286  test -z "$as_dir" && as_dir=.
5287    for ac_prog in fgrep; do
5288    for ac_exec_ext in '' $ac_executable_extensions; do
5289      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5290      as_fn_executable_p "$ac_path_FGREP" || continue
5291# Check for GNU ac_path_FGREP and select it if it is found.
5292  # Check for GNU $ac_path_FGREP
5293case `"$ac_path_FGREP" --version 2>&1` in
5294*GNU*)
5295  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5296*)
5297  ac_count=0
5298  $as_echo_n 0123456789 >"conftest.in"
5299  while :
5300  do
5301    cat "conftest.in" "conftest.in" >"conftest.tmp"
5302    mv "conftest.tmp" "conftest.in"
5303    cp "conftest.in" "conftest.nl"
5304    $as_echo 'FGREP' >> "conftest.nl"
5305    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5306    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5307    as_fn_arith $ac_count + 1 && ac_count=$as_val
5308    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5309      # Best one so far, save it but keep looking for a better one
5310      ac_cv_path_FGREP="$ac_path_FGREP"
5311      ac_path_FGREP_max=$ac_count
5312    fi
5313    # 10*(2^10) chars as input seems more than enough
5314    test $ac_count -gt 10 && break
5315  done
5316  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317esac
5318
5319      $ac_path_FGREP_found && break 3
5320    done
5321  done
5322  done
5323IFS=$as_save_IFS
5324  if test -z "$ac_cv_path_FGREP"; then
5325    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326  fi
5327else
5328  ac_cv_path_FGREP=$FGREP
5329fi
5330
5331   fi
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5334$as_echo "$ac_cv_path_FGREP" >&6; }
5335 FGREP="$ac_cv_path_FGREP"
5336
5337
5338test -z "$GREP" && GREP=grep
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358# Check whether --with-gnu-ld was given.
5359if test "${with_gnu_ld+set}" = set; then :
5360  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5361else
5362  with_gnu_ld=no
5363fi
5364
5365ac_prog=ld
5366if test "$GCC" = yes; then
5367  # Check if gcc -print-prog-name=ld gives a path.
5368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5369$as_echo_n "checking for ld used by $CC... " >&6; }
5370  case $host in
5371  *-*-mingw*)
5372    # gcc leaves a trailing carriage return which upsets mingw
5373    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5374  *)
5375    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5376  esac
5377  case $ac_prog in
5378    # Accept absolute paths.
5379    [\\/]* | ?:[\\/]*)
5380      re_direlt='/[^/][^/]*/\.\./'
5381      # Canonicalize the pathname of ld
5382      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5383      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5384	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5385      done
5386      test -z "$LD" && LD="$ac_prog"
5387      ;;
5388  "")
5389    # If it fails, then pretend we aren't using GCC.
5390    ac_prog=ld
5391    ;;
5392  *)
5393    # If it is relative, then search for the first ld in PATH.
5394    with_gnu_ld=unknown
5395    ;;
5396  esac
5397elif test "$with_gnu_ld" = yes; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5399$as_echo_n "checking for GNU ld... " >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5402$as_echo_n "checking for non-GNU ld... " >&6; }
5403fi
5404if ${lt_cv_path_LD+:} false; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407  if test -z "$LD"; then
5408  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5409  for ac_dir in $PATH; do
5410    IFS="$lt_save_ifs"
5411    test -z "$ac_dir" && ac_dir=.
5412    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5413      lt_cv_path_LD="$ac_dir/$ac_prog"
5414      # Check to see if the program is GNU ld.  I'd rather use --version,
5415      # but apparently some variants of GNU ld only accept -v.
5416      # Break only if it was the GNU/non-GNU ld that we prefer.
5417      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5418      *GNU* | *'with BFD'*)
5419	test "$with_gnu_ld" != no && break
5420	;;
5421      *)
5422	test "$with_gnu_ld" != yes && break
5423	;;
5424      esac
5425    fi
5426  done
5427  IFS="$lt_save_ifs"
5428else
5429  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5430fi
5431fi
5432
5433LD="$lt_cv_path_LD"
5434if test -n "$LD"; then
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5436$as_echo "$LD" >&6; }
5437else
5438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439$as_echo "no" >&6; }
5440fi
5441test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5443$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5444if ${lt_cv_prog_gnu_ld+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5448case `$LD -v 2>&1 </dev/null` in
5449*GNU* | *'with BFD'*)
5450  lt_cv_prog_gnu_ld=yes
5451  ;;
5452*)
5453  lt_cv_prog_gnu_ld=no
5454  ;;
5455esac
5456fi
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5458$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5459with_gnu_ld=$lt_cv_prog_gnu_ld
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5470$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5471if ${lt_cv_path_NM+:} false; then :
5472  $as_echo_n "(cached) " >&6
5473else
5474  if test -n "$NM"; then
5475  # Let the user override the test.
5476  lt_cv_path_NM="$NM"
5477else
5478  lt_nm_to_check="${ac_tool_prefix}nm"
5479  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5480    lt_nm_to_check="$lt_nm_to_check nm"
5481  fi
5482  for lt_tmp_nm in $lt_nm_to_check; do
5483    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5484    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5485      IFS="$lt_save_ifs"
5486      test -z "$ac_dir" && ac_dir=.
5487      tmp_nm="$ac_dir/$lt_tmp_nm"
5488      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5489	# Check to see if the nm accepts a BSD-compat flag.
5490	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5491	#   nm: unknown option "B" ignored
5492	# Tru64's nm complains that /dev/null is an invalid object file
5493	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5494	*/dev/null* | *'Invalid file or object type'*)
5495	  lt_cv_path_NM="$tmp_nm -B"
5496	  break
5497	  ;;
5498	*)
5499	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5500	  */dev/null*)
5501	    lt_cv_path_NM="$tmp_nm -p"
5502	    break
5503	    ;;
5504	  *)
5505	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5506	    continue # so that we can try to find one that supports BSD flags
5507	    ;;
5508	  esac
5509	  ;;
5510	esac
5511      fi
5512    done
5513    IFS="$lt_save_ifs"
5514  done
5515  : ${lt_cv_path_NM=no}
5516fi
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5519$as_echo "$lt_cv_path_NM" >&6; }
5520if test "$lt_cv_path_NM" != "no"; then
5521  NM="$lt_cv_path_NM"
5522else
5523  # Didn't find any BSD compatible name lister, look for dumpbin.
5524  if test -n "$DUMPBIN"; then :
5525    # Let the user override the test.
5526  else
5527    if test -n "$ac_tool_prefix"; then
5528  for ac_prog in dumpbin "link -dump"
5529  do
5530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if ${ac_cv_prog_DUMPBIN+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  if test -n "$DUMPBIN"; then
5538  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552  done
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557DUMPBIN=$ac_cv_prog_DUMPBIN
5558if test -n "$DUMPBIN"; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5560$as_echo "$DUMPBIN" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563$as_echo "no" >&6; }
5564fi
5565
5566
5567    test -n "$DUMPBIN" && break
5568  done
5569fi
5570if test -z "$DUMPBIN"; then
5571  ac_ct_DUMPBIN=$DUMPBIN
5572  for ac_prog in dumpbin "link -dump"
5573do
5574  # Extract the first word of "$ac_prog", so it can be a program name with args.
5575set dummy $ac_prog; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5579  $as_echo_n "(cached) " >&6
5580else
5581  if test -n "$ac_ct_DUMPBIN"; then
5582  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587  IFS=$as_save_IFS
5588  test -z "$as_dir" && as_dir=.
5589    for ac_exec_ext in '' $ac_executable_extensions; do
5590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593    break 2
5594  fi
5595done
5596  done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5602if test -n "$ac_ct_DUMPBIN"; then
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5604$as_echo "$ac_ct_DUMPBIN" >&6; }
5605else
5606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610
5611  test -n "$ac_ct_DUMPBIN" && break
5612done
5613
5614  if test "x$ac_ct_DUMPBIN" = x; then
5615    DUMPBIN=":"
5616  else
5617    case $cross_compiling:$ac_tool_warned in
5618yes:)
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621ac_tool_warned=yes ;;
5622esac
5623    DUMPBIN=$ac_ct_DUMPBIN
5624  fi
5625fi
5626
5627    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5628    *COFF*)
5629      DUMPBIN="$DUMPBIN -symbols"
5630      ;;
5631    *)
5632      DUMPBIN=:
5633      ;;
5634    esac
5635  fi
5636
5637  if test "$DUMPBIN" != ":"; then
5638    NM="$DUMPBIN"
5639  fi
5640fi
5641test -z "$NM" && NM=nm
5642
5643
5644
5645
5646
5647
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5649$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5650if ${lt_cv_nm_interface+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  lt_cv_nm_interface="BSD nm"
5654  echo "int some_variable = 0;" > conftest.$ac_ext
5655  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5656  (eval "$ac_compile" 2>conftest.err)
5657  cat conftest.err >&5
5658  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5659  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5660  cat conftest.err >&5
5661  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5662  cat conftest.out >&5
5663  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5664    lt_cv_nm_interface="MS dumpbin"
5665  fi
5666  rm -f conftest*
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5669$as_echo "$lt_cv_nm_interface" >&6; }
5670
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5672$as_echo_n "checking whether ln -s works... " >&6; }
5673LN_S=$as_ln_s
5674if test "$LN_S" = "ln -s"; then
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676$as_echo "yes" >&6; }
5677else
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5679$as_echo "no, using $LN_S" >&6; }
5680fi
5681
5682# find the maximum length of command line arguments
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5684$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5685if ${lt_cv_sys_max_cmd_len+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688    i=0
5689  teststring="ABCD"
5690
5691  case $build_os in
5692  msdosdjgpp*)
5693    # On DJGPP, this test can blow up pretty badly due to problems in libc
5694    # (any single argument exceeding 2000 bytes causes a buffer overrun
5695    # during glob expansion).  Even if it were fixed, the result of this
5696    # check would be larger than it should be.
5697    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5698    ;;
5699
5700  gnu*)
5701    # Under GNU Hurd, this test is not required because there is
5702    # no limit to the length of command line arguments.
5703    # Libtool will interpret -1 as no limit whatsoever
5704    lt_cv_sys_max_cmd_len=-1;
5705    ;;
5706
5707  cygwin* | mingw* | cegcc*)
5708    # On Win9x/ME, this test blows up -- it succeeds, but takes
5709    # about 5 minutes as the teststring grows exponentially.
5710    # Worse, since 9x/ME are not pre-emptively multitasking,
5711    # you end up with a "frozen" computer, even though with patience
5712    # the test eventually succeeds (with a max line length of 256k).
5713    # Instead, let's just punt: use the minimum linelength reported by
5714    # all of the supported platforms: 8192 (on NT/2K/XP).
5715    lt_cv_sys_max_cmd_len=8192;
5716    ;;
5717
5718  mint*)
5719    # On MiNT this can take a long time and run out of memory.
5720    lt_cv_sys_max_cmd_len=8192;
5721    ;;
5722
5723  amigaos*)
5724    # On AmigaOS with pdksh, this test takes hours, literally.
5725    # So we just punt and use a minimum line length of 8192.
5726    lt_cv_sys_max_cmd_len=8192;
5727    ;;
5728
5729  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5730    # This has been around since 386BSD, at least.  Likely further.
5731    if test -x /sbin/sysctl; then
5732      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5733    elif test -x /usr/sbin/sysctl; then
5734      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5735    else
5736      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5737    fi
5738    # And add a safety zone
5739    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5740    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5741    ;;
5742
5743  interix*)
5744    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5745    lt_cv_sys_max_cmd_len=196608
5746    ;;
5747
5748  os2*)
5749    # The test takes a long time on OS/2.
5750    lt_cv_sys_max_cmd_len=8192
5751    ;;
5752
5753  osf*)
5754    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5755    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5756    # nice to cause kernel panics so lets avoid the loop below.
5757    # First set a reasonable default.
5758    lt_cv_sys_max_cmd_len=16384
5759    #
5760    if test -x /sbin/sysconfig; then
5761      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5762        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5763      esac
5764    fi
5765    ;;
5766  sco3.2v5*)
5767    lt_cv_sys_max_cmd_len=102400
5768    ;;
5769  sysv5* | sco5v6* | sysv4.2uw2*)
5770    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5771    if test -n "$kargmax"; then
5772      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5773    else
5774      lt_cv_sys_max_cmd_len=32768
5775    fi
5776    ;;
5777  *)
5778    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5779    if test -n "$lt_cv_sys_max_cmd_len" && \
5780	test undefined != "$lt_cv_sys_max_cmd_len"; then
5781      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5782      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5783    else
5784      # Make teststring a little bigger before we do anything with it.
5785      # a 1K string should be a reasonable start.
5786      for i in 1 2 3 4 5 6 7 8 ; do
5787        teststring=$teststring$teststring
5788      done
5789      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5790      # If test is not a shell built-in, we'll probably end up computing a
5791      # maximum length that is only half of the actual maximum length, but
5792      # we can't tell.
5793      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5794	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5795	      test $i != 17 # 1/2 MB should be enough
5796      do
5797        i=`expr $i + 1`
5798        teststring=$teststring$teststring
5799      done
5800      # Only check the string length outside the loop.
5801      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5802      teststring=
5803      # Add a significant safety factor because C++ compilers can tack on
5804      # massive amounts of additional arguments before passing them to the
5805      # linker.  It appears as though 1/2 is a usable value.
5806      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5807    fi
5808    ;;
5809  esac
5810
5811fi
5812
5813if test -n $lt_cv_sys_max_cmd_len ; then
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5815$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5816else
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5818$as_echo "none" >&6; }
5819fi
5820max_cmd_len=$lt_cv_sys_max_cmd_len
5821
5822
5823
5824
5825
5826
5827: ${CP="cp -f"}
5828: ${MV="mv -f"}
5829: ${RM="rm -f"}
5830
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5832$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5833# Try some XSI features
5834xsi_shell=no
5835( _lt_dummy="a/b/c"
5836  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5837      = c,a/b,b/c, \
5838    && eval 'test $(( 1 + 1 )) -eq 2 \
5839    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5840  && xsi_shell=yes
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5842$as_echo "$xsi_shell" >&6; }
5843
5844
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5846$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5847lt_shell_append=no
5848( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5849    >/dev/null 2>&1 \
5850  && lt_shell_append=yes
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5852$as_echo "$lt_shell_append" >&6; }
5853
5854
5855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5856  lt_unset=unset
5857else
5858  lt_unset=false
5859fi
5860
5861
5862
5863
5864
5865# test EBCDIC or ASCII
5866case `echo X|tr X '\101'` in
5867 A) # ASCII based system
5868    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5869  lt_SP2NL='tr \040 \012'
5870  lt_NL2SP='tr \015\012 \040\040'
5871  ;;
5872 *) # EBCDIC based system
5873  lt_SP2NL='tr \100 \n'
5874  lt_NL2SP='tr \r\n \100\100'
5875  ;;
5876esac
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5887$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5888if ${lt_cv_to_host_file_cmd+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  case $host in
5892  *-*-mingw* )
5893    case $build in
5894      *-*-mingw* ) # actually msys
5895        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5896        ;;
5897      *-*-cygwin* )
5898        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5899        ;;
5900      * ) # otherwise, assume *nix
5901        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5902        ;;
5903    esac
5904    ;;
5905  *-*-cygwin* )
5906    case $build in
5907      *-*-mingw* ) # actually msys
5908        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5909        ;;
5910      *-*-cygwin* )
5911        lt_cv_to_host_file_cmd=func_convert_file_noop
5912        ;;
5913      * ) # otherwise, assume *nix
5914        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5915        ;;
5916    esac
5917    ;;
5918  * ) # unhandled hosts (and "normal" native builds)
5919    lt_cv_to_host_file_cmd=func_convert_file_noop
5920    ;;
5921esac
5922
5923fi
5924
5925to_host_file_cmd=$lt_cv_to_host_file_cmd
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5927$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5928
5929
5930
5931
5932
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5934$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5935if ${lt_cv_to_tool_file_cmd+:} false; then :
5936  $as_echo_n "(cached) " >&6
5937else
5938  #assume ordinary cross tools, or native build.
5939lt_cv_to_tool_file_cmd=func_convert_file_noop
5940case $host in
5941  *-*-mingw* )
5942    case $build in
5943      *-*-mingw* ) # actually msys
5944        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5945        ;;
5946    esac
5947    ;;
5948esac
5949
5950fi
5951
5952to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5954$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5955
5956
5957
5958
5959
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5961$as_echo_n "checking for $LD option to reload object files... " >&6; }
5962if ${lt_cv_ld_reload_flag+:} false; then :
5963  $as_echo_n "(cached) " >&6
5964else
5965  lt_cv_ld_reload_flag='-r'
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5968$as_echo "$lt_cv_ld_reload_flag" >&6; }
5969reload_flag=$lt_cv_ld_reload_flag
5970case $reload_flag in
5971"" | " "*) ;;
5972*) reload_flag=" $reload_flag" ;;
5973esac
5974reload_cmds='$LD$reload_flag -o $output$reload_objs'
5975case $host_os in
5976  cygwin* | mingw* | pw32* | cegcc*)
5977    if test "$GCC" != yes; then
5978      reload_cmds=false
5979    fi
5980    ;;
5981  darwin*)
5982    if test "$GCC" = yes; then
5983      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5984    else
5985      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5986    fi
5987    ;;
5988esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998if test -n "$ac_tool_prefix"; then
5999  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}objdump; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if ${ac_cv_prog_OBJDUMP+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  if test -n "$OBJDUMP"; then
6007  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014    for ac_exec_ext in '' $ac_executable_extensions; do
6015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021  done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026OBJDUMP=$ac_cv_prog_OBJDUMP
6027if test -n "$OBJDUMP"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6029$as_echo "$OBJDUMP" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$ac_cv_prog_OBJDUMP"; then
6038  ac_ct_OBJDUMP=$OBJDUMP
6039  # Extract the first word of "objdump", so it can be a program name with args.
6040set dummy objdump; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$ac_ct_OBJDUMP"; then
6047  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6067if test -n "$ac_ct_OBJDUMP"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6069$as_echo "$ac_ct_OBJDUMP" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075  if test "x$ac_ct_OBJDUMP" = x; then
6076    OBJDUMP="false"
6077  else
6078    case $cross_compiling:$ac_tool_warned in
6079yes:)
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084    OBJDUMP=$ac_ct_OBJDUMP
6085  fi
6086else
6087  OBJDUMP="$ac_cv_prog_OBJDUMP"
6088fi
6089
6090test -z "$OBJDUMP" && OBJDUMP=objdump
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6101$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6102if ${lt_cv_deplibs_check_method+:} false; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  lt_cv_file_magic_cmd='$MAGIC_CMD'
6106lt_cv_file_magic_test_file=
6107lt_cv_deplibs_check_method='unknown'
6108# Need to set the preceding variable on all platforms that support
6109# interlibrary dependencies.
6110# 'none' -- dependencies not supported.
6111# `unknown' -- same as none, but documents that we really don't know.
6112# 'pass_all' -- all dependencies passed with no checks.
6113# 'test_compile' -- check by making test program.
6114# 'file_magic [[regex]]' -- check by looking for files in library path
6115# which responds to the $file_magic_cmd with a given extended regex.
6116# If you have `file' or equivalent on your system and you're not sure
6117# whether `pass_all' will *always* work, you probably want this one.
6118
6119case $host_os in
6120aix[4-9]*)
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123
6124beos*)
6125  lt_cv_deplibs_check_method=pass_all
6126  ;;
6127
6128bsdi[45]*)
6129  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6130  lt_cv_file_magic_cmd='/usr/bin/file -L'
6131  lt_cv_file_magic_test_file=/shlib/libc.so
6132  ;;
6133
6134cygwin*)
6135  # func_win32_libid is a shell function defined in ltmain.sh
6136  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6137  lt_cv_file_magic_cmd='func_win32_libid'
6138  ;;
6139
6140mingw* | pw32*)
6141  # Base MSYS/MinGW do not provide the 'file' command needed by
6142  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6143  # unless we find 'file', for example because we are cross-compiling.
6144  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6145  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6146    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6147    lt_cv_file_magic_cmd='func_win32_libid'
6148  else
6149    # Keep this pattern in sync with the one in func_win32_libid.
6150    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6151    lt_cv_file_magic_cmd='$OBJDUMP -f'
6152  fi
6153  ;;
6154
6155cegcc*)
6156  # use the weaker test based on 'objdump'. See mingw*.
6157  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6158  lt_cv_file_magic_cmd='$OBJDUMP -f'
6159  ;;
6160
6161darwin* | rhapsody*)
6162  lt_cv_deplibs_check_method=pass_all
6163  ;;
6164
6165freebsd* | dragonfly*)
6166  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6167    case $host_cpu in
6168    i*86 )
6169      # Not sure whether the presence of OpenBSD here was a mistake.
6170      # Let's accept both of them until this is cleared up.
6171      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6172      lt_cv_file_magic_cmd=/usr/bin/file
6173      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6174      ;;
6175    esac
6176  else
6177    lt_cv_deplibs_check_method=pass_all
6178  fi
6179  ;;
6180
6181haiku*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185hpux10.20* | hpux11*)
6186  lt_cv_file_magic_cmd=/usr/bin/file
6187  case $host_cpu in
6188  ia64*)
6189    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6190    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6191    ;;
6192  hppa*64*)
6193    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]'
6194    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6195    ;;
6196  *)
6197    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6198    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6199    ;;
6200  esac
6201  ;;
6202
6203interix[3-9]*)
6204  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6205  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6206  ;;
6207
6208irix5* | irix6* | nonstopux*)
6209  case $LD in
6210  *-32|*"-32 ") libmagic=32-bit;;
6211  *-n32|*"-n32 ") libmagic=N32;;
6212  *-64|*"-64 ") libmagic=64-bit;;
6213  *) libmagic=never-match;;
6214  esac
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218# This must be glibc/ELF.
6219linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6220  lt_cv_deplibs_check_method=pass_all
6221  ;;
6222
6223netbsd* | netbsdelf*-gnu)
6224  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6226  else
6227    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6228  fi
6229  ;;
6230
6231newos6*)
6232  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6233  lt_cv_file_magic_cmd=/usr/bin/file
6234  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6235  ;;
6236
6237*nto* | *qnx*)
6238  lt_cv_deplibs_check_method=pass_all
6239  ;;
6240
6241openbsd*)
6242  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6243    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6244  else
6245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246  fi
6247  ;;
6248
6249osf3* | osf4* | osf5*)
6250  lt_cv_deplibs_check_method=pass_all
6251  ;;
6252
6253rdos*)
6254  lt_cv_deplibs_check_method=pass_all
6255  ;;
6256
6257solaris*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260
6261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6262  lt_cv_deplibs_check_method=pass_all
6263  ;;
6264
6265sysv4 | sysv4.3*)
6266  case $host_vendor in
6267  motorola)
6268    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]'
6269    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6270    ;;
6271  ncr)
6272    lt_cv_deplibs_check_method=pass_all
6273    ;;
6274  sequent)
6275    lt_cv_file_magic_cmd='/bin/file'
6276    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6277    ;;
6278  sni)
6279    lt_cv_file_magic_cmd='/bin/file'
6280    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6281    lt_cv_file_magic_test_file=/lib/libc.so
6282    ;;
6283  siemens)
6284    lt_cv_deplibs_check_method=pass_all
6285    ;;
6286  pc)
6287    lt_cv_deplibs_check_method=pass_all
6288    ;;
6289  esac
6290  ;;
6291
6292tpf*)
6293  lt_cv_deplibs_check_method=pass_all
6294  ;;
6295esac
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6299$as_echo "$lt_cv_deplibs_check_method" >&6; }
6300
6301file_magic_glob=
6302want_nocaseglob=no
6303if test "$build" = "$host"; then
6304  case $host_os in
6305  mingw* | pw32*)
6306    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6307      want_nocaseglob=yes
6308    else
6309      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6310    fi
6311    ;;
6312  esac
6313fi
6314
6315file_magic_cmd=$lt_cv_file_magic_cmd
6316deplibs_check_method=$lt_cv_deplibs_check_method
6317test -z "$deplibs_check_method" && deplibs_check_method=unknown
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340if test -n "$ac_tool_prefix"; then
6341  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6342set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if ${ac_cv_prog_DLLTOOL+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test -n "$DLLTOOL"; then
6349  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356    for ac_exec_ext in '' $ac_executable_extensions; do
6357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363  done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368DLLTOOL=$ac_cv_prog_DLLTOOL
6369if test -n "$DLLTOOL"; then
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6371$as_echo "$DLLTOOL" >&6; }
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377
6378fi
6379if test -z "$ac_cv_prog_DLLTOOL"; then
6380  ac_ct_DLLTOOL=$DLLTOOL
6381  # Extract the first word of "dlltool", so it can be a program name with args.
6382set dummy dlltool; ac_word=$2
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384$as_echo_n "checking for $ac_word... " >&6; }
6385if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  if test -n "$ac_ct_DLLTOOL"; then
6389  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396    for ac_exec_ext in '' $ac_executable_extensions; do
6397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400    break 2
6401  fi
6402done
6403  done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6409if test -n "$ac_ct_DLLTOOL"; then
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6411$as_echo "$ac_ct_DLLTOOL" >&6; }
6412else
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414$as_echo "no" >&6; }
6415fi
6416
6417  if test "x$ac_ct_DLLTOOL" = x; then
6418    DLLTOOL="false"
6419  else
6420    case $cross_compiling:$ac_tool_warned in
6421yes:)
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426    DLLTOOL=$ac_ct_DLLTOOL
6427  fi
6428else
6429  DLLTOOL="$ac_cv_prog_DLLTOOL"
6430fi
6431
6432test -z "$DLLTOOL" && DLLTOOL=dlltool
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6444$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6445if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448  lt_cv_sharedlib_from_linklib_cmd='unknown'
6449
6450case $host_os in
6451cygwin* | mingw* | pw32* | cegcc*)
6452  # two different shell functions defined in ltmain.sh
6453  # decide which to use based on capabilities of $DLLTOOL
6454  case `$DLLTOOL --help 2>&1` in
6455  *--identify-strict*)
6456    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6457    ;;
6458  *)
6459    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6460    ;;
6461  esac
6462  ;;
6463*)
6464  # fallback: assume linklib IS sharedlib
6465  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6466  ;;
6467esac
6468
6469fi
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6471$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6472sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6473test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6474
6475
6476
6477
6478
6479
6480
6481if test -n "$ac_tool_prefix"; then
6482  for ac_prog in ar
6483  do
6484    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_AR+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$AR"; then
6492  ac_cv_prog_AR="$AR" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511AR=$ac_cv_prog_AR
6512if test -n "$AR"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6514$as_echo "$AR" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521    test -n "$AR" && break
6522  done
6523fi
6524if test -z "$AR"; then
6525  ac_ct_AR=$AR
6526  for ac_prog in ar
6527do
6528  # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if ${ac_cv_prog_ac_ct_AR+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  if test -n "$ac_ct_AR"; then
6536  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_ac_ct_AR="$ac_prog"
6546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_AR=$ac_cv_prog_ac_ct_AR
6556if test -n "$ac_ct_AR"; then
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6558$as_echo "$ac_ct_AR" >&6; }
6559else
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565  test -n "$ac_ct_AR" && break
6566done
6567
6568  if test "x$ac_ct_AR" = x; then
6569    AR="false"
6570  else
6571    case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577    AR=$ac_ct_AR
6578  fi
6579fi
6580
6581: ${AR=ar}
6582: ${AR_FLAGS=cru}
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6595$as_echo_n "checking for archiver @FILE support... " >&6; }
6596if ${lt_cv_ar_at_file+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  lt_cv_ar_at_file=no
6600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602
6603int
6604main ()
6605{
6606
6607  ;
6608  return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_compile "$LINENO"; then :
6612  echo conftest.$ac_objext > conftest.lst
6613      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6614      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6615  (eval $lt_ar_try) 2>&5
6616  ac_status=$?
6617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618  test $ac_status = 0; }
6619      if test "$ac_status" -eq 0; then
6620	# Ensure the archiver fails upon bogus file names.
6621	rm -f conftest.$ac_objext libconftest.a
6622	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6623  (eval $lt_ar_try) 2>&5
6624  ac_status=$?
6625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626  test $ac_status = 0; }
6627	if test "$ac_status" -ne 0; then
6628          lt_cv_ar_at_file=@
6629        fi
6630      fi
6631      rm -f conftest.* libconftest.a
6632
6633fi
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6638$as_echo "$lt_cv_ar_at_file" >&6; }
6639
6640if test "x$lt_cv_ar_at_file" = xno; then
6641  archiver_list_spec=
6642else
6643  archiver_list_spec=$lt_cv_ar_at_file
6644fi
6645
6646
6647
6648
6649
6650
6651
6652if test -n "$ac_tool_prefix"; then
6653  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}strip; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if ${ac_cv_prog_STRIP+:} false; then :
6658  $as_echo_n "(cached) " >&6
6659else
6660  if test -n "$STRIP"; then
6661  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666  IFS=$as_save_IFS
6667  test -z "$as_dir" && as_dir=.
6668    for ac_exec_ext in '' $ac_executable_extensions; do
6669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672    break 2
6673  fi
6674done
6675  done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680STRIP=$ac_cv_prog_STRIP
6681if test -n "$STRIP"; then
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6683$as_echo "$STRIP" >&6; }
6684else
6685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_STRIP"; then
6692  ac_ct_STRIP=$STRIP
6693  # Extract the first word of "strip", so it can be a program name with args.
6694set dummy strip; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  if test -n "$ac_ct_STRIP"; then
6701  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706  IFS=$as_save_IFS
6707  test -z "$as_dir" && as_dir=.
6708    for ac_exec_ext in '' $ac_executable_extensions; do
6709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710    ac_cv_prog_ac_ct_STRIP="strip"
6711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712    break 2
6713  fi
6714done
6715  done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6721if test -n "$ac_ct_STRIP"; then
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6723$as_echo "$ac_ct_STRIP" >&6; }
6724else
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729  if test "x$ac_ct_STRIP" = x; then
6730    STRIP=":"
6731  else
6732    case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738    STRIP=$ac_ct_STRIP
6739  fi
6740else
6741  STRIP="$ac_cv_prog_STRIP"
6742fi
6743
6744test -z "$STRIP" && STRIP=:
6745
6746
6747
6748
6749
6750
6751if test -n "$ac_tool_prefix"; then
6752  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
6756if ${ac_cv_prog_RANLIB+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  if test -n "$RANLIB"; then
6760  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765  IFS=$as_save_IFS
6766  test -z "$as_dir" && as_dir=.
6767    for ac_exec_ext in '' $ac_executable_extensions; do
6768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771    break 2
6772  fi
6773done
6774  done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779RANLIB=$ac_cv_prog_RANLIB
6780if test -n "$RANLIB"; then
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6782$as_echo "$RANLIB" >&6; }
6783else
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_RANLIB"; then
6791  ac_ct_RANLIB=$RANLIB
6792  # Extract the first word of "ranlib", so it can be a program name with args.
6793set dummy ranlib; ac_word=$2
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795$as_echo_n "checking for $ac_word... " >&6; }
6796if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  if test -n "$ac_ct_RANLIB"; then
6800  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805  IFS=$as_save_IFS
6806  test -z "$as_dir" && as_dir=.
6807    for ac_exec_ext in '' $ac_executable_extensions; do
6808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809    ac_cv_prog_ac_ct_RANLIB="ranlib"
6810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811    break 2
6812  fi
6813done
6814  done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820if test -n "$ac_ct_RANLIB"; then
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6822$as_echo "$ac_ct_RANLIB" >&6; }
6823else
6824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825$as_echo "no" >&6; }
6826fi
6827
6828  if test "x$ac_ct_RANLIB" = x; then
6829    RANLIB=":"
6830  else
6831    case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835ac_tool_warned=yes ;;
6836esac
6837    RANLIB=$ac_ct_RANLIB
6838  fi
6839else
6840  RANLIB="$ac_cv_prog_RANLIB"
6841fi
6842
6843test -z "$RANLIB" && RANLIB=:
6844
6845
6846
6847
6848
6849
6850# Determine commands to create old-style static archives.
6851old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6852old_postinstall_cmds='chmod 644 $oldlib'
6853old_postuninstall_cmds=
6854
6855if test -n "$RANLIB"; then
6856  case $host_os in
6857  openbsd*)
6858    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6859    ;;
6860  *)
6861    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6862    ;;
6863  esac
6864  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6865fi
6866
6867case $host_os in
6868  darwin*)
6869    lock_old_archive_extraction=yes ;;
6870  *)
6871    lock_old_archive_extraction=no ;;
6872esac
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912# If no C compiler was specified, use CC.
6913LTCC=${LTCC-"$CC"}
6914
6915# If no C compiler flags were specified, use CFLAGS.
6916LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6917
6918# Allow CC to be a program name with arguments.
6919compiler=$CC
6920
6921
6922# Check for command to grab the raw symbol name followed by C symbol from nm.
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6924$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6925if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928
6929# These are sane defaults that work on at least a few old systems.
6930# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6931
6932# Character class describing NM global symbol codes.
6933symcode='[BCDEGRST]'
6934
6935# Regexp to match symbols that can be accessed directly from C.
6936sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6937
6938# Define system-specific variables.
6939case $host_os in
6940aix*)
6941  symcode='[BCDT]'
6942  ;;
6943cygwin* | mingw* | pw32* | cegcc*)
6944  symcode='[ABCDGISTW]'
6945  ;;
6946hpux*)
6947  if test "$host_cpu" = ia64; then
6948    symcode='[ABCDEGRST]'
6949  fi
6950  ;;
6951irix* | nonstopux*)
6952  symcode='[BCDEGRST]'
6953  ;;
6954osf*)
6955  symcode='[BCDEGQRST]'
6956  ;;
6957solaris*)
6958  symcode='[BDRT]'
6959  ;;
6960sco3.2v5*)
6961  symcode='[DT]'
6962  ;;
6963sysv4.2uw2*)
6964  symcode='[DT]'
6965  ;;
6966sysv5* | sco5v6* | unixware* | OpenUNIX*)
6967  symcode='[ABDT]'
6968  ;;
6969sysv4)
6970  symcode='[DFNSTU]'
6971  ;;
6972esac
6973
6974# If we're using GNU nm, then use its standard symbol codes.
6975case `$NM -V 2>&1` in
6976*GNU* | *'with BFD'*)
6977  symcode='[ABCDGIRSTW]' ;;
6978esac
6979
6980# Transform an extracted symbol line into a proper C declaration.
6981# Some systems (esp. on ia64) link data and code symbols differently,
6982# so use this general approach.
6983lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6984
6985# Transform an extracted symbol line into symbol name and symbol address
6986lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6987lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6988
6989# Handle CRLF in mingw tool chain
6990opt_cr=
6991case $build_os in
6992mingw*)
6993  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6994  ;;
6995esac
6996
6997# Try without a prefix underscore, then with it.
6998for ac_symprfx in "" "_"; do
6999
7000  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7001  symxfrm="\\1 $ac_symprfx\\2 \\2"
7002
7003  # Write the raw and C identifiers.
7004  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7005    # Fake it for dumpbin and say T for any non-static function
7006    # and D for any global variable.
7007    # Also find C++ and __fastcall symbols from MSVC++,
7008    # which start with @ or ?.
7009    lt_cv_sys_global_symbol_pipe="$AWK '"\
7010"     {last_section=section; section=\$ 3};"\
7011"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7012"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7013"     \$ 0!~/External *\|/{next};"\
7014"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7015"     {if(hide[section]) next};"\
7016"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7017"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7018"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7019"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7020"     ' prfx=^$ac_symprfx"
7021  else
7022    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7023  fi
7024  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7025
7026  # Check to see that the pipe works correctly.
7027  pipe_works=no
7028
7029  rm -f conftest*
7030  cat > conftest.$ac_ext <<_LT_EOF
7031#ifdef __cplusplus
7032extern "C" {
7033#endif
7034char nm_test_var;
7035void nm_test_func(void);
7036void nm_test_func(void){}
7037#ifdef __cplusplus
7038}
7039#endif
7040int main(){nm_test_var='a';nm_test_func();return(0);}
7041_LT_EOF
7042
7043  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7044  (eval $ac_compile) 2>&5
7045  ac_status=$?
7046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047  test $ac_status = 0; }; then
7048    # Now try to grab the symbols.
7049    nlist=conftest.nm
7050    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7051  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7052  ac_status=$?
7053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054  test $ac_status = 0; } && test -s "$nlist"; then
7055      # Try sorting and uniquifying the output.
7056      if sort "$nlist" | uniq > "$nlist"T; then
7057	mv -f "$nlist"T "$nlist"
7058      else
7059	rm -f "$nlist"T
7060      fi
7061
7062      # Make sure that we snagged all the symbols we need.
7063      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7064	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7065	  cat <<_LT_EOF > conftest.$ac_ext
7066/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7067#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7068/* DATA imports from DLLs on WIN32 con't be const, because runtime
7069   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7070# define LT_DLSYM_CONST
7071#elif defined(__osf__)
7072/* This system does not cope well with relocations in const data.  */
7073# define LT_DLSYM_CONST
7074#else
7075# define LT_DLSYM_CONST const
7076#endif
7077
7078#ifdef __cplusplus
7079extern "C" {
7080#endif
7081
7082_LT_EOF
7083	  # Now generate the symbol file.
7084	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7085
7086	  cat <<_LT_EOF >> conftest.$ac_ext
7087
7088/* The mapping between symbol names and symbols.  */
7089LT_DLSYM_CONST struct {
7090  const char *name;
7091  void       *address;
7092}
7093lt__PROGRAM__LTX_preloaded_symbols[] =
7094{
7095  { "@PROGRAM@", (void *) 0 },
7096_LT_EOF
7097	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7098	  cat <<\_LT_EOF >> conftest.$ac_ext
7099  {0, (void *) 0}
7100};
7101
7102/* This works around a problem in FreeBSD linker */
7103#ifdef FREEBSD_WORKAROUND
7104static const void *lt_preloaded_setup() {
7105  return lt__PROGRAM__LTX_preloaded_symbols;
7106}
7107#endif
7108
7109#ifdef __cplusplus
7110}
7111#endif
7112_LT_EOF
7113	  # Now try linking the two files.
7114	  mv conftest.$ac_objext conftstm.$ac_objext
7115	  lt_globsym_save_LIBS=$LIBS
7116	  lt_globsym_save_CFLAGS=$CFLAGS
7117	  LIBS="conftstm.$ac_objext"
7118	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7119	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7120  (eval $ac_link) 2>&5
7121  ac_status=$?
7122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7124	    pipe_works=yes
7125	  fi
7126	  LIBS=$lt_globsym_save_LIBS
7127	  CFLAGS=$lt_globsym_save_CFLAGS
7128	else
7129	  echo "cannot find nm_test_func in $nlist" >&5
7130	fi
7131      else
7132	echo "cannot find nm_test_var in $nlist" >&5
7133      fi
7134    else
7135      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7136    fi
7137  else
7138    echo "$progname: failed program was:" >&5
7139    cat conftest.$ac_ext >&5
7140  fi
7141  rm -rf conftest* conftst*
7142
7143  # Do not use the global_symbol_pipe unless it works.
7144  if test "$pipe_works" = yes; then
7145    break
7146  else
7147    lt_cv_sys_global_symbol_pipe=
7148  fi
7149done
7150
7151fi
7152
7153if test -z "$lt_cv_sys_global_symbol_pipe"; then
7154  lt_cv_sys_global_symbol_to_cdecl=
7155fi
7156if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7158$as_echo "failed" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7161$as_echo "ok" >&6; }
7162fi
7163
7164# Response file support.
7165if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7166  nm_file_list_spec='@'
7167elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7168  nm_file_list_spec='@'
7169fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7198$as_echo_n "checking for sysroot... " >&6; }
7199
7200# Check whether --with-sysroot was given.
7201if test "${with_sysroot+set}" = set; then :
7202  withval=$with_sysroot;
7203else
7204  with_sysroot=no
7205fi
7206
7207
7208lt_sysroot=
7209case ${with_sysroot} in #(
7210 yes)
7211   if test "$GCC" = yes; then
7212     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7213   fi
7214   ;; #(
7215 /*)
7216   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7217   ;; #(
7218 no|'')
7219   ;; #(
7220 *)
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7222$as_echo "${with_sysroot}" >&6; }
7223   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7224   ;;
7225esac
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7228$as_echo "${lt_sysroot:-no}" >&6; }
7229
7230
7231
7232
7233
7234# Check whether --enable-libtool-lock was given.
7235if test "${enable_libtool_lock+set}" = set; then :
7236  enableval=$enable_libtool_lock;
7237fi
7238
7239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7240
7241# Some flags need to be propagated to the compiler or linker for good
7242# libtool support.
7243case $host in
7244ia64-*-hpux*)
7245  # Find out which ABI we are using.
7246  echo 'int i;' > conftest.$ac_ext
7247  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7248  (eval $ac_compile) 2>&5
7249  ac_status=$?
7250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251  test $ac_status = 0; }; then
7252    case `/usr/bin/file conftest.$ac_objext` in
7253      *ELF-32*)
7254	HPUX_IA64_MODE="32"
7255	;;
7256      *ELF-64*)
7257	HPUX_IA64_MODE="64"
7258	;;
7259    esac
7260  fi
7261  rm -rf conftest*
7262  ;;
7263*-*-irix6*)
7264  # Find out which ABI we are using.
7265  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7266  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7267  (eval $ac_compile) 2>&5
7268  ac_status=$?
7269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7270  test $ac_status = 0; }; then
7271    if test "$lt_cv_prog_gnu_ld" = yes; then
7272      case `/usr/bin/file conftest.$ac_objext` in
7273	*32-bit*)
7274	  LD="${LD-ld} -melf32bsmip"
7275	  ;;
7276	*N32*)
7277	  LD="${LD-ld} -melf32bmipn32"
7278	  ;;
7279	*64-bit*)
7280	  LD="${LD-ld} -melf64bmip"
7281	;;
7282      esac
7283    else
7284      case `/usr/bin/file conftest.$ac_objext` in
7285	*32-bit*)
7286	  LD="${LD-ld} -32"
7287	  ;;
7288	*N32*)
7289	  LD="${LD-ld} -n32"
7290	  ;;
7291	*64-bit*)
7292	  LD="${LD-ld} -64"
7293	  ;;
7294      esac
7295    fi
7296  fi
7297  rm -rf conftest*
7298  ;;
7299
7300x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7301s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7302  # Find out which ABI we are using.
7303  echo 'int i;' > conftest.$ac_ext
7304  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7305  (eval $ac_compile) 2>&5
7306  ac_status=$?
7307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308  test $ac_status = 0; }; then
7309    case `/usr/bin/file conftest.o` in
7310      *32-bit*)
7311	case $host in
7312	  x86_64-*kfreebsd*-gnu)
7313	    LD="${LD-ld} -m elf_i386_fbsd"
7314	    ;;
7315	  x86_64-*linux*)
7316	    case `/usr/bin/file conftest.o` in
7317	      *x86-64*)
7318		LD="${LD-ld} -m elf32_x86_64"
7319		;;
7320	      *)
7321		LD="${LD-ld} -m elf_i386"
7322		;;
7323	    esac
7324	    ;;
7325	  powerpc64le-*)
7326	    LD="${LD-ld} -m elf32lppclinux"
7327	    ;;
7328	  powerpc64-*)
7329	    LD="${LD-ld} -m elf32ppclinux"
7330	    ;;
7331	  s390x-*linux*)
7332	    LD="${LD-ld} -m elf_s390"
7333	    ;;
7334	  sparc64-*linux*)
7335	    LD="${LD-ld} -m elf32_sparc"
7336	    ;;
7337	esac
7338	;;
7339      *64-bit*)
7340	case $host in
7341	  x86_64-*kfreebsd*-gnu)
7342	    LD="${LD-ld} -m elf_x86_64_fbsd"
7343	    ;;
7344	  x86_64-*linux*)
7345	    LD="${LD-ld} -m elf_x86_64"
7346	    ;;
7347	  powerpcle-*)
7348	    LD="${LD-ld} -m elf64lppc"
7349	    ;;
7350	  powerpc-*)
7351	    LD="${LD-ld} -m elf64ppc"
7352	    ;;
7353	  s390*-*linux*|s390*-*tpf*)
7354	    LD="${LD-ld} -m elf64_s390"
7355	    ;;
7356	  sparc*-*linux*)
7357	    LD="${LD-ld} -m elf64_sparc"
7358	    ;;
7359	esac
7360	;;
7361    esac
7362  fi
7363  rm -rf conftest*
7364  ;;
7365
7366*-*-sco3.2v5*)
7367  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7368  SAVE_CFLAGS="$CFLAGS"
7369  CFLAGS="$CFLAGS -belf"
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7371$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7372if ${lt_cv_cc_needs_belf+:} false; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383
7384int
7385main ()
7386{
7387
7388  ;
7389  return 0;
7390}
7391_ACEOF
7392if ac_fn_c_try_link "$LINENO"; then :
7393  lt_cv_cc_needs_belf=yes
7394else
7395  lt_cv_cc_needs_belf=no
7396fi
7397rm -f core conftest.err conftest.$ac_objext \
7398    conftest$ac_exeext conftest.$ac_ext
7399     ac_ext=c
7400ac_cpp='$CPP $CPPFLAGS'
7401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7407$as_echo "$lt_cv_cc_needs_belf" >&6; }
7408  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7409    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7410    CFLAGS="$SAVE_CFLAGS"
7411  fi
7412  ;;
7413*-*solaris*)
7414  # Find out which ABI we are using.
7415  echo 'int i;' > conftest.$ac_ext
7416  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7417  (eval $ac_compile) 2>&5
7418  ac_status=$?
7419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7420  test $ac_status = 0; }; then
7421    case `/usr/bin/file conftest.o` in
7422    *64-bit*)
7423      case $lt_cv_prog_gnu_ld in
7424      yes*)
7425        case $host in
7426        i?86-*-solaris*)
7427          LD="${LD-ld} -m elf_x86_64"
7428          ;;
7429        sparc*-*-solaris*)
7430          LD="${LD-ld} -m elf64_sparc"
7431          ;;
7432        esac
7433        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7434        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7435          LD="${LD-ld}_sol2"
7436        fi
7437        ;;
7438      *)
7439	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7440	  LD="${LD-ld} -64"
7441	fi
7442	;;
7443      esac
7444      ;;
7445    esac
7446  fi
7447  rm -rf conftest*
7448  ;;
7449esac
7450
7451need_locks="$enable_libtool_lock"
7452
7453if test -n "$ac_tool_prefix"; then
7454  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7455set dummy ${ac_tool_prefix}mt; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  if test -n "$MANIFEST_TOOL"; then
7462  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467  IFS=$as_save_IFS
7468  test -z "$as_dir" && as_dir=.
7469    for ac_exec_ext in '' $ac_executable_extensions; do
7470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473    break 2
7474  fi
7475done
7476  done
7477IFS=$as_save_IFS
7478
7479fi
7480fi
7481MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7482if test -n "$MANIFEST_TOOL"; then
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7484$as_echo "$MANIFEST_TOOL" >&6; }
7485else
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
7489
7490
7491fi
7492if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7493  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7494  # Extract the first word of "mt", so it can be a program name with args.
7495set dummy mt; ac_word=$2
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7499  $as_echo_n "(cached) " >&6
7500else
7501  if test -n "$ac_ct_MANIFEST_TOOL"; then
7502  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509    for ac_exec_ext in '' $ac_executable_extensions; do
7510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516  done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7522if test -n "$ac_ct_MANIFEST_TOOL"; then
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7524$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7525else
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
7529
7530  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7531    MANIFEST_TOOL=":"
7532  else
7533    case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7540  fi
7541else
7542  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7543fi
7544
7545test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7547$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7548if ${lt_cv_path_mainfest_tool+:} false; then :
7549  $as_echo_n "(cached) " >&6
7550else
7551  lt_cv_path_mainfest_tool=no
7552  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7553  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7554  cat conftest.err >&5
7555  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7556    lt_cv_path_mainfest_tool=yes
7557  fi
7558  rm -f conftest*
7559fi
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7561$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7562if test "x$lt_cv_path_mainfest_tool" != xyes; then
7563  MANIFEST_TOOL=:
7564fi
7565
7566
7567
7568
7569
7570
7571  case $host_os in
7572    rhapsody* | darwin*)
7573    if test -n "$ac_tool_prefix"; then
7574  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7575set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if ${ac_cv_prog_DSYMUTIL+:} false; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  if test -n "$DSYMUTIL"; then
7582  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589    for ac_exec_ext in '' $ac_executable_extensions; do
7590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596  done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601DSYMUTIL=$ac_cv_prog_DSYMUTIL
7602if test -n "$DSYMUTIL"; then
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7604$as_echo "$DSYMUTIL" >&6; }
7605else
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610
7611fi
7612if test -z "$ac_cv_prog_DSYMUTIL"; then
7613  ac_ct_DSYMUTIL=$DSYMUTIL
7614  # Extract the first word of "dsymutil", so it can be a program name with args.
7615set dummy dsymutil; ac_word=$2
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617$as_echo_n "checking for $ac_word... " >&6; }
7618if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7619  $as_echo_n "(cached) " >&6
7620else
7621  if test -n "$ac_ct_DSYMUTIL"; then
7622  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627  IFS=$as_save_IFS
7628  test -z "$as_dir" && as_dir=.
7629    for ac_exec_ext in '' $ac_executable_extensions; do
7630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633    break 2
7634  fi
7635done
7636  done
7637IFS=$as_save_IFS
7638
7639fi
7640fi
7641ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7642if test -n "$ac_ct_DSYMUTIL"; then
7643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7644$as_echo "$ac_ct_DSYMUTIL" >&6; }
7645else
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
7648fi
7649
7650  if test "x$ac_ct_DSYMUTIL" = x; then
7651    DSYMUTIL=":"
7652  else
7653    case $cross_compiling:$ac_tool_warned in
7654yes:)
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657ac_tool_warned=yes ;;
7658esac
7659    DSYMUTIL=$ac_ct_DSYMUTIL
7660  fi
7661else
7662  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7663fi
7664
7665    if test -n "$ac_tool_prefix"; then
7666  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7667set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if ${ac_cv_prog_NMEDIT+:} false; then :
7671  $as_echo_n "(cached) " >&6
7672else
7673  if test -n "$NMEDIT"; then
7674  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679  IFS=$as_save_IFS
7680  test -z "$as_dir" && as_dir=.
7681    for ac_exec_ext in '' $ac_executable_extensions; do
7682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685    break 2
7686  fi
7687done
7688  done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693NMEDIT=$ac_cv_prog_NMEDIT
7694if test -n "$NMEDIT"; then
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7696$as_echo "$NMEDIT" >&6; }
7697else
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702
7703fi
7704if test -z "$ac_cv_prog_NMEDIT"; then
7705  ac_ct_NMEDIT=$NMEDIT
7706  # Extract the first word of "nmedit", so it can be a program name with args.
7707set dummy nmedit; ac_word=$2
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  if test -n "$ac_ct_NMEDIT"; then
7714  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7715else
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  test -z "$as_dir" && as_dir=.
7721    for ac_exec_ext in '' $ac_executable_extensions; do
7722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728  done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7734if test -n "$ac_ct_NMEDIT"; then
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7736$as_echo "$ac_ct_NMEDIT" >&6; }
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742  if test "x$ac_ct_NMEDIT" = x; then
7743    NMEDIT=":"
7744  else
7745    case $cross_compiling:$ac_tool_warned in
7746yes:)
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749ac_tool_warned=yes ;;
7750esac
7751    NMEDIT=$ac_ct_NMEDIT
7752  fi
7753else
7754  NMEDIT="$ac_cv_prog_NMEDIT"
7755fi
7756
7757    if test -n "$ac_tool_prefix"; then
7758  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7759set dummy ${ac_tool_prefix}lipo; ac_word=$2
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if ${ac_cv_prog_LIPO+:} false; then :
7763  $as_echo_n "(cached) " >&6
7764else
7765  if test -n "$LIPO"; then
7766  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7767else
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771  IFS=$as_save_IFS
7772  test -z "$as_dir" && as_dir=.
7773    for ac_exec_ext in '' $ac_executable_extensions; do
7774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777    break 2
7778  fi
7779done
7780  done
7781IFS=$as_save_IFS
7782
7783fi
7784fi
7785LIPO=$ac_cv_prog_LIPO
7786if test -n "$LIPO"; then
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7788$as_echo "$LIPO" >&6; }
7789else
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793
7794
7795fi
7796if test -z "$ac_cv_prog_LIPO"; then
7797  ac_ct_LIPO=$LIPO
7798  # Extract the first word of "lipo", so it can be a program name with args.
7799set dummy lipo; ac_word=$2
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  if test -n "$ac_ct_LIPO"; then
7806  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813    for ac_exec_ext in '' $ac_executable_extensions; do
7814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815    ac_cv_prog_ac_ct_LIPO="lipo"
7816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820  done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7826if test -n "$ac_ct_LIPO"; then
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7828$as_echo "$ac_ct_LIPO" >&6; }
7829else
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834  if test "x$ac_ct_LIPO" = x; then
7835    LIPO=":"
7836  else
7837    case $cross_compiling:$ac_tool_warned in
7838yes:)
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7841ac_tool_warned=yes ;;
7842esac
7843    LIPO=$ac_ct_LIPO
7844  fi
7845else
7846  LIPO="$ac_cv_prog_LIPO"
7847fi
7848
7849    if test -n "$ac_tool_prefix"; then
7850  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7851set dummy ${ac_tool_prefix}otool; ac_word=$2
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853$as_echo_n "checking for $ac_word... " >&6; }
7854if ${ac_cv_prog_OTOOL+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  if test -n "$OTOOL"; then
7858  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7859else
7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863  IFS=$as_save_IFS
7864  test -z "$as_dir" && as_dir=.
7865    for ac_exec_ext in '' $ac_executable_extensions; do
7866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869    break 2
7870  fi
7871done
7872  done
7873IFS=$as_save_IFS
7874
7875fi
7876fi
7877OTOOL=$ac_cv_prog_OTOOL
7878if test -n "$OTOOL"; then
7879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7880$as_echo "$OTOOL" >&6; }
7881else
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883$as_echo "no" >&6; }
7884fi
7885
7886
7887fi
7888if test -z "$ac_cv_prog_OTOOL"; then
7889  ac_ct_OTOOL=$OTOOL
7890  # Extract the first word of "otool", so it can be a program name with args.
7891set dummy otool; ac_word=$2
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893$as_echo_n "checking for $ac_word... " >&6; }
7894if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  if test -n "$ac_ct_OTOOL"; then
7898  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7899else
7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903  IFS=$as_save_IFS
7904  test -z "$as_dir" && as_dir=.
7905    for ac_exec_ext in '' $ac_executable_extensions; do
7906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907    ac_cv_prog_ac_ct_OTOOL="otool"
7908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912  done
7913IFS=$as_save_IFS
7914
7915fi
7916fi
7917ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7918if test -n "$ac_ct_OTOOL"; then
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7920$as_echo "$ac_ct_OTOOL" >&6; }
7921else
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924fi
7925
7926  if test "x$ac_ct_OTOOL" = x; then
7927    OTOOL=":"
7928  else
7929    case $cross_compiling:$ac_tool_warned in
7930yes:)
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7933ac_tool_warned=yes ;;
7934esac
7935    OTOOL=$ac_ct_OTOOL
7936  fi
7937else
7938  OTOOL="$ac_cv_prog_OTOOL"
7939fi
7940
7941    if test -n "$ac_tool_prefix"; then
7942  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7943set dummy ${ac_tool_prefix}otool64; ac_word=$2
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if ${ac_cv_prog_OTOOL64+:} false; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  if test -n "$OTOOL64"; then
7950  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955  IFS=$as_save_IFS
7956  test -z "$as_dir" && as_dir=.
7957    for ac_exec_ext in '' $ac_executable_extensions; do
7958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961    break 2
7962  fi
7963done
7964  done
7965IFS=$as_save_IFS
7966
7967fi
7968fi
7969OTOOL64=$ac_cv_prog_OTOOL64
7970if test -n "$OTOOL64"; then
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7972$as_echo "$OTOOL64" >&6; }
7973else
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
7976fi
7977
7978
7979fi
7980if test -z "$ac_cv_prog_OTOOL64"; then
7981  ac_ct_OTOOL64=$OTOOL64
7982  # Extract the first word of "otool64", so it can be a program name with args.
7983set dummy otool64; ac_word=$2
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
7986if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  if test -n "$ac_ct_OTOOL64"; then
7990  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997    for ac_exec_ext in '' $ac_executable_extensions; do
7998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999    ac_cv_prog_ac_ct_OTOOL64="otool64"
8000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004  done
8005IFS=$as_save_IFS
8006
8007fi
8008fi
8009ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8010if test -n "$ac_ct_OTOOL64"; then
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8012$as_echo "$ac_ct_OTOOL64" >&6; }
8013else
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
8016fi
8017
8018  if test "x$ac_ct_OTOOL64" = x; then
8019    OTOOL64=":"
8020  else
8021    case $cross_compiling:$ac_tool_warned in
8022yes:)
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025ac_tool_warned=yes ;;
8026esac
8027    OTOOL64=$ac_ct_OTOOL64
8028  fi
8029else
8030  OTOOL64="$ac_cv_prog_OTOOL64"
8031fi
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8060$as_echo_n "checking for -single_module linker flag... " >&6; }
8061if ${lt_cv_apple_cc_single_mod+:} false; then :
8062  $as_echo_n "(cached) " >&6
8063else
8064  lt_cv_apple_cc_single_mod=no
8065      if test -z "${LT_MULTI_MODULE}"; then
8066	# By default we will add the -single_module flag. You can override
8067	# by either setting the environment variable LT_MULTI_MODULE
8068	# non-empty at configure time, or by adding -multi_module to the
8069	# link flags.
8070	rm -rf libconftest.dylib*
8071	echo "int foo(void){return 1;}" > conftest.c
8072	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8073-dynamiclib -Wl,-single_module conftest.c" >&5
8074	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8075	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8076        _lt_result=$?
8077	# If there is a non-empty error log, and "single_module"
8078	# appears in it, assume the flag caused a linker warning
8079        if test -s conftest.err && $GREP single_module conftest.err; then
8080	  cat conftest.err >&5
8081	# Otherwise, if the output was created with a 0 exit code from
8082	# the compiler, it worked.
8083	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8084	  lt_cv_apple_cc_single_mod=yes
8085	else
8086	  cat conftest.err >&5
8087	fi
8088	rm -rf libconftest.dylib*
8089	rm -f conftest.*
8090      fi
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8093$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8094
8095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8096$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8097if ${lt_cv_ld_exported_symbols_list+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  lt_cv_ld_exported_symbols_list=no
8101      save_LDFLAGS=$LDFLAGS
8102      echo "_main" > conftest.sym
8103      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8104      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106
8107int
8108main ()
8109{
8110
8111  ;
8112  return 0;
8113}
8114_ACEOF
8115if ac_fn_c_try_link "$LINENO"; then :
8116  lt_cv_ld_exported_symbols_list=yes
8117else
8118  lt_cv_ld_exported_symbols_list=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext \
8121    conftest$ac_exeext conftest.$ac_ext
8122	LDFLAGS="$save_LDFLAGS"
8123
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8126$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8127
8128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8129$as_echo_n "checking for -force_load linker flag... " >&6; }
8130if ${lt_cv_ld_force_load+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  lt_cv_ld_force_load=no
8134      cat > conftest.c << _LT_EOF
8135int forced_loaded() { return 2;}
8136_LT_EOF
8137      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8138      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8139      echo "$AR cru libconftest.a conftest.o" >&5
8140      $AR cru libconftest.a conftest.o 2>&5
8141      echo "$RANLIB libconftest.a" >&5
8142      $RANLIB libconftest.a 2>&5
8143      cat > conftest.c << _LT_EOF
8144int main() { return 0;}
8145_LT_EOF
8146      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8147      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8148      _lt_result=$?
8149      if test -s conftest.err && $GREP force_load conftest.err; then
8150	cat conftest.err >&5
8151      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8152	lt_cv_ld_force_load=yes
8153      else
8154	cat conftest.err >&5
8155      fi
8156        rm -f conftest.err libconftest.a conftest conftest.c
8157        rm -rf conftest.dSYM
8158
8159fi
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8161$as_echo "$lt_cv_ld_force_load" >&6; }
8162    case $host_os in
8163    rhapsody* | darwin1.[012])
8164      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8165    darwin1.*)
8166      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8167    darwin*) # darwin 5.x on
8168      # if running on 10.5 or later, the deployment target defaults
8169      # to the OS version, if on x86, and 10.4, the deployment
8170      # target defaults to 10.4. Don't you love it?
8171      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8172	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8173	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8174	10.[012]*)
8175	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8176	10.*)
8177	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8178      esac
8179    ;;
8180  esac
8181    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8182      _lt_dar_single_mod='$single_module'
8183    fi
8184    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8185      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8186    else
8187      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8188    fi
8189    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8190      _lt_dsymutil='~$DSYMUTIL $lib || :'
8191    else
8192      _lt_dsymutil=
8193    fi
8194    ;;
8195  esac
8196
8197for ac_header in dlfcn.h
8198do :
8199  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8200"
8201if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8202  cat >>confdefs.h <<_ACEOF
8203#define HAVE_DLFCN_H 1
8204_ACEOF
8205
8206fi
8207
8208done
8209
8210
8211
8212
8213
8214# Set options
8215
8216
8217
8218        enable_dlopen=no
8219
8220
8221  enable_win32_dll=no
8222
8223
8224            # Check whether --enable-shared was given.
8225if test "${enable_shared+set}" = set; then :
8226  enableval=$enable_shared; p=${PACKAGE-default}
8227    case $enableval in
8228    yes) enable_shared=yes ;;
8229    no) enable_shared=no ;;
8230    *)
8231      enable_shared=no
8232      # Look at the argument we got.  We use all the common list separators.
8233      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8234      for pkg in $enableval; do
8235	IFS="$lt_save_ifs"
8236	if test "X$pkg" = "X$p"; then
8237	  enable_shared=yes
8238	fi
8239      done
8240      IFS="$lt_save_ifs"
8241      ;;
8242    esac
8243else
8244  enable_shared=yes
8245fi
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255  # Check whether --enable-static was given.
8256if test "${enable_static+set}" = set; then :
8257  enableval=$enable_static; p=${PACKAGE-default}
8258    case $enableval in
8259    yes) enable_static=yes ;;
8260    no) enable_static=no ;;
8261    *)
8262     enable_static=no
8263      # Look at the argument we got.  We use all the common list separators.
8264      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8265      for pkg in $enableval; do
8266	IFS="$lt_save_ifs"
8267	if test "X$pkg" = "X$p"; then
8268	  enable_static=yes
8269	fi
8270      done
8271      IFS="$lt_save_ifs"
8272      ;;
8273    esac
8274else
8275  enable_static=yes
8276fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287# Check whether --with-pic was given.
8288if test "${with_pic+set}" = set; then :
8289  withval=$with_pic; lt_p=${PACKAGE-default}
8290    case $withval in
8291    yes|no) pic_mode=$withval ;;
8292    *)
8293      pic_mode=default
8294      # Look at the argument we got.  We use all the common list separators.
8295      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8296      for lt_pkg in $withval; do
8297	IFS="$lt_save_ifs"
8298	if test "X$lt_pkg" = "X$lt_p"; then
8299	  pic_mode=yes
8300	fi
8301      done
8302      IFS="$lt_save_ifs"
8303      ;;
8304    esac
8305else
8306  pic_mode=default
8307fi
8308
8309
8310test -z "$pic_mode" && pic_mode=default
8311
8312
8313
8314
8315
8316
8317
8318  # Check whether --enable-fast-install was given.
8319if test "${enable_fast_install+set}" = set; then :
8320  enableval=$enable_fast_install; p=${PACKAGE-default}
8321    case $enableval in
8322    yes) enable_fast_install=yes ;;
8323    no) enable_fast_install=no ;;
8324    *)
8325      enable_fast_install=no
8326      # Look at the argument we got.  We use all the common list separators.
8327      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8328      for pkg in $enableval; do
8329	IFS="$lt_save_ifs"
8330	if test "X$pkg" = "X$p"; then
8331	  enable_fast_install=yes
8332	fi
8333      done
8334      IFS="$lt_save_ifs"
8335      ;;
8336    esac
8337else
8338  enable_fast_install=yes
8339fi
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351# This can be used to rebuild libtool when needed
8352LIBTOOL_DEPS="$ltmain"
8353
8354# Always use our own libtool.
8355LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386test -z "$LN_S" && LN_S="ln -s"
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401if test -n "${ZSH_VERSION+set}" ; then
8402   setopt NO_GLOB_SUBST
8403fi
8404
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8406$as_echo_n "checking for objdir... " >&6; }
8407if ${lt_cv_objdir+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  rm -f .libs 2>/dev/null
8411mkdir .libs 2>/dev/null
8412if test -d .libs; then
8413  lt_cv_objdir=.libs
8414else
8415  # MS-DOS does not allow filenames that begin with a dot.
8416  lt_cv_objdir=_libs
8417fi
8418rmdir .libs 2>/dev/null
8419fi
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8421$as_echo "$lt_cv_objdir" >&6; }
8422objdir=$lt_cv_objdir
8423
8424
8425
8426
8427
8428cat >>confdefs.h <<_ACEOF
8429#define LT_OBJDIR "$lt_cv_objdir/"
8430_ACEOF
8431
8432
8433
8434
8435case $host_os in
8436aix3*)
8437  # AIX sometimes has problems with the GCC collect2 program.  For some
8438  # reason, if we set the COLLECT_NAMES environment variable, the problems
8439  # vanish in a puff of smoke.
8440  if test "X${COLLECT_NAMES+set}" != Xset; then
8441    COLLECT_NAMES=
8442    export COLLECT_NAMES
8443  fi
8444  ;;
8445esac
8446
8447# Global variables:
8448ofile=libtool
8449can_build_shared=yes
8450
8451# All known linkers require a `.a' archive for static linking (except MSVC,
8452# which needs '.lib').
8453libext=a
8454
8455with_gnu_ld="$lt_cv_prog_gnu_ld"
8456
8457old_CC="$CC"
8458old_CFLAGS="$CFLAGS"
8459
8460# Set sane defaults for various variables
8461test -z "$CC" && CC=cc
8462test -z "$LTCC" && LTCC=$CC
8463test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8464test -z "$LD" && LD=ld
8465test -z "$ac_objext" && ac_objext=o
8466
8467for cc_temp in $compiler""; do
8468  case $cc_temp in
8469    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8470    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8471    \-*) ;;
8472    *) break;;
8473  esac
8474done
8475cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8476
8477
8478# Only perform the check for file, if the check method requires it
8479test -z "$MAGIC_CMD" && MAGIC_CMD=file
8480case $deplibs_check_method in
8481file_magic*)
8482  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8483    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8484$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8485if ${lt_cv_path_MAGIC_CMD+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  case $MAGIC_CMD in
8489[\\/*] |  ?:[\\/]*)
8490  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8491  ;;
8492*)
8493  lt_save_MAGIC_CMD="$MAGIC_CMD"
8494  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8495  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8496  for ac_dir in $ac_dummy; do
8497    IFS="$lt_save_ifs"
8498    test -z "$ac_dir" && ac_dir=.
8499    if test -f $ac_dir/${ac_tool_prefix}file; then
8500      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8501      if test -n "$file_magic_test_file"; then
8502	case $deplibs_check_method in
8503	"file_magic "*)
8504	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8505	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8506	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8507	    $EGREP "$file_magic_regex" > /dev/null; then
8508	    :
8509	  else
8510	    cat <<_LT_EOF 1>&2
8511
8512*** Warning: the command libtool uses to detect shared libraries,
8513*** $file_magic_cmd, produces output that libtool cannot recognize.
8514*** The result is that libtool may fail to recognize shared libraries
8515*** as such.  This will affect the creation of libtool libraries that
8516*** depend on shared libraries, but programs linked with such libtool
8517*** libraries will work regardless of this problem.  Nevertheless, you
8518*** may want to report the problem to your system manager and/or to
8519*** bug-libtool@gnu.org
8520
8521_LT_EOF
8522	  fi ;;
8523	esac
8524      fi
8525      break
8526    fi
8527  done
8528  IFS="$lt_save_ifs"
8529  MAGIC_CMD="$lt_save_MAGIC_CMD"
8530  ;;
8531esac
8532fi
8533
8534MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535if test -n "$MAGIC_CMD"; then
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8537$as_echo "$MAGIC_CMD" >&6; }
8538else
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
8542
8543
8544
8545
8546
8547if test -z "$lt_cv_path_MAGIC_CMD"; then
8548  if test -n "$ac_tool_prefix"; then
8549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8550$as_echo_n "checking for file... " >&6; }
8551if ${lt_cv_path_MAGIC_CMD+:} false; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  case $MAGIC_CMD in
8555[\\/*] |  ?:[\\/]*)
8556  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8557  ;;
8558*)
8559  lt_save_MAGIC_CMD="$MAGIC_CMD"
8560  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8561  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8562  for ac_dir in $ac_dummy; do
8563    IFS="$lt_save_ifs"
8564    test -z "$ac_dir" && ac_dir=.
8565    if test -f $ac_dir/file; then
8566      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8567      if test -n "$file_magic_test_file"; then
8568	case $deplibs_check_method in
8569	"file_magic "*)
8570	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8571	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8572	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8573	    $EGREP "$file_magic_regex" > /dev/null; then
8574	    :
8575	  else
8576	    cat <<_LT_EOF 1>&2
8577
8578*** Warning: the command libtool uses to detect shared libraries,
8579*** $file_magic_cmd, produces output that libtool cannot recognize.
8580*** The result is that libtool may fail to recognize shared libraries
8581*** as such.  This will affect the creation of libtool libraries that
8582*** depend on shared libraries, but programs linked with such libtool
8583*** libraries will work regardless of this problem.  Nevertheless, you
8584*** may want to report the problem to your system manager and/or to
8585*** bug-libtool@gnu.org
8586
8587_LT_EOF
8588	  fi ;;
8589	esac
8590      fi
8591      break
8592    fi
8593  done
8594  IFS="$lt_save_ifs"
8595  MAGIC_CMD="$lt_save_MAGIC_CMD"
8596  ;;
8597esac
8598fi
8599
8600MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8601if test -n "$MAGIC_CMD"; then
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8603$as_echo "$MAGIC_CMD" >&6; }
8604else
8605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609
8610  else
8611    MAGIC_CMD=:
8612  fi
8613fi
8614
8615  fi
8616  ;;
8617esac
8618
8619# Use C for the default configuration in the libtool script
8620
8621lt_save_CC="$CC"
8622ac_ext=c
8623ac_cpp='$CPP $CPPFLAGS'
8624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626ac_compiler_gnu=$ac_cv_c_compiler_gnu
8627
8628
8629# Source file extension for C test sources.
8630ac_ext=c
8631
8632# Object file extension for compiled C test sources.
8633objext=o
8634objext=$objext
8635
8636# Code to be used in simple compile tests
8637lt_simple_compile_test_code="int some_variable = 0;"
8638
8639# Code to be used in simple link tests
8640lt_simple_link_test_code='int main(){return(0);}'
8641
8642
8643
8644
8645
8646
8647
8648# If no C compiler was specified, use CC.
8649LTCC=${LTCC-"$CC"}
8650
8651# If no C compiler flags were specified, use CFLAGS.
8652LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8653
8654# Allow CC to be a program name with arguments.
8655compiler=$CC
8656
8657# Save the default compiler, since it gets overwritten when the other
8658# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8659compiler_DEFAULT=$CC
8660
8661# save warnings/boilerplate of simple test code
8662ac_outfile=conftest.$ac_objext
8663echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8665_lt_compiler_boilerplate=`cat conftest.err`
8666$RM conftest*
8667
8668ac_outfile=conftest.$ac_objext
8669echo "$lt_simple_link_test_code" >conftest.$ac_ext
8670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8671_lt_linker_boilerplate=`cat conftest.err`
8672$RM -r conftest*
8673
8674
8675if test -n "$compiler"; then
8676
8677lt_prog_compiler_no_builtin_flag=
8678
8679if test "$GCC" = yes; then
8680  case $cc_basename in
8681  nvcc*)
8682    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8683  *)
8684    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8685  esac
8686
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8688$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8689if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  lt_cv_prog_compiler_rtti_exceptions=no
8693   ac_outfile=conftest.$ac_objext
8694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695   lt_compiler_flag="-fno-rtti -fno-exceptions"
8696   # Insert the option either (1) after the last *FLAGS variable, or
8697   # (2) before a word containing "conftest.", or (3) at the end.
8698   # Note that $ac_compile itself does not contain backslashes and begins
8699   # with a dollar sign (not a hyphen), so the echo should work correctly.
8700   # The option is referenced via a variable to avoid confusing sed.
8701   lt_compile=`echo "$ac_compile" | $SED \
8702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704   -e 's:$: $lt_compiler_flag:'`
8705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706   (eval "$lt_compile" 2>conftest.err)
8707   ac_status=$?
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   if (exit $ac_status) && test -s "$ac_outfile"; then
8711     # The compiler can only warn and ignore the option if not recognized
8712     # So say no if there are warnings other than the usual output.
8713     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716       lt_cv_prog_compiler_rtti_exceptions=yes
8717     fi
8718   fi
8719   $RM conftest*
8720
8721fi
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8723$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8724
8725if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8726    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8727else
8728    :
8729fi
8730
8731fi
8732
8733
8734
8735
8736
8737
8738  lt_prog_compiler_wl=
8739lt_prog_compiler_pic=
8740lt_prog_compiler_static=
8741
8742
8743  if test "$GCC" = yes; then
8744    lt_prog_compiler_wl='-Wl,'
8745    lt_prog_compiler_static='-static'
8746
8747    case $host_os in
8748      aix*)
8749      # All AIX code is PIC.
8750      if test "$host_cpu" = ia64; then
8751	# AIX 5 now supports IA64 processor
8752	lt_prog_compiler_static='-Bstatic'
8753      fi
8754      ;;
8755
8756    amigaos*)
8757      case $host_cpu in
8758      powerpc)
8759            # see comment about AmigaOS4 .so support
8760            lt_prog_compiler_pic='-fPIC'
8761        ;;
8762      m68k)
8763            # FIXME: we need at least 68020 code to build shared libraries, but
8764            # adding the `-m68020' flag to GCC prevents building anything better,
8765            # like `-m68040'.
8766            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8767        ;;
8768      esac
8769      ;;
8770
8771    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8772      # PIC is the default for these OSes.
8773      ;;
8774
8775    mingw* | cygwin* | pw32* | os2* | cegcc*)
8776      # This hack is so that the source file can tell whether it is being
8777      # built for inclusion in a dll (and should export symbols for example).
8778      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8779      # (--disable-auto-import) libraries
8780      lt_prog_compiler_pic='-DDLL_EXPORT'
8781      ;;
8782
8783    darwin* | rhapsody*)
8784      # PIC is the default on this platform
8785      # Common symbols not allowed in MH_DYLIB files
8786      lt_prog_compiler_pic='-fno-common'
8787      ;;
8788
8789    haiku*)
8790      # PIC is the default for Haiku.
8791      # The "-static" flag exists, but is broken.
8792      lt_prog_compiler_static=
8793      ;;
8794
8795    hpux*)
8796      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8797      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8798      # sets the default TLS model and affects inlining.
8799      case $host_cpu in
8800      hppa*64*)
8801	# +Z the default
8802	;;
8803      *)
8804	lt_prog_compiler_pic='-fPIC'
8805	;;
8806      esac
8807      ;;
8808
8809    interix[3-9]*)
8810      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8811      # Instead, we relocate shared libraries at runtime.
8812      ;;
8813
8814    msdosdjgpp*)
8815      # Just because we use GCC doesn't mean we suddenly get shared libraries
8816      # on systems that don't support them.
8817      lt_prog_compiler_can_build_shared=no
8818      enable_shared=no
8819      ;;
8820
8821    *nto* | *qnx*)
8822      # QNX uses GNU C++, but need to define -shared option too, otherwise
8823      # it will coredump.
8824      lt_prog_compiler_pic='-fPIC -shared'
8825      ;;
8826
8827    sysv4*MP*)
8828      if test -d /usr/nec; then
8829	lt_prog_compiler_pic=-Kconform_pic
8830      fi
8831      ;;
8832
8833    *)
8834      lt_prog_compiler_pic='-fPIC'
8835      ;;
8836    esac
8837
8838    case $cc_basename in
8839    nvcc*) # Cuda Compiler Driver 2.2
8840      lt_prog_compiler_wl='-Xlinker '
8841      if test -n "$lt_prog_compiler_pic"; then
8842        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8843      fi
8844      ;;
8845    esac
8846  else
8847    # PORTME Check for flag to pass linker flags through the system compiler.
8848    case $host_os in
8849    aix*)
8850      lt_prog_compiler_wl='-Wl,'
8851      if test "$host_cpu" = ia64; then
8852	# AIX 5 now supports IA64 processor
8853	lt_prog_compiler_static='-Bstatic'
8854      else
8855	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8856      fi
8857      ;;
8858
8859    mingw* | cygwin* | pw32* | os2* | cegcc*)
8860      # This hack is so that the source file can tell whether it is being
8861      # built for inclusion in a dll (and should export symbols for example).
8862      lt_prog_compiler_pic='-DDLL_EXPORT'
8863      ;;
8864
8865    hpux9* | hpux10* | hpux11*)
8866      lt_prog_compiler_wl='-Wl,'
8867      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8868      # not for PA HP-UX.
8869      case $host_cpu in
8870      hppa*64*|ia64*)
8871	# +Z the default
8872	;;
8873      *)
8874	lt_prog_compiler_pic='+Z'
8875	;;
8876      esac
8877      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8878      lt_prog_compiler_static='${wl}-a ${wl}archive'
8879      ;;
8880
8881    irix5* | irix6* | nonstopux*)
8882      lt_prog_compiler_wl='-Wl,'
8883      # PIC (with -KPIC) is the default.
8884      lt_prog_compiler_static='-non_shared'
8885      ;;
8886
8887    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8888      case $cc_basename in
8889      # old Intel for x86_64 which still supported -KPIC.
8890      ecc*)
8891	lt_prog_compiler_wl='-Wl,'
8892	lt_prog_compiler_pic='-KPIC'
8893	lt_prog_compiler_static='-static'
8894        ;;
8895      # icc used to be incompatible with GCC.
8896      # ICC 10 doesn't accept -KPIC any more.
8897      icc* | ifort*)
8898	lt_prog_compiler_wl='-Wl,'
8899	lt_prog_compiler_pic='-fPIC'
8900	lt_prog_compiler_static='-static'
8901        ;;
8902      # Lahey Fortran 8.1.
8903      lf95*)
8904	lt_prog_compiler_wl='-Wl,'
8905	lt_prog_compiler_pic='--shared'
8906	lt_prog_compiler_static='--static'
8907	;;
8908      nagfor*)
8909	# NAG Fortran compiler
8910	lt_prog_compiler_wl='-Wl,-Wl,,'
8911	lt_prog_compiler_pic='-PIC'
8912	lt_prog_compiler_static='-Bstatic'
8913	;;
8914      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8915        # Portland Group compilers (*not* the Pentium gcc compiler,
8916	# which looks to be a dead project)
8917	lt_prog_compiler_wl='-Wl,'
8918	lt_prog_compiler_pic='-fpic'
8919	lt_prog_compiler_static='-Bstatic'
8920        ;;
8921      ccc*)
8922        lt_prog_compiler_wl='-Wl,'
8923        # All Alpha code is PIC.
8924        lt_prog_compiler_static='-non_shared'
8925        ;;
8926      xl* | bgxl* | bgf* | mpixl*)
8927	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8928	lt_prog_compiler_wl='-Wl,'
8929	lt_prog_compiler_pic='-qpic'
8930	lt_prog_compiler_static='-qstaticlink'
8931	;;
8932      *)
8933	case `$CC -V 2>&1 | sed 5q` in
8934	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8935	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8936	  lt_prog_compiler_pic='-KPIC'
8937	  lt_prog_compiler_static='-Bstatic'
8938	  lt_prog_compiler_wl=''
8939	  ;;
8940	*Sun\ F* | *Sun*Fortran*)
8941	  lt_prog_compiler_pic='-KPIC'
8942	  lt_prog_compiler_static='-Bstatic'
8943	  lt_prog_compiler_wl='-Qoption ld '
8944	  ;;
8945	*Sun\ C*)
8946	  # Sun C 5.9
8947	  lt_prog_compiler_pic='-KPIC'
8948	  lt_prog_compiler_static='-Bstatic'
8949	  lt_prog_compiler_wl='-Wl,'
8950	  ;;
8951        *Intel*\ [CF]*Compiler*)
8952	  lt_prog_compiler_wl='-Wl,'
8953	  lt_prog_compiler_pic='-fPIC'
8954	  lt_prog_compiler_static='-static'
8955	  ;;
8956	*Portland\ Group*)
8957	  lt_prog_compiler_wl='-Wl,'
8958	  lt_prog_compiler_pic='-fpic'
8959	  lt_prog_compiler_static='-Bstatic'
8960	  ;;
8961	esac
8962	;;
8963      esac
8964      ;;
8965
8966    newsos6)
8967      lt_prog_compiler_pic='-KPIC'
8968      lt_prog_compiler_static='-Bstatic'
8969      ;;
8970
8971    *nto* | *qnx*)
8972      # QNX uses GNU C++, but need to define -shared option too, otherwise
8973      # it will coredump.
8974      lt_prog_compiler_pic='-fPIC -shared'
8975      ;;
8976
8977    osf3* | osf4* | osf5*)
8978      lt_prog_compiler_wl='-Wl,'
8979      # All OSF/1 code is PIC.
8980      lt_prog_compiler_static='-non_shared'
8981      ;;
8982
8983    rdos*)
8984      lt_prog_compiler_static='-non_shared'
8985      ;;
8986
8987    solaris*)
8988      lt_prog_compiler_pic='-KPIC'
8989      lt_prog_compiler_static='-Bstatic'
8990      case $cc_basename in
8991      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8992	lt_prog_compiler_wl='-Qoption ld ';;
8993      *)
8994	lt_prog_compiler_wl='-Wl,';;
8995      esac
8996      ;;
8997
8998    sunos4*)
8999      lt_prog_compiler_wl='-Qoption ld '
9000      lt_prog_compiler_pic='-PIC'
9001      lt_prog_compiler_static='-Bstatic'
9002      ;;
9003
9004    sysv4 | sysv4.2uw2* | sysv4.3*)
9005      lt_prog_compiler_wl='-Wl,'
9006      lt_prog_compiler_pic='-KPIC'
9007      lt_prog_compiler_static='-Bstatic'
9008      ;;
9009
9010    sysv4*MP*)
9011      if test -d /usr/nec ;then
9012	lt_prog_compiler_pic='-Kconform_pic'
9013	lt_prog_compiler_static='-Bstatic'
9014      fi
9015      ;;
9016
9017    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9018      lt_prog_compiler_wl='-Wl,'
9019      lt_prog_compiler_pic='-KPIC'
9020      lt_prog_compiler_static='-Bstatic'
9021      ;;
9022
9023    unicos*)
9024      lt_prog_compiler_wl='-Wl,'
9025      lt_prog_compiler_can_build_shared=no
9026      ;;
9027
9028    uts4*)
9029      lt_prog_compiler_pic='-pic'
9030      lt_prog_compiler_static='-Bstatic'
9031      ;;
9032
9033    *)
9034      lt_prog_compiler_can_build_shared=no
9035      ;;
9036    esac
9037  fi
9038
9039case $host_os in
9040  # For platforms which do not support PIC, -DPIC is meaningless:
9041  *djgpp*)
9042    lt_prog_compiler_pic=
9043    ;;
9044  *)
9045    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9046    ;;
9047esac
9048
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9050$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9051if ${lt_cv_prog_compiler_pic+:} false; then :
9052  $as_echo_n "(cached) " >&6
9053else
9054  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9055fi
9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9057$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9058lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9059
9060#
9061# Check to make sure the PIC flag actually works.
9062#
9063if test -n "$lt_prog_compiler_pic"; then
9064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9065$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9066if ${lt_cv_prog_compiler_pic_works+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  lt_cv_prog_compiler_pic_works=no
9070   ac_outfile=conftest.$ac_objext
9071   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9073   # Insert the option either (1) after the last *FLAGS variable, or
9074   # (2) before a word containing "conftest.", or (3) at the end.
9075   # Note that $ac_compile itself does not contain backslashes and begins
9076   # with a dollar sign (not a hyphen), so the echo should work correctly.
9077   # The option is referenced via a variable to avoid confusing sed.
9078   lt_compile=`echo "$ac_compile" | $SED \
9079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081   -e 's:$: $lt_compiler_flag:'`
9082   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083   (eval "$lt_compile" 2>conftest.err)
9084   ac_status=$?
9085   cat conftest.err >&5
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   if (exit $ac_status) && test -s "$ac_outfile"; then
9088     # The compiler can only warn and ignore the option if not recognized
9089     # So say no if there are warnings other than the usual output.
9090     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9091     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9092     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9093       lt_cv_prog_compiler_pic_works=yes
9094     fi
9095   fi
9096   $RM conftest*
9097
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9100$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9101
9102if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9103    case $lt_prog_compiler_pic in
9104     "" | " "*) ;;
9105     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9106     esac
9107else
9108    lt_prog_compiler_pic=
9109     lt_prog_compiler_can_build_shared=no
9110fi
9111
9112fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124#
9125# Check to make sure the static flag actually works.
9126#
9127wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9129$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9130if ${lt_cv_prog_compiler_static_works+:} false; then :
9131  $as_echo_n "(cached) " >&6
9132else
9133  lt_cv_prog_compiler_static_works=no
9134   save_LDFLAGS="$LDFLAGS"
9135   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9136   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9137   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9138     # The linker can only warn and ignore the option if not recognized
9139     # So say no if there are warnings
9140     if test -s conftest.err; then
9141       # Append any errors to the config.log.
9142       cat conftest.err 1>&5
9143       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9144       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145       if diff conftest.exp conftest.er2 >/dev/null; then
9146         lt_cv_prog_compiler_static_works=yes
9147       fi
9148     else
9149       lt_cv_prog_compiler_static_works=yes
9150     fi
9151   fi
9152   $RM -r conftest*
9153   LDFLAGS="$save_LDFLAGS"
9154
9155fi
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9157$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9158
9159if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9160    :
9161else
9162    lt_prog_compiler_static=
9163fi
9164
9165
9166
9167
9168
9169
9170
9171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9172$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9173if ${lt_cv_prog_compiler_c_o+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  lt_cv_prog_compiler_c_o=no
9177   $RM -r conftest 2>/dev/null
9178   mkdir conftest
9179   cd conftest
9180   mkdir out
9181   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182
9183   lt_compiler_flag="-o out/conftest2.$ac_objext"
9184   # Insert the option either (1) after the last *FLAGS variable, or
9185   # (2) before a word containing "conftest.", or (3) at the end.
9186   # Note that $ac_compile itself does not contain backslashes and begins
9187   # with a dollar sign (not a hyphen), so the echo should work correctly.
9188   lt_compile=`echo "$ac_compile" | $SED \
9189   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9191   -e 's:$: $lt_compiler_flag:'`
9192   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9193   (eval "$lt_compile" 2>out/conftest.err)
9194   ac_status=$?
9195   cat out/conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9198   then
9199     # The compiler can only warn and ignore the option if not recognized
9200     # So say no if there are warnings
9201     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9202     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9203     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9204       lt_cv_prog_compiler_c_o=yes
9205     fi
9206   fi
9207   chmod u+w . 2>&5
9208   $RM conftest*
9209   # SGI C++ compiler will create directory out/ii_files/ for
9210   # template instantiation
9211   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9212   $RM out/* && rmdir out
9213   cd ..
9214   $RM -r conftest
9215   $RM conftest*
9216
9217fi
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9219$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9220
9221
9222
9223
9224
9225
9226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9227$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9228if ${lt_cv_prog_compiler_c_o+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  lt_cv_prog_compiler_c_o=no
9232   $RM -r conftest 2>/dev/null
9233   mkdir conftest
9234   cd conftest
9235   mkdir out
9236   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9237
9238   lt_compiler_flag="-o out/conftest2.$ac_objext"
9239   # Insert the option either (1) after the last *FLAGS variable, or
9240   # (2) before a word containing "conftest.", or (3) at the end.
9241   # Note that $ac_compile itself does not contain backslashes and begins
9242   # with a dollar sign (not a hyphen), so the echo should work correctly.
9243   lt_compile=`echo "$ac_compile" | $SED \
9244   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9246   -e 's:$: $lt_compiler_flag:'`
9247   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9248   (eval "$lt_compile" 2>out/conftest.err)
9249   ac_status=$?
9250   cat out/conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9253   then
9254     # The compiler can only warn and ignore the option if not recognized
9255     # So say no if there are warnings
9256     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9257     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9258     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9259       lt_cv_prog_compiler_c_o=yes
9260     fi
9261   fi
9262   chmod u+w . 2>&5
9263   $RM conftest*
9264   # SGI C++ compiler will create directory out/ii_files/ for
9265   # template instantiation
9266   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9267   $RM out/* && rmdir out
9268   cd ..
9269   $RM -r conftest
9270   $RM conftest*
9271
9272fi
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9274$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9275
9276
9277
9278
9279hard_links="nottested"
9280if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9281  # do not overwrite the value of need_locks provided by the user
9282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9283$as_echo_n "checking if we can lock with hard links... " >&6; }
9284  hard_links=yes
9285  $RM conftest*
9286  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9287  touch conftest.a
9288  ln conftest.a conftest.b 2>&5 || hard_links=no
9289  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9291$as_echo "$hard_links" >&6; }
9292  if test "$hard_links" = no; then
9293    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9294$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9295    need_locks=warn
9296  fi
9297else
9298  need_locks=no
9299fi
9300
9301
9302
9303
9304
9305
9306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9307$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9308
9309  runpath_var=
9310  allow_undefined_flag=
9311  always_export_symbols=no
9312  archive_cmds=
9313  archive_expsym_cmds=
9314  compiler_needs_object=no
9315  enable_shared_with_static_runtimes=no
9316  export_dynamic_flag_spec=
9317  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9318  hardcode_automatic=no
9319  hardcode_direct=no
9320  hardcode_direct_absolute=no
9321  hardcode_libdir_flag_spec=
9322  hardcode_libdir_separator=
9323  hardcode_minus_L=no
9324  hardcode_shlibpath_var=unsupported
9325  inherit_rpath=no
9326  link_all_deplibs=unknown
9327  module_cmds=
9328  module_expsym_cmds=
9329  old_archive_from_new_cmds=
9330  old_archive_from_expsyms_cmds=
9331  thread_safe_flag_spec=
9332  whole_archive_flag_spec=
9333  # include_expsyms should be a list of space-separated symbols to be *always*
9334  # included in the symbol list
9335  include_expsyms=
9336  # exclude_expsyms can be an extended regexp of symbols to exclude
9337  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9338  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9339  # as well as any symbol that contains `d'.
9340  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9341  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9342  # platforms (ab)use it in PIC code, but their linkers get confused if
9343  # the symbol is explicitly referenced.  Since portable code cannot
9344  # rely on this symbol name, it's probably fine to never include it in
9345  # preloaded symbol tables.
9346  # Exclude shared library initialization/finalization symbols.
9347  extract_expsyms_cmds=
9348
9349  case $host_os in
9350  cygwin* | mingw* | pw32* | cegcc*)
9351    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9352    # When not using gcc, we currently assume that we are using
9353    # Microsoft Visual C++.
9354    if test "$GCC" != yes; then
9355      with_gnu_ld=no
9356    fi
9357    ;;
9358  interix*)
9359    # we just hope/assume this is gcc and not c89 (= MSVC++)
9360    with_gnu_ld=yes
9361    ;;
9362  openbsd*)
9363    with_gnu_ld=no
9364    ;;
9365  linux* | k*bsd*-gnu | gnu*)
9366    link_all_deplibs=no
9367    ;;
9368  esac
9369
9370  ld_shlibs=yes
9371
9372  # On some targets, GNU ld is compatible enough with the native linker
9373  # that we're better off using the native interface for both.
9374  lt_use_gnu_ld_interface=no
9375  if test "$with_gnu_ld" = yes; then
9376    case $host_os in
9377      aix*)
9378	# The AIX port of GNU ld has always aspired to compatibility
9379	# with the native linker.  However, as the warning in the GNU ld
9380	# block says, versions before 2.19.5* couldn't really create working
9381	# shared libraries, regardless of the interface used.
9382	case `$LD -v 2>&1` in
9383	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9384	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9385	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9386	  *)
9387	    lt_use_gnu_ld_interface=yes
9388	    ;;
9389	esac
9390	;;
9391      *)
9392	lt_use_gnu_ld_interface=yes
9393	;;
9394    esac
9395  fi
9396
9397  if test "$lt_use_gnu_ld_interface" = yes; then
9398    # If archive_cmds runs LD, not CC, wlarc should be empty
9399    wlarc='${wl}'
9400
9401    # Set some defaults for GNU ld with shared library support. These
9402    # are reset later if shared libraries are not supported. Putting them
9403    # here allows them to be overridden if necessary.
9404    runpath_var=LD_RUN_PATH
9405    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406    export_dynamic_flag_spec='${wl}--export-dynamic'
9407    # ancient GNU ld didn't support --whole-archive et. al.
9408    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9409      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9410    else
9411      whole_archive_flag_spec=
9412    fi
9413    supports_anon_versioning=no
9414    case `$LD -v 2>&1` in
9415      *GNU\ gold*) supports_anon_versioning=yes ;;
9416      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9417      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9418      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9419      *\ 2.11.*) ;; # other 2.11 versions
9420      *) supports_anon_versioning=yes ;;
9421    esac
9422
9423    # See if GNU ld supports shared libraries.
9424    case $host_os in
9425    aix[3-9]*)
9426      # On AIX/PPC, the GNU linker is very broken
9427      if test "$host_cpu" != ia64; then
9428	ld_shlibs=no
9429	cat <<_LT_EOF 1>&2
9430
9431*** Warning: the GNU linker, at least up to release 2.19, is reported
9432*** to be unable to reliably create shared libraries on AIX.
9433*** Therefore, libtool is disabling shared libraries support.  If you
9434*** really care for shared libraries, you may want to install binutils
9435*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9436*** You will then need to restart the configuration process.
9437
9438_LT_EOF
9439      fi
9440      ;;
9441
9442    amigaos*)
9443      case $host_cpu in
9444      powerpc)
9445            # see comment about AmigaOS4 .so support
9446            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447            archive_expsym_cmds=''
9448        ;;
9449      m68k)
9450            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)'
9451            hardcode_libdir_flag_spec='-L$libdir'
9452            hardcode_minus_L=yes
9453        ;;
9454      esac
9455      ;;
9456
9457    beos*)
9458      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9459	allow_undefined_flag=unsupported
9460	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9461	# support --undefined.  This deserves some investigation.  FIXME
9462	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9463      else
9464	ld_shlibs=no
9465      fi
9466      ;;
9467
9468    cygwin* | mingw* | pw32* | cegcc*)
9469      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9470      # as there is no search path for DLLs.
9471      hardcode_libdir_flag_spec='-L$libdir'
9472      export_dynamic_flag_spec='${wl}--export-all-symbols'
9473      allow_undefined_flag=unsupported
9474      always_export_symbols=no
9475      enable_shared_with_static_runtimes=yes
9476      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'
9477      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9478
9479      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9480        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481	# If the export-symbols file already is a .def file (1st line
9482	# is EXPORTS), use it as is; otherwise, prepend...
9483	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9484	  cp $export_symbols $output_objdir/$soname.def;
9485	else
9486	  echo EXPORTS > $output_objdir/$soname.def;
9487	  cat $export_symbols >> $output_objdir/$soname.def;
9488	fi~
9489	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9490      else
9491	ld_shlibs=no
9492      fi
9493      ;;
9494
9495    haiku*)
9496      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497      link_all_deplibs=yes
9498      ;;
9499
9500    interix[3-9]*)
9501      hardcode_direct=no
9502      hardcode_shlibpath_var=no
9503      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9504      export_dynamic_flag_spec='${wl}-E'
9505      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9506      # Instead, shared libraries are loaded at an image base (0x10000000 by
9507      # default) and relocated if they conflict, which is a slow very memory
9508      # consuming and fragmenting process.  To avoid this, we pick a random,
9509      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9510      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9511      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9512      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'
9513      ;;
9514
9515    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9516      tmp_diet=no
9517      if test "$host_os" = linux-dietlibc; then
9518	case $cc_basename in
9519	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9520	esac
9521      fi
9522      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9523	 && test "$tmp_diet" = no
9524      then
9525	tmp_addflag=' $pic_flag'
9526	tmp_sharedflag='-shared'
9527	case $cc_basename,$host_cpu in
9528        pgcc*)				# Portland Group C compiler
9529	  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'
9530	  tmp_addflag=' $pic_flag'
9531	  ;;
9532	pgf77* | pgf90* | pgf95* | pgfortran*)
9533					# Portland Group f77 and f90 compilers
9534	  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'
9535	  tmp_addflag=' $pic_flag -Mnomain' ;;
9536	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9537	  tmp_addflag=' -i_dynamic' ;;
9538	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9539	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9540	ifc* | ifort*)			# Intel Fortran compiler
9541	  tmp_addflag=' -nofor_main' ;;
9542	lf95*)				# Lahey Fortran 8.1
9543	  whole_archive_flag_spec=
9544	  tmp_sharedflag='--shared' ;;
9545	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9546	  tmp_sharedflag='-qmkshrobj'
9547	  tmp_addflag= ;;
9548	nvcc*)	# Cuda Compiler Driver 2.2
9549	  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'
9550	  compiler_needs_object=yes
9551	  ;;
9552	esac
9553	case `$CC -V 2>&1 | sed 5q` in
9554	*Sun\ C*)			# Sun C 5.9
9555	  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'
9556	  compiler_needs_object=yes
9557	  tmp_sharedflag='-G' ;;
9558	*Sun\ F*)			# Sun Fortran 8.3
9559	  tmp_sharedflag='-G' ;;
9560	esac
9561	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562
9563        if test "x$supports_anon_versioning" = xyes; then
9564          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9565	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9566	    echo "local: *; };" >> $output_objdir/$libname.ver~
9567	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9568        fi
9569
9570	case $cc_basename in
9571	xlf* | bgf* | bgxlf* | mpixlf*)
9572	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9573	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9574	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9576	  if test "x$supports_anon_versioning" = xyes; then
9577	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9578	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9579	      echo "local: *; };" >> $output_objdir/$libname.ver~
9580	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9581	  fi
9582	  ;;
9583	esac
9584      else
9585        ld_shlibs=no
9586      fi
9587      ;;
9588
9589    netbsd* | netbsdelf*-gnu)
9590      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9591	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9592	wlarc=
9593      else
9594	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9596      fi
9597      ;;
9598
9599    solaris*)
9600      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9601	ld_shlibs=no
9602	cat <<_LT_EOF 1>&2
9603
9604*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9605*** create shared libraries on Solaris systems.  Therefore, libtool
9606*** is disabling shared libraries support.  We urge you to upgrade GNU
9607*** binutils to release 2.9.1 or newer.  Another option is to modify
9608*** your PATH or compiler configuration so that the native linker is
9609*** used, and then restart.
9610
9611_LT_EOF
9612      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9613	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9614	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9615      else
9616	ld_shlibs=no
9617      fi
9618      ;;
9619
9620    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9621      case `$LD -v 2>&1` in
9622        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9623	ld_shlibs=no
9624	cat <<_LT_EOF 1>&2
9625
9626*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9627*** reliably create shared libraries on SCO systems.  Therefore, libtool
9628*** is disabling shared libraries support.  We urge you to upgrade GNU
9629*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9630*** your PATH or compiler configuration so that the native linker is
9631*** used, and then restart.
9632
9633_LT_EOF
9634	;;
9635	*)
9636	  # For security reasons, it is highly recommended that you always
9637	  # use absolute paths for naming shared libraries, and exclude the
9638	  # DT_RUNPATH tag from executables and libraries.  But doing so
9639	  # requires that you compile everything twice, which is a pain.
9640	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9644	  else
9645	    ld_shlibs=no
9646	  fi
9647	;;
9648      esac
9649      ;;
9650
9651    sunos4*)
9652      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653      wlarc=
9654      hardcode_direct=yes
9655      hardcode_shlibpath_var=no
9656      ;;
9657
9658    *)
9659      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9662      else
9663	ld_shlibs=no
9664      fi
9665      ;;
9666    esac
9667
9668    if test "$ld_shlibs" = no; then
9669      runpath_var=
9670      hardcode_libdir_flag_spec=
9671      export_dynamic_flag_spec=
9672      whole_archive_flag_spec=
9673    fi
9674  else
9675    # PORTME fill in a description of your system's linker (not GNU ld)
9676    case $host_os in
9677    aix3*)
9678      allow_undefined_flag=unsupported
9679      always_export_symbols=yes
9680      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'
9681      # Note: this linker hardcodes the directories in LIBPATH if there
9682      # are no directories specified by -L.
9683      hardcode_minus_L=yes
9684      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9685	# Neither direct hardcoding nor static linking is supported with a
9686	# broken collect2.
9687	hardcode_direct=unsupported
9688      fi
9689      ;;
9690
9691    aix[4-9]*)
9692      if test "$host_cpu" = ia64; then
9693	# On IA64, the linker does run time linking by default, so we don't
9694	# have to do anything special.
9695	aix_use_runtimelinking=no
9696	exp_sym_flag='-Bexport'
9697	no_entry_flag=""
9698      else
9699	# If we're using GNU nm, then we don't want the "-C" option.
9700	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9701	# Also, AIX nm treats weak defined symbols like other global
9702	# defined symbols, whereas GNU nm marks them as "W".
9703	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9704	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9705	else
9706	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9707	fi
9708	aix_use_runtimelinking=no
9709
9710	# Test if we are trying to use run time linking or normal
9711	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9712	# need to do runtime linking.
9713	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9714	  for ld_flag in $LDFLAGS; do
9715	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9716	    aix_use_runtimelinking=yes
9717	    break
9718	  fi
9719	  done
9720	  ;;
9721	esac
9722
9723	exp_sym_flag='-bexport'
9724	no_entry_flag='-bnoentry'
9725      fi
9726
9727      # When large executables or shared objects are built, AIX ld can
9728      # have problems creating the table of contents.  If linking a library
9729      # or program results in "error TOC overflow" add -mminimal-toc to
9730      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9731      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9732
9733      archive_cmds=''
9734      hardcode_direct=yes
9735      hardcode_direct_absolute=yes
9736      hardcode_libdir_separator=':'
9737      link_all_deplibs=yes
9738      file_list_spec='${wl}-f,'
9739
9740      if test "$GCC" = yes; then
9741	case $host_os in aix4.[012]|aix4.[012].*)
9742	# We only want to do this on AIX 4.2 and lower, the check
9743	# below for broken collect2 doesn't work under 4.3+
9744	  collect2name=`${CC} -print-prog-name=collect2`
9745	  if test -f "$collect2name" &&
9746	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9747	  then
9748	  # We have reworked collect2
9749	  :
9750	  else
9751	  # We have old collect2
9752	  hardcode_direct=unsupported
9753	  # It fails to find uninstalled libraries when the uninstalled
9754	  # path is not listed in the libpath.  Setting hardcode_minus_L
9755	  # to unsupported forces relinking
9756	  hardcode_minus_L=yes
9757	  hardcode_libdir_flag_spec='-L$libdir'
9758	  hardcode_libdir_separator=
9759	  fi
9760	  ;;
9761	esac
9762	shared_flag='-shared'
9763	if test "$aix_use_runtimelinking" = yes; then
9764	  shared_flag="$shared_flag "'${wl}-G'
9765	fi
9766	link_all_deplibs=no
9767      else
9768	# not using gcc
9769	if test "$host_cpu" = ia64; then
9770	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9771	# chokes on -Wl,-G. The following line is correct:
9772	  shared_flag='-G'
9773	else
9774	  if test "$aix_use_runtimelinking" = yes; then
9775	    shared_flag='${wl}-G'
9776	  else
9777	    shared_flag='${wl}-bM:SRE'
9778	  fi
9779	fi
9780      fi
9781
9782      export_dynamic_flag_spec='${wl}-bexpall'
9783      # It seems that -bexpall does not export symbols beginning with
9784      # underscore (_), so it is better to generate a list of symbols to export.
9785      always_export_symbols=yes
9786      if test "$aix_use_runtimelinking" = yes; then
9787	# Warning - without using the other runtime loading flags (-brtl),
9788	# -berok will link without error, but may produce a broken library.
9789	allow_undefined_flag='-berok'
9790        # Determine the default libpath from the value encoded in an
9791        # empty executable.
9792        if test "${lt_cv_aix_libpath+set}" = set; then
9793  aix_libpath=$lt_cv_aix_libpath
9794else
9795  if ${lt_cv_aix_libpath_+:} false; then :
9796  $as_echo_n "(cached) " >&6
9797else
9798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799/* end confdefs.h.  */
9800
9801int
9802main ()
9803{
9804
9805  ;
9806  return 0;
9807}
9808_ACEOF
9809if ac_fn_c_try_link "$LINENO"; then :
9810
9811  lt_aix_libpath_sed='
9812      /Import File Strings/,/^$/ {
9813	  /^0/ {
9814	      s/^0  *\([^ ]*\) *$/\1/
9815	      p
9816	  }
9817      }'
9818  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819  # Check for a 64-bit object if we didn't find anything.
9820  if test -z "$lt_cv_aix_libpath_"; then
9821    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9822  fi
9823fi
9824rm -f core conftest.err conftest.$ac_objext \
9825    conftest$ac_exeext conftest.$ac_ext
9826  if test -z "$lt_cv_aix_libpath_"; then
9827    lt_cv_aix_libpath_="/usr/lib:/lib"
9828  fi
9829
9830fi
9831
9832  aix_libpath=$lt_cv_aix_libpath_
9833fi
9834
9835        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9836        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9837      else
9838	if test "$host_cpu" = ia64; then
9839	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9840	  allow_undefined_flag="-z nodefs"
9841	  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"
9842	else
9843	 # Determine the default libpath from the value encoded in an
9844	 # empty executable.
9845	 if test "${lt_cv_aix_libpath+set}" = set; then
9846  aix_libpath=$lt_cv_aix_libpath
9847else
9848  if ${lt_cv_aix_libpath_+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h.  */
9853
9854int
9855main ()
9856{
9857
9858  ;
9859  return 0;
9860}
9861_ACEOF
9862if ac_fn_c_try_link "$LINENO"; then :
9863
9864  lt_aix_libpath_sed='
9865      /Import File Strings/,/^$/ {
9866	  /^0/ {
9867	      s/^0  *\([^ ]*\) *$/\1/
9868	      p
9869	  }
9870      }'
9871  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872  # Check for a 64-bit object if we didn't find anything.
9873  if test -z "$lt_cv_aix_libpath_"; then
9874    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9875  fi
9876fi
9877rm -f core conftest.err conftest.$ac_objext \
9878    conftest$ac_exeext conftest.$ac_ext
9879  if test -z "$lt_cv_aix_libpath_"; then
9880    lt_cv_aix_libpath_="/usr/lib:/lib"
9881  fi
9882
9883fi
9884
9885  aix_libpath=$lt_cv_aix_libpath_
9886fi
9887
9888	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9889	  # Warning - without using the other run time loading flags,
9890	  # -berok will link without error, but may produce a broken library.
9891	  no_undefined_flag=' ${wl}-bernotok'
9892	  allow_undefined_flag=' ${wl}-berok'
9893	  if test "$with_gnu_ld" = yes; then
9894	    # We only use this code for GNU lds that support --whole-archive.
9895	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9896	  else
9897	    # Exported symbols can be pulled into shared objects from archives
9898	    whole_archive_flag_spec='$convenience'
9899	  fi
9900	  archive_cmds_need_lc=yes
9901	  # This is similar to how AIX traditionally builds its shared libraries.
9902	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9903	fi
9904      fi
9905      ;;
9906
9907    amigaos*)
9908      case $host_cpu in
9909      powerpc)
9910            # see comment about AmigaOS4 .so support
9911            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912            archive_expsym_cmds=''
9913        ;;
9914      m68k)
9915            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)'
9916            hardcode_libdir_flag_spec='-L$libdir'
9917            hardcode_minus_L=yes
9918        ;;
9919      esac
9920      ;;
9921
9922    bsdi[45]*)
9923      export_dynamic_flag_spec=-rdynamic
9924      ;;
9925
9926    cygwin* | mingw* | pw32* | cegcc*)
9927      # When not using gcc, we currently assume that we are using
9928      # Microsoft Visual C++.
9929      # hardcode_libdir_flag_spec is actually meaningless, as there is
9930      # no search path for DLLs.
9931      case $cc_basename in
9932      cl*)
9933	# Native MSVC
9934	hardcode_libdir_flag_spec=' '
9935	allow_undefined_flag=unsupported
9936	always_export_symbols=yes
9937	file_list_spec='@'
9938	# Tell ltmain to make .lib files, not .a files.
9939	libext=lib
9940	# Tell ltmain to make .dll files, not .so files.
9941	shrext_cmds=".dll"
9942	# FIXME: Setting linknames here is a bad hack.
9943	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9944	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9945	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9946	  else
9947	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9948	  fi~
9949	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9950	  linknames='
9951	# The linker will not automatically build a static lib if we build a DLL.
9952	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9953	enable_shared_with_static_runtimes=yes
9954	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9955	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9956	# Don't use ranlib
9957	old_postinstall_cmds='chmod 644 $oldlib'
9958	postlink_cmds='lt_outputfile="@OUTPUT@"~
9959	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9960	  case $lt_outputfile in
9961	    *.exe|*.EXE) ;;
9962	    *)
9963	      lt_outputfile="$lt_outputfile.exe"
9964	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9965	      ;;
9966	  esac~
9967	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9968	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9969	    $RM "$lt_outputfile.manifest";
9970	  fi'
9971	;;
9972      *)
9973	# Assume MSVC wrapper
9974	hardcode_libdir_flag_spec=' '
9975	allow_undefined_flag=unsupported
9976	# Tell ltmain to make .lib files, not .a files.
9977	libext=lib
9978	# Tell ltmain to make .dll files, not .so files.
9979	shrext_cmds=".dll"
9980	# FIXME: Setting linknames here is a bad hack.
9981	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9982	# The linker will automatically build a .lib file if we build a DLL.
9983	old_archive_from_new_cmds='true'
9984	# FIXME: Should let the user specify the lib program.
9985	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9986	enable_shared_with_static_runtimes=yes
9987	;;
9988      esac
9989      ;;
9990
9991    darwin* | rhapsody*)
9992
9993
9994  archive_cmds_need_lc=no
9995  hardcode_direct=no
9996  hardcode_automatic=yes
9997  hardcode_shlibpath_var=unsupported
9998  if test "$lt_cv_ld_force_load" = "yes"; then
9999    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\"`'
10000
10001  else
10002    whole_archive_flag_spec=''
10003  fi
10004  link_all_deplibs=yes
10005  allow_undefined_flag="$_lt_dar_allow_undefined"
10006  case $cc_basename in
10007     ifort*) _lt_dar_can_shared=yes ;;
10008     *) _lt_dar_can_shared=$GCC ;;
10009  esac
10010  if test "$_lt_dar_can_shared" = "yes"; then
10011    output_verbose_link_cmd=func_echo_all
10012    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10013    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10014    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}"
10015    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}"
10016
10017  else
10018  ld_shlibs=no
10019  fi
10020
10021      ;;
10022
10023    dgux*)
10024      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025      hardcode_libdir_flag_spec='-L$libdir'
10026      hardcode_shlibpath_var=no
10027      ;;
10028
10029    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10030    # support.  Future versions do this automatically, but an explicit c++rt0.o
10031    # does not break anything, and helps significantly (at the cost of a little
10032    # extra space).
10033    freebsd2.2*)
10034      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10035      hardcode_libdir_flag_spec='-R$libdir'
10036      hardcode_direct=yes
10037      hardcode_shlibpath_var=no
10038      ;;
10039
10040    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10041    freebsd2.*)
10042      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10043      hardcode_direct=yes
10044      hardcode_minus_L=yes
10045      hardcode_shlibpath_var=no
10046      ;;
10047
10048    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10049    freebsd* | dragonfly*)
10050      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10051      hardcode_libdir_flag_spec='-R$libdir'
10052      hardcode_direct=yes
10053      hardcode_shlibpath_var=no
10054      ;;
10055
10056    hpux9*)
10057      if test "$GCC" = yes; then
10058	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10059      else
10060	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10061      fi
10062      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063      hardcode_libdir_separator=:
10064      hardcode_direct=yes
10065
10066      # hardcode_minus_L: Not really in the search PATH,
10067      # but as the default location of the library.
10068      hardcode_minus_L=yes
10069      export_dynamic_flag_spec='${wl}-E'
10070      ;;
10071
10072    hpux10*)
10073      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10074	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10075      else
10076	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10077      fi
10078      if test "$with_gnu_ld" = no; then
10079	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10080	hardcode_libdir_separator=:
10081	hardcode_direct=yes
10082	hardcode_direct_absolute=yes
10083	export_dynamic_flag_spec='${wl}-E'
10084	# hardcode_minus_L: Not really in the search PATH,
10085	# but as the default location of the library.
10086	hardcode_minus_L=yes
10087      fi
10088      ;;
10089
10090    hpux11*)
10091      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10092	case $host_cpu in
10093	hppa*64*)
10094	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10095	  ;;
10096	ia64*)
10097	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10098	  ;;
10099	*)
10100	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10101	  ;;
10102	esac
10103      else
10104	case $host_cpu in
10105	hppa*64*)
10106	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10107	  ;;
10108	ia64*)
10109	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10110	  ;;
10111	*)
10112
10113	  # Older versions of the 11.00 compiler do not understand -b yet
10114	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10115	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10116$as_echo_n "checking if $CC understands -b... " >&6; }
10117if ${lt_cv_prog_compiler__b+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  lt_cv_prog_compiler__b=no
10121   save_LDFLAGS="$LDFLAGS"
10122   LDFLAGS="$LDFLAGS -b"
10123   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10124   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10125     # The linker can only warn and ignore the option if not recognized
10126     # So say no if there are warnings
10127     if test -s conftest.err; then
10128       # Append any errors to the config.log.
10129       cat conftest.err 1>&5
10130       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10131       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10132       if diff conftest.exp conftest.er2 >/dev/null; then
10133         lt_cv_prog_compiler__b=yes
10134       fi
10135     else
10136       lt_cv_prog_compiler__b=yes
10137     fi
10138   fi
10139   $RM -r conftest*
10140   LDFLAGS="$save_LDFLAGS"
10141
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10144$as_echo "$lt_cv_prog_compiler__b" >&6; }
10145
10146if test x"$lt_cv_prog_compiler__b" = xyes; then
10147    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10148else
10149    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10150fi
10151
10152	  ;;
10153	esac
10154      fi
10155      if test "$with_gnu_ld" = no; then
10156	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10157	hardcode_libdir_separator=:
10158
10159	case $host_cpu in
10160	hppa*64*|ia64*)
10161	  hardcode_direct=no
10162	  hardcode_shlibpath_var=no
10163	  ;;
10164	*)
10165	  hardcode_direct=yes
10166	  hardcode_direct_absolute=yes
10167	  export_dynamic_flag_spec='${wl}-E'
10168
10169	  # hardcode_minus_L: Not really in the search PATH,
10170	  # but as the default location of the library.
10171	  hardcode_minus_L=yes
10172	  ;;
10173	esac
10174      fi
10175      ;;
10176
10177    irix5* | irix6* | nonstopux*)
10178      if test "$GCC" = yes; then
10179	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'
10180	# Try to use the -exported_symbol ld option, if it does not
10181	# work, assume that -exports_file does not work either and
10182	# implicitly export all symbols.
10183	# This should be the same for all languages, so no per-tag cache variable.
10184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10185$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10186if ${lt_cv_irix_exported_symbol+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  save_LDFLAGS="$LDFLAGS"
10190	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10191	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192/* end confdefs.h.  */
10193int foo (void) { return 0; }
10194_ACEOF
10195if ac_fn_c_try_link "$LINENO"; then :
10196  lt_cv_irix_exported_symbol=yes
10197else
10198  lt_cv_irix_exported_symbol=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext \
10201    conftest$ac_exeext conftest.$ac_ext
10202           LDFLAGS="$save_LDFLAGS"
10203fi
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10205$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10206	if test "$lt_cv_irix_exported_symbol" = yes; then
10207          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'
10208	fi
10209      else
10210	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'
10211	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'
10212      fi
10213      archive_cmds_need_lc='no'
10214      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10215      hardcode_libdir_separator=:
10216      inherit_rpath=yes
10217      link_all_deplibs=yes
10218      ;;
10219
10220    netbsd* | netbsdelf*-gnu)
10221      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10222	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10223      else
10224	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10225      fi
10226      hardcode_libdir_flag_spec='-R$libdir'
10227      hardcode_direct=yes
10228      hardcode_shlibpath_var=no
10229      ;;
10230
10231    newsos6)
10232      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233      hardcode_direct=yes
10234      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235      hardcode_libdir_separator=:
10236      hardcode_shlibpath_var=no
10237      ;;
10238
10239    *nto* | *qnx*)
10240      ;;
10241
10242    openbsd*)
10243      if test -f /usr/libexec/ld.so; then
10244	hardcode_direct=yes
10245	hardcode_shlibpath_var=no
10246	hardcode_direct_absolute=yes
10247	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10248	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10249	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10250	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10251	  export_dynamic_flag_spec='${wl}-E'
10252	else
10253	  case $host_os in
10254	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10255	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10256	     hardcode_libdir_flag_spec='-R$libdir'
10257	     ;;
10258	   *)
10259	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10260	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10261	     ;;
10262	  esac
10263	fi
10264      else
10265	ld_shlibs=no
10266      fi
10267      ;;
10268
10269    os2*)
10270      hardcode_libdir_flag_spec='-L$libdir'
10271      hardcode_minus_L=yes
10272      allow_undefined_flag=unsupported
10273      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10274      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10275      ;;
10276
10277    osf3*)
10278      if test "$GCC" = yes; then
10279	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10280	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'
10281      else
10282	allow_undefined_flag=' -expect_unresolved \*'
10283	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'
10284      fi
10285      archive_cmds_need_lc='no'
10286      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287      hardcode_libdir_separator=:
10288      ;;
10289
10290    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10291      if test "$GCC" = yes; then
10292	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10293	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'
10294	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10295      else
10296	allow_undefined_flag=' -expect_unresolved \*'
10297	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'
10298	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~
10299	$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'
10300
10301	# Both c and cxx compiler support -rpath directly
10302	hardcode_libdir_flag_spec='-rpath $libdir'
10303      fi
10304      archive_cmds_need_lc='no'
10305      hardcode_libdir_separator=:
10306      ;;
10307
10308    solaris*)
10309      no_undefined_flag=' -z defs'
10310      if test "$GCC" = yes; then
10311	wlarc='${wl}'
10312	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10313	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314	  $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'
10315      else
10316	case `$CC -V 2>&1` in
10317	*"Compilers 5.0"*)
10318	  wlarc=''
10319	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10321	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10322	  ;;
10323	*)
10324	  wlarc='${wl}'
10325	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10326	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10327	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10328	  ;;
10329	esac
10330      fi
10331      hardcode_libdir_flag_spec='-R$libdir'
10332      hardcode_shlibpath_var=no
10333      case $host_os in
10334      solaris2.[0-5] | solaris2.[0-5].*) ;;
10335      *)
10336	# The compiler driver will combine and reorder linker options,
10337	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10338	# but is careful enough not to reorder.
10339	# Supported since Solaris 2.6 (maybe 2.5.1?)
10340	if test "$GCC" = yes; then
10341	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10342	else
10343	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10344	fi
10345	;;
10346      esac
10347      link_all_deplibs=yes
10348      ;;
10349
10350    sunos4*)
10351      if test "x$host_vendor" = xsequent; then
10352	# Use $CC to link under sequent, because it throws in some extra .o
10353	# files that make .init and .fini sections work.
10354	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10355      else
10356	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10357      fi
10358      hardcode_libdir_flag_spec='-L$libdir'
10359      hardcode_direct=yes
10360      hardcode_minus_L=yes
10361      hardcode_shlibpath_var=no
10362      ;;
10363
10364    sysv4)
10365      case $host_vendor in
10366	sni)
10367	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368	  hardcode_direct=yes # is this really true???
10369	;;
10370	siemens)
10371	  ## LD is ld it makes a PLAMLIB
10372	  ## CC just makes a GrossModule.
10373	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10374	  reload_cmds='$CC -r -o $output$reload_objs'
10375	  hardcode_direct=no
10376        ;;
10377	motorola)
10378	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10380	;;
10381      esac
10382      runpath_var='LD_RUN_PATH'
10383      hardcode_shlibpath_var=no
10384      ;;
10385
10386    sysv4.3*)
10387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388      hardcode_shlibpath_var=no
10389      export_dynamic_flag_spec='-Bexport'
10390      ;;
10391
10392    sysv4*MP*)
10393      if test -d /usr/nec; then
10394	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395	hardcode_shlibpath_var=no
10396	runpath_var=LD_RUN_PATH
10397	hardcode_runpath_var=yes
10398	ld_shlibs=yes
10399      fi
10400      ;;
10401
10402    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10403      no_undefined_flag='${wl}-z,text'
10404      archive_cmds_need_lc=no
10405      hardcode_shlibpath_var=no
10406      runpath_var='LD_RUN_PATH'
10407
10408      if test "$GCC" = yes; then
10409	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411      else
10412	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414      fi
10415      ;;
10416
10417    sysv5* | sco3.2v5* | sco5v6*)
10418      # Note: We can NOT use -z defs as we might desire, because we do not
10419      # link with -lc, and that would cause any symbols used from libc to
10420      # always be unresolved, which means just about no library would
10421      # ever link correctly.  If we're not using GNU ld we use -z text
10422      # though, which does catch some bad symbols but isn't as heavy-handed
10423      # as -z defs.
10424      no_undefined_flag='${wl}-z,text'
10425      allow_undefined_flag='${wl}-z,nodefs'
10426      archive_cmds_need_lc=no
10427      hardcode_shlibpath_var=no
10428      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10429      hardcode_libdir_separator=':'
10430      link_all_deplibs=yes
10431      export_dynamic_flag_spec='${wl}-Bexport'
10432      runpath_var='LD_RUN_PATH'
10433
10434      if test "$GCC" = yes; then
10435	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10437      else
10438	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10439	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440      fi
10441      ;;
10442
10443    uts4*)
10444      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445      hardcode_libdir_flag_spec='-L$libdir'
10446      hardcode_shlibpath_var=no
10447      ;;
10448
10449    *)
10450      ld_shlibs=no
10451      ;;
10452    esac
10453
10454    if test x$host_vendor = xsni; then
10455      case $host in
10456      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10457	export_dynamic_flag_spec='${wl}-Blargedynsym'
10458	;;
10459      esac
10460    fi
10461  fi
10462
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10464$as_echo "$ld_shlibs" >&6; }
10465test "$ld_shlibs" = no && can_build_shared=no
10466
10467with_gnu_ld=$with_gnu_ld
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483#
10484# Do we need to explicitly link libc?
10485#
10486case "x$archive_cmds_need_lc" in
10487x|xyes)
10488  # Assume -lc should be added
10489  archive_cmds_need_lc=yes
10490
10491  if test "$enable_shared" = yes && test "$GCC" = yes; then
10492    case $archive_cmds in
10493    *'~'*)
10494      # FIXME: we may have to deal with multi-command sequences.
10495      ;;
10496    '$CC '*)
10497      # Test whether the compiler implicitly links with -lc since on some
10498      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10499      # to ld, don't add -lc before -lgcc.
10500      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10501$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10502if ${lt_cv_archive_cmds_need_lc+:} false; then :
10503  $as_echo_n "(cached) " >&6
10504else
10505  $RM conftest*
10506	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10507
10508	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10509  (eval $ac_compile) 2>&5
10510  ac_status=$?
10511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512  test $ac_status = 0; } 2>conftest.err; then
10513	  soname=conftest
10514	  lib=conftest
10515	  libobjs=conftest.$ac_objext
10516	  deplibs=
10517	  wl=$lt_prog_compiler_wl
10518	  pic_flag=$lt_prog_compiler_pic
10519	  compiler_flags=-v
10520	  linker_flags=-v
10521	  verstring=
10522	  output_objdir=.
10523	  libname=conftest
10524	  lt_save_allow_undefined_flag=$allow_undefined_flag
10525	  allow_undefined_flag=
10526	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10527  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10528  ac_status=$?
10529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10530  test $ac_status = 0; }
10531	  then
10532	    lt_cv_archive_cmds_need_lc=no
10533	  else
10534	    lt_cv_archive_cmds_need_lc=yes
10535	  fi
10536	  allow_undefined_flag=$lt_save_allow_undefined_flag
10537	else
10538	  cat conftest.err 1>&5
10539	fi
10540	$RM conftest*
10541
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10544$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10545      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10546      ;;
10547    esac
10548  fi
10549  ;;
10550esac
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10704$as_echo_n "checking dynamic linker characteristics... " >&6; }
10705
10706if test "$GCC" = yes; then
10707  case $host_os in
10708    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10709    *) lt_awk_arg="/^libraries:/" ;;
10710  esac
10711  case $host_os in
10712    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10713    *) lt_sed_strip_eq="s,=/,/,g" ;;
10714  esac
10715  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10716  case $lt_search_path_spec in
10717  *\;*)
10718    # if the path contains ";" then we assume it to be the separator
10719    # otherwise default to the standard path separator (i.e. ":") - it is
10720    # assumed that no part of a normal pathname contains ";" but that should
10721    # okay in the real world where ";" in dirpaths is itself problematic.
10722    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10723    ;;
10724  *)
10725    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10726    ;;
10727  esac
10728  # Ok, now we have the path, separated by spaces, we can step through it
10729  # and add multilib dir if necessary.
10730  lt_tmp_lt_search_path_spec=
10731  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10732  for lt_sys_path in $lt_search_path_spec; do
10733    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10734      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10735    else
10736      test -d "$lt_sys_path" && \
10737	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10738    fi
10739  done
10740  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10741BEGIN {RS=" "; FS="/|\n";} {
10742  lt_foo="";
10743  lt_count=0;
10744  for (lt_i = NF; lt_i > 0; lt_i--) {
10745    if ($lt_i != "" && $lt_i != ".") {
10746      if ($lt_i == "..") {
10747        lt_count++;
10748      } else {
10749        if (lt_count == 0) {
10750          lt_foo="/" $lt_i lt_foo;
10751        } else {
10752          lt_count--;
10753        }
10754      }
10755    }
10756  }
10757  if (lt_foo != "") { lt_freq[lt_foo]++; }
10758  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10759}'`
10760  # AWK program above erroneously prepends '/' to C:/dos/paths
10761  # for these hosts.
10762  case $host_os in
10763    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10764      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10765  esac
10766  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10767else
10768  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10769fi
10770library_names_spec=
10771libname_spec='lib$name'
10772soname_spec=
10773shrext_cmds=".so"
10774postinstall_cmds=
10775postuninstall_cmds=
10776finish_cmds=
10777finish_eval=
10778shlibpath_var=
10779shlibpath_overrides_runpath=unknown
10780version_type=none
10781dynamic_linker="$host_os ld.so"
10782sys_lib_dlsearch_path_spec="/lib /usr/lib"
10783need_lib_prefix=unknown
10784hardcode_into_libs=no
10785
10786# when you set need_version to no, make sure it does not cause -set_version
10787# flags to be left without arguments
10788need_version=unknown
10789
10790case $host_os in
10791aix3*)
10792  version_type=linux # correct to gnu/linux during the next big refactor
10793  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10794  shlibpath_var=LIBPATH
10795
10796  # AIX 3 has no versioning support, so we append a major version to the name.
10797  soname_spec='${libname}${release}${shared_ext}$major'
10798  ;;
10799
10800aix[4-9]*)
10801  version_type=linux # correct to gnu/linux during the next big refactor
10802  need_lib_prefix=no
10803  need_version=no
10804  hardcode_into_libs=yes
10805  if test "$host_cpu" = ia64; then
10806    # AIX 5 supports IA64
10807    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10808    shlibpath_var=LD_LIBRARY_PATH
10809  else
10810    # With GCC up to 2.95.x, collect2 would create an import file
10811    # for dependence libraries.  The import file would start with
10812    # the line `#! .'.  This would cause the generated library to
10813    # depend on `.', always an invalid library.  This was fixed in
10814    # development snapshots of GCC prior to 3.0.
10815    case $host_os in
10816      aix4 | aix4.[01] | aix4.[01].*)
10817      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10818	   echo ' yes '
10819	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10820	:
10821      else
10822	can_build_shared=no
10823      fi
10824      ;;
10825    esac
10826    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10827    # soname into executable. Probably we can add versioning support to
10828    # collect2, so additional links can be useful in future.
10829    if test "$aix_use_runtimelinking" = yes; then
10830      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10831      # instead of lib<name>.a to let people know that these are not
10832      # typical AIX shared libraries.
10833      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834    else
10835      # We preserve .a as extension for shared libraries through AIX4.2
10836      # and later when we are not doing run time linking.
10837      library_names_spec='${libname}${release}.a $libname.a'
10838      soname_spec='${libname}${release}${shared_ext}$major'
10839    fi
10840    shlibpath_var=LIBPATH
10841  fi
10842  ;;
10843
10844amigaos*)
10845  case $host_cpu in
10846  powerpc)
10847    # Since July 2007 AmigaOS4 officially supports .so libraries.
10848    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850    ;;
10851  m68k)
10852    library_names_spec='$libname.ixlibrary $libname.a'
10853    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10854    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10855    ;;
10856  esac
10857  ;;
10858
10859beos*)
10860  library_names_spec='${libname}${shared_ext}'
10861  dynamic_linker="$host_os ld.so"
10862  shlibpath_var=LIBRARY_PATH
10863  ;;
10864
10865bsdi[45]*)
10866  version_type=linux # correct to gnu/linux during the next big refactor
10867  need_version=no
10868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869  soname_spec='${libname}${release}${shared_ext}$major'
10870  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10871  shlibpath_var=LD_LIBRARY_PATH
10872  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10873  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10874  # the default ld.so.conf also contains /usr/contrib/lib and
10875  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10876  # libtool to hard-code these into programs
10877  ;;
10878
10879cygwin* | mingw* | pw32* | cegcc*)
10880  version_type=windows
10881  shrext_cmds=".dll"
10882  need_version=no
10883  need_lib_prefix=no
10884
10885  case $GCC,$cc_basename in
10886  yes,*)
10887    # gcc
10888    library_names_spec='$libname.dll.a'
10889    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890    postinstall_cmds='base_file=`basename \${file}`~
10891      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10892      dldir=$destdir/`dirname \$dlpath`~
10893      test -d \$dldir || mkdir -p \$dldir~
10894      $install_prog $dir/$dlname \$dldir/$dlname~
10895      chmod a+x \$dldir/$dlname~
10896      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10897        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10898      fi'
10899    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10900      dlpath=$dir/\$dldll~
10901       $RM \$dlpath'
10902    shlibpath_overrides_runpath=yes
10903
10904    case $host_os in
10905    cygwin*)
10906      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10907      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10908
10909      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10910      ;;
10911    mingw* | cegcc*)
10912      # MinGW DLLs use traditional 'lib' prefix
10913      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10914      ;;
10915    pw32*)
10916      # pw32 DLLs use 'pw' prefix rather than 'lib'
10917      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10918      ;;
10919    esac
10920    dynamic_linker='Win32 ld.exe'
10921    ;;
10922
10923  *,cl*)
10924    # Native MSVC
10925    libname_spec='$name'
10926    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10927    library_names_spec='${libname}.dll.lib'
10928
10929    case $build_os in
10930    mingw*)
10931      sys_lib_search_path_spec=
10932      lt_save_ifs=$IFS
10933      IFS=';'
10934      for lt_path in $LIB
10935      do
10936        IFS=$lt_save_ifs
10937        # Let DOS variable expansion print the short 8.3 style file name.
10938        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10939        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10940      done
10941      IFS=$lt_save_ifs
10942      # Convert to MSYS style.
10943      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10944      ;;
10945    cygwin*)
10946      # Convert to unix form, then to dos form, then back to unix form
10947      # but this time dos style (no spaces!) so that the unix form looks
10948      # like /cygdrive/c/PROGRA~1:/cygdr...
10949      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10950      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10951      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10952      ;;
10953    *)
10954      sys_lib_search_path_spec="$LIB"
10955      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10956        # It is most probably a Windows format PATH.
10957        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10958      else
10959        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10960      fi
10961      # FIXME: find the short name or the path components, as spaces are
10962      # common. (e.g. "Program Files" -> "PROGRA~1")
10963      ;;
10964    esac
10965
10966    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10967    postinstall_cmds='base_file=`basename \${file}`~
10968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10969      dldir=$destdir/`dirname \$dlpath`~
10970      test -d \$dldir || mkdir -p \$dldir~
10971      $install_prog $dir/$dlname \$dldir/$dlname'
10972    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10973      dlpath=$dir/\$dldll~
10974       $RM \$dlpath'
10975    shlibpath_overrides_runpath=yes
10976    dynamic_linker='Win32 link.exe'
10977    ;;
10978
10979  *)
10980    # Assume MSVC wrapper
10981    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10982    dynamic_linker='Win32 ld.exe'
10983    ;;
10984  esac
10985  # FIXME: first we should search . and the directory the executable is in
10986  shlibpath_var=PATH
10987  ;;
10988
10989darwin* | rhapsody*)
10990  dynamic_linker="$host_os dyld"
10991  version_type=darwin
10992  need_lib_prefix=no
10993  need_version=no
10994  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10995  soname_spec='${libname}${release}${major}$shared_ext'
10996  shlibpath_overrides_runpath=yes
10997  shlibpath_var=DYLD_LIBRARY_PATH
10998  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10999
11000  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11001  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11002  ;;
11003
11004dgux*)
11005  version_type=linux # correct to gnu/linux during the next big refactor
11006  need_lib_prefix=no
11007  need_version=no
11008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11009  soname_spec='${libname}${release}${shared_ext}$major'
11010  shlibpath_var=LD_LIBRARY_PATH
11011  ;;
11012
11013freebsd* | dragonfly*)
11014  # DragonFly does not have aout.  When/if they implement a new
11015  # versioning mechanism, adjust this.
11016  if test -x /usr/bin/objformat; then
11017    objformat=`/usr/bin/objformat`
11018  else
11019    case $host_os in
11020    freebsd[23].*) objformat=aout ;;
11021    *) objformat=elf ;;
11022    esac
11023  fi
11024  version_type=freebsd-$objformat
11025  case $version_type in
11026    freebsd-elf*)
11027      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11028      need_version=no
11029      need_lib_prefix=no
11030      ;;
11031    freebsd-*)
11032      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11033      need_version=yes
11034      ;;
11035  esac
11036  shlibpath_var=LD_LIBRARY_PATH
11037  case $host_os in
11038  freebsd2.*)
11039    shlibpath_overrides_runpath=yes
11040    ;;
11041  freebsd3.[01]* | freebsdelf3.[01]*)
11042    shlibpath_overrides_runpath=yes
11043    hardcode_into_libs=yes
11044    ;;
11045  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11046  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11047    shlibpath_overrides_runpath=no
11048    hardcode_into_libs=yes
11049    ;;
11050  *) # from 4.6 on, and DragonFly
11051    shlibpath_overrides_runpath=yes
11052    hardcode_into_libs=yes
11053    ;;
11054  esac
11055  ;;
11056
11057haiku*)
11058  version_type=linux # correct to gnu/linux during the next big refactor
11059  need_lib_prefix=no
11060  need_version=no
11061  dynamic_linker="$host_os runtime_loader"
11062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11063  soname_spec='${libname}${release}${shared_ext}$major'
11064  shlibpath_var=LIBRARY_PATH
11065  shlibpath_overrides_runpath=yes
11066  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11067  hardcode_into_libs=yes
11068  ;;
11069
11070hpux9* | hpux10* | hpux11*)
11071  # Give a soname corresponding to the major version so that dld.sl refuses to
11072  # link against other versions.
11073  version_type=sunos
11074  need_lib_prefix=no
11075  need_version=no
11076  case $host_cpu in
11077  ia64*)
11078    shrext_cmds='.so'
11079    hardcode_into_libs=yes
11080    dynamic_linker="$host_os dld.so"
11081    shlibpath_var=LD_LIBRARY_PATH
11082    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11083    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084    soname_spec='${libname}${release}${shared_ext}$major'
11085    if test "X$HPUX_IA64_MODE" = X32; then
11086      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11087    else
11088      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11089    fi
11090    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11091    ;;
11092  hppa*64*)
11093    shrext_cmds='.sl'
11094    hardcode_into_libs=yes
11095    dynamic_linker="$host_os dld.sl"
11096    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11097    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099    soname_spec='${libname}${release}${shared_ext}$major'
11100    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11101    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11102    ;;
11103  *)
11104    shrext_cmds='.sl'
11105    dynamic_linker="$host_os dld.sl"
11106    shlibpath_var=SHLIB_PATH
11107    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11108    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109    soname_spec='${libname}${release}${shared_ext}$major'
11110    ;;
11111  esac
11112  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11113  postinstall_cmds='chmod 555 $lib'
11114  # or fails outright, so override atomically:
11115  install_override_mode=555
11116  ;;
11117
11118interix[3-9]*)
11119  version_type=linux # correct to gnu/linux during the next big refactor
11120  need_lib_prefix=no
11121  need_version=no
11122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11123  soname_spec='${libname}${release}${shared_ext}$major'
11124  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11125  shlibpath_var=LD_LIBRARY_PATH
11126  shlibpath_overrides_runpath=no
11127  hardcode_into_libs=yes
11128  ;;
11129
11130irix5* | irix6* | nonstopux*)
11131  case $host_os in
11132    nonstopux*) version_type=nonstopux ;;
11133    *)
11134	if test "$lt_cv_prog_gnu_ld" = yes; then
11135		version_type=linux # correct to gnu/linux during the next big refactor
11136	else
11137		version_type=irix
11138	fi ;;
11139  esac
11140  need_lib_prefix=no
11141  need_version=no
11142  soname_spec='${libname}${release}${shared_ext}$major'
11143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11144  case $host_os in
11145  irix5* | nonstopux*)
11146    libsuff= shlibsuff=
11147    ;;
11148  *)
11149    case $LD in # libtool.m4 will add one of these switches to LD
11150    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11151      libsuff= shlibsuff= libmagic=32-bit;;
11152    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11153      libsuff=32 shlibsuff=N32 libmagic=N32;;
11154    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11155      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11156    *) libsuff= shlibsuff= libmagic=never-match;;
11157    esac
11158    ;;
11159  esac
11160  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11161  shlibpath_overrides_runpath=no
11162  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11163  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11164  hardcode_into_libs=yes
11165  ;;
11166
11167# No shared lib support for Linux oldld, aout, or coff.
11168linux*oldld* | linux*aout* | linux*coff*)
11169  dynamic_linker=no
11170  ;;
11171
11172# This must be glibc/ELF.
11173linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11174  version_type=linux # correct to gnu/linux during the next big refactor
11175  need_lib_prefix=no
11176  need_version=no
11177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178  soname_spec='${libname}${release}${shared_ext}$major'
11179  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11180  shlibpath_var=LD_LIBRARY_PATH
11181  shlibpath_overrides_runpath=no
11182
11183  # Some binutils ld are patched to set DT_RUNPATH
11184  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11185  $as_echo_n "(cached) " >&6
11186else
11187  lt_cv_shlibpath_overrides_runpath=no
11188    save_LDFLAGS=$LDFLAGS
11189    save_libdir=$libdir
11190    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11191	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h.  */
11194
11195int
11196main ()
11197{
11198
11199  ;
11200  return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_link "$LINENO"; then :
11204  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11205  lt_cv_shlibpath_overrides_runpath=yes
11206fi
11207fi
11208rm -f core conftest.err conftest.$ac_objext \
11209    conftest$ac_exeext conftest.$ac_ext
11210    LDFLAGS=$save_LDFLAGS
11211    libdir=$save_libdir
11212
11213fi
11214
11215  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11216
11217  # This implies no fast_install, which is unacceptable.
11218  # Some rework will be needed to allow for fast_install
11219  # before this can be enabled.
11220  hardcode_into_libs=yes
11221
11222  # Append ld.so.conf contents to the search path
11223  if test -f /etc/ld.so.conf; then
11224    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' ' '`
11225    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11226  fi
11227
11228  # We used to test for /lib/ld.so.1 and disable shared libraries on
11229  # powerpc, because MkLinux only supported shared libraries with the
11230  # GNU dynamic linker.  Since this was broken with cross compilers,
11231  # most powerpc-linux boxes support dynamic linking these days and
11232  # people can always --disable-shared, the test was removed, and we
11233  # assume the GNU/Linux dynamic linker is in use.
11234  dynamic_linker='GNU/Linux ld.so'
11235  ;;
11236
11237netbsdelf*-gnu)
11238  version_type=linux
11239  need_lib_prefix=no
11240  need_version=no
11241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11242  soname_spec='${libname}${release}${shared_ext}$major'
11243  shlibpath_var=LD_LIBRARY_PATH
11244  shlibpath_overrides_runpath=no
11245  hardcode_into_libs=yes
11246  dynamic_linker='NetBSD ld.elf_so'
11247  ;;
11248
11249netbsd*)
11250  # ts B51007 : changed version_type for lt_main.sh from "sunos" to "netbsd"
11251  version_type=netbsd
11252  need_lib_prefix=no
11253  need_version=no
11254  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11255    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11256    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11257    dynamic_linker='NetBSD (a.out) ld.so'
11258  else
11259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11260    soname_spec='${libname}${release}${shared_ext}$major'
11261    dynamic_linker='NetBSD ld.elf_so'
11262  fi
11263  shlibpath_var=LD_LIBRARY_PATH
11264  shlibpath_overrides_runpath=yes
11265  hardcode_into_libs=yes
11266  ;;
11267
11268newsos6)
11269  version_type=linux # correct to gnu/linux during the next big refactor
11270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271  shlibpath_var=LD_LIBRARY_PATH
11272  shlibpath_overrides_runpath=yes
11273  ;;
11274
11275*nto* | *qnx*)
11276  version_type=qnx
11277  need_lib_prefix=no
11278  need_version=no
11279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280  soname_spec='${libname}${release}${shared_ext}$major'
11281  shlibpath_var=LD_LIBRARY_PATH
11282  shlibpath_overrides_runpath=no
11283  hardcode_into_libs=yes
11284  dynamic_linker='ldqnx.so'
11285  ;;
11286
11287openbsd*)
11288  # ts B60722 : changed version_type for lt_main.sh from "sunos" to "netbsd"
11289  #             http://www.openbsd.org/faq/ports/specialtopics.html
11290  #             "Understanding shared libraries number rules"
11291  version_type=netbsd
11292  sys_lib_dlsearch_path_spec="/usr/lib"
11293  need_lib_prefix=no
11294  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11295  case $host_os in
11296    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11297    *)				need_version=no  ;;
11298  esac
11299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11300  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11301  shlibpath_var=LD_LIBRARY_PATH
11302  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11303    case $host_os in
11304      openbsd2.[89] | openbsd2.[89].*)
11305	shlibpath_overrides_runpath=no
11306	;;
11307      *)
11308	shlibpath_overrides_runpath=yes
11309	;;
11310      esac
11311  else
11312    shlibpath_overrides_runpath=yes
11313  fi
11314  ;;
11315
11316os2*)
11317  libname_spec='$name'
11318  shrext_cmds=".dll"
11319  need_lib_prefix=no
11320  library_names_spec='$libname${shared_ext} $libname.a'
11321  dynamic_linker='OS/2 ld.exe'
11322  shlibpath_var=LIBPATH
11323  ;;
11324
11325osf3* | osf4* | osf5*)
11326  version_type=osf
11327  need_lib_prefix=no
11328  need_version=no
11329  soname_spec='${libname}${release}${shared_ext}$major'
11330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331  shlibpath_var=LD_LIBRARY_PATH
11332  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11333  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11334  ;;
11335
11336rdos*)
11337  dynamic_linker=no
11338  ;;
11339
11340solaris*)
11341  version_type=linux # correct to gnu/linux during the next big refactor
11342  need_lib_prefix=no
11343  need_version=no
11344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345  soname_spec='${libname}${release}${shared_ext}$major'
11346  shlibpath_var=LD_LIBRARY_PATH
11347  shlibpath_overrides_runpath=yes
11348  hardcode_into_libs=yes
11349  # ldd complains unless libraries are executable
11350  postinstall_cmds='chmod +x $lib'
11351  ;;
11352
11353sunos4*)
11354  version_type=sunos
11355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11357  shlibpath_var=LD_LIBRARY_PATH
11358  shlibpath_overrides_runpath=yes
11359  if test "$with_gnu_ld" = yes; then
11360    need_lib_prefix=no
11361  fi
11362  need_version=yes
11363  ;;
11364
11365sysv4 | sysv4.3*)
11366  version_type=linux # correct to gnu/linux during the next big refactor
11367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368  soname_spec='${libname}${release}${shared_ext}$major'
11369  shlibpath_var=LD_LIBRARY_PATH
11370  case $host_vendor in
11371    sni)
11372      shlibpath_overrides_runpath=no
11373      need_lib_prefix=no
11374      runpath_var=LD_RUN_PATH
11375      ;;
11376    siemens)
11377      need_lib_prefix=no
11378      ;;
11379    motorola)
11380      need_lib_prefix=no
11381      need_version=no
11382      shlibpath_overrides_runpath=no
11383      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11384      ;;
11385  esac
11386  ;;
11387
11388sysv4*MP*)
11389  if test -d /usr/nec ;then
11390    version_type=linux # correct to gnu/linux during the next big refactor
11391    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11392    soname_spec='$libname${shared_ext}.$major'
11393    shlibpath_var=LD_LIBRARY_PATH
11394  fi
11395  ;;
11396
11397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11398  version_type=freebsd-elf
11399  need_lib_prefix=no
11400  need_version=no
11401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11402  soname_spec='${libname}${release}${shared_ext}$major'
11403  shlibpath_var=LD_LIBRARY_PATH
11404  shlibpath_overrides_runpath=yes
11405  hardcode_into_libs=yes
11406  if test "$with_gnu_ld" = yes; then
11407    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11408  else
11409    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11410    case $host_os in
11411      sco3.2v5*)
11412        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11413	;;
11414    esac
11415  fi
11416  sys_lib_dlsearch_path_spec='/usr/lib'
11417  ;;
11418
11419tpf*)
11420  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11421  version_type=linux # correct to gnu/linux during the next big refactor
11422  need_lib_prefix=no
11423  need_version=no
11424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425  shlibpath_var=LD_LIBRARY_PATH
11426  shlibpath_overrides_runpath=no
11427  hardcode_into_libs=yes
11428  ;;
11429
11430uts4*)
11431  version_type=linux # correct to gnu/linux during the next big refactor
11432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433  soname_spec='${libname}${release}${shared_ext}$major'
11434  shlibpath_var=LD_LIBRARY_PATH
11435  ;;
11436
11437*)
11438  dynamic_linker=no
11439  ;;
11440esac
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11442$as_echo "$dynamic_linker" >&6; }
11443test "$dynamic_linker" = no && can_build_shared=no
11444
11445variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11446if test "$GCC" = yes; then
11447  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11448fi
11449
11450if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11451  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11452fi
11453if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11454  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11455fi
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11549$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11550hardcode_action=
11551if test -n "$hardcode_libdir_flag_spec" ||
11552   test -n "$runpath_var" ||
11553   test "X$hardcode_automatic" = "Xyes" ; then
11554
11555  # We can hardcode non-existent directories.
11556  if test "$hardcode_direct" != no &&
11557     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11558     # have to relink, otherwise we might link with an installed library
11559     # when we should be linking with a yet-to-be-installed one
11560     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11561     test "$hardcode_minus_L" != no; then
11562    # Linking always hardcodes the temporary library directory.
11563    hardcode_action=relink
11564  else
11565    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11566    hardcode_action=immediate
11567  fi
11568else
11569  # We cannot hardcode anything, or else we can only hardcode existing
11570  # directories.
11571  hardcode_action=unsupported
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11574$as_echo "$hardcode_action" >&6; }
11575
11576if test "$hardcode_action" = relink ||
11577   test "$inherit_rpath" = yes; then
11578  # Fast installation is not supported
11579  enable_fast_install=no
11580elif test "$shlibpath_overrides_runpath" = yes ||
11581     test "$enable_shared" = no; then
11582  # Fast installation is not necessary
11583  enable_fast_install=needless
11584fi
11585
11586
11587
11588
11589
11590
11591  if test "x$enable_dlopen" != xyes; then
11592  enable_dlopen=unknown
11593  enable_dlopen_self=unknown
11594  enable_dlopen_self_static=unknown
11595else
11596  lt_cv_dlopen=no
11597  lt_cv_dlopen_libs=
11598
11599  case $host_os in
11600  beos*)
11601    lt_cv_dlopen="load_add_on"
11602    lt_cv_dlopen_libs=
11603    lt_cv_dlopen_self=yes
11604    ;;
11605
11606  mingw* | pw32* | cegcc*)
11607    lt_cv_dlopen="LoadLibrary"
11608    lt_cv_dlopen_libs=
11609    ;;
11610
11611  cygwin*)
11612    lt_cv_dlopen="dlopen"
11613    lt_cv_dlopen_libs=
11614    ;;
11615
11616  darwin*)
11617  # if libdl is installed we need to link against it
11618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11619$as_echo_n "checking for dlopen in -ldl... " >&6; }
11620if ${ac_cv_lib_dl_dlopen+:} false; then :
11621  $as_echo_n "(cached) " >&6
11622else
11623  ac_check_lib_save_LIBS=$LIBS
11624LIBS="-ldl  $LIBS"
11625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626/* end confdefs.h.  */
11627
11628/* Override any GCC internal prototype to avoid an error.
11629   Use char because int might match the return type of a GCC
11630   builtin and then its argument prototype would still apply.  */
11631#ifdef __cplusplus
11632extern "C"
11633#endif
11634char dlopen ();
11635int
11636main ()
11637{
11638return dlopen ();
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643if ac_fn_c_try_link "$LINENO"; then :
11644  ac_cv_lib_dl_dlopen=yes
11645else
11646  ac_cv_lib_dl_dlopen=no
11647fi
11648rm -f core conftest.err conftest.$ac_objext \
11649    conftest$ac_exeext conftest.$ac_ext
11650LIBS=$ac_check_lib_save_LIBS
11651fi
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11653$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11654if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11655  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11656else
11657
11658    lt_cv_dlopen="dyld"
11659    lt_cv_dlopen_libs=
11660    lt_cv_dlopen_self=yes
11661
11662fi
11663
11664    ;;
11665
11666  *)
11667    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11668if test "x$ac_cv_func_shl_load" = xyes; then :
11669  lt_cv_dlopen="shl_load"
11670else
11671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11672$as_echo_n "checking for shl_load in -ldld... " >&6; }
11673if ${ac_cv_lib_dld_shl_load+:} false; then :
11674  $as_echo_n "(cached) " >&6
11675else
11676  ac_check_lib_save_LIBS=$LIBS
11677LIBS="-ldld  $LIBS"
11678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679/* end confdefs.h.  */
11680
11681/* Override any GCC internal prototype to avoid an error.
11682   Use char because int might match the return type of a GCC
11683   builtin and then its argument prototype would still apply.  */
11684#ifdef __cplusplus
11685extern "C"
11686#endif
11687char shl_load ();
11688int
11689main ()
11690{
11691return shl_load ();
11692  ;
11693  return 0;
11694}
11695_ACEOF
11696if ac_fn_c_try_link "$LINENO"; then :
11697  ac_cv_lib_dld_shl_load=yes
11698else
11699  ac_cv_lib_dld_shl_load=no
11700fi
11701rm -f core conftest.err conftest.$ac_objext \
11702    conftest$ac_exeext conftest.$ac_ext
11703LIBS=$ac_check_lib_save_LIBS
11704fi
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11706$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11707if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11708  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11709else
11710  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11711if test "x$ac_cv_func_dlopen" = xyes; then :
11712  lt_cv_dlopen="dlopen"
11713else
11714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11715$as_echo_n "checking for dlopen in -ldl... " >&6; }
11716if ${ac_cv_lib_dl_dlopen+:} false; then :
11717  $as_echo_n "(cached) " >&6
11718else
11719  ac_check_lib_save_LIBS=$LIBS
11720LIBS="-ldl  $LIBS"
11721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722/* end confdefs.h.  */
11723
11724/* Override any GCC internal prototype to avoid an error.
11725   Use char because int might match the return type of a GCC
11726   builtin and then its argument prototype would still apply.  */
11727#ifdef __cplusplus
11728extern "C"
11729#endif
11730char dlopen ();
11731int
11732main ()
11733{
11734return dlopen ();
11735  ;
11736  return 0;
11737}
11738_ACEOF
11739if ac_fn_c_try_link "$LINENO"; then :
11740  ac_cv_lib_dl_dlopen=yes
11741else
11742  ac_cv_lib_dl_dlopen=no
11743fi
11744rm -f core conftest.err conftest.$ac_objext \
11745    conftest$ac_exeext conftest.$ac_ext
11746LIBS=$ac_check_lib_save_LIBS
11747fi
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11750if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11751  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11752else
11753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11754$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11755if ${ac_cv_lib_svld_dlopen+:} false; then :
11756  $as_echo_n "(cached) " >&6
11757else
11758  ac_check_lib_save_LIBS=$LIBS
11759LIBS="-lsvld  $LIBS"
11760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761/* end confdefs.h.  */
11762
11763/* Override any GCC internal prototype to avoid an error.
11764   Use char because int might match the return type of a GCC
11765   builtin and then its argument prototype would still apply.  */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
11769char dlopen ();
11770int
11771main ()
11772{
11773return dlopen ();
11774  ;
11775  return 0;
11776}
11777_ACEOF
11778if ac_fn_c_try_link "$LINENO"; then :
11779  ac_cv_lib_svld_dlopen=yes
11780else
11781  ac_cv_lib_svld_dlopen=no
11782fi
11783rm -f core conftest.err conftest.$ac_objext \
11784    conftest$ac_exeext conftest.$ac_ext
11785LIBS=$ac_check_lib_save_LIBS
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11788$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11789if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11790  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11791else
11792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11793$as_echo_n "checking for dld_link in -ldld... " >&6; }
11794if ${ac_cv_lib_dld_dld_link+:} false; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  ac_check_lib_save_LIBS=$LIBS
11798LIBS="-ldld  $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803   Use char because int might match the return type of a GCC
11804   builtin and then its argument prototype would still apply.  */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char dld_link ();
11809int
11810main ()
11811{
11812return dld_link ();
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"; then :
11818  ac_cv_lib_dld_dld_link=yes
11819else
11820  ac_cv_lib_dld_dld_link=no
11821fi
11822rm -f core conftest.err conftest.$ac_objext \
11823    conftest$ac_exeext conftest.$ac_ext
11824LIBS=$ac_check_lib_save_LIBS
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11827$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11828if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11829  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11830fi
11831
11832
11833fi
11834
11835
11836fi
11837
11838
11839fi
11840
11841
11842fi
11843
11844
11845fi
11846
11847    ;;
11848  esac
11849
11850  if test "x$lt_cv_dlopen" != xno; then
11851    enable_dlopen=yes
11852  else
11853    enable_dlopen=no
11854  fi
11855
11856  case $lt_cv_dlopen in
11857  dlopen)
11858    save_CPPFLAGS="$CPPFLAGS"
11859    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11860
11861    save_LDFLAGS="$LDFLAGS"
11862    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11863
11864    save_LIBS="$LIBS"
11865    LIBS="$lt_cv_dlopen_libs $LIBS"
11866
11867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11868$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11869if ${lt_cv_dlopen_self+:} false; then :
11870  $as_echo_n "(cached) " >&6
11871else
11872  	  if test "$cross_compiling" = yes; then :
11873  lt_cv_dlopen_self=cross
11874else
11875  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11876  lt_status=$lt_dlunknown
11877  cat > conftest.$ac_ext <<_LT_EOF
11878#line $LINENO "configure"
11879#include "confdefs.h"
11880
11881#if HAVE_DLFCN_H
11882#include <dlfcn.h>
11883#endif
11884
11885#include <stdio.h>
11886
11887#ifdef RTLD_GLOBAL
11888#  define LT_DLGLOBAL		RTLD_GLOBAL
11889#else
11890#  ifdef DL_GLOBAL
11891#    define LT_DLGLOBAL		DL_GLOBAL
11892#  else
11893#    define LT_DLGLOBAL		0
11894#  endif
11895#endif
11896
11897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11898   find out it does not work in some platform. */
11899#ifndef LT_DLLAZY_OR_NOW
11900#  ifdef RTLD_LAZY
11901#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11902#  else
11903#    ifdef DL_LAZY
11904#      define LT_DLLAZY_OR_NOW		DL_LAZY
11905#    else
11906#      ifdef RTLD_NOW
11907#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11908#      else
11909#        ifdef DL_NOW
11910#          define LT_DLLAZY_OR_NOW	DL_NOW
11911#        else
11912#          define LT_DLLAZY_OR_NOW	0
11913#        endif
11914#      endif
11915#    endif
11916#  endif
11917#endif
11918
11919/* When -fvisbility=hidden is used, assume the code has been annotated
11920   correspondingly for the symbols needed.  */
11921#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11922int fnord () __attribute__((visibility("default")));
11923#endif
11924
11925int fnord () { return 42; }
11926int main ()
11927{
11928  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11929  int status = $lt_dlunknown;
11930
11931  if (self)
11932    {
11933      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11934      else
11935        {
11936	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11937          else puts (dlerror ());
11938	}
11939      /* dlclose (self); */
11940    }
11941  else
11942    puts (dlerror ());
11943
11944  return status;
11945}
11946_LT_EOF
11947  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11948  (eval $ac_link) 2>&5
11949  ac_status=$?
11950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11951  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11952    (./conftest; exit; ) >&5 2>/dev/null
11953    lt_status=$?
11954    case x$lt_status in
11955      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11956      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11957      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11958    esac
11959  else :
11960    # compilation failed
11961    lt_cv_dlopen_self=no
11962  fi
11963fi
11964rm -fr conftest*
11965
11966
11967fi
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11969$as_echo "$lt_cv_dlopen_self" >&6; }
11970
11971    if test "x$lt_cv_dlopen_self" = xyes; then
11972      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11973      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11974$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11975if ${lt_cv_dlopen_self_static+:} false; then :
11976  $as_echo_n "(cached) " >&6
11977else
11978  	  if test "$cross_compiling" = yes; then :
11979  lt_cv_dlopen_self_static=cross
11980else
11981  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11982  lt_status=$lt_dlunknown
11983  cat > conftest.$ac_ext <<_LT_EOF
11984#line $LINENO "configure"
11985#include "confdefs.h"
11986
11987#if HAVE_DLFCN_H
11988#include <dlfcn.h>
11989#endif
11990
11991#include <stdio.h>
11992
11993#ifdef RTLD_GLOBAL
11994#  define LT_DLGLOBAL		RTLD_GLOBAL
11995#else
11996#  ifdef DL_GLOBAL
11997#    define LT_DLGLOBAL		DL_GLOBAL
11998#  else
11999#    define LT_DLGLOBAL		0
12000#  endif
12001#endif
12002
12003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12004   find out it does not work in some platform. */
12005#ifndef LT_DLLAZY_OR_NOW
12006#  ifdef RTLD_LAZY
12007#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12008#  else
12009#    ifdef DL_LAZY
12010#      define LT_DLLAZY_OR_NOW		DL_LAZY
12011#    else
12012#      ifdef RTLD_NOW
12013#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12014#      else
12015#        ifdef DL_NOW
12016#          define LT_DLLAZY_OR_NOW	DL_NOW
12017#        else
12018#          define LT_DLLAZY_OR_NOW	0
12019#        endif
12020#      endif
12021#    endif
12022#  endif
12023#endif
12024
12025/* When -fvisbility=hidden is used, assume the code has been annotated
12026   correspondingly for the symbols needed.  */
12027#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12028int fnord () __attribute__((visibility("default")));
12029#endif
12030
12031int fnord () { return 42; }
12032int main ()
12033{
12034  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12035  int status = $lt_dlunknown;
12036
12037  if (self)
12038    {
12039      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12040      else
12041        {
12042	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12043          else puts (dlerror ());
12044	}
12045      /* dlclose (self); */
12046    }
12047  else
12048    puts (dlerror ());
12049
12050  return status;
12051}
12052_LT_EOF
12053  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12054  (eval $ac_link) 2>&5
12055  ac_status=$?
12056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12058    (./conftest; exit; ) >&5 2>/dev/null
12059    lt_status=$?
12060    case x$lt_status in
12061      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12062      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12063      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12064    esac
12065  else :
12066    # compilation failed
12067    lt_cv_dlopen_self_static=no
12068  fi
12069fi
12070rm -fr conftest*
12071
12072
12073fi
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12075$as_echo "$lt_cv_dlopen_self_static" >&6; }
12076    fi
12077
12078    CPPFLAGS="$save_CPPFLAGS"
12079    LDFLAGS="$save_LDFLAGS"
12080    LIBS="$save_LIBS"
12081    ;;
12082  esac
12083
12084  case $lt_cv_dlopen_self in
12085  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12086  *) enable_dlopen_self=unknown ;;
12087  esac
12088
12089  case $lt_cv_dlopen_self_static in
12090  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12091  *) enable_dlopen_self_static=unknown ;;
12092  esac
12093fi
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111striplib=
12112old_striplib=
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12114$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12115if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12116  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12117  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12119$as_echo "yes" >&6; }
12120else
12121# FIXME - insert some real tests, host_os isn't really good enough
12122  case $host_os in
12123  darwin*)
12124    if test -n "$STRIP" ; then
12125      striplib="$STRIP -x"
12126      old_striplib="$STRIP -S"
12127      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128$as_echo "yes" >&6; }
12129    else
12130      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131$as_echo "no" >&6; }
12132    fi
12133    ;;
12134  *)
12135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136$as_echo "no" >&6; }
12137    ;;
12138  esac
12139fi
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152  # Report which library types will actually be built
12153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12154$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12156$as_echo "$can_build_shared" >&6; }
12157
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12159$as_echo_n "checking whether to build shared libraries... " >&6; }
12160  test "$can_build_shared" = "no" && enable_shared=no
12161
12162  # On AIX, shared libraries and static libraries use the same namespace, and
12163  # are all built from PIC.
12164  case $host_os in
12165  aix3*)
12166    test "$enable_shared" = yes && enable_static=no
12167    if test -n "$RANLIB"; then
12168      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12169      postinstall_cmds='$RANLIB $lib'
12170    fi
12171    ;;
12172
12173  aix[4-9]*)
12174    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12175      test "$enable_shared" = yes && enable_static=no
12176    fi
12177    ;;
12178  esac
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12180$as_echo "$enable_shared" >&6; }
12181
12182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12183$as_echo_n "checking whether to build static libraries... " >&6; }
12184  # Make sure either enable_shared or enable_static is yes.
12185  test "$enable_shared" = yes || enable_static=yes
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12187$as_echo "$enable_static" >&6; }
12188
12189
12190
12191
12192fi
12193ac_ext=c
12194ac_cpp='$CPP $CPPFLAGS'
12195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197ac_compiler_gnu=$ac_cv_c_compiler_gnu
12198
12199CC="$lt_save_CC"
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215        ac_config_commands="$ac_config_commands libtool"
12216
12217
12218
12219
12220# Only expand once:
12221
12222
12223
12224# LIBTOOL="$LIBTOOL --silent"
12225
12226
12227
12228for ac_header
12229do :
12230  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12233  cat >>confdefs.h <<_ACEOF
12234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12235_ACEOF
12236
12237fi
12238
12239done
12240
12241
12242THREAD_LIBS=-lpthread
12243
12244
12245
12246  ARCH=""
12247  LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
12248
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking target operating system" >&5
12250$as_echo_n "checking target operating system... " >&6; }
12251
12252  LIBBURNIA_LDCONFIG_CMD="echo 'No ldconfig run performed. If needed, configure manually for:'"
12253
12254  case $target in
12255    *-*-linux*)
12256      ARCH=linux
12257      LIBBURN_ARCH_LIBS=
12258      LIBBURNIA_LDCONFIG_CMD=ldconfig
12259      ;;
12260    *-*-freebsd*|*-*-dragonfly*)
12261      ARCH=freebsd
12262      LIBBURN_ARCH_LIBS=-lcam
12263      LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
12264      ;;
12265    *-kfreebsd*-gnu*)
12266      ARCH=freebsd
12267      LIBBURN_ARCH_LIBS=-lcam
12268      ;;
12269    *-solaris*)
12270      ARCH=solaris
12271      LIBBURN_ARCH_LIBS=-lvolmgt
12272      ;;
12273    *)
12274      ARCH=
12275      LIBBURN_ARCH_LIBS=
12276#      AC_ERROR([You are attempting to compile for an unsupported platform])
12277      ;;
12278  esac
12279
12280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH" >&5
12281$as_echo "$ARCH" >&6; }
12282
12283
12284
12285
12286
12287STATVFS_DEF=-DLibburn_os_has_statvfS
12288ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
12289if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
12290  X=
12291else
12292  STATVFS_DEF=
12293fi
12294
12295
12296ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
12297if test "x$ac_cv_func_statvfs" = xyes; then :
12298  X=
12299else
12300  STATVFS_DEF=
12301fi
12302
12303CFLAGS="$STATVFS_DEF $CFLAGS"
12304
12305# Check whether --enable-track-src-odirect was given.
12306if test "${enable_track_src_odirect+set}" = set; then :
12307  enableval=$enable_track_src_odirect;
12308else
12309  enable_track_src_odirect=no
12310fi
12311
12312if test x$enable_track_src_odirect = xyes; then
12313#    LIBBURN_O_DIRECT_DEF="-DLibburn_read_o_direcT"
12314#    echo "enabled  use of O_DIRECT with track input"
12315    echo "REFUSED  to enable use of O_DIRECT with track input because of cdrskin multi-track bug"
12316else
12317    LIBBURN_O_DIRECT_DEF=
12318    echo "disabled use of O_DIRECT with track input"
12319fi
12320CFLAGS="$LIBBURN_O_DIRECT_DEF $CFLAGS"
12321
12322# Check whether --enable-dvd-obs-64k was given.
12323if test "${enable_dvd_obs_64k+set}" = set; then :
12324  enableval=$enable_dvd_obs_64k;
12325else
12326  enable_dvd_obs_64k=no
12327fi
12328
12329if test x$enable_dvd_obs_64k = xyes; then
12330    LIBBURN_DVD_OBS_64K="-DLibburn_dvd_obs_default_64K"
12331    echo "enabled  write size default 64 KB on DVD"
12332else
12333    LIBBURN_DVD_OBS_64K=
12334    echo "disabled write size default 64 KB on DVD"
12335fi
12336CFLAGS="$LIBBURN_DVD_OBS_64K $CFLAGS"
12337
12338# Check whether --enable-dvd-obs-pad was given.
12339if test "${enable_dvd_obs_pad+set}" = set; then :
12340  enableval=$enable_dvd_obs_pad;
12341else
12342  enable_dvd_obs_pad=no
12343fi
12344
12345if test x$enable_dvd_obs_pad = xyes; then
12346    LIBBURN_DVD_OBS_PAD="-DLibburn_dvd_always_obs_paD"
12347    echo "enabled  padding of DVD DAO sessions to 32 or 64 KB"
12348else
12349    LIBBURN_DVD_OBS_64K=
12350    echo "disabled padding of DVD DAO sessions to 32 or 64 KB"
12351fi
12352CFLAGS="$LIBBURN_DVD_OBS_PAD $CFLAGS"
12353
12354case $host_os in
12355    cygwin*|mingw*)
12356        default_libcdio=yes
12357        ;;
12358    *)
12359        default_libcdio=no
12360        ;;
12361esac
12362# Check for proper library versions if this is desired.
12363# (It fails too often on too many systems.)
12364# Check whether --enable-pkg-check-modules was given.
12365if test "${enable_pkg_check_modules+set}" = set; then :
12366  enableval=$enable_pkg_check_modules;
12367else
12368  enable_pkg_check_modules=no
12369fi
12370
12371# Check whether --enable-libcdio was given.
12372if test "${enable_libcdio+set}" = set; then :
12373  enableval=$enable_libcdio;
12374else
12375  enable_libcdio=$default_libcdio
12376fi
12377
12378
12379
12380
12381
12382
12383
12384
12385if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12386	if test -n "$ac_tool_prefix"; then
12387  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390$as_echo_n "checking for $ac_word... " >&6; }
12391if ${ac_cv_path_PKG_CONFIG+:} false; then :
12392  $as_echo_n "(cached) " >&6
12393else
12394  case $PKG_CONFIG in
12395  [\\/]* | ?:[\\/]*)
12396  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12397  ;;
12398  *)
12399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $PATH
12401do
12402  IFS=$as_save_IFS
12403  test -z "$as_dir" && as_dir=.
12404    for ac_exec_ext in '' $ac_executable_extensions; do
12405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408    break 2
12409  fi
12410done
12411  done
12412IFS=$as_save_IFS
12413
12414  ;;
12415esac
12416fi
12417PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12418if test -n "$PKG_CONFIG"; then
12419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12420$as_echo "$PKG_CONFIG" >&6; }
12421else
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
12424fi
12425
12426
12427fi
12428if test -z "$ac_cv_path_PKG_CONFIG"; then
12429  ac_pt_PKG_CONFIG=$PKG_CONFIG
12430  # Extract the first word of "pkg-config", so it can be a program name with args.
12431set dummy pkg-config; ac_word=$2
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433$as_echo_n "checking for $ac_word... " >&6; }
12434if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12435  $as_echo_n "(cached) " >&6
12436else
12437  case $ac_pt_PKG_CONFIG in
12438  [\\/]* | ?:[\\/]*)
12439  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12440  ;;
12441  *)
12442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445  IFS=$as_save_IFS
12446  test -z "$as_dir" && as_dir=.
12447    for ac_exec_ext in '' $ac_executable_extensions; do
12448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451    break 2
12452  fi
12453done
12454  done
12455IFS=$as_save_IFS
12456
12457  ;;
12458esac
12459fi
12460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12461if test -n "$ac_pt_PKG_CONFIG"; then
12462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12463$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12464else
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
12467fi
12468
12469  if test "x$ac_pt_PKG_CONFIG" = x; then
12470    PKG_CONFIG=""
12471  else
12472    case $cross_compiling:$ac_tool_warned in
12473yes:)
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12476ac_tool_warned=yes ;;
12477esac
12478    PKG_CONFIG=$ac_pt_PKG_CONFIG
12479  fi
12480else
12481  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12482fi
12483
12484fi
12485if test -n "$PKG_CONFIG"; then
12486	_pkg_min_version=0.9.0
12487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12488$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12489	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12490		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491$as_echo "yes" >&6; }
12492	else
12493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495		PKG_CONFIG=""
12496	fi
12497fi
12498if test x$enable_libcdio = xyes; then
12499    LIBCDIO_DEF="-DLibburn_use_libcdiO"
12500    ac_fn_c_check_header_mongrel "$LINENO" "cdio/cdio.h" "ac_cv_header_cdio_cdio_h" "$ac_includes_default"
12501if test "x$ac_cv_header_cdio_cdio_h" = xyes; then :
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmc_last_cmd_sense in -lcdio" >&5
12503$as_echo_n "checking for mmc_last_cmd_sense in -lcdio... " >&6; }
12504if ${ac_cv_lib_cdio_mmc_last_cmd_sense+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  ac_check_lib_save_LIBS=$LIBS
12508LIBS="-lcdio  $LIBS"
12509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h.  */
12511
12512/* Override any GCC internal prototype to avoid an error.
12513   Use char because int might match the return type of a GCC
12514   builtin and then its argument prototype would still apply.  */
12515#ifdef __cplusplus
12516extern "C"
12517#endif
12518char mmc_last_cmd_sense ();
12519int
12520main ()
12521{
12522return mmc_last_cmd_sense ();
12523  ;
12524  return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_link "$LINENO"; then :
12528  ac_cv_lib_cdio_mmc_last_cmd_sense=yes
12529else
12530  ac_cv_lib_cdio_mmc_last_cmd_sense=no
12531fi
12532rm -f core conftest.err conftest.$ac_objext \
12533    conftest$ac_exeext conftest.$ac_ext
12534LIBS=$ac_check_lib_save_LIBS
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdio_mmc_last_cmd_sense" >&5
12537$as_echo "$ac_cv_lib_cdio_mmc_last_cmd_sense" >&6; }
12538if test "x$ac_cv_lib_cdio_mmc_last_cmd_sense" = xyes; then :
12539  cat >>confdefs.h <<_ACEOF
12540#define HAVE_LIBCDIO 1
12541_ACEOF
12542
12543  LIBS="-lcdio $LIBS"
12544
12545else
12546  LIBCDIO_DEF=
12547fi
12548
12549else
12550  LIBCDIO_DEF=
12551fi
12552
12553
12554else
12555    LIBCDIO_DEF=
12556fi
12557if test x$LIBCDIO_DEF = x
12558then
12559    if test x$enable_libcdio = xyes
12560    then
12561      echo "WARNING: could not enable use of libcdio as system adapter"
12562    fi
12563else
12564    echo "enabled  use of libcdio as system adapter"
12565    CFLAGS="$LIBCDIO_DEF $CFLAGS"
12566
12567    if test x$enable_pkg_check_modules = xyes; then
12568        LIBCDIO_REQUIRED=0.83
12569
12570pkg_failed=no
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCDIO" >&5
12572$as_echo_n "checking for LIBCDIO... " >&6; }
12573
12574if test -n "$LIBCDIO_CFLAGS"; then
12575    pkg_cv_LIBCDIO_CFLAGS="$LIBCDIO_CFLAGS"
12576 elif test -n "$PKG_CONFIG"; then
12577    if test -n "$PKG_CONFIG" && \
12578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdio >= \$LIBCDIO_REQUIRED\""; } >&5
12579  ($PKG_CONFIG --exists --print-errors "libcdio >= $LIBCDIO_REQUIRED") 2>&5
12580  ac_status=$?
12581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582  test $ac_status = 0; }; then
12583  pkg_cv_LIBCDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= $LIBCDIO_REQUIRED" 2>/dev/null`
12584		      test "x$?" != "x0" && pkg_failed=yes
12585else
12586  pkg_failed=yes
12587fi
12588 else
12589    pkg_failed=untried
12590fi
12591if test -n "$LIBCDIO_LIBS"; then
12592    pkg_cv_LIBCDIO_LIBS="$LIBCDIO_LIBS"
12593 elif test -n "$PKG_CONFIG"; then
12594    if test -n "$PKG_CONFIG" && \
12595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdio >= \$LIBCDIO_REQUIRED\""; } >&5
12596  ($PKG_CONFIG --exists --print-errors "libcdio >= $LIBCDIO_REQUIRED") 2>&5
12597  ac_status=$?
12598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12599  test $ac_status = 0; }; then
12600  pkg_cv_LIBCDIO_LIBS=`$PKG_CONFIG --libs "libcdio >= $LIBCDIO_REQUIRED" 2>/dev/null`
12601		      test "x$?" != "x0" && pkg_failed=yes
12602else
12603  pkg_failed=yes
12604fi
12605 else
12606    pkg_failed=untried
12607fi
12608
12609
12610
12611if test $pkg_failed = yes; then
12612   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
12614
12615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12616        _pkg_short_errors_supported=yes
12617else
12618        _pkg_short_errors_supported=no
12619fi
12620        if test $_pkg_short_errors_supported = yes; then
12621	        LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdio >= $LIBCDIO_REQUIRED" 2>&1`
12622        else
12623	        LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdio >= $LIBCDIO_REQUIRED" 2>&1`
12624        fi
12625	# Put the nasty error message in config.log where it belongs
12626	echo "$LIBCDIO_PKG_ERRORS" >&5
12627
12628	as_fn_error $? "Package requirements (libcdio >= $LIBCDIO_REQUIRED) were not met:
12629
12630$LIBCDIO_PKG_ERRORS
12631
12632Consider adjusting the PKG_CONFIG_PATH environment variable if you
12633installed software in a non-standard prefix.
12634
12635Alternatively, you may set the environment variables LIBCDIO_CFLAGS
12636and LIBCDIO_LIBS to avoid the need to call pkg-config.
12637See the pkg-config man page for more details." "$LINENO" 5
12638elif test $pkg_failed = untried; then
12639     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640$as_echo "no" >&6; }
12641	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12643as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12644is in your PATH or set the PKG_CONFIG environment variable to the full
12645path to pkg-config.
12646
12647Alternatively, you may set the environment variables LIBCDIO_CFLAGS
12648and LIBCDIO_LIBS to avoid the need to call pkg-config.
12649See the pkg-config man page for more details.
12650
12651To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12652See \`config.log' for more details" "$LINENO" 5; }
12653else
12654	LIBCDIO_CFLAGS=$pkg_cv_LIBCDIO_CFLAGS
12655	LIBCDIO_LIBS=$pkg_cv_LIBCDIO_LIBS
12656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12657$as_echo "yes" >&6; }
12658
12659fi
12660    else
12661        echo "checking for LIBCDIO... skipped, no --enable-pkg-check-modules"
12662    fi
12663fi
12664
12665# There are Linuxes with no public generic SCSI interface
12666
12667
12668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing scsi/scsi.h on Linux" >&5
12669$as_echo_n "checking for missing scsi/scsi.h on Linux... " >&6; }
12670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h.  */
12672
12673#ifdef __linux
12674#include <scsi/scsi.h>
12675#endif
12676
12677int
12678main ()
12679{
12680;
12681  ;
12682  return 0;
12683}
12684_ACEOF
12685if ac_fn_c_try_compile "$LINENO"; then :
12686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
12688else
12689  $as_echo "#define Libburn_use_sg_dummY yes" >>confdefs.h
12690
12691      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692$as_echo "yes" >&6; }
12693
12694fi
12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696
12697
12698# Library versioning normally serves a complex purpose.
12699# Since libburn obeys strict ABI backward compatibility, it needs only the
12700# simple feature to declare function names "global:" or "local:". Only the
12701# global ones are visible to applications at library load time.
12702# Check whether --enable-versioned-libs was given.
12703if test "${enable_versioned_libs+set}" = set; then :
12704  enableval=$enable_versioned_libs;
12705else
12706  enable_versioned_libs=yes
12707fi
12708
12709if test x$enable_versioned_libs = xyes; then
12710    vers_libs_test=no
12711
12712    libburnia_save_LDFLAGS="$LDFLAGS"
12713    LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/libburn/libburn.ver"
12714    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715/* end confdefs.h.  */
12716#include <stdio.h>
12717int
12718main ()
12719{
12720printf("Hello\n");
12721  ;
12722  return 0;
12723}
12724_ACEOF
12725if ac_fn_c_try_link "$LINENO"; then :
12726  vers_libs_test="yes"
12727else
12728  vers_libs_test="no"
12729fi
12730rm -f core conftest.err conftest.$ac_objext \
12731    conftest$ac_exeext conftest.$ac_ext
12732    if test x$vers_libs_test = xyes
12733    then
12734        LIBLDFLAGS="-Wl,--version-script=$srcdir/libburn/libburn.ver"
12735    fi
12736    LDFLAGS="$libburnia_save_LDFLAGS"
12737
12738
12739    if test x$vers_libs_test = xno
12740    then
12741        echo "disabled strict symbol encapsulation (test failed)"
12742    else
12743        echo "enabled  strict symbol encapsulation"
12744    fi
12745else
12746    echo "disabled strict symbol encapsulation"
12747fi
12748
12749# Check for system dependent mandatory libraries (LIBBURN_ARCH_LIBS)
12750
12751    libburnia_save_LIBS="$LIBS"
12752    if test "x$LIBBURN_ARCH_LIBS" = x
12753    then
12754      dummy=dummy
12755    else
12756      LIBS="$LIBS $LIBBURN_ARCH_LIBS"
12757      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758/* end confdefs.h.  */
12759#include <stdio.h>
12760int
12761main ()
12762{
12763printf("Hello\n");
12764  ;
12765  return 0;
12766}
12767_ACEOF
12768if ac_fn_c_try_link "$LINENO"; then :
12769  archlibs_test="yes"
12770else
12771  archlibs_test="no"
12772fi
12773rm -f core conftest.err conftest.$ac_objext \
12774    conftest$ac_exeext conftest.$ac_ext
12775      LIBS="$libburnia_save_LIBS"
12776      if test x$archlibs_test = xno
12777      then
12778        if test x"mandatory" = xmandatory
12779        then
12780          echo >&2
12781          echo "FATAL: Test linking with mandatory library options failed: $LIBBURN_ARCH_LIBS" >&2
12782          echo >&2
12783          (exit 1); exit 1;
12784        else
12785          echo "disabled linking with $LIBBURN_ARCH_LIBS (because not found)"
12786          LIBBURN_ARCH_LIBS=""
12787        fi
12788      else
12789        echo "enabled  linking with $LIBBURN_ARCH_LIBS"
12790      fi
12791    fi
12792
12793
12794# Check whether --enable-ldconfig-at-install was given.
12795if test "${enable_ldconfig_at_install+set}" = set; then :
12796  enableval=$enable_ldconfig_at_install;
12797else
12798  ldconfig_at_install=yes
12799fi
12800
12801if test x$ldconfig_at_install = xyes; then
12802    dummy=dummy
12803else
12804    LIBBURNIA_LDCONFIG_CMD="echo 'NOTE: ldconfig is disabled. If needed, configure manually for:'"
12805    echo "disabled run of ldconfig during installation on GNU/Linux"
12806fi
12807
12808
12809
12810
12811# Check whether --enable-debug was given.
12812if test "${enable_debug+set}" = set; then :
12813  enableval=$enable_debug;
12814else
12815  enable_debug=yes
12816fi
12817
12818if test x$enable_debug != xyes; then
12819    if test x$GCC = xyes; then
12820        CFLAGS="-O3 $CFLAGS"
12821        CFLAGS="-fexpensive-optimizations $CFLAGS"
12822    fi
12823    CFLAGS="-DNDEBUG $CFLAGS"
12824else
12825    if test x$GCC = xyes; then
12826        CFLAGS="-g -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-char-subscripts $CFLAGS"
12827    fi
12828    CFLAGS="-DDEBUG $CFLAGS"
12829fi
12830
12831
12832### for testing --enable-libdir-pkgconfig on Linux
12833### LIBBURNIA_PKGCONFDIR="$libdir"data/pkgconfig
12834
12835if test "x$LIBBURNIA_PKGCONFDIR" = "x$libdir"/pkgconfig
12836then
12837  dummy=dummy
12838else
12839  # Check whether --enable-libdir-pkgconfig was given.
12840if test "${enable_libdir_pkgconfig+set}" = set; then :
12841  enableval=$enable_libdir_pkgconfig;
12842else
12843  enable_libdir_pkgconfig="no"
12844fi
12845
12846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libdir-pkgconfig" >&5
12847$as_echo_n "checking for --enable-libdir-pkgconfig... " >&6; }
12848  if test "x$enable_libdir_pkgconfig" = xyes
12849  then
12850    LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
12851  fi
12852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdir_pkgconfig" >&5
12853$as_echo "$enable_libdir_pkgconfig" >&6; }
12854fi
12855
12856libburnia_pkgconfig_override="no"
12857# Check whether --enable-pkgconfig-path was given.
12858if test "${enable_pkgconfig_path+set}" = set; then :
12859  enableval=$enable_pkgconfig_path; libburnia_pkgconfig_override="yes"
12860else
12861  enable_pkgconfig_path="none"
12862fi
12863
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for overridden pkgconfig directory path" >&5
12865$as_echo_n "checking for overridden pkgconfig directory path... " >&6; }
12866if test "x$enable_pkgconfig_path" = xno
12867then
12868  libburnia_pkgconfig_override="no"
12869fi
12870if test "x$enable_pkgconfig_path" = x -o "x$enable_pkgconfig_path" = xyes
12871then
12872  libburnia_pkgconfig_override="invalid argument"
12873fi
12874if test "x$libburnia_pkgconfig_override" = xyes
12875then
12876  LIBBURNIA_PKGCONFDIR="$enable_pkgconfig_path"
12877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBURNIA_PKGCONFDIR" >&5
12878$as_echo "$LIBBURNIA_PKGCONFDIR" >&6; }
12879else
12880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libburnia_pkgconfig_override" >&5
12881$as_echo "$libburnia_pkgconfig_override" >&6; }
12882fi
12883
12884
12885### AC_MSG_RESULT([LIBBURNIA_PKGCONFDIR = $LIBBURNIA_PKGCONFDIR])
12886
12887
12888
12889
12890ac_config_files="$ac_config_files Makefile doc/doxygen.conf version.h libburn-1.pc"
12891
12892cat >confcache <<\_ACEOF
12893# This file is a shell script that caches the results of configure
12894# tests run on this system so they can be shared between configure
12895# scripts and configure runs, see configure's option --config-cache.
12896# It is not useful on other systems.  If it contains results you don't
12897# want to keep, you may remove or edit it.
12898#
12899# config.status only pays attention to the cache file if you give it
12900# the --recheck option to rerun configure.
12901#
12902# `ac_cv_env_foo' variables (set or unset) will be overridden when
12903# loading this file, other *unset* `ac_cv_foo' will be assigned the
12904# following values.
12905
12906_ACEOF
12907
12908# The following way of writing the cache mishandles newlines in values,
12909# but we know of no workaround that is simple, portable, and efficient.
12910# So, we kill variables containing newlines.
12911# Ultrix sh set writes to stderr and can't be redirected directly,
12912# and sets the high bit in the cache file unless we assign to the vars.
12913(
12914  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12915    eval ac_val=\$$ac_var
12916    case $ac_val in #(
12917    *${as_nl}*)
12918      case $ac_var in #(
12919      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12920$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12921      esac
12922      case $ac_var in #(
12923      _ | IFS | as_nl) ;; #(
12924      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12925      *) { eval $ac_var=; unset $ac_var;} ;;
12926      esac ;;
12927    esac
12928  done
12929
12930  (set) 2>&1 |
12931    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12932    *${as_nl}ac_space=\ *)
12933      # `set' does not quote correctly, so add quotes: double-quote
12934      # substitution turns \\\\ into \\, and sed turns \\ into \.
12935      sed -n \
12936	"s/'/'\\\\''/g;
12937	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12938      ;; #(
12939    *)
12940      # `set' quotes correctly as required by POSIX, so do not add quotes.
12941      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12942      ;;
12943    esac |
12944    sort
12945) |
12946  sed '
12947     /^ac_cv_env_/b end
12948     t clear
12949     :clear
12950     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12951     t end
12952     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12953     :end' >>confcache
12954if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12955  if test -w "$cache_file"; then
12956    if test "x$cache_file" != "x/dev/null"; then
12957      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12958$as_echo "$as_me: updating cache $cache_file" >&6;}
12959      if test ! -f "$cache_file" || test -h "$cache_file"; then
12960	cat confcache >"$cache_file"
12961      else
12962        case $cache_file in #(
12963        */* | ?:*)
12964	  mv -f confcache "$cache_file"$$ &&
12965	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12966        *)
12967	  mv -f confcache "$cache_file" ;;
12968	esac
12969      fi
12970    fi
12971  else
12972    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12973$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12974  fi
12975fi
12976rm -f confcache
12977
12978test "x$prefix" = xNONE && prefix=$ac_default_prefix
12979# Let make expand exec_prefix.
12980test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12981
12982# Transform confdefs.h into DEFS.
12983# Protect against shell expansion while executing Makefile rules.
12984# Protect against Makefile macro expansion.
12985#
12986# If the first sed substitution is executed (which looks for macros that
12987# take arguments), then branch to the quote section.  Otherwise,
12988# look for a macro that doesn't take arguments.
12989ac_script='
12990:mline
12991/\\$/{
12992 N
12993 s,\\\n,,
12994 b mline
12995}
12996t clear
12997:clear
12998s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12999t quote
13000s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
13001t quote
13002b any
13003:quote
13004s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13005s/\[/\\&/g
13006s/\]/\\&/g
13007s/\$/$$/g
13008H
13009:any
13010${
13011	g
13012	s/^\n//
13013	s/\n/ /g
13014	p
13015}
13016'
13017DEFS=`sed -n "$ac_script" confdefs.h`
13018
13019
13020ac_libobjs=
13021ac_ltlibobjs=
13022U=
13023for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13024  # 1. Remove the extension, and $U if already installed.
13025  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13026  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13027  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13028  #    will be set to the directory where LIBOBJS objects are built.
13029  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13030  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13031done
13032LIBOBJS=$ac_libobjs
13033
13034LTLIBOBJS=$ac_ltlibobjs
13035
13036
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13038$as_echo_n "checking that generated files are newer than configure... " >&6; }
13039   if test -n "$am_sleep_pid"; then
13040     # Hide warnings about reused PIDs.
13041     wait $am_sleep_pid 2>/dev/null
13042   fi
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13044$as_echo "done" >&6; }
13045 if test -n "$EXEEXT"; then
13046  am__EXEEXT_TRUE=
13047  am__EXEEXT_FALSE='#'
13048else
13049  am__EXEEXT_TRUE='#'
13050  am__EXEEXT_FALSE=
13051fi
13052
13053if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13054  as_fn_error $? "conditional \"AMDEP\" was never defined.
13055Usually this means the macro was only invoked conditionally." "$LINENO" 5
13056fi
13057if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13058  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13059Usually this means the macro was only invoked conditionally." "$LINENO" 5
13060fi
13061
13062
13063: "${CONFIG_STATUS=./config.status}"
13064ac_write_fail=0
13065ac_clean_files_save=$ac_clean_files
13066ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13068$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13069as_write_fail=0
13070cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13071#! $SHELL
13072# Generated by $as_me.
13073# Run this file to recreate the current configuration.
13074# Compiler output produced by configure, useful for debugging
13075# configure, is in config.log if it exists.
13076
13077debug=false
13078ac_cs_recheck=false
13079ac_cs_silent=false
13080
13081SHELL=\${CONFIG_SHELL-$SHELL}
13082export SHELL
13083_ASEOF
13084cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13085## -------------------- ##
13086## M4sh Initialization. ##
13087## -------------------- ##
13088
13089# Be more Bourne compatible
13090DUALCASE=1; export DUALCASE # for MKS sh
13091if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13092  emulate sh
13093  NULLCMD=:
13094  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13095  # is contrary to our usage.  Disable this feature.
13096  alias -g '${1+"$@"}'='"$@"'
13097  setopt NO_GLOB_SUBST
13098else
13099  case `(set -o) 2>/dev/null` in #(
13100  *posix*) :
13101    set -o posix ;; #(
13102  *) :
13103     ;;
13104esac
13105fi
13106
13107
13108as_nl='
13109'
13110export as_nl
13111# Printing a long string crashes Solaris 7 /usr/bin/printf.
13112as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13113as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13114as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13115# Prefer a ksh shell builtin over an external printf program on Solaris,
13116# but without wasting forks for bash or zsh.
13117if test -z "$BASH_VERSION$ZSH_VERSION" \
13118    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13119  as_echo='print -r --'
13120  as_echo_n='print -rn --'
13121elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13122  as_echo='printf %s\n'
13123  as_echo_n='printf %s'
13124else
13125  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13126    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13127    as_echo_n='/usr/ucb/echo -n'
13128  else
13129    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13130    as_echo_n_body='eval
13131      arg=$1;
13132      case $arg in #(
13133      *"$as_nl"*)
13134	expr "X$arg" : "X\\(.*\\)$as_nl";
13135	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13136      esac;
13137      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13138    '
13139    export as_echo_n_body
13140    as_echo_n='sh -c $as_echo_n_body as_echo'
13141  fi
13142  export as_echo_body
13143  as_echo='sh -c $as_echo_body as_echo'
13144fi
13145
13146# The user is always right.
13147if test "${PATH_SEPARATOR+set}" != set; then
13148  PATH_SEPARATOR=:
13149  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13150    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13151      PATH_SEPARATOR=';'
13152  }
13153fi
13154
13155
13156# IFS
13157# We need space, tab and new line, in precisely that order.  Quoting is
13158# there to prevent editors from complaining about space-tab.
13159# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13160# splitting by setting IFS to empty value.)
13161IFS=" ""	$as_nl"
13162
13163# Find who we are.  Look in the path if we contain no directory separator.
13164as_myself=
13165case $0 in #((
13166  *[\\/]* ) as_myself=$0 ;;
13167  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168for as_dir in $PATH
13169do
13170  IFS=$as_save_IFS
13171  test -z "$as_dir" && as_dir=.
13172    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13173  done
13174IFS=$as_save_IFS
13175
13176     ;;
13177esac
13178# We did not find ourselves, most probably we were run as `sh COMMAND'
13179# in which case we are not to be found in the path.
13180if test "x$as_myself" = x; then
13181  as_myself=$0
13182fi
13183if test ! -f "$as_myself"; then
13184  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13185  exit 1
13186fi
13187
13188# Unset variables that we do not need and which cause bugs (e.g. in
13189# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13190# suppresses any "Segmentation fault" message there.  '((' could
13191# trigger a bug in pdksh 5.2.14.
13192for as_var in BASH_ENV ENV MAIL MAILPATH
13193do eval test x\${$as_var+set} = xset \
13194  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13195done
13196PS1='$ '
13197PS2='> '
13198PS4='+ '
13199
13200# NLS nuisances.
13201LC_ALL=C
13202export LC_ALL
13203LANGUAGE=C
13204export LANGUAGE
13205
13206# CDPATH.
13207(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13208
13209
13210# as_fn_error STATUS ERROR [LINENO LOG_FD]
13211# ----------------------------------------
13212# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13213# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13214# script with STATUS, using 1 if that was 0.
13215as_fn_error ()
13216{
13217  as_status=$1; test $as_status -eq 0 && as_status=1
13218  if test "$4"; then
13219    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13220    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13221  fi
13222  $as_echo "$as_me: error: $2" >&2
13223  as_fn_exit $as_status
13224} # as_fn_error
13225
13226
13227# as_fn_set_status STATUS
13228# -----------------------
13229# Set $? to STATUS, without forking.
13230as_fn_set_status ()
13231{
13232  return $1
13233} # as_fn_set_status
13234
13235# as_fn_exit STATUS
13236# -----------------
13237# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13238as_fn_exit ()
13239{
13240  set +e
13241  as_fn_set_status $1
13242  exit $1
13243} # as_fn_exit
13244
13245# as_fn_unset VAR
13246# ---------------
13247# Portably unset VAR.
13248as_fn_unset ()
13249{
13250  { eval $1=; unset $1;}
13251}
13252as_unset=as_fn_unset
13253# as_fn_append VAR VALUE
13254# ----------------------
13255# Append the text in VALUE to the end of the definition contained in VAR. Take
13256# advantage of any shell optimizations that allow amortized linear growth over
13257# repeated appends, instead of the typical quadratic growth present in naive
13258# implementations.
13259if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13260  eval 'as_fn_append ()
13261  {
13262    eval $1+=\$2
13263  }'
13264else
13265  as_fn_append ()
13266  {
13267    eval $1=\$$1\$2
13268  }
13269fi # as_fn_append
13270
13271# as_fn_arith ARG...
13272# ------------------
13273# Perform arithmetic evaluation on the ARGs, and store the result in the
13274# global $as_val. Take advantage of shells that can avoid forks. The arguments
13275# must be portable across $(()) and expr.
13276if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13277  eval 'as_fn_arith ()
13278  {
13279    as_val=$(( $* ))
13280  }'
13281else
13282  as_fn_arith ()
13283  {
13284    as_val=`expr "$@" || test $? -eq 1`
13285  }
13286fi # as_fn_arith
13287
13288
13289if expr a : '\(a\)' >/dev/null 2>&1 &&
13290   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13291  as_expr=expr
13292else
13293  as_expr=false
13294fi
13295
13296if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13297  as_basename=basename
13298else
13299  as_basename=false
13300fi
13301
13302if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13303  as_dirname=dirname
13304else
13305  as_dirname=false
13306fi
13307
13308as_me=`$as_basename -- "$0" ||
13309$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13310	 X"$0" : 'X\(//\)$' \| \
13311	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13312$as_echo X/"$0" |
13313    sed '/^.*\/\([^/][^/]*\)\/*$/{
13314	    s//\1/
13315	    q
13316	  }
13317	  /^X\/\(\/\/\)$/{
13318	    s//\1/
13319	    q
13320	  }
13321	  /^X\/\(\/\).*/{
13322	    s//\1/
13323	    q
13324	  }
13325	  s/.*/./; q'`
13326
13327# Avoid depending upon Character Ranges.
13328as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13329as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13330as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13331as_cr_digits='0123456789'
13332as_cr_alnum=$as_cr_Letters$as_cr_digits
13333
13334ECHO_C= ECHO_N= ECHO_T=
13335case `echo -n x` in #(((((
13336-n*)
13337  case `echo 'xy\c'` in
13338  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13339  xy)  ECHO_C='\c';;
13340  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13341       ECHO_T='	';;
13342  esac;;
13343*)
13344  ECHO_N='-n';;
13345esac
13346
13347rm -f conf$$ conf$$.exe conf$$.file
13348if test -d conf$$.dir; then
13349  rm -f conf$$.dir/conf$$.file
13350else
13351  rm -f conf$$.dir
13352  mkdir conf$$.dir 2>/dev/null
13353fi
13354if (echo >conf$$.file) 2>/dev/null; then
13355  if ln -s conf$$.file conf$$ 2>/dev/null; then
13356    as_ln_s='ln -s'
13357    # ... but there are two gotchas:
13358    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13359    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13360    # In both cases, we have to default to `cp -pR'.
13361    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13362      as_ln_s='cp -pR'
13363  elif ln conf$$.file conf$$ 2>/dev/null; then
13364    as_ln_s=ln
13365  else
13366    as_ln_s='cp -pR'
13367  fi
13368else
13369  as_ln_s='cp -pR'
13370fi
13371rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13372rmdir conf$$.dir 2>/dev/null
13373
13374
13375# as_fn_mkdir_p
13376# -------------
13377# Create "$as_dir" as a directory, including parents if necessary.
13378as_fn_mkdir_p ()
13379{
13380
13381  case $as_dir in #(
13382  -*) as_dir=./$as_dir;;
13383  esac
13384  test -d "$as_dir" || eval $as_mkdir_p || {
13385    as_dirs=
13386    while :; do
13387      case $as_dir in #(
13388      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13389      *) as_qdir=$as_dir;;
13390      esac
13391      as_dirs="'$as_qdir' $as_dirs"
13392      as_dir=`$as_dirname -- "$as_dir" ||
13393$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13394	 X"$as_dir" : 'X\(//\)[^/]' \| \
13395	 X"$as_dir" : 'X\(//\)$' \| \
13396	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13397$as_echo X"$as_dir" |
13398    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13399	    s//\1/
13400	    q
13401	  }
13402	  /^X\(\/\/\)[^/].*/{
13403	    s//\1/
13404	    q
13405	  }
13406	  /^X\(\/\/\)$/{
13407	    s//\1/
13408	    q
13409	  }
13410	  /^X\(\/\).*/{
13411	    s//\1/
13412	    q
13413	  }
13414	  s/.*/./; q'`
13415      test -d "$as_dir" && break
13416    done
13417    test -z "$as_dirs" || eval "mkdir $as_dirs"
13418  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13419
13420
13421} # as_fn_mkdir_p
13422if mkdir -p . 2>/dev/null; then
13423  as_mkdir_p='mkdir -p "$as_dir"'
13424else
13425  test -d ./-p && rmdir ./-p
13426  as_mkdir_p=false
13427fi
13428
13429
13430# as_fn_executable_p FILE
13431# -----------------------
13432# Test if FILE is an executable regular file.
13433as_fn_executable_p ()
13434{
13435  test -f "$1" && test -x "$1"
13436} # as_fn_executable_p
13437as_test_x='test -x'
13438as_executable_p=as_fn_executable_p
13439
13440# Sed expression to map a string onto a valid CPP name.
13441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13442
13443# Sed expression to map a string onto a valid variable name.
13444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13445
13446
13447exec 6>&1
13448## ----------------------------------- ##
13449## Main body of $CONFIG_STATUS script. ##
13450## ----------------------------------- ##
13451_ASEOF
13452test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13453
13454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13455# Save the log message, to keep $0 and so on meaningful, and to
13456# report actual input values of CONFIG_FILES etc. instead of their
13457# values after options handling.
13458ac_log="
13459This file was extended by libburn $as_me 1.5.4, which was
13460generated by GNU Autoconf 2.69.  Invocation command line was
13461
13462  CONFIG_FILES    = $CONFIG_FILES
13463  CONFIG_HEADERS  = $CONFIG_HEADERS
13464  CONFIG_LINKS    = $CONFIG_LINKS
13465  CONFIG_COMMANDS = $CONFIG_COMMANDS
13466  $ $0 $@
13467
13468on `(hostname || uname -n) 2>/dev/null | sed 1q`
13469"
13470
13471_ACEOF
13472
13473case $ac_config_files in *"
13474"*) set x $ac_config_files; shift; ac_config_files=$*;;
13475esac
13476
13477
13478
13479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13480# Files that config.status was made for.
13481config_files="$ac_config_files"
13482config_commands="$ac_config_commands"
13483
13484_ACEOF
13485
13486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13487ac_cs_usage="\
13488\`$as_me' instantiates files and other configuration actions
13489from templates according to the current configuration.  Unless the files
13490and actions are specified as TAGs, all are instantiated by default.
13491
13492Usage: $0 [OPTION]... [TAG]...
13493
13494  -h, --help       print this help, then exit
13495  -V, --version    print version number and configuration settings, then exit
13496      --config     print configuration, then exit
13497  -q, --quiet, --silent
13498                   do not print progress messages
13499  -d, --debug      don't remove temporary files
13500      --recheck    update $as_me by reconfiguring in the same conditions
13501      --file=FILE[:TEMPLATE]
13502                   instantiate the configuration file FILE
13503
13504Configuration files:
13505$config_files
13506
13507Configuration commands:
13508$config_commands
13509
13510Report bugs to <http://libburnia-project.org>."
13511
13512_ACEOF
13513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13514ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13515ac_cs_version="\\
13516libburn config.status 1.5.4
13517configured by $0, generated by GNU Autoconf 2.69,
13518  with options \\"\$ac_cs_config\\"
13519
13520Copyright (C) 2012 Free Software Foundation, Inc.
13521This config.status script is free software; the Free Software Foundation
13522gives unlimited permission to copy, distribute and modify it."
13523
13524ac_pwd='$ac_pwd'
13525srcdir='$srcdir'
13526INSTALL='$INSTALL'
13527MKDIR_P='$MKDIR_P'
13528AWK='$AWK'
13529test -n "\$AWK" || AWK=awk
13530_ACEOF
13531
13532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13533# The default lists apply if the user does not specify any file.
13534ac_need_defaults=:
13535while test $# != 0
13536do
13537  case $1 in
13538  --*=?*)
13539    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13540    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13541    ac_shift=:
13542    ;;
13543  --*=)
13544    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13545    ac_optarg=
13546    ac_shift=:
13547    ;;
13548  *)
13549    ac_option=$1
13550    ac_optarg=$2
13551    ac_shift=shift
13552    ;;
13553  esac
13554
13555  case $ac_option in
13556  # Handling of the options.
13557  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13558    ac_cs_recheck=: ;;
13559  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13560    $as_echo "$ac_cs_version"; exit ;;
13561  --config | --confi | --conf | --con | --co | --c )
13562    $as_echo "$ac_cs_config"; exit ;;
13563  --debug | --debu | --deb | --de | --d | -d )
13564    debug=: ;;
13565  --file | --fil | --fi | --f )
13566    $ac_shift
13567    case $ac_optarg in
13568    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13569    '') as_fn_error $? "missing file argument" ;;
13570    esac
13571    as_fn_append CONFIG_FILES " '$ac_optarg'"
13572    ac_need_defaults=false;;
13573  --he | --h |  --help | --hel | -h )
13574    $as_echo "$ac_cs_usage"; exit ;;
13575  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13576  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13577    ac_cs_silent=: ;;
13578
13579  # This is an error.
13580  -*) as_fn_error $? "unrecognized option: \`$1'
13581Try \`$0 --help' for more information." ;;
13582
13583  *) as_fn_append ac_config_targets " $1"
13584     ac_need_defaults=false ;;
13585
13586  esac
13587  shift
13588done
13589
13590ac_configure_extra_args=
13591
13592if $ac_cs_silent; then
13593  exec 6>/dev/null
13594  ac_configure_extra_args="$ac_configure_extra_args --silent"
13595fi
13596
13597_ACEOF
13598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13599if \$ac_cs_recheck; then
13600  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13601  shift
13602  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13603  CONFIG_SHELL='$SHELL'
13604  export CONFIG_SHELL
13605  exec "\$@"
13606fi
13607
13608_ACEOF
13609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610exec 5>>config.log
13611{
13612  echo
13613  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13614## Running $as_me. ##
13615_ASBOX
13616  $as_echo "$ac_log"
13617} >&5
13618
13619_ACEOF
13620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13621#
13622# INIT-COMMANDS
13623#
13624AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13625
13626
13627# The HP-UX ksh and POSIX shell print the target directory to stdout
13628# if CDPATH is set.
13629(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13630
13631sed_quote_subst='$sed_quote_subst'
13632double_quote_subst='$double_quote_subst'
13633delay_variable_subst='$delay_variable_subst'
13634macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13635macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13636enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13637enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13638pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13639enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13640SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13641ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13642PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13643host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13644host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13645host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13646build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13647build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13648build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13649SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13650Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13651GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13652EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13653FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13654LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13655NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13656LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13657max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13658ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13659exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13660lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13661lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13662lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13663lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13664lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13665reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13666reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13667OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13668deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13669file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13670file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13671want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13672DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13673sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13674AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13675AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13676archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13677STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13678RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13679old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13680old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13681old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13682lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13683CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13684CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13685compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13686GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13687lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13688lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13689lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13690lt_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"`'
13691nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13692lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13693objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13694MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13695lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13696lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13697lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13698lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13699lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13700need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13701MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13702DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13703NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13704LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13705OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13706OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13707libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13708shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13709extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13710archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13711enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13712export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13713whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13714compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13715old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13716old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13717archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13718archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13719module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13720module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13721with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13722allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13723no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13724hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13725hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13726hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13727hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13728hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13729hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13730hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13731inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13732link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13733always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13734export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13735exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13736include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13737prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13738postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13739file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13740variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13741need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13742need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13743version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13744runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13745shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13746shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13747libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13748library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13749soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13750install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13751postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13752postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13753finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13754finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13755hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13756sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13757sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13758hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13759enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13760enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13761enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13762old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13763striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13764
13765LTCC='$LTCC'
13766LTCFLAGS='$LTCFLAGS'
13767compiler='$compiler_DEFAULT'
13768
13769# A function that is used when there is no print builtin or printf.
13770func_fallback_echo ()
13771{
13772  eval 'cat <<_LTECHO_EOF
13773\$1
13774_LTECHO_EOF'
13775}
13776
13777# Quote evaled strings.
13778for var in SHELL \
13779ECHO \
13780PATH_SEPARATOR \
13781SED \
13782GREP \
13783EGREP \
13784FGREP \
13785LD \
13786NM \
13787LN_S \
13788lt_SP2NL \
13789lt_NL2SP \
13790reload_flag \
13791OBJDUMP \
13792deplibs_check_method \
13793file_magic_cmd \
13794file_magic_glob \
13795want_nocaseglob \
13796DLLTOOL \
13797sharedlib_from_linklib_cmd \
13798AR \
13799AR_FLAGS \
13800archiver_list_spec \
13801STRIP \
13802RANLIB \
13803CC \
13804CFLAGS \
13805compiler \
13806lt_cv_sys_global_symbol_pipe \
13807lt_cv_sys_global_symbol_to_cdecl \
13808lt_cv_sys_global_symbol_to_c_name_address \
13809lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13810nm_file_list_spec \
13811lt_prog_compiler_no_builtin_flag \
13812lt_prog_compiler_pic \
13813lt_prog_compiler_wl \
13814lt_prog_compiler_static \
13815lt_cv_prog_compiler_c_o \
13816need_locks \
13817MANIFEST_TOOL \
13818DSYMUTIL \
13819NMEDIT \
13820LIPO \
13821OTOOL \
13822OTOOL64 \
13823shrext_cmds \
13824export_dynamic_flag_spec \
13825whole_archive_flag_spec \
13826compiler_needs_object \
13827with_gnu_ld \
13828allow_undefined_flag \
13829no_undefined_flag \
13830hardcode_libdir_flag_spec \
13831hardcode_libdir_separator \
13832exclude_expsyms \
13833include_expsyms \
13834file_list_spec \
13835variables_saved_for_relink \
13836libname_spec \
13837library_names_spec \
13838soname_spec \
13839install_override_mode \
13840finish_eval \
13841old_striplib \
13842striplib; do
13843    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13844    *[\\\\\\\`\\"\\\$]*)
13845      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13846      ;;
13847    *)
13848      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13849      ;;
13850    esac
13851done
13852
13853# Double-quote double-evaled strings.
13854for var in reload_cmds \
13855old_postinstall_cmds \
13856old_postuninstall_cmds \
13857old_archive_cmds \
13858extract_expsyms_cmds \
13859old_archive_from_new_cmds \
13860old_archive_from_expsyms_cmds \
13861archive_cmds \
13862archive_expsym_cmds \
13863module_cmds \
13864module_expsym_cmds \
13865export_symbols_cmds \
13866prelink_cmds \
13867postlink_cmds \
13868postinstall_cmds \
13869postuninstall_cmds \
13870finish_cmds \
13871sys_lib_search_path_spec \
13872sys_lib_dlsearch_path_spec; do
13873    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13874    *[\\\\\\\`\\"\\\$]*)
13875      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13876      ;;
13877    *)
13878      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13879      ;;
13880    esac
13881done
13882
13883ac_aux_dir='$ac_aux_dir'
13884xsi_shell='$xsi_shell'
13885lt_shell_append='$lt_shell_append'
13886
13887# See if we are running on zsh, and set the options which allow our
13888# commands through without removal of \ escapes INIT.
13889if test -n "\${ZSH_VERSION+set}" ; then
13890   setopt NO_GLOB_SUBST
13891fi
13892
13893
13894    PACKAGE='$PACKAGE'
13895    VERSION='$VERSION'
13896    TIMESTAMP='$TIMESTAMP'
13897    RM='$RM'
13898    ofile='$ofile'
13899
13900
13901
13902
13903_ACEOF
13904
13905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906
13907# Handling of arguments.
13908for ac_config_target in $ac_config_targets
13909do
13910  case $ac_config_target in
13911    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13912    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13913    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13914    "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
13915    "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
13916    "libburn-1.pc") CONFIG_FILES="$CONFIG_FILES libburn-1.pc" ;;
13917
13918  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13919  esac
13920done
13921
13922
13923# If the user did not use the arguments to specify the items to instantiate,
13924# then the envvar interface is used.  Set only those that are not.
13925# We use the long form for the default assignment because of an extremely
13926# bizarre bug on SunOS 4.1.3.
13927if $ac_need_defaults; then
13928  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13929  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13930fi
13931
13932# Have a temporary directory for convenience.  Make it in the build tree
13933# simply because there is no reason against having it here, and in addition,
13934# creating and moving files from /tmp can sometimes cause problems.
13935# Hook for its removal unless debugging.
13936# Note that there is a small window in which the directory will not be cleaned:
13937# after its creation but before its name has been assigned to `$tmp'.
13938$debug ||
13939{
13940  tmp= ac_tmp=
13941  trap 'exit_status=$?
13942  : "${ac_tmp:=$tmp}"
13943  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13944' 0
13945  trap 'as_fn_exit 1' 1 2 13 15
13946}
13947# Create a (secure) tmp directory for tmp files.
13948
13949{
13950  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13951  test -d "$tmp"
13952}  ||
13953{
13954  tmp=./conf$$-$RANDOM
13955  (umask 077 && mkdir "$tmp")
13956} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13957ac_tmp=$tmp
13958
13959# Set up the scripts for CONFIG_FILES section.
13960# No need to generate them if there are no CONFIG_FILES.
13961# This happens for instance with `./config.status config.h'.
13962if test -n "$CONFIG_FILES"; then
13963
13964
13965ac_cr=`echo X | tr X '\015'`
13966# On cygwin, bash can eat \r inside `` if the user requested igncr.
13967# But we know of no other shell where ac_cr would be empty at this
13968# point, so we can use a bashism as a fallback.
13969if test "x$ac_cr" = x; then
13970  eval ac_cr=\$\'\\r\'
13971fi
13972ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13973if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13974  ac_cs_awk_cr='\\r'
13975else
13976  ac_cs_awk_cr=$ac_cr
13977fi
13978
13979echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13980_ACEOF
13981
13982
13983{
13984  echo "cat >conf$$subs.awk <<_ACEOF" &&
13985  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13986  echo "_ACEOF"
13987} >conf$$subs.sh ||
13988  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13989ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13990ac_delim='%!_!# '
13991for ac_last_try in false false false false false :; do
13992  . ./conf$$subs.sh ||
13993    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13994
13995  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13996  if test $ac_delim_n = $ac_delim_num; then
13997    break
13998  elif $ac_last_try; then
13999    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14000  else
14001    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14002  fi
14003done
14004rm -f conf$$subs.sh
14005
14006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14007cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14008_ACEOF
14009sed -n '
14010h
14011s/^/S["/; s/!.*/"]=/
14012p
14013g
14014s/^[^!]*!//
14015:repl
14016t repl
14017s/'"$ac_delim"'$//
14018t delim
14019:nl
14020h
14021s/\(.\{148\}\)..*/\1/
14022t more1
14023s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14024p
14025n
14026b repl
14027:more1
14028s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14029p
14030g
14031s/.\{148\}//
14032t nl
14033:delim
14034h
14035s/\(.\{148\}\)..*/\1/
14036t more2
14037s/["\\]/\\&/g; s/^/"/; s/$/"/
14038p
14039b
14040:more2
14041s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14042p
14043g
14044s/.\{148\}//
14045t delim
14046' <conf$$subs.awk | sed '
14047/^[^""]/{
14048  N
14049  s/\n//
14050}
14051' >>$CONFIG_STATUS || ac_write_fail=1
14052rm -f conf$$subs.awk
14053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054_ACAWK
14055cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14056  for (key in S) S_is_set[key] = 1
14057  FS = ""
14058
14059}
14060{
14061  line = $ 0
14062  nfields = split(line, field, "@")
14063  substed = 0
14064  len = length(field[1])
14065  for (i = 2; i < nfields; i++) {
14066    key = field[i]
14067    keylen = length(key)
14068    if (S_is_set[key]) {
14069      value = S[key]
14070      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14071      len += length(value) + length(field[++i])
14072      substed = 1
14073    } else
14074      len += 1 + keylen
14075  }
14076
14077  print line
14078}
14079
14080_ACAWK
14081_ACEOF
14082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14083if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14084  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14085else
14086  cat
14087fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14088  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14089_ACEOF
14090
14091# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14092# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14093# trailing colons and then remove the whole line if VPATH becomes empty
14094# (actually we leave an empty line to preserve line numbers).
14095if test "x$srcdir" = x.; then
14096  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14097h
14098s///
14099s/^/:/
14100s/[	 ]*$/:/
14101s/:\$(srcdir):/:/g
14102s/:\${srcdir}:/:/g
14103s/:@srcdir@:/:/g
14104s/^:*//
14105s/:*$//
14106x
14107s/\(=[	 ]*\).*/\1/
14108G
14109s/\n//
14110s/^[^=]*=[	 ]*$//
14111}'
14112fi
14113
14114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14115fi # test -n "$CONFIG_FILES"
14116
14117
14118eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
14119shift
14120for ac_tag
14121do
14122  case $ac_tag in
14123  :[FHLC]) ac_mode=$ac_tag; continue;;
14124  esac
14125  case $ac_mode$ac_tag in
14126  :[FHL]*:*);;
14127  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14128  :[FH]-) ac_tag=-:-;;
14129  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14130  esac
14131  ac_save_IFS=$IFS
14132  IFS=:
14133  set x $ac_tag
14134  IFS=$ac_save_IFS
14135  shift
14136  ac_file=$1
14137  shift
14138
14139  case $ac_mode in
14140  :L) ac_source=$1;;
14141  :[FH])
14142    ac_file_inputs=
14143    for ac_f
14144    do
14145      case $ac_f in
14146      -) ac_f="$ac_tmp/stdin";;
14147      *) # Look for the file first in the build tree, then in the source tree
14148	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14149	 # because $ac_f cannot contain `:'.
14150	 test -f "$ac_f" ||
14151	   case $ac_f in
14152	   [\\/$]*) false;;
14153	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14154	   esac ||
14155	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14156      esac
14157      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14158      as_fn_append ac_file_inputs " '$ac_f'"
14159    done
14160
14161    # Let's still pretend it is `configure' which instantiates (i.e., don't
14162    # use $as_me), people would be surprised to read:
14163    #    /* config.h.  Generated by config.status.  */
14164    configure_input='Generated from '`
14165	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14166	`' by configure.'
14167    if test x"$ac_file" != x-; then
14168      configure_input="$ac_file.  $configure_input"
14169      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14170$as_echo "$as_me: creating $ac_file" >&6;}
14171    fi
14172    # Neutralize special characters interpreted by sed in replacement strings.
14173    case $configure_input in #(
14174    *\&* | *\|* | *\\* )
14175       ac_sed_conf_input=`$as_echo "$configure_input" |
14176       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14177    *) ac_sed_conf_input=$configure_input;;
14178    esac
14179
14180    case $ac_tag in
14181    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14182      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14183    esac
14184    ;;
14185  esac
14186
14187  ac_dir=`$as_dirname -- "$ac_file" ||
14188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14189	 X"$ac_file" : 'X\(//\)[^/]' \| \
14190	 X"$ac_file" : 'X\(//\)$' \| \
14191	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14192$as_echo X"$ac_file" |
14193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14194	    s//\1/
14195	    q
14196	  }
14197	  /^X\(\/\/\)[^/].*/{
14198	    s//\1/
14199	    q
14200	  }
14201	  /^X\(\/\/\)$/{
14202	    s//\1/
14203	    q
14204	  }
14205	  /^X\(\/\).*/{
14206	    s//\1/
14207	    q
14208	  }
14209	  s/.*/./; q'`
14210  as_dir="$ac_dir"; as_fn_mkdir_p
14211  ac_builddir=.
14212
14213case "$ac_dir" in
14214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14215*)
14216  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14217  # A ".." for each directory in $ac_dir_suffix.
14218  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14219  case $ac_top_builddir_sub in
14220  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14221  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14222  esac ;;
14223esac
14224ac_abs_top_builddir=$ac_pwd
14225ac_abs_builddir=$ac_pwd$ac_dir_suffix
14226# for backward compatibility:
14227ac_top_builddir=$ac_top_build_prefix
14228
14229case $srcdir in
14230  .)  # We are building in place.
14231    ac_srcdir=.
14232    ac_top_srcdir=$ac_top_builddir_sub
14233    ac_abs_top_srcdir=$ac_pwd ;;
14234  [\\/]* | ?:[\\/]* )  # Absolute name.
14235    ac_srcdir=$srcdir$ac_dir_suffix;
14236    ac_top_srcdir=$srcdir
14237    ac_abs_top_srcdir=$srcdir ;;
14238  *) # Relative name.
14239    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14240    ac_top_srcdir=$ac_top_build_prefix$srcdir
14241    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14242esac
14243ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14244
14245
14246  case $ac_mode in
14247  :F)
14248  #
14249  # CONFIG_FILE
14250  #
14251
14252  case $INSTALL in
14253  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14254  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14255  esac
14256  ac_MKDIR_P=$MKDIR_P
14257  case $MKDIR_P in
14258  [\\/$]* | ?:[\\/]* ) ;;
14259  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14260  esac
14261_ACEOF
14262
14263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14264# If the template does not know about datarootdir, expand it.
14265# FIXME: This hack should be removed a few years after 2.60.
14266ac_datarootdir_hack=; ac_datarootdir_seen=
14267ac_sed_dataroot='
14268/datarootdir/ {
14269  p
14270  q
14271}
14272/@datadir@/p
14273/@docdir@/p
14274/@infodir@/p
14275/@localedir@/p
14276/@mandir@/p'
14277case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14278*datarootdir*) ac_datarootdir_seen=yes;;
14279*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14280  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14281$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14282_ACEOF
14283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14284  ac_datarootdir_hack='
14285  s&@datadir@&$datadir&g
14286  s&@docdir@&$docdir&g
14287  s&@infodir@&$infodir&g
14288  s&@localedir@&$localedir&g
14289  s&@mandir@&$mandir&g
14290  s&\\\${datarootdir}&$datarootdir&g' ;;
14291esac
14292_ACEOF
14293
14294# Neutralize VPATH when `$srcdir' = `.'.
14295# Shell code in configure.ac might set extrasub.
14296# FIXME: do we really want to maintain this feature?
14297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298ac_sed_extra="$ac_vpsub
14299$extrasub
14300_ACEOF
14301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14302:t
14303/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14304s|@configure_input@|$ac_sed_conf_input|;t t
14305s&@top_builddir@&$ac_top_builddir_sub&;t t
14306s&@top_build_prefix@&$ac_top_build_prefix&;t t
14307s&@srcdir@&$ac_srcdir&;t t
14308s&@abs_srcdir@&$ac_abs_srcdir&;t t
14309s&@top_srcdir@&$ac_top_srcdir&;t t
14310s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14311s&@builddir@&$ac_builddir&;t t
14312s&@abs_builddir@&$ac_abs_builddir&;t t
14313s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14314s&@INSTALL@&$ac_INSTALL&;t t
14315s&@MKDIR_P@&$ac_MKDIR_P&;t t
14316$ac_datarootdir_hack
14317"
14318eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14319  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14320
14321test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14322  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14323  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14324      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14325  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14326which seems to be undefined.  Please make sure it is defined" >&5
14327$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14328which seems to be undefined.  Please make sure it is defined" >&2;}
14329
14330  rm -f "$ac_tmp/stdin"
14331  case $ac_file in
14332  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14333  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14334  esac \
14335  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14336 ;;
14337
14338
14339  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14340$as_echo "$as_me: executing $ac_file commands" >&6;}
14341 ;;
14342  esac
14343
14344
14345  case $ac_file$ac_mode in
14346    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14347  # Older Autoconf quotes --file arguments for eval, but not when files
14348  # are listed without --file.  Let's play safe and only enable the eval
14349  # if we detect the quoting.
14350  case $CONFIG_FILES in
14351  *\'*) eval set x "$CONFIG_FILES" ;;
14352  *)   set x $CONFIG_FILES ;;
14353  esac
14354  shift
14355  for mf
14356  do
14357    # Strip MF so we end up with the name of the file.
14358    mf=`echo "$mf" | sed -e 's/:.*$//'`
14359    # Check whether this is an Automake generated Makefile or not.
14360    # We used to match only the files named 'Makefile.in', but
14361    # some people rename them; so instead we look at the file content.
14362    # Grep'ing the first line is not enough: some people post-process
14363    # each Makefile.in and add a new line on top of each file to say so.
14364    # Grep'ing the whole file is not good either: AIX grep has a line
14365    # limit of 2048, but all sed's we know have understand at least 4000.
14366    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14367      dirpart=`$as_dirname -- "$mf" ||
14368$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14369	 X"$mf" : 'X\(//\)[^/]' \| \
14370	 X"$mf" : 'X\(//\)$' \| \
14371	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14372$as_echo X"$mf" |
14373    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14374	    s//\1/
14375	    q
14376	  }
14377	  /^X\(\/\/\)[^/].*/{
14378	    s//\1/
14379	    q
14380	  }
14381	  /^X\(\/\/\)$/{
14382	    s//\1/
14383	    q
14384	  }
14385	  /^X\(\/\).*/{
14386	    s//\1/
14387	    q
14388	  }
14389	  s/.*/./; q'`
14390    else
14391      continue
14392    fi
14393    # Extract the definition of DEPDIR, am__include, and am__quote
14394    # from the Makefile without running 'make'.
14395    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14396    test -z "$DEPDIR" && continue
14397    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14398    test -z "$am__include" && continue
14399    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14400    # Find all dependency output files, they are included files with
14401    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14402    # simplest approach to changing $(DEPDIR) to its actual value in the
14403    # expansion.
14404    for file in `sed -n "
14405      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14406	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14407      # Make sure the directory exists.
14408      test -f "$dirpart/$file" && continue
14409      fdir=`$as_dirname -- "$file" ||
14410$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411	 X"$file" : 'X\(//\)[^/]' \| \
14412	 X"$file" : 'X\(//\)$' \| \
14413	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14414$as_echo X"$file" |
14415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14416	    s//\1/
14417	    q
14418	  }
14419	  /^X\(\/\/\)[^/].*/{
14420	    s//\1/
14421	    q
14422	  }
14423	  /^X\(\/\/\)$/{
14424	    s//\1/
14425	    q
14426	  }
14427	  /^X\(\/\).*/{
14428	    s//\1/
14429	    q
14430	  }
14431	  s/.*/./; q'`
14432      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14433      # echo "creating $dirpart/$file"
14434      echo '# dummy' > "$dirpart/$file"
14435    done
14436  done
14437}
14438 ;;
14439    "libtool":C)
14440
14441    # See if we are running on zsh, and set the options which allow our
14442    # commands through without removal of \ escapes.
14443    if test -n "${ZSH_VERSION+set}" ; then
14444      setopt NO_GLOB_SUBST
14445    fi
14446
14447    cfgfile="${ofile}T"
14448    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14449    $RM "$cfgfile"
14450
14451    cat <<_LT_EOF >> "$cfgfile"
14452#! $SHELL
14453
14454# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14455# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14456# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14457# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14458#
14459#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14460#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14461#                 Foundation, Inc.
14462#   Written by Gordon Matzigkeit, 1996
14463#
14464#   This file is part of GNU Libtool.
14465#
14466# GNU Libtool is free software; you can redistribute it and/or
14467# modify it under the terms of the GNU General Public License as
14468# published by the Free Software Foundation; either version 2 of
14469# the License, or (at your option) any later version.
14470#
14471# As a special exception to the GNU General Public License,
14472# if you distribute this file as part of a program or library that
14473# is built using GNU Libtool, you may include this file under the
14474# same distribution terms that you use for the rest of that program.
14475#
14476# GNU Libtool is distributed in the hope that it will be useful,
14477# but WITHOUT ANY WARRANTY; without even the implied warranty of
14478# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14479# GNU General Public License for more details.
14480#
14481# You should have received a copy of the GNU General Public License
14482# along with GNU Libtool; see the file COPYING.  If not, a copy
14483# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14484# obtained by writing to the Free Software Foundation, Inc.,
14485# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14486
14487
14488# The names of the tagged configurations supported by this script.
14489available_tags=""
14490
14491# ### BEGIN LIBTOOL CONFIG
14492
14493# Which release of libtool.m4 was used?
14494macro_version=$macro_version
14495macro_revision=$macro_revision
14496
14497# Whether or not to build shared libraries.
14498build_libtool_libs=$enable_shared
14499
14500# Whether or not to build static libraries.
14501build_old_libs=$enable_static
14502
14503# What type of objects to build.
14504pic_mode=$pic_mode
14505
14506# Whether or not to optimize for fast installation.
14507fast_install=$enable_fast_install
14508
14509# Shell to use when invoking shell scripts.
14510SHELL=$lt_SHELL
14511
14512# An echo program that protects backslashes.
14513ECHO=$lt_ECHO
14514
14515# The PATH separator for the build system.
14516PATH_SEPARATOR=$lt_PATH_SEPARATOR
14517
14518# The host system.
14519host_alias=$host_alias
14520host=$host
14521host_os=$host_os
14522
14523# The build system.
14524build_alias=$build_alias
14525build=$build
14526build_os=$build_os
14527
14528# A sed program that does not truncate output.
14529SED=$lt_SED
14530
14531# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14532Xsed="\$SED -e 1s/^X//"
14533
14534# A grep program that handles long lines.
14535GREP=$lt_GREP
14536
14537# An ERE matcher.
14538EGREP=$lt_EGREP
14539
14540# A literal string matcher.
14541FGREP=$lt_FGREP
14542
14543# A BSD- or MS-compatible name lister.
14544NM=$lt_NM
14545
14546# Whether we need soft or hard links.
14547LN_S=$lt_LN_S
14548
14549# What is the maximum length of a command?
14550max_cmd_len=$max_cmd_len
14551
14552# Object file suffix (normally "o").
14553objext=$ac_objext
14554
14555# Executable file suffix (normally "").
14556exeext=$exeext
14557
14558# whether the shell understands "unset".
14559lt_unset=$lt_unset
14560
14561# turn spaces into newlines.
14562SP2NL=$lt_lt_SP2NL
14563
14564# turn newlines into spaces.
14565NL2SP=$lt_lt_NL2SP
14566
14567# convert \$build file names to \$host format.
14568to_host_file_cmd=$lt_cv_to_host_file_cmd
14569
14570# convert \$build files to toolchain format.
14571to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14572
14573# An object symbol dumper.
14574OBJDUMP=$lt_OBJDUMP
14575
14576# Method to check whether dependent libraries are shared objects.
14577deplibs_check_method=$lt_deplibs_check_method
14578
14579# Command to use when deplibs_check_method = "file_magic".
14580file_magic_cmd=$lt_file_magic_cmd
14581
14582# How to find potential files when deplibs_check_method = "file_magic".
14583file_magic_glob=$lt_file_magic_glob
14584
14585# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14586want_nocaseglob=$lt_want_nocaseglob
14587
14588# DLL creation program.
14589DLLTOOL=$lt_DLLTOOL
14590
14591# Command to associate shared and link libraries.
14592sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14593
14594# The archiver.
14595AR=$lt_AR
14596
14597# Flags to create an archive.
14598AR_FLAGS=$lt_AR_FLAGS
14599
14600# How to feed a file listing to the archiver.
14601archiver_list_spec=$lt_archiver_list_spec
14602
14603# A symbol stripping program.
14604STRIP=$lt_STRIP
14605
14606# Commands used to install an old-style archive.
14607RANLIB=$lt_RANLIB
14608old_postinstall_cmds=$lt_old_postinstall_cmds
14609old_postuninstall_cmds=$lt_old_postuninstall_cmds
14610
14611# Whether to use a lock for old archive extraction.
14612lock_old_archive_extraction=$lock_old_archive_extraction
14613
14614# A C compiler.
14615LTCC=$lt_CC
14616
14617# LTCC compiler flags.
14618LTCFLAGS=$lt_CFLAGS
14619
14620# Take the output of nm and produce a listing of raw symbols and C names.
14621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14622
14623# Transform the output of nm in a proper C declaration.
14624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14625
14626# Transform the output of nm in a C name address pair.
14627global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14628
14629# Transform the output of nm in a C name address pair when lib prefix is needed.
14630global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14631
14632# Specify filename containing input files for \$NM.
14633nm_file_list_spec=$lt_nm_file_list_spec
14634
14635# The root where to search for dependent libraries,and in which our libraries should be installed.
14636lt_sysroot=$lt_sysroot
14637
14638# The name of the directory that contains temporary libtool files.
14639objdir=$objdir
14640
14641# Used to examine libraries when file_magic_cmd begins with "file".
14642MAGIC_CMD=$MAGIC_CMD
14643
14644# Must we lock files when doing compilation?
14645need_locks=$lt_need_locks
14646
14647# Manifest tool.
14648MANIFEST_TOOL=$lt_MANIFEST_TOOL
14649
14650# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14651DSYMUTIL=$lt_DSYMUTIL
14652
14653# Tool to change global to local symbols on Mac OS X.
14654NMEDIT=$lt_NMEDIT
14655
14656# Tool to manipulate fat objects and archives on Mac OS X.
14657LIPO=$lt_LIPO
14658
14659# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14660OTOOL=$lt_OTOOL
14661
14662# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14663OTOOL64=$lt_OTOOL64
14664
14665# Old archive suffix (normally "a").
14666libext=$libext
14667
14668# Shared library suffix (normally ".so").
14669shrext_cmds=$lt_shrext_cmds
14670
14671# The commands to extract the exported symbol list from a shared archive.
14672extract_expsyms_cmds=$lt_extract_expsyms_cmds
14673
14674# Variables whose values should be saved in libtool wrapper scripts and
14675# restored at link time.
14676variables_saved_for_relink=$lt_variables_saved_for_relink
14677
14678# Do we need the "lib" prefix for modules?
14679need_lib_prefix=$need_lib_prefix
14680
14681# Do we need a version for libraries?
14682need_version=$need_version
14683
14684# Library versioning type.
14685version_type=$version_type
14686
14687# Shared library runtime path variable.
14688runpath_var=$runpath_var
14689
14690# Shared library path variable.
14691shlibpath_var=$shlibpath_var
14692
14693# Is shlibpath searched before the hard-coded library search path?
14694shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14695
14696# Format of library name prefix.
14697libname_spec=$lt_libname_spec
14698
14699# List of archive names.  First name is the real one, the rest are links.
14700# The last name is the one that the linker finds with -lNAME
14701library_names_spec=$lt_library_names_spec
14702
14703# The coded name of the library, if different from the real name.
14704soname_spec=$lt_soname_spec
14705
14706# Permission mode override for installation of shared libraries.
14707install_override_mode=$lt_install_override_mode
14708
14709# Command to use after installation of a shared archive.
14710postinstall_cmds=$lt_postinstall_cmds
14711
14712# Command to use after uninstallation of a shared archive.
14713postuninstall_cmds=$lt_postuninstall_cmds
14714
14715# Commands used to finish a libtool library installation in a directory.
14716finish_cmds=$lt_finish_cmds
14717
14718# As "finish_cmds", except a single script fragment to be evaled but
14719# not shown.
14720finish_eval=$lt_finish_eval
14721
14722# Whether we should hardcode library paths into libraries.
14723hardcode_into_libs=$hardcode_into_libs
14724
14725# Compile-time system search path for libraries.
14726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14727
14728# Run-time system search path for libraries.
14729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14730
14731# Whether dlopen is supported.
14732dlopen_support=$enable_dlopen
14733
14734# Whether dlopen of programs is supported.
14735dlopen_self=$enable_dlopen_self
14736
14737# Whether dlopen of statically linked programs is supported.
14738dlopen_self_static=$enable_dlopen_self_static
14739
14740# Commands to strip libraries.
14741old_striplib=$lt_old_striplib
14742striplib=$lt_striplib
14743
14744
14745# The linker used to build libraries.
14746LD=$lt_LD
14747
14748# How to create reloadable object files.
14749reload_flag=$lt_reload_flag
14750reload_cmds=$lt_reload_cmds
14751
14752# Commands used to build an old-style archive.
14753old_archive_cmds=$lt_old_archive_cmds
14754
14755# A language specific compiler.
14756CC=$lt_compiler
14757
14758# Is the compiler the GNU compiler?
14759with_gcc=$GCC
14760
14761# Compiler flag to turn off builtin functions.
14762no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14763
14764# Additional compiler flags for building library objects.
14765pic_flag=$lt_lt_prog_compiler_pic
14766
14767# How to pass a linker flag through the compiler.
14768wl=$lt_lt_prog_compiler_wl
14769
14770# Compiler flag to prevent dynamic linking.
14771link_static_flag=$lt_lt_prog_compiler_static
14772
14773# Does compiler simultaneously support -c and -o options?
14774compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14775
14776# Whether or not to add -lc for building shared libraries.
14777build_libtool_need_lc=$archive_cmds_need_lc
14778
14779# Whether or not to disallow shared libs when runtime libs are static.
14780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14781
14782# Compiler flag to allow reflexive dlopens.
14783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14784
14785# Compiler flag to generate shared objects directly from archives.
14786whole_archive_flag_spec=$lt_whole_archive_flag_spec
14787
14788# Whether the compiler copes with passing no objects directly.
14789compiler_needs_object=$lt_compiler_needs_object
14790
14791# Create an old-style archive from a shared archive.
14792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14793
14794# Create a temporary old-style archive to link instead of a shared archive.
14795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14796
14797# Commands used to build a shared archive.
14798archive_cmds=$lt_archive_cmds
14799archive_expsym_cmds=$lt_archive_expsym_cmds
14800
14801# Commands used to build a loadable module if different from building
14802# a shared archive.
14803module_cmds=$lt_module_cmds
14804module_expsym_cmds=$lt_module_expsym_cmds
14805
14806# Whether we are building with GNU ld or not.
14807with_gnu_ld=$lt_with_gnu_ld
14808
14809# Flag that allows shared libraries with undefined symbols to be built.
14810allow_undefined_flag=$lt_allow_undefined_flag
14811
14812# Flag that enforces no undefined symbols.
14813no_undefined_flag=$lt_no_undefined_flag
14814
14815# Flag to hardcode \$libdir into a binary during linking.
14816# This must work even if \$libdir does not exist
14817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14818
14819# Whether we need a single "-rpath" flag with a separated argument.
14820hardcode_libdir_separator=$lt_hardcode_libdir_separator
14821
14822# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14823# DIR into the resulting binary.
14824hardcode_direct=$hardcode_direct
14825
14826# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14827# DIR into the resulting binary and the resulting library dependency is
14828# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14829# library is relocated.
14830hardcode_direct_absolute=$hardcode_direct_absolute
14831
14832# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14833# into the resulting binary.
14834hardcode_minus_L=$hardcode_minus_L
14835
14836# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14837# into the resulting binary.
14838hardcode_shlibpath_var=$hardcode_shlibpath_var
14839
14840# Set to "yes" if building a shared library automatically hardcodes DIR
14841# into the library and all subsequent libraries and executables linked
14842# against it.
14843hardcode_automatic=$hardcode_automatic
14844
14845# Set to yes if linker adds runtime paths of dependent libraries
14846# to runtime path list.
14847inherit_rpath=$inherit_rpath
14848
14849# Whether libtool must link a program against all its dependency libraries.
14850link_all_deplibs=$link_all_deplibs
14851
14852# Set to "yes" if exported symbols are required.
14853always_export_symbols=$always_export_symbols
14854
14855# The commands to list exported symbols.
14856export_symbols_cmds=$lt_export_symbols_cmds
14857
14858# Symbols that should not be listed in the preloaded symbols.
14859exclude_expsyms=$lt_exclude_expsyms
14860
14861# Symbols that must always be exported.
14862include_expsyms=$lt_include_expsyms
14863
14864# Commands necessary for linking programs (against libraries) with templates.
14865prelink_cmds=$lt_prelink_cmds
14866
14867# Commands necessary for finishing linking programs.
14868postlink_cmds=$lt_postlink_cmds
14869
14870# Specify filename containing input files.
14871file_list_spec=$lt_file_list_spec
14872
14873# How to hardcode a shared library path into an executable.
14874hardcode_action=$hardcode_action
14875
14876# ### END LIBTOOL CONFIG
14877
14878_LT_EOF
14879
14880  case $host_os in
14881  aix3*)
14882    cat <<\_LT_EOF >> "$cfgfile"
14883# AIX sometimes has problems with the GCC collect2 program.  For some
14884# reason, if we set the COLLECT_NAMES environment variable, the problems
14885# vanish in a puff of smoke.
14886if test "X${COLLECT_NAMES+set}" != Xset; then
14887  COLLECT_NAMES=
14888  export COLLECT_NAMES
14889fi
14890_LT_EOF
14891    ;;
14892  esac
14893
14894
14895ltmain="$ac_aux_dir/ltmain.sh"
14896
14897
14898  # We use sed instead of cat because bash on DJGPP gets confused if
14899  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14900  # text mode, it properly converts lines to CR/LF.  This bash problem
14901  # is reportedly fixed, but why not run on old versions too?
14902  sed '$q' "$ltmain" >> "$cfgfile" \
14903     || (rm -f "$cfgfile"; exit 1)
14904
14905  if test x"$xsi_shell" = xyes; then
14906  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14907func_dirname ()\
14908{\
14909\    case ${1} in\
14910\      */*) func_dirname_result="${1%/*}${2}" ;;\
14911\      *  ) func_dirname_result="${3}" ;;\
14912\    esac\
14913} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14914  && mv -f "$cfgfile.tmp" "$cfgfile" \
14915    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14916test 0 -eq $? || _lt_function_replace_fail=:
14917
14918
14919  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14920func_basename ()\
14921{\
14922\    func_basename_result="${1##*/}"\
14923} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14924  && mv -f "$cfgfile.tmp" "$cfgfile" \
14925    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14926test 0 -eq $? || _lt_function_replace_fail=:
14927
14928
14929  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14930func_dirname_and_basename ()\
14931{\
14932\    case ${1} in\
14933\      */*) func_dirname_result="${1%/*}${2}" ;;\
14934\      *  ) func_dirname_result="${3}" ;;\
14935\    esac\
14936\    func_basename_result="${1##*/}"\
14937} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14938  && mv -f "$cfgfile.tmp" "$cfgfile" \
14939    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14940test 0 -eq $? || _lt_function_replace_fail=:
14941
14942
14943  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14944func_stripname ()\
14945{\
14946\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14947\    # positional parameters, so assign one to ordinary parameter first.\
14948\    func_stripname_result=${3}\
14949\    func_stripname_result=${func_stripname_result#"${1}"}\
14950\    func_stripname_result=${func_stripname_result%"${2}"}\
14951} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14952  && mv -f "$cfgfile.tmp" "$cfgfile" \
14953    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14954test 0 -eq $? || _lt_function_replace_fail=:
14955
14956
14957  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14958func_split_long_opt ()\
14959{\
14960\    func_split_long_opt_name=${1%%=*}\
14961\    func_split_long_opt_arg=${1#*=}\
14962} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14963  && mv -f "$cfgfile.tmp" "$cfgfile" \
14964    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14965test 0 -eq $? || _lt_function_replace_fail=:
14966
14967
14968  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14969func_split_short_opt ()\
14970{\
14971\    func_split_short_opt_arg=${1#??}\
14972\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14973} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14974  && mv -f "$cfgfile.tmp" "$cfgfile" \
14975    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14976test 0 -eq $? || _lt_function_replace_fail=:
14977
14978
14979  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14980func_lo2o ()\
14981{\
14982\    case ${1} in\
14983\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14984\      *)    func_lo2o_result=${1} ;;\
14985\    esac\
14986} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14987  && mv -f "$cfgfile.tmp" "$cfgfile" \
14988    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14989test 0 -eq $? || _lt_function_replace_fail=:
14990
14991
14992  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14993func_xform ()\
14994{\
14995    func_xform_result=${1%.*}.lo\
14996} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14997  && mv -f "$cfgfile.tmp" "$cfgfile" \
14998    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14999test 0 -eq $? || _lt_function_replace_fail=:
15000
15001
15002  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15003func_arith ()\
15004{\
15005    func_arith_result=$(( $* ))\
15006} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15007  && mv -f "$cfgfile.tmp" "$cfgfile" \
15008    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15009test 0 -eq $? || _lt_function_replace_fail=:
15010
15011
15012  sed -e '/^func_len ()$/,/^} # func_len /c\
15013func_len ()\
15014{\
15015    func_len_result=${#1}\
15016} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15017  && mv -f "$cfgfile.tmp" "$cfgfile" \
15018    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15019test 0 -eq $? || _lt_function_replace_fail=:
15020
15021fi
15022
15023if test x"$lt_shell_append" = xyes; then
15024  sed -e '/^func_append ()$/,/^} # func_append /c\
15025func_append ()\
15026{\
15027    eval "${1}+=\\${2}"\
15028} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15029  && mv -f "$cfgfile.tmp" "$cfgfile" \
15030    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15031test 0 -eq $? || _lt_function_replace_fail=:
15032
15033
15034  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15035func_append_quoted ()\
15036{\
15037\    func_quote_for_eval "${2}"\
15038\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15039} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15040  && mv -f "$cfgfile.tmp" "$cfgfile" \
15041    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15042test 0 -eq $? || _lt_function_replace_fail=:
15043
15044
15045  # Save a `func_append' function call where possible by direct use of '+='
15046  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15047    && mv -f "$cfgfile.tmp" "$cfgfile" \
15048      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15049  test 0 -eq $? || _lt_function_replace_fail=:
15050else
15051  # Save a `func_append' function call even when '+=' is not available
15052  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15053    && mv -f "$cfgfile.tmp" "$cfgfile" \
15054      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15055  test 0 -eq $? || _lt_function_replace_fail=:
15056fi
15057
15058if test x"$_lt_function_replace_fail" = x":"; then
15059  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15060$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15061fi
15062
15063
15064   mv -f "$cfgfile" "$ofile" ||
15065    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15066  chmod +x "$ofile"
15067
15068 ;;
15069
15070  esac
15071done # for ac_tag
15072
15073
15074as_fn_exit 0
15075_ACEOF
15076ac_clean_files=$ac_clean_files_save
15077
15078test $ac_write_fail = 0 ||
15079  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15080
15081
15082# configure is writing to config.log, and then calls config.status.
15083# config.status does its own redirection, appending to config.log.
15084# Unfortunately, on DOS this fails, as config.log is still kept open
15085# by configure, so config.status won't be able to write to it; its
15086# output is simply discarded.  So we exec the FD to /dev/null,
15087# effectively closing config.log, so it can be properly (re)opened and
15088# appended to by config.status.  When coming back to configure, we
15089# need to make the FD available again.
15090if test "$no_create" != yes; then
15091  ac_cs_success=:
15092  ac_config_status_args=
15093  test "$silent" = yes &&
15094    ac_config_status_args="$ac_config_status_args --quiet"
15095  exec 5>/dev/null
15096  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15097  exec 5>>config.log
15098  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15099  # would make configure fail if this is the last instruction.
15100  $ac_cs_success || as_fn_exit 1
15101fi
15102if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15104$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15105fi
15106
15107