1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.69 for LibRaw 0.20.2.
4@%:@
5@%:@ Report bugs to <info@libraw.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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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 info@libraw.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400@%:@ must be portable across @S|@(()) 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 @S|@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=.
584LIB@&t@OBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='LibRaw'
592PACKAGE_TARNAME='libraw'
593PACKAGE_VERSION='0.20.2'
594PACKAGE_STRING='LibRaw 0.20.2'
595PACKAGE_BUGREPORT='info@libraw.org'
596PACKAGE_URL='http://www.libraw.org'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIB@&t@OBJS
638LIBRAW_RELEASE_VERSION
639LIBRAW_SHLIB_VERSION
640EXAMPLES_FALSE
641EXAMPLES_TRUE
642LCMS_LIBS
643LCMS_CFLAGS
644LCMS2_LIBS
645LCMS2_CFLAGS
646PACKAGE_REQUIRES
647ZLIB_LIBS
648ZLIB_CFLAGS
649PKG_CONFIG_LIBDIR
650PKG_CONFIG_PATH
651PKG_CONFIG
652PC_OPENMP
653LIBTOOL_DEPS
654AS
655CXXCPP
656CPP
657LT_SYS_LIBRARY_PATH
658OTOOL64
659OTOOL
660LIPO
661NMEDIT
662DSYMUTIL
663MANIFEST_TOOL
664RANLIB
665ac_ct_AR
666AR
667DLLTOOL
668OBJDUMP
669LN_S
670NM
671ac_ct_DUMPBIN
672DUMPBIN
673LD
674FGREP
675EGREP
676GREP
677SED
678LIBTOOL
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
682ac_ct_CC
683CFLAGS
684CC
685am__fastdepCXX_FALSE
686am__fastdepCXX_TRUE
687CXXDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CXX
698CPPFLAGS
699LDFLAGS
700CXXFLAGS
701CXX
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_silent_rules
779enable_dependency_tracking
780enable_shared
781enable_static
782with_pic
783enable_fast_install
784with_aix_soname
785with_gnu_ld
786with_sysroot
787enable_libtool_lock
788enable_openmp
789enable_jpeg
790enable_jasper
791enable_zlib
792enable_lcms
793enable_examples
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CXX
799CXXFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CCC
804CC
805CFLAGS
806LT_SYS_LIBRARY_PATH
807CPP
808CXXCPP
809PKG_CONFIG
810PKG_CONFIG_PATH
811PKG_CONFIG_LIBDIR
812ZLIB_CFLAGS
813ZLIB_LIBS
814LCMS2_CFLAGS
815LCMS2_LIBS
816LCMS_CFLAGS
817LCMS_LIBS'
818
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823ac_unrecognized_opts=
824ac_unrecognized_sep=
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
847# (The list follows the same order as the GNU Coding Standards.)
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
867
868ac_prev=
869ac_dashdash=
870for ac_option
871do
872  # If the previous option needs an argument, assign it.
873  if test -n "$ac_prev"; then
874    eval $ac_prev=\$ac_option
875    ac_prev=
876    continue
877  fi
878
879  case $ac_option in
880  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881  *=)   ac_optarg= ;;
882  *)    ac_optarg=yes ;;
883  esac
884
885  # Accept the important Cygnus configure options, so we can diagnose typos.
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
1085  -program-transform-name=* | --program-transform-name=* \
1086  | --program-transform-nam=* | --program-transform-na=* \
1087  | --program-transform-n=* | --program-transform-=* \
1088  | --program-transform=* | --program-transfor=* \
1089  | --program-transfo=* | --program-transf=* \
1090  | --program-trans=* | --program-tran=* \
1091  | --progr-tra=* | --program-tr=* | --program-t=*)
1092    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109    ac_prev=sbindir ;;
1110  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111  | --sbi=* | --sb=*)
1112    sbindir=$ac_optarg ;;
1113
1114  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116  | --sharedst | --shareds | --shared | --share | --shar \
1117  | --sha | --sh)
1118    ac_prev=sharedstatedir ;;
1119  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122  | --sha=* | --sh=*)
1123    sharedstatedir=$ac_optarg ;;
1124
1125  -site | --site | --sit)
1126    ac_prev=site ;;
1127  -site=* | --site=* | --sit=*)
1128    site=$ac_optarg ;;
1129
1130  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131    ac_prev=srcdir ;;
1132  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133    srcdir=$ac_optarg ;;
1134
1135  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136  | --syscon | --sysco | --sysc | --sys | --sy)
1137    ac_prev=sysconfdir ;;
1138  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140    sysconfdir=$ac_optarg ;;
1141
1142  -target | --target | --targe | --targ | --tar | --ta | --t)
1143    ac_prev=target_alias ;;
1144  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145    target_alias=$ac_optarg ;;
1146
1147  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148    verbose=yes ;;
1149
1150  -version | --version | --versio | --versi | --vers | -V)
1151    ac_init_version=: ;;
1152
1153  -with-* | --with-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=\$ac_optarg ;;
1168
1169  -without-* | --without-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=no ;;
1184
1185  --x)
1186    # Obsolete; use --with-x.
1187    with_x=yes ;;
1188
1189  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190  | --x-incl | --x-inc | --x-in | --x-i)
1191    ac_prev=x_includes ;;
1192  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194    x_includes=$ac_optarg ;;
1195
1196  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198    ac_prev=x_libraries ;;
1199  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201    x_libraries=$ac_optarg ;;
1202
1203  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information"
1205    ;;
1206
1207  *=*)
1208    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209    # Reject names that are not valid shell variable names.
1210    case $ac_envvar in #(
1211      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213    esac
1214    eval $ac_envvar=\$ac_optarg
1215    export $ac_envvar ;;
1216
1217  *)
1218    # FIXME: should be removed in autoconf 3.0.
1219    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223    ;;
1224
1225  esac
1226done
1227
1228if test -n "$ac_prev"; then
1229  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230  as_fn_error $? "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234  case $enable_option_checking in
1235    no) ;;
1236    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238  esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243		datadir sysconfdir sharedstatedir localstatedir includedir \
1244		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245		libdir localedir mandir
1246do
1247  eval ac_val=\$$ac_var
1248  # Remove trailing slashes.
1249  case $ac_val in
1250    */ )
1251      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252      eval $ac_var=\$ac_val;;
1253  esac
1254  # Be sure to have absolute directory names.
1255  case $ac_val in
1256    [\\/$]* | ?:[\\/]* )  continue;;
1257    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258  esac
1259  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271  if test "x$build_alias" = x; then
1272    cross_compiling=maybe
1273  elif test "x$build_alias" != "x$host_alias"; then
1274    cross_compiling=yes
1275  fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
1282
1283
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287  as_fn_error $? "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289  as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294  ac_srcdir_defaulted=yes
1295  # Try the directory containing this script, then the parent directory.
1296  ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298	 X"$as_myself" : 'X\(//\)[^/]' \| \
1299	 X"$as_myself" : 'X\(//\)$' \| \
1300	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)[^/].*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\).*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  s/.*/./; q'`
1319  srcdir=$ac_confdir
1320  if test ! -r "$srcdir/$ac_unique_file"; then
1321    srcdir=..
1322  fi
1323else
1324  ac_srcdir_defaulted=no
1325fi
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333	pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336  srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_env_${ac_var}_value=\$${ac_var}
1347  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
1350
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355  # Omit some internal or obsolete options to make the list less imposing.
1356  # This message is too long to be a string in the A/UX 3.1 sh.
1357  cat <<_ACEOF
1358\`configure' configures LibRaw 0.20.2 to adapt to many kinds of systems.
1359
1360Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365Defaults for the options are specified in brackets.
1366
1367Configuration:
1368  -h, --help              display this help and exit
1369      --help=short        display options specific to this package
1370      --help=recursive    display the short help of all the included packages
1371  -V, --version           display version information and exit
1372  -q, --quiet, --silent   do not print \`checking ...' messages
1373      --cache-file=FILE   cache test results in FILE [disabled]
1374  -C, --config-cache      alias for \`--cache-file=config.cache'
1375  -n, --no-create         do not create output files
1376      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378Installation directories:
1379  --prefix=PREFIX         install architecture-independent files in PREFIX
1380                          @<:@@S|@ac_default_prefix@:>@
1381  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                          @<:@PREFIX@:>@
1383
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
1388
1389For better control, use the options below.
1390
1391Fine tuning of the installation directories:
1392  --bindir=DIR            user executables [EPREFIX/bin]
1393  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394  --libexecdir=DIR        program executables [EPREFIX/libexec]
1395  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libraw@:>@
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of LibRaw 0.20.2:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437  --disable-silent-rules  verbose build output (undo: "make V=0")
1438  --enable-dependency-tracking
1439                          do not reject slow dependency extractors
1440  --disable-dependency-tracking
1441                          speeds up one-time build
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-openmp    Enable OpenMP support
1448  --enable-jpeg    Enable JPEG support for Lossy compressed DNG files
1449  --enable-jasper    Enable Jasper (JPEG2000) support for RedCine files
1450  --enable-zlib    Enable zlib support for deflate compressed DNG files
1451  --enable-lcms    Enable LCMS support
1452  --enable-examples    Enable building of examples
1453
1454Optional Packages:
1455  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457  --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1458                          both@:>@
1459  --with-aix-soname=aix|svr4|both
1460                          shared library versioning (aka "SONAME") variant to
1461                          provide on AIX, @<:@default=aix@:>@.
1462  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1463  --with-sysroot@<:@=DIR@:>@    Search for dependent libraries within DIR (or the
1464                          compiler's sysroot if not specified).
1465
1466Some influential environment variables:
1467  CXX         C++ compiler command
1468  CXXFLAGS    C++ compiler flags
1469  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470              nonstandard directory <lib dir>
1471  LIBS        libraries to pass to the linker, e.g. -l<library>
1472  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CC          C compiler command
1475  CFLAGS      C compiler flags
1476  LT_SYS_LIBRARY_PATH
1477              User-defined run-time library search path.
1478  CPP         C preprocessor
1479  CXXCPP      C++ preprocessor
1480  PKG_CONFIG  path to pkg-config utility
1481  PKG_CONFIG_PATH
1482              directories to add to pkg-config's search path
1483  PKG_CONFIG_LIBDIR
1484              path overriding pkg-config's built-in search path
1485  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1486  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1487  LCMS2_CFLAGS
1488              C compiler flags for LCMS2, overriding pkg-config
1489  LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
1490  LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
1491  LCMS_LIBS   linker flags for LCMS, overriding pkg-config
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <info@libraw.org>.
1497LibRaw home page: <http://www.libraw.org>.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503  # If there are subdirs, report their specific --help.
1504  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505    test -d "$ac_dir" ||
1506      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507      continue
1508    ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514  # A ".." for each directory in $ac_dir_suffix.
1515  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516  case $ac_top_builddir_sub in
1517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519  esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527  .)  # We are building in place.
1528    ac_srcdir=.
1529    ac_top_srcdir=$ac_top_builddir_sub
1530    ac_abs_top_srcdir=$ac_pwd ;;
1531  [\\/]* | ?:[\\/]* )  # Absolute name.
1532    ac_srcdir=$srcdir$ac_dir_suffix;
1533    ac_top_srcdir=$srcdir
1534    ac_abs_top_srcdir=$srcdir ;;
1535  *) # Relative name.
1536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537    ac_top_srcdir=$ac_top_build_prefix$srcdir
1538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542    cd "$ac_dir" || { ac_status=$?; continue; }
1543    # Check for guested configure.
1544    if test -f "$ac_srcdir/configure.gnu"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547    elif test -f "$ac_srcdir/configure"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure" --help=recursive
1550    else
1551      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552    fi || ac_status=$?
1553    cd "$ac_pwd" || { ac_status=$?; break; }
1554  done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559  cat <<\_ACEOF
1560LibRaw configure 0.20.2
1561generated by GNU Autoconf 2.69
1562
1563Copyright (C) 2012 Free Software Foundation, Inc.
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567  exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574@%:@ ac_fn_cxx_try_compile LINENO
1575@%:@ ----------------------------
1576@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1577ac_fn_cxx_try_compile ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  rm -f conftest.$ac_objext
1581  if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_compile") 2>conftest.err
1589  ac_status=$?
1590  if test -s conftest.err; then
1591    grep -v '^ *+' conftest.err >conftest.er1
1592    cat conftest.er1 >&5
1593    mv -f conftest.er1 conftest.err
1594  fi
1595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596  test $ac_status = 0; } && {
1597	 test -z "$ac_cxx_werror_flag" ||
1598	 test ! -s conftest.err
1599       } && test -s conftest.$ac_objext; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} @%:@ ac_fn_cxx_try_compile
1611
1612@%:@ ac_fn_c_try_compile LINENO
1613@%:@ --------------------------
1614@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1615ac_fn_c_try_compile ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  rm -f conftest.$ac_objext
1619  if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626  (eval "$ac_compile") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && {
1635	 test -z "$ac_c_werror_flag" ||
1636	 test ! -s conftest.err
1637       } && test -s conftest.$ac_objext; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643	ac_retval=1
1644fi
1645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646  as_fn_set_status $ac_retval
1647
1648} @%:@ ac_fn_c_try_compile
1649
1650@%:@ ac_fn_c_try_link LINENO
1651@%:@ -----------------------
1652@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1653ac_fn_c_try_link ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext conftest$ac_exeext
1657  if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_link") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && {
1673	 test -z "$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       } && test -s conftest$ac_exeext && {
1676	 test "$cross_compiling" = yes ||
1677	 test -x conftest$ac_exeext
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684	ac_retval=1
1685fi
1686  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688  # interfere with the next link command; also delete a directory that is
1689  # left behind by Apple's compiler.  We do this before executing the actions.
1690  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} @%:@ ac_fn_c_try_link
1695
1696@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697@%:@ -------------------------------------------------------
1698@%:@ Tests whether HEADER exists and can be compiled using the include files in
1699@%:@ INCLUDES, setting the cache variable VAR accordingly.
1700ac_fn_c_check_header_compile ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if eval \${$3+:} false; then :
1706  $as_echo_n "(cached) " >&6
1707else
1708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h.  */
1710$4
1711@%:@include <$2>
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714  eval "$3=yes"
1715else
1716  eval "$3=no"
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725} @%:@ ac_fn_c_check_header_compile
1726
1727@%:@ ac_fn_c_try_cpp LINENO
1728@%:@ ----------------------
1729@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1730ac_fn_c_try_cpp ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { { ac_try="$ac_cpp conftest.$ac_ext"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741  ac_status=$?
1742  if test -s conftest.err; then
1743    grep -v '^ *+' conftest.err >conftest.er1
1744    cat conftest.er1 >&5
1745    mv -f conftest.er1 conftest.err
1746  fi
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } > conftest.i && {
1749	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750	 test ! -s conftest.err
1751       }; then :
1752  ac_retval=0
1753else
1754  $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757    ac_retval=1
1758fi
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} @%:@ ac_fn_c_try_cpp
1763
1764@%:@ ac_fn_c_try_run LINENO
1765@%:@ ----------------------
1766@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1767@%:@ that executables *can* be run.
1768ac_fn_c_try_run ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782  { { case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_try") 2>&5
1789  ac_status=$?
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; }; }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: program exited with status $ac_status" >&5
1795       $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798       ac_retval=$ac_status
1799fi
1800  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} @%:@ ac_fn_c_try_run
1805
1806@%:@ ac_fn_c_check_func LINENO FUNC VAR
1807@%:@ ----------------------------------
1808@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1809ac_fn_c_check_func ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813$as_echo_n "checking for $2... " >&6; }
1814if eval \${$3+:} false; then :
1815  $as_echo_n "(cached) " >&6
1816else
1817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h.  */
1819/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1821#define $2 innocuous_$2
1822
1823/* System header to define __stub macros and hopefully few prototypes,
1824    which can conflict with char $2 (); below.
1825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1826    <limits.h> exists even on freestanding compilers.  */
1827
1828#ifdef __STDC__
1829# include <limits.h>
1830#else
1831# include <assert.h>
1832#endif
1833
1834#undef $2
1835
1836/* Override any GCC internal prototype to avoid an error.
1837   Use char because int might match the return type of a GCC
1838   builtin and then its argument prototype would still apply.  */
1839#ifdef __cplusplus
1840extern "C"
1841#endif
1842char $2 ();
1843/* The GNU C library defines this for functions which it implements
1844    to always fail with ENOSYS.  Some functions are actually named
1845    something starting with __ and the normal name is an alias.  */
1846#if defined __stub_$2 || defined __stub___$2
1847choke me
1848#endif
1849
1850int
1851main ()
1852{
1853return $2 ();
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_link "$LINENO"; then :
1859  eval "$3=yes"
1860else
1861  eval "$3=no"
1862fi
1863rm -f core conftest.err conftest.$ac_objext \
1864    conftest$ac_exeext conftest.$ac_ext
1865fi
1866eval ac_res=\$$3
1867	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; }
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871} @%:@ ac_fn_c_check_func
1872
1873@%:@ ac_fn_cxx_try_cpp LINENO
1874@%:@ ------------------------
1875@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1876ac_fn_cxx_try_cpp ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  if { { ac_try="$ac_cpp conftest.$ac_ext"
1880case "(($ac_try" in
1881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882  *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887  ac_status=$?
1888  if test -s conftest.err; then
1889    grep -v '^ *+' conftest.err >conftest.er1
1890    cat conftest.er1 >&5
1891    mv -f conftest.er1 conftest.err
1892  fi
1893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894  test $ac_status = 0; } > conftest.i && {
1895	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1896	 test ! -s conftest.err
1897       }; then :
1898  ac_retval=0
1899else
1900  $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903    ac_retval=1
1904fi
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906  as_fn_set_status $ac_retval
1907
1908} @%:@ ac_fn_cxx_try_cpp
1909
1910@%:@ ac_fn_cxx_try_link LINENO
1911@%:@ -------------------------
1912@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1913ac_fn_cxx_try_link ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  rm -f conftest.$ac_objext conftest$ac_exeext
1917  if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920  *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924  (eval "$ac_link") 2>conftest.err
1925  ac_status=$?
1926  if test -s conftest.err; then
1927    grep -v '^ *+' conftest.err >conftest.er1
1928    cat conftest.er1 >&5
1929    mv -f conftest.er1 conftest.err
1930  fi
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; } && {
1933	 test -z "$ac_cxx_werror_flag" ||
1934	 test ! -s conftest.err
1935       } && test -s conftest$ac_exeext && {
1936	 test "$cross_compiling" = yes ||
1937	 test -x conftest$ac_exeext
1938       }; then :
1939  ac_retval=0
1940else
1941  $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944	ac_retval=1
1945fi
1946  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948  # interfere with the next link command; also delete a directory that is
1949  # left behind by Apple's compiler.  We do this before executing the actions.
1950  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952  as_fn_set_status $ac_retval
1953
1954} @%:@ ac_fn_cxx_try_link
1955
1956@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1957@%:@ -------------------------------------------------------
1958@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1959@%:@ the include files in INCLUDES and setting the cache variable VAR
1960@%:@ accordingly.
1961ac_fn_c_check_header_mongrel ()
1962{
1963  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964  if eval \${$3+:} false; then :
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973else
1974  # Is the header compilable?
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1976$as_echo_n "checking $2 usability... " >&6; }
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980@%:@include <$2>
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983  ac_header_compiler=yes
1984else
1985  ac_header_compiler=no
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1989$as_echo "$ac_header_compiler" >&6; }
1990
1991# Is the header present?
1992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1993$as_echo_n "checking $2 presence... " >&6; }
1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996@%:@include <$2>
1997_ACEOF
1998if ac_fn_c_try_cpp "$LINENO"; then :
1999  ac_header_preproc=yes
2000else
2001  ac_header_preproc=no
2002fi
2003rm -f conftest.err conftest.i conftest.$ac_ext
2004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2005$as_echo "$ac_header_preproc" >&6; }
2006
2007# So?  What about this header?
2008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009  yes:no: )
2010    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2011$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2012    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014    ;;
2015  no:yes:* )
2016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2017$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2019$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2020    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2021$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2022    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2023$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026( $as_echo "## ------------------------------ ##
2027## Report this to info@libraw.org ##
2028## ------------------------------ ##"
2029     ) | sed "s/^/$as_me: WARNING:     /" >&2
2030    ;;
2031esac
2032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033$as_echo_n "checking for $2... " >&6; }
2034if eval \${$3+:} false; then :
2035  $as_echo_n "(cached) " >&6
2036else
2037  eval "$3=\$ac_header_compiler"
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042fi
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045} @%:@ ac_fn_c_check_header_mongrel
2046cat >config.log <<_ACEOF
2047This file contains any messages produced by compilers while
2048running configure, to aid debugging if configure makes a mistake.
2049
2050It was created by LibRaw $as_me 0.20.2, which was
2051generated by GNU Autoconf 2.69.  Invocation command line was
2052
2053  $ $0 $@
2054
2055_ACEOF
2056exec 5>>config.log
2057{
2058cat <<_ASUNAME
2059## --------- ##
2060## Platform. ##
2061## --------- ##
2062
2063hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2064uname -m = `(uname -m) 2>/dev/null || echo unknown`
2065uname -r = `(uname -r) 2>/dev/null || echo unknown`
2066uname -s = `(uname -s) 2>/dev/null || echo unknown`
2067uname -v = `(uname -v) 2>/dev/null || echo unknown`
2068
2069/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2070/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2071
2072/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2073/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2074/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2075/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2076/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2077/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2078/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2079
2080_ASUNAME
2081
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  test -z "$as_dir" && as_dir=.
2087    $as_echo "PATH: $as_dir"
2088  done
2089IFS=$as_save_IFS
2090
2091} >&5
2092
2093cat >&5 <<_ACEOF
2094
2095
2096## ----------- ##
2097## Core tests. ##
2098## ----------- ##
2099
2100_ACEOF
2101
2102
2103# Keep a trace of the command line.
2104# Strip out --no-create and --no-recursion so they do not pile up.
2105# Strip out --silent because we don't want to record it for future runs.
2106# Also quote any args containing shell meta-characters.
2107# Make two passes to allow for proper duplicate-argument suppression.
2108ac_configure_args=
2109ac_configure_args0=
2110ac_configure_args1=
2111ac_must_keep_next=false
2112for ac_pass in 1 2
2113do
2114  for ac_arg
2115  do
2116    case $ac_arg in
2117    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2118    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2119    | -silent | --silent | --silen | --sile | --sil)
2120      continue ;;
2121    *\'*)
2122      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2123    esac
2124    case $ac_pass in
2125    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2126    2)
2127      as_fn_append ac_configure_args1 " '$ac_arg'"
2128      if test $ac_must_keep_next = true; then
2129	ac_must_keep_next=false # Got value, back to normal.
2130      else
2131	case $ac_arg in
2132	  *=* | --config-cache | -C | -disable-* | --disable-* \
2133	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2134	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2135	  | -with-* | --with-* | -without-* | --without-* | --x)
2136	    case "$ac_configure_args0 " in
2137	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138	    esac
2139	    ;;
2140	  -* ) ac_must_keep_next=true ;;
2141	esac
2142      fi
2143      as_fn_append ac_configure_args " '$ac_arg'"
2144      ;;
2145    esac
2146  done
2147done
2148{ ac_configure_args0=; unset ac_configure_args0;}
2149{ ac_configure_args1=; unset ac_configure_args1;}
2150
2151# When interrupted or exit'd, cleanup temporary files, and complete
2152# config.log.  We remove comments because anyway the quotes in there
2153# would cause problems or look ugly.
2154# WARNING: Use '\'' to represent an apostrophe within the trap.
2155# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2156trap 'exit_status=$?
2157  # Save into config.log some information that might help in debugging.
2158  {
2159    echo
2160
2161    $as_echo "## ---------------- ##
2162## Cache variables. ##
2163## ---------------- ##"
2164    echo
2165    # The following way of writing the cache mishandles newlines in values,
2166(
2167  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168    eval ac_val=\$$ac_var
2169    case $ac_val in #(
2170    *${as_nl}*)
2171      case $ac_var in #(
2172      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174      esac
2175      case $ac_var in #(
2176      _ | IFS | as_nl) ;; #(
2177      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178      *) { eval $ac_var=; unset $ac_var;} ;;
2179      esac ;;
2180    esac
2181  done
2182  (set) 2>&1 |
2183    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184    *${as_nl}ac_space=\ *)
2185      sed -n \
2186	"s/'\''/'\''\\\\'\'''\''/g;
2187	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188      ;; #(
2189    *)
2190      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191      ;;
2192    esac |
2193    sort
2194)
2195    echo
2196
2197    $as_echo "## ----------------- ##
2198## Output variables. ##
2199## ----------------- ##"
2200    echo
2201    for ac_var in $ac_subst_vars
2202    do
2203      eval ac_val=\$$ac_var
2204      case $ac_val in
2205      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206      esac
2207      $as_echo "$ac_var='\''$ac_val'\''"
2208    done | sort
2209    echo
2210
2211    if test -n "$ac_subst_files"; then
2212      $as_echo "## ------------------- ##
2213## File substitutions. ##
2214## ------------------- ##"
2215      echo
2216      for ac_var in $ac_subst_files
2217      do
2218	eval ac_val=\$$ac_var
2219	case $ac_val in
2220	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221	esac
2222	$as_echo "$ac_var='\''$ac_val'\''"
2223      done | sort
2224      echo
2225    fi
2226
2227    if test -s confdefs.h; then
2228      $as_echo "## ----------- ##
2229## confdefs.h. ##
2230## ----------- ##"
2231      echo
2232      cat confdefs.h
2233      echo
2234    fi
2235    test "$ac_signal" != 0 &&
2236      $as_echo "$as_me: caught signal $ac_signal"
2237    $as_echo "$as_me: exit $exit_status"
2238  } >&5
2239  rm -f core *.core core.conftest.* &&
2240    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2241    exit $exit_status
2242' 0
2243for ac_signal in 1 2 13 15; do
2244  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245done
2246ac_signal=0
2247
2248# confdefs.h avoids OS command line length limits that DEFS can exceed.
2249rm -f -r conftest* confdefs.h
2250
2251$as_echo "/* confdefs.h */" > confdefs.h
2252
2253# Predefined preprocessor variables.
2254
2255cat >>confdefs.h <<_ACEOF
2256@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261_ACEOF
2262
2263cat >>confdefs.h <<_ACEOF
2264@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2265_ACEOF
2266
2267cat >>confdefs.h <<_ACEOF
2268@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276@%:@define PACKAGE_URL "$PACKAGE_URL"
2277_ACEOF
2278
2279
2280# Let the site file select an alternate cache file if it wants to.
2281# Prefer an explicitly selected file to automatically selected ones.
2282ac_site_file1=NONE
2283ac_site_file2=NONE
2284if test -n "$CONFIG_SITE"; then
2285  # We do not want a PATH search for config.site.
2286  case $CONFIG_SITE in @%:@((
2287    -*)  ac_site_file1=./$CONFIG_SITE;;
2288    */*) ac_site_file1=$CONFIG_SITE;;
2289    *)   ac_site_file1=./$CONFIG_SITE;;
2290  esac
2291elif test "x$prefix" != xNONE; then
2292  ac_site_file1=$prefix/share/config.site
2293  ac_site_file2=$prefix/etc/config.site
2294else
2295  ac_site_file1=$ac_default_prefix/share/config.site
2296  ac_site_file2=$ac_default_prefix/etc/config.site
2297fi
2298for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2299do
2300  test "x$ac_site_file" = xNONE && continue
2301  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2302    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2303$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2304    sed 's/^/| /' "$ac_site_file" >&5
2305    . "$ac_site_file" \
2306      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308as_fn_error $? "failed to load site script $ac_site_file
2309See \`config.log' for more details" "$LINENO" 5; }
2310  fi
2311done
2312
2313if test -r "$cache_file"; then
2314  # Some versions of bash will fail to source /dev/null (special files
2315  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2316  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2317    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2318$as_echo "$as_me: loading cache $cache_file" >&6;}
2319    case $cache_file in
2320      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2321      *)                      . "./$cache_file";;
2322    esac
2323  fi
2324else
2325  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2326$as_echo "$as_me: creating cache $cache_file" >&6;}
2327  >$cache_file
2328fi
2329
2330# Check that the precious variables saved in the cache have kept the same
2331# value.
2332ac_cache_corrupted=false
2333for ac_var in $ac_precious_vars; do
2334  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2335  eval ac_new_set=\$ac_env_${ac_var}_set
2336  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2337  eval ac_new_val=\$ac_env_${ac_var}_value
2338  case $ac_old_set,$ac_new_set in
2339    set,)
2340      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2341$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2342      ac_cache_corrupted=: ;;
2343    ,set)
2344      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2345$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2346      ac_cache_corrupted=: ;;
2347    ,);;
2348    *)
2349      if test "x$ac_old_val" != "x$ac_new_val"; then
2350	# differences in whitespace do not lead to failure.
2351	ac_old_val_w=`echo x $ac_old_val`
2352	ac_new_val_w=`echo x $ac_new_val`
2353	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2354	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2355$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2356	  ac_cache_corrupted=:
2357	else
2358	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2359$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2360	  eval $ac_var=\$ac_old_val
2361	fi
2362	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2363$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2364	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2365$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2366      fi;;
2367  esac
2368  # Pass precious variables to config.status.
2369  if test "$ac_new_set" = set; then
2370    case $ac_new_val in
2371    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2372    *) ac_arg=$ac_var=$ac_new_val ;;
2373    esac
2374    case " $ac_configure_args " in
2375      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2376      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2377    esac
2378  fi
2379done
2380if $ac_cache_corrupted; then
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2384$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2385  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2386fi
2387## -------------------- ##
2388## Main body of script. ##
2389## -------------------- ##
2390
2391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
2397
2398am__api_version='1.15'
2399
2400ac_aux_dir=
2401for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2402  if test -f "$ac_dir/install-sh"; then
2403    ac_aux_dir=$ac_dir
2404    ac_install_sh="$ac_aux_dir/install-sh -c"
2405    break
2406  elif test -f "$ac_dir/install.sh"; then
2407    ac_aux_dir=$ac_dir
2408    ac_install_sh="$ac_aux_dir/install.sh -c"
2409    break
2410  elif test -f "$ac_dir/shtool"; then
2411    ac_aux_dir=$ac_dir
2412    ac_install_sh="$ac_aux_dir/shtool install -c"
2413    break
2414  fi
2415done
2416if test -z "$ac_aux_dir"; then
2417  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2418fi
2419
2420# These three variables are undocumented and unsupported,
2421# and are intended to be withdrawn in a future Autoconf release.
2422# They can cause serious problems if a builder's source tree is in a directory
2423# whose full name contains unusual characters.
2424ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2425ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2426ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2427
2428
2429# Find a good install program.  We prefer a C program (faster),
2430# so one script is as good as another.  But avoid the broken or
2431# incompatible versions:
2432# SysV /etc/install, /usr/sbin/install
2433# SunOS /usr/etc/install
2434# IRIX /sbin/install
2435# AIX /bin/install
2436# AmigaOS /C/install, which installs bootblocks on floppy discs
2437# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2438# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2439# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2440# OS/2's system install, which has a completely different semantic
2441# ./install, which can be erroneously created by make from ./install.sh.
2442# Reject install programs that cannot install multiple files.
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2444$as_echo_n "checking for a BSD-compatible install... " >&6; }
2445if test -z "$INSTALL"; then
2446if ${ac_cv_path_install+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452  IFS=$as_save_IFS
2453  test -z "$as_dir" && as_dir=.
2454    # Account for people who put trailing slashes in PATH elements.
2455case $as_dir/ in @%:@((
2456  ./ | .// | /[cC]/* | \
2457  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2458  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2459  /usr/ucb/* ) ;;
2460  *)
2461    # OSF1 and SCO ODT 3.0 have their own names for install.
2462    # Don't use installbsd from OSF since it installs stuff as root
2463    # by default.
2464    for ac_prog in ginstall scoinst install; do
2465      for ac_exec_ext in '' $ac_executable_extensions; do
2466	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2467	  if test $ac_prog = install &&
2468	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469	    # AIX install.  It has an incompatible calling convention.
2470	    :
2471	  elif test $ac_prog = install &&
2472	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473	    # program-specific install script used by HP pwplus--don't use.
2474	    :
2475	  else
2476	    rm -rf conftest.one conftest.two conftest.dir
2477	    echo one > conftest.one
2478	    echo two > conftest.two
2479	    mkdir conftest.dir
2480	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2481	      test -s conftest.one && test -s conftest.two &&
2482	      test -s conftest.dir/conftest.one &&
2483	      test -s conftest.dir/conftest.two
2484	    then
2485	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486	      break 3
2487	    fi
2488	  fi
2489	fi
2490      done
2491    done
2492    ;;
2493esac
2494
2495  done
2496IFS=$as_save_IFS
2497
2498rm -rf conftest.one conftest.two conftest.dir
2499
2500fi
2501  if test "${ac_cv_path_install+set}" = set; then
2502    INSTALL=$ac_cv_path_install
2503  else
2504    # As a last resort, use the slow shell script.  Don't cache a
2505    # value for INSTALL within a source directory, because that will
2506    # break other packages using the cache if that directory is
2507    # removed, or if the value is a relative name.
2508    INSTALL=$ac_install_sh
2509  fi
2510fi
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2512$as_echo "$INSTALL" >&6; }
2513
2514# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515# It thinks the first close brace ends the variable substitution.
2516test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2517
2518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2519
2520test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2521
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2523$as_echo_n "checking whether build environment is sane... " >&6; }
2524# Reject unsafe characters in $srcdir or the absolute working directory
2525# name.  Accept space and tab only in the latter.
2526am_lf='
2527'
2528case `pwd` in
2529  *[\\\"\#\$\&\'\`$am_lf]*)
2530    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2531esac
2532case $srcdir in
2533  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2534    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2535esac
2536
2537# Do 'set' in a subshell so we don't clobber the current shell's
2538# arguments.  Must try -L first in case configure is actually a
2539# symlink; some systems play weird games with the mod time of symlinks
2540# (eg FreeBSD returns the mod time of the symlink's containing
2541# directory).
2542if (
2543   am_has_slept=no
2544   for am_try in 1 2; do
2545     echo "timestamp, slept: $am_has_slept" > conftest.file
2546     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2547     if test "$*" = "X"; then
2548	# -L didn't work.
2549	set X `ls -t "$srcdir/configure" conftest.file`
2550     fi
2551     if test "$*" != "X $srcdir/configure conftest.file" \
2552	&& test "$*" != "X conftest.file $srcdir/configure"; then
2553
2554	# If neither matched, then we have a broken ls.  This can happen
2555	# if, for instance, CONFIG_SHELL is bash and it inherits a
2556	# broken ls alias from the environment.  This has actually
2557	# happened.  Such a system could not be considered "sane".
2558	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2559  alias in your environment" "$LINENO" 5
2560     fi
2561     if test "$2" = conftest.file || test $am_try -eq 2; then
2562       break
2563     fi
2564     # Just in case.
2565     sleep 1
2566     am_has_slept=yes
2567   done
2568   test "$2" = conftest.file
2569   )
2570then
2571   # Ok.
2572   :
2573else
2574   as_fn_error $? "newly created file is older than distributed files!
2575Check your system clock" "$LINENO" 5
2576fi
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578$as_echo "yes" >&6; }
2579# If we didn't sleep, we still need to ensure time stamps of config.status and
2580# generated files are strictly newer.
2581am_sleep_pid=
2582if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2583  ( sleep 1 ) &
2584  am_sleep_pid=$!
2585fi
2586
2587rm -f conftest.file
2588
2589test "$program_prefix" != NONE &&
2590  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591# Use a double $ so make ignores it.
2592test "$program_suffix" != NONE &&
2593  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594# Double any \ or $.
2595# By default was `s,x,x', remove it if useless.
2596ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2598
2599# Expand $ac_aux_dir to an absolute path.
2600am_aux_dir=`cd "$ac_aux_dir" && pwd`
2601
2602if test x"${MISSING+set}" != xset; then
2603  case $am_aux_dir in
2604  *\ * | *\	*)
2605    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2606  *)
2607    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608  esac
2609fi
2610# Use eval to expand $SHELL
2611if eval "$MISSING --is-lightweight"; then
2612  am_missing_run="$MISSING "
2613else
2614  am_missing_run=
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2616$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2617fi
2618
2619if test x"${install_sh+set}" != xset; then
2620  case $am_aux_dir in
2621  *\ * | *\	*)
2622    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2623  *)
2624    install_sh="\${SHELL} $am_aux_dir/install-sh"
2625  esac
2626fi
2627
2628# Installed binaries are usually stripped using 'strip' when the user
2629# run "make install-strip".  However 'strip' might not be the right
2630# tool to use in cross-compilation environments, therefore Automake
2631# will honor the 'STRIP' environment variable to overrule this program.
2632if test "$cross_compiling" != no; then
2633  if test -n "$ac_tool_prefix"; then
2634  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635set dummy ${ac_tool_prefix}strip; ac_word=$2
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637$as_echo_n "checking for $ac_word... " >&6; }
2638if ${ac_cv_prog_STRIP+:} false; then :
2639  $as_echo_n "(cached) " >&6
2640else
2641  if test -n "$STRIP"; then
2642  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649    for ac_exec_ext in '' $ac_executable_extensions; do
2650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653    break 2
2654  fi
2655done
2656  done
2657IFS=$as_save_IFS
2658
2659fi
2660fi
2661STRIP=$ac_cv_prog_STRIP
2662if test -n "$STRIP"; then
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664$as_echo "$STRIP" >&6; }
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668fi
2669
2670
2671fi
2672if test -z "$ac_cv_prog_STRIP"; then
2673  ac_ct_STRIP=$STRIP
2674  # Extract the first word of "strip", so it can be a program name with args.
2675set dummy strip; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  if test -n "$ac_ct_STRIP"; then
2682  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    for ac_exec_ext in '' $ac_executable_extensions; do
2690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    ac_cv_prog_ac_ct_STRIP="strip"
2692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702if test -n "$ac_ct_STRIP"; then
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704$as_echo "$ac_ct_STRIP" >&6; }
2705else
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710  if test "x$ac_ct_STRIP" = x; then
2711    STRIP=":"
2712  else
2713    case $cross_compiling:$ac_tool_warned in
2714yes:)
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717ac_tool_warned=yes ;;
2718esac
2719    STRIP=$ac_ct_STRIP
2720  fi
2721else
2722  STRIP="$ac_cv_prog_STRIP"
2723fi
2724
2725fi
2726INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730if test -z "$MKDIR_P"; then
2731  if ${ac_cv_path_mkdir+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736do
2737  IFS=$as_save_IFS
2738  test -z "$as_dir" && as_dir=.
2739    for ac_prog in mkdir gmkdir; do
2740	 for ac_exec_ext in '' $ac_executable_extensions; do
2741	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2742	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743	     'mkdir (GNU coreutils) '* | \
2744	     'mkdir (coreutils) '* | \
2745	     'mkdir (fileutils) '4.1*)
2746	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747	       break 3;;
2748	   esac
2749	 done
2750       done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755
2756  test -d ./--version && rmdir ./--version
2757  if test "${ac_cv_path_mkdir+set}" = set; then
2758    MKDIR_P="$ac_cv_path_mkdir -p"
2759  else
2760    # As a last resort, use the slow shell script.  Don't cache a
2761    # value for MKDIR_P within a source directory, because that will
2762    # break other packages using the cache if that directory is
2763    # removed, or if the value is a relative name.
2764    MKDIR_P="$ac_install_sh -d"
2765  fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768$as_echo "$MKDIR_P" >&6; }
2769
2770for ac_prog in gawk mawk nawk awk
2771do
2772  # Extract the first word of "$ac_prog", so it can be a program name with args.
2773set dummy $ac_prog; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if ${ac_cv_prog_AWK+:} false; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  if test -n "$AWK"; then
2780  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787    for ac_exec_ext in '' $ac_executable_extensions; do
2788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789    ac_cv_prog_AWK="$ac_prog"
2790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794  done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799AWK=$ac_cv_prog_AWK
2800if test -n "$AWK"; then
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802$as_echo "$AWK" >&6; }
2803else
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809  test -n "$AWK" && break
2810done
2811
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2813$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2814set x ${MAKE-make}
2815ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2816if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2817  $as_echo_n "(cached) " >&6
2818else
2819  cat >conftest.make <<\_ACEOF
2820SHELL = /bin/sh
2821all:
2822	@echo '@@@%%%=$(MAKE)=@@@%%%'
2823_ACEOF
2824# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2825case `${MAKE-make} -f conftest.make 2>/dev/null` in
2826  *@@@%%%=?*=@@@%%%*)
2827    eval ac_cv_prog_make_${ac_make}_set=yes;;
2828  *)
2829    eval ac_cv_prog_make_${ac_make}_set=no;;
2830esac
2831rm -f conftest.make
2832fi
2833if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835$as_echo "yes" >&6; }
2836  SET_MAKE=
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840  SET_MAKE="MAKE=${MAKE-make}"
2841fi
2842
2843rm -rf .tst 2>/dev/null
2844mkdir .tst 2>/dev/null
2845if test -d .tst; then
2846  am__leading_dot=.
2847else
2848  am__leading_dot=_
2849fi
2850rmdir .tst 2>/dev/null
2851
2852@%:@ Check whether --enable-silent-rules was given.
2853if test "${enable_silent_rules+set}" = set; then :
2854  enableval=$enable_silent_rules;
2855fi
2856
2857case $enable_silent_rules in @%:@ (((
2858  yes) AM_DEFAULT_VERBOSITY=0;;
2859   no) AM_DEFAULT_VERBOSITY=1;;
2860    *) AM_DEFAULT_VERBOSITY=1;;
2861esac
2862am_make=${MAKE-make}
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2864$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2865if ${am_cv_make_support_nested_variables+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  if $as_echo 'TRUE=$(BAR$(V))
2869BAR0=false
2870BAR1=true
2871V=1
2872am__doit:
2873	@$(TRUE)
2874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2875  am_cv_make_support_nested_variables=yes
2876else
2877  am_cv_make_support_nested_variables=no
2878fi
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2881$as_echo "$am_cv_make_support_nested_variables" >&6; }
2882if test $am_cv_make_support_nested_variables = yes; then
2883    AM_V='$(V)'
2884  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2885else
2886  AM_V=$AM_DEFAULT_VERBOSITY
2887  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2888fi
2889AM_BACKSLASH='\'
2890
2891if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893  # is not polluted with repeated "-I."
2894  am__isrc=' -I$(srcdir)'
2895  # test to see if srcdir already configured
2896  if test -f $srcdir/config.status; then
2897    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2898  fi
2899fi
2900
2901# test whether we have cygpath
2902if test -z "$CYGPATH_W"; then
2903  if (cygpath --version) >/dev/null 2>/dev/null; then
2904    CYGPATH_W='cygpath -w'
2905  else
2906    CYGPATH_W=echo
2907  fi
2908fi
2909
2910
2911# Define the identity of the package.
2912 PACKAGE='libraw'
2913 VERSION='0.20.2'
2914
2915
2916# Some tools Automake needs.
2917
2918ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919
2920
2921AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922
2923
2924AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925
2926
2927AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928
2929
2930MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931
2932# For better backward compatibility.  To be removed once Automake 1.9.x
2933# dies out for good.  For more background, see:
2934# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2935# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2936mkdir_p='$(MKDIR_P)'
2937
2938# We need awk for the "check" target (and possibly the TAP driver).  The
2939# system "awk" is bad on some platforms.
2940# Always define AMTAR for backward compatibility.  Yes, it's still used
2941# in the wild :-(  We should find a proper way to deprecate it ...
2942AMTAR='$${TAR-tar}'
2943
2944
2945# We'll loop over all known methods to create a tar archive until one works.
2946_am_tools='gnutar  pax cpio none'
2947
2948am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2949
2950
2951
2952
2953
2954
2955# POSIX will say in a future version that running "rm -f" with no argument
2956# is OK; and we want to be able to make that assumption in our Makefile
2957# recipes.  So use an aggressive probe to check that the usage we want is
2958# actually supported "in the wild" to an acceptable degree.
2959# See automake bug#10828.
2960# To make any issue more visible, cause the running configure to be aborted
2961# by default if the 'rm' program in use doesn't match our expectations; the
2962# user can still override this though.
2963if rm -f && rm -fr && rm -rf; then : OK; else
2964  cat >&2 <<'END'
2965Oops!
2966
2967Your 'rm' program seems unable to run without file operands specified
2968on the command line, even when the '-f' option is present.  This is contrary
2969to the behaviour of most rm programs out there, and not conforming with
2970the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2971
2972Please tell bug-automake@gnu.org about your system, including the value
2973of your $PATH and any error possibly output before this message.  This
2974can help us improve future automake versions.
2975
2976END
2977  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2978    echo 'Configuration will proceed anyway, since you have set the' >&2
2979    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2980    echo >&2
2981  else
2982    cat >&2 <<'END'
2983Aborting the configuration process, to ensure you take notice of the issue.
2984
2985You can download and install GNU coreutils to get an 'rm' implementation
2986that behaves properly: <http://www.gnu.org/software/coreutils/>.
2987
2988If you want to complete the configuration process using your problematic
2989'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2990to "yes", and re-run configure.
2991
2992END
2993    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2994  fi
2995fi
2996
2997#AM_SILENT_RULES([yes])
2998
2999# Make sure we can run config.sub.
3000$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3001  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3002
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3004$as_echo_n "checking build system type... " >&6; }
3005if ${ac_cv_build+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  ac_build_alias=$build_alias
3009test "x$ac_build_alias" = x &&
3010  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3011test "x$ac_build_alias" = x &&
3012  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3013ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3014  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3015
3016fi
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3018$as_echo "$ac_cv_build" >&6; }
3019case $ac_cv_build in
3020*-*-*) ;;
3021*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3022esac
3023build=$ac_cv_build
3024ac_save_IFS=$IFS; IFS='-'
3025set x $ac_cv_build
3026shift
3027build_cpu=$1
3028build_vendor=$2
3029shift; shift
3030# Remember, the first character of IFS is used to create $*,
3031# except with old shells:
3032build_os=$*
3033IFS=$ac_save_IFS
3034case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3035
3036
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3038$as_echo_n "checking host system type... " >&6; }
3039if ${ac_cv_host+:} false; then :
3040  $as_echo_n "(cached) " >&6
3041else
3042  if test "x$host_alias" = x; then
3043  ac_cv_host=$ac_cv_build
3044else
3045  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3046    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3047fi
3048
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3051$as_echo "$ac_cv_host" >&6; }
3052case $ac_cv_host in
3053*-*-*) ;;
3054*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3055esac
3056host=$ac_cv_host
3057ac_save_IFS=$IFS; IFS='-'
3058set x $ac_cv_host
3059shift
3060host_cpu=$1
3061host_vendor=$2
3062shift; shift
3063# Remember, the first character of IFS is used to create $*,
3064# except with old shells:
3065host_os=$*
3066IFS=$ac_save_IFS
3067case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3068
3069
3070
3071# Tools to use
3072ac_ext=cpp
3073ac_cpp='$CXXCPP $CPPFLAGS'
3074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3077if test -z "$CXX"; then
3078  if test -n "$CCC"; then
3079    CXX=$CCC
3080  else
3081    if test -n "$ac_tool_prefix"; then
3082  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3083  do
3084    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_CXX+:} false; then :
3089  $as_echo_n "(cached) " >&6
3090else
3091  if test -n "$CXX"; then
3092  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097  IFS=$as_save_IFS
3098  test -z "$as_dir" && as_dir=.
3099    for ac_exec_ext in '' $ac_executable_extensions; do
3100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103    break 2
3104  fi
3105done
3106  done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111CXX=$ac_cv_prog_CXX
3112if test -n "$CXX"; then
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3114$as_echo "$CXX" >&6; }
3115else
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120
3121    test -n "$CXX" && break
3122  done
3123fi
3124if test -z "$CXX"; then
3125  ac_ct_CXX=$CXX
3126  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3127do
3128  # Extract the first word of "$ac_prog", so it can be a program name with args.
3129set dummy $ac_prog; ac_word=$2
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131$as_echo_n "checking for $ac_word... " >&6; }
3132if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3133  $as_echo_n "(cached) " >&6
3134else
3135  if test -n "$ac_ct_CXX"; then
3136  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141  IFS=$as_save_IFS
3142  test -z "$as_dir" && as_dir=.
3143    for ac_exec_ext in '' $ac_executable_extensions; do
3144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145    ac_cv_prog_ac_ct_CXX="$ac_prog"
3146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147    break 2
3148  fi
3149done
3150  done
3151IFS=$as_save_IFS
3152
3153fi
3154fi
3155ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3156if test -n "$ac_ct_CXX"; then
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3158$as_echo "$ac_ct_CXX" >&6; }
3159else
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162fi
3163
3164
3165  test -n "$ac_ct_CXX" && break
3166done
3167
3168  if test "x$ac_ct_CXX" = x; then
3169    CXX="g++"
3170  else
3171    case $cross_compiling:$ac_tool_warned in
3172yes:)
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175ac_tool_warned=yes ;;
3176esac
3177    CXX=$ac_ct_CXX
3178  fi
3179fi
3180
3181  fi
3182fi
3183# Provide some information about the compiler.
3184$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3185set X $ac_compile
3186ac_compiler=$2
3187for ac_option in --version -v -V -qversion; do
3188  { { ac_try="$ac_compiler $ac_option >&5"
3189case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
3195  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3196  ac_status=$?
3197  if test -s conftest.err; then
3198    sed '10a\
3199... rest of stderr output deleted ...
3200         10q' conftest.err >conftest.er1
3201    cat conftest.er1 >&5
3202  fi
3203  rm -f conftest.er1 conftest.err
3204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205  test $ac_status = 0; }
3206done
3207
3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210
3211int
3212main ()
3213{
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219ac_clean_files_save=$ac_clean_files
3220ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3221# Try to create an executable without -o first, disregard a.out.
3222# It will help us diagnose broken compilers, and finding out an intuition
3223# of exeext.
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3225$as_echo_n "checking whether the C++ compiler works... " >&6; }
3226ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227
3228# The possible output files:
3229ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3230
3231ac_rmfiles=
3232for ac_file in $ac_files
3233do
3234  case $ac_file in
3235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3237  esac
3238done
3239rm -f $ac_rmfiles
3240
3241if { { ac_try="$ac_link_default"
3242case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247$as_echo "$ac_try_echo"; } >&5
3248  (eval "$ac_link_default") 2>&5
3249  ac_status=$?
3250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251  test $ac_status = 0; }; then :
3252  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3253# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3254# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3255# so that the user can short-circuit this test for compilers unknown to
3256# Autoconf.
3257for ac_file in $ac_files ''
3258do
3259  test -f "$ac_file" || continue
3260  case $ac_file in
3261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3262	;;
3263    [ab].out )
3264	# We found the default executable, but exeext='' is most
3265	# certainly right.
3266	break;;
3267    *.* )
3268	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3269	then :; else
3270	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271	fi
3272	# We set ac_cv_exeext here because the later test for it is not
3273	# safe: cross compilers may not add the suffix if given an `-o'
3274	# argument, so we may need to know it at that point already.
3275	# Even if this section looks crufty: it has the advantage of
3276	# actually working.
3277	break;;
3278    * )
3279	break;;
3280  esac
3281done
3282test "$ac_cv_exeext" = no && ac_cv_exeext=
3283
3284else
3285  ac_file=''
3286fi
3287if test -z "$ac_file"; then :
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
3290$as_echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295as_fn_error 77 "C++ compiler cannot create executables
3296See \`config.log' for more details" "$LINENO" 5; }
3297else
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299$as_echo "yes" >&6; }
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3302$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304$as_echo "$ac_file" >&6; }
3305ac_exeext=$ac_cv_exeext
3306
3307rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3308ac_clean_files=$ac_clean_files_save
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310$as_echo_n "checking for suffix of executables... " >&6; }
3311if { { ac_try="$ac_link"
3312case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318  (eval "$ac_link") 2>&5
3319  ac_status=$?
3320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321  test $ac_status = 0; }; then :
3322  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3324# work properly (i.e., refer to `conftest.exe'), while it won't with
3325# `rm'.
3326for ac_file in conftest.exe conftest conftest.*; do
3327  test -f "$ac_file" || continue
3328  case $ac_file in
3329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331	  break;;
3332    * ) break;;
3333  esac
3334done
3335else
3336  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3339See \`config.log' for more details" "$LINENO" 5; }
3340fi
3341rm -f conftest conftest$ac_cv_exeext
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343$as_echo "$ac_cv_exeext" >&6; }
3344
3345rm -f conftest.$ac_ext
3346EXEEXT=$ac_cv_exeext
3347ac_exeext=$EXEEXT
3348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349/* end confdefs.h.  */
3350@%:@include <stdio.h>
3351int
3352main ()
3353{
3354FILE *f = fopen ("conftest.out", "w");
3355 return ferror (f) || fclose (f) != 0;
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361ac_clean_files="$ac_clean_files conftest.out"
3362# Check that the compiler produces executables we can run.  If not, either
3363# the compiler is broken, or we cross compile.
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3365$as_echo_n "checking whether we are cross compiling... " >&6; }
3366if test "$cross_compiling" != yes; then
3367  { { ac_try="$ac_link"
3368case "(($ac_try" in
3369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370  *) ac_try_echo=$ac_try;;
3371esac
3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373$as_echo "$ac_try_echo"; } >&5
3374  (eval "$ac_link") 2>&5
3375  ac_status=$?
3376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377  test $ac_status = 0; }
3378  if { ac_try='./conftest$ac_cv_exeext'
3379  { { case "(($ac_try" in
3380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381  *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385  (eval "$ac_try") 2>&5
3386  ac_status=$?
3387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388  test $ac_status = 0; }; }; then
3389    cross_compiling=no
3390  else
3391    if test "$cross_compiling" = maybe; then
3392	cross_compiling=yes
3393    else
3394	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396as_fn_error $? "cannot run C++ compiled programs.
3397If you meant to cross compile, use \`--host'.
3398See \`config.log' for more details" "$LINENO" 5; }
3399    fi
3400  fi
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403$as_echo "$cross_compiling" >&6; }
3404
3405rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3406ac_clean_files=$ac_clean_files_save
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408$as_echo_n "checking for suffix of object files... " >&6; }
3409if ${ac_cv_objext+:} false; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414
3415int
3416main ()
3417{
3418
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423rm -f conftest.o conftest.obj
3424if { { ac_try="$ac_compile"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431  (eval "$ac_compile") 2>&5
3432  ac_status=$?
3433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434  test $ac_status = 0; }; then :
3435  for ac_file in conftest.o conftest.obj conftest.*; do
3436  test -f "$ac_file" || continue;
3437  case $ac_file in
3438    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440       break;;
3441  esac
3442done
3443else
3444  $as_echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449as_fn_error $? "cannot compute suffix of object files: cannot compile
3450See \`config.log' for more details" "$LINENO" 5; }
3451fi
3452rm -f conftest.$ac_cv_objext conftest.$ac_ext
3453fi
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455$as_echo "$ac_cv_objext" >&6; }
3456OBJEXT=$ac_cv_objext
3457ac_objext=$OBJEXT
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3459$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3460if ${ac_cv_cxx_compiler_gnu+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469#ifndef __GNUC__
3470       choke me
3471#endif
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477if ac_fn_cxx_try_compile "$LINENO"; then :
3478  ac_compiler_gnu=yes
3479else
3480  ac_compiler_gnu=no
3481fi
3482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3484
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3487$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3488if test $ac_compiler_gnu = yes; then
3489  GXX=yes
3490else
3491  GXX=
3492fi
3493ac_test_CXXFLAGS=${CXXFLAGS+set}
3494ac_save_CXXFLAGS=$CXXFLAGS
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3496$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3497if ${ac_cv_prog_cxx_g+:} false; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3501   ac_cxx_werror_flag=yes
3502   ac_cv_prog_cxx_g=no
3503   CXXFLAGS="-g"
3504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515if ac_fn_cxx_try_compile "$LINENO"; then :
3516  ac_cv_prog_cxx_g=yes
3517else
3518  CXXFLAGS=""
3519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h.  */
3521
3522int
3523main ()
3524{
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530if ac_fn_cxx_try_compile "$LINENO"; then :
3531
3532else
3533  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3534	 CXXFLAGS="-g"
3535	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546if ac_fn_cxx_try_compile "$LINENO"; then :
3547  ac_cv_prog_cxx_g=yes
3548fi
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552fi
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3557$as_echo "$ac_cv_prog_cxx_g" >&6; }
3558if test "$ac_test_CXXFLAGS" = set; then
3559  CXXFLAGS=$ac_save_CXXFLAGS
3560elif test $ac_cv_prog_cxx_g = yes; then
3561  if test "$GXX" = yes; then
3562    CXXFLAGS="-g -O2"
3563  else
3564    CXXFLAGS="-g"
3565  fi
3566else
3567  if test "$GXX" = yes; then
3568    CXXFLAGS="-O2"
3569  else
3570    CXXFLAGS=
3571  fi
3572fi
3573ac_ext=c
3574ac_cpp='$CPP $CPPFLAGS'
3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578DEPDIR="${am__leading_dot}deps"
3579
3580ac_config_commands="$ac_config_commands depfiles"
3581
3582
3583am_make=${MAKE-make}
3584cat > confinc << 'END'
3585am__doit:
3586	@echo this is the am__doit target
3587.PHONY: am__doit
3588END
3589# If we don't find an include directive, just comment out the code.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3591$as_echo_n "checking for style of include used by $am_make... " >&6; }
3592am__include="#"
3593am__quote=
3594_am_result=none
3595# First try GNU make style include.
3596echo "include confinc" > confmf
3597# Ignore all kinds of additional output from 'make'.
3598case `$am_make -s -f confmf 2> /dev/null` in #(
3599*the\ am__doit\ target*)
3600  am__include=include
3601  am__quote=
3602  _am_result=GNU
3603  ;;
3604esac
3605# Now try BSD make style include.
3606if test "$am__include" = "#"; then
3607   echo '.include "confinc"' > confmf
3608   case `$am_make -s -f confmf 2> /dev/null` in #(
3609   *the\ am__doit\ target*)
3610     am__include=.include
3611     am__quote="\""
3612     _am_result=BSD
3613     ;;
3614   esac
3615fi
3616
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3619$as_echo "$_am_result" >&6; }
3620rm -f confinc confmf
3621
3622@%:@ Check whether --enable-dependency-tracking was given.
3623if test "${enable_dependency_tracking+set}" = set; then :
3624  enableval=$enable_dependency_tracking;
3625fi
3626
3627if test "x$enable_dependency_tracking" != xno; then
3628  am_depcomp="$ac_aux_dir/depcomp"
3629  AMDEPBACKSLASH='\'
3630  am__nodep='_no'
3631fi
3632 if test "x$enable_dependency_tracking" != xno; then
3633  AMDEP_TRUE=
3634  AMDEP_FALSE='#'
3635else
3636  AMDEP_TRUE='#'
3637  AMDEP_FALSE=
3638fi
3639
3640
3641
3642depcc="$CXX"  am_compiler_list=
3643
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3645$as_echo_n "checking dependency style of $depcc... " >&6; }
3646if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3647  $as_echo_n "(cached) " >&6
3648else
3649  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3650  # We make a subdir and do the tests there.  Otherwise we can end up
3651  # making bogus files that we don't know about and never remove.  For
3652  # instance it was reported that on HP-UX the gcc test will end up
3653  # making a dummy file named 'D' -- because '-MD' means "put the output
3654  # in D".
3655  rm -rf conftest.dir
3656  mkdir conftest.dir
3657  # Copy depcomp to subdir because otherwise we won't find it if we're
3658  # using a relative directory.
3659  cp "$am_depcomp" conftest.dir
3660  cd conftest.dir
3661  # We will build objects and dependencies in a subdirectory because
3662  # it helps to detect inapplicable dependency modes.  For instance
3663  # both Tru64's cc and ICC support -MD to output dependencies as a
3664  # side effect of compilation, but ICC will put the dependencies in
3665  # the current directory while Tru64 will put them in the object
3666  # directory.
3667  mkdir sub
3668
3669  am_cv_CXX_dependencies_compiler_type=none
3670  if test "$am_compiler_list" = ""; then
3671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672  fi
3673  am__universal=false
3674  case " $depcc " in #(
3675     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3676     esac
3677
3678  for depmode in $am_compiler_list; do
3679    # Setup a source with many dependencies, because some compilers
3680    # like to wrap large dependency lists on column 80 (with \), and
3681    # we should not choose a depcomp mode which is confused by this.
3682    #
3683    # We need to recreate these files for each test, as the compiler may
3684    # overwrite some of them when testing with obscure command lines.
3685    # This happens at least with the AIX C compiler.
3686    : > sub/conftest.c
3687    for i in 1 2 3 4 5 6; do
3688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3690      # Solaris 10 /bin/sh.
3691      echo '/* dummy */' > sub/conftst$i.h
3692    done
3693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3696    # mode.  It turns out that the SunPro C++ compiler does not properly
3697    # handle '-M -o', and we need to detect this.  Also, some Intel
3698    # versions had trouble with output in subdirs.
3699    am__obj=sub/conftest.${OBJEXT-o}
3700    am__minus_obj="-o $am__obj"
3701    case $depmode in
3702    gcc)
3703      # This depmode causes a compiler race in universal mode.
3704      test "$am__universal" = false || continue
3705      ;;
3706    nosideeffect)
3707      # After this tag, mechanisms are not by side-effect, so they'll
3708      # only be used when explicitly requested.
3709      if test "x$enable_dependency_tracking" = xyes; then
3710	continue
3711      else
3712	break
3713      fi
3714      ;;
3715    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3716      # This compiler won't grok '-c -o', but also, the minuso test has
3717      # not run yet.  These depmodes are late enough in the game, and
3718      # so weak that their functioning should not be impacted.
3719      am__obj=conftest.${OBJEXT-o}
3720      am__minus_obj=
3721      ;;
3722    none) break ;;
3723    esac
3724    if depmode=$depmode \
3725       source=sub/conftest.c object=$am__obj \
3726       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3727       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3728         >/dev/null 2>conftest.err &&
3729       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3730       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3732       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733      # icc doesn't choke on unknown options, it will just issue warnings
3734      # or remarks (even with -Werror).  So we grep stderr for any message
3735      # that says an option was ignored or not supported.
3736      # When given -MP, icc 7.0 and 7.1 complain thusly:
3737      #   icc: Command line warning: ignoring option '-M'; no argument required
3738      # The diagnosis changed in icc 8.0:
3739      #   icc: Command line remark: option '-MP' not supported
3740      if (grep 'ignoring option' conftest.err ||
3741          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742        am_cv_CXX_dependencies_compiler_type=$depmode
3743        break
3744      fi
3745    fi
3746  done
3747
3748  cd ..
3749  rm -rf conftest.dir
3750else
3751  am_cv_CXX_dependencies_compiler_type=none
3752fi
3753
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3756$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3757CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3758
3759 if
3760  test "x$enable_dependency_tracking" != xno \
3761  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3762  am__fastdepCXX_TRUE=
3763  am__fastdepCXX_FALSE='#'
3764else
3765  am__fastdepCXX_TRUE='#'
3766  am__fastdepCXX_FALSE=
3767fi
3768
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775if test -n "$ac_tool_prefix"; then
3776  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3777set dummy ${ac_tool_prefix}gcc; ac_word=$2
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779$as_echo_n "checking for $ac_word... " >&6; }
3780if ${ac_cv_prog_CC+:} false; then :
3781  $as_echo_n "(cached) " >&6
3782else
3783  if test -n "$CC"; then
3784  ac_cv_prog_CC="$CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789  IFS=$as_save_IFS
3790  test -z "$as_dir" && as_dir=.
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795    break 2
3796  fi
3797done
3798  done
3799IFS=$as_save_IFS
3800
3801fi
3802fi
3803CC=$ac_cv_prog_CC
3804if test -n "$CC"; then
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806$as_echo "$CC" >&6; }
3807else
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
3810fi
3811
3812
3813fi
3814if test -z "$ac_cv_prog_CC"; then
3815  ac_ct_CC=$CC
3816  # Extract the first word of "gcc", so it can be a program name with args.
3817set dummy gcc; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_ac_ct_CC+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  if test -n "$ac_ct_CC"; then
3824  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_ac_ct_CC="gcc"
3834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843ac_ct_CC=$ac_cv_prog_ac_ct_CC
3844if test -n "$ac_ct_CC"; then
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846$as_echo "$ac_ct_CC" >&6; }
3847else
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850fi
3851
3852  if test "x$ac_ct_CC" = x; then
3853    CC=""
3854  else
3855    case $cross_compiling:$ac_tool_warned in
3856yes:)
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859ac_tool_warned=yes ;;
3860esac
3861    CC=$ac_ct_CC
3862  fi
3863else
3864  CC="$ac_cv_prog_CC"
3865fi
3866
3867if test -z "$CC"; then
3868          if test -n "$ac_tool_prefix"; then
3869    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3870set dummy ${ac_tool_prefix}cc; ac_word=$2
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if ${ac_cv_prog_CC+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  if test -n "$CC"; then
3877  ac_cv_prog_CC="$CC" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886    ac_cv_prog_CC="${ac_tool_prefix}cc"
3887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888    break 2
3889  fi
3890done
3891  done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896CC=$ac_cv_prog_CC
3897if test -n "$CC"; then
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899$as_echo "$CC" >&6; }
3900else
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906  fi
3907fi
3908if test -z "$CC"; then
3909  # Extract the first word of "cc", so it can be a program name with args.
3910set dummy cc; ac_word=$2
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
3913if ${ac_cv_prog_CC+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if test -n "$CC"; then
3917  ac_cv_prog_CC="$CC" # Let the user override the test.
3918else
3919  ac_prog_rejected=no
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925    for ac_exec_ext in '' $ac_executable_extensions; do
3926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928       ac_prog_rejected=yes
3929       continue
3930     fi
3931    ac_cv_prog_CC="cc"
3932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933    break 2
3934  fi
3935done
3936  done
3937IFS=$as_save_IFS
3938
3939if test $ac_prog_rejected = yes; then
3940  # We found a bogon in the path, so make sure we never use it.
3941  set dummy $ac_cv_prog_CC
3942  shift
3943  if test $@%:@ != 0; then
3944    # We chose a different compiler from the bogus one.
3945    # However, it has the same basename, so the bogon will be chosen
3946    # first if we set CC to just the basename; use the full file name.
3947    shift
3948    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3949  fi
3950fi
3951fi
3952fi
3953CC=$ac_cv_prog_CC
3954if test -n "$CC"; then
3955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956$as_echo "$CC" >&6; }
3957else
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
3960fi
3961
3962
3963fi
3964if test -z "$CC"; then
3965  if test -n "$ac_tool_prefix"; then
3966  for ac_prog in cl.exe
3967  do
3968    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if ${ac_cv_prog_CC+:} false; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  if test -n "$CC"; then
3976  ac_cv_prog_CC="$CC" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981  IFS=$as_save_IFS
3982  test -z "$as_dir" && as_dir=.
3983    for ac_exec_ext in '' $ac_executable_extensions; do
3984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987    break 2
3988  fi
3989done
3990  done
3991IFS=$as_save_IFS
3992
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998$as_echo "$CC" >&6; }
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002fi
4003
4004
4005    test -n "$CC" && break
4006  done
4007fi
4008if test -z "$CC"; then
4009  ac_ct_CC=$CC
4010  for ac_prog in cl.exe
4011do
4012  # Extract the first word of "$ac_prog", so it can be a program name with args.
4013set dummy $ac_prog; ac_word=$2
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015$as_echo_n "checking for $ac_word... " >&6; }
4016if ${ac_cv_prog_ac_ct_CC+:} false; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if test -n "$ac_ct_CC"; then
4020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027    for ac_exec_ext in '' $ac_executable_extensions; do
4028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029    ac_cv_prog_ac_ct_CC="$ac_prog"
4030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031    break 2
4032  fi
4033done
4034  done
4035IFS=$as_save_IFS
4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042$as_echo "$ac_ct_CC" >&6; }
4043else
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
4046fi
4047
4048
4049  test -n "$ac_ct_CC" && break
4050done
4051
4052  if test "x$ac_ct_CC" = x; then
4053    CC=""
4054  else
4055    case $cross_compiling:$ac_tool_warned in
4056yes:)
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059ac_tool_warned=yes ;;
4060esac
4061    CC=$ac_ct_CC
4062  fi
4063fi
4064
4065fi
4066
4067
4068test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070as_fn_error $? "no acceptable C compiler found in \$PATH
4071See \`config.log' for more details" "$LINENO" 5; }
4072
4073# Provide some information about the compiler.
4074$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4075set X $ac_compile
4076ac_compiler=$2
4077for ac_option in --version -v -V -qversion; do
4078  { { ac_try="$ac_compiler $ac_option >&5"
4079case "(($ac_try" in
4080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081  *) ac_try_echo=$ac_try;;
4082esac
4083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084$as_echo "$ac_try_echo"; } >&5
4085  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4086  ac_status=$?
4087  if test -s conftest.err; then
4088    sed '10a\
4089... rest of stderr output deleted ...
4090         10q' conftest.err >conftest.er1
4091    cat conftest.er1 >&5
4092  fi
4093  rm -f conftest.er1 conftest.err
4094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095  test $ac_status = 0; }
4096done
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4099$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4100if ${ac_cv_c_compiler_gnu+:} false; then :
4101  $as_echo_n "(cached) " >&6
4102else
4103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105
4106int
4107main ()
4108{
4109#ifndef __GNUC__
4110       choke me
4111#endif
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"; then :
4118  ac_compiler_gnu=yes
4119else
4120  ac_compiler_gnu=no
4121fi
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124
4125fi
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4128if test $ac_compiler_gnu = yes; then
4129  GCC=yes
4130else
4131  GCC=
4132fi
4133ac_test_CFLAGS=${CFLAGS+set}
4134ac_save_CFLAGS=$CFLAGS
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4136$as_echo_n "checking whether $CC accepts -g... " >&6; }
4137if ${ac_cv_prog_cc_g+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  ac_save_c_werror_flag=$ac_c_werror_flag
4141   ac_c_werror_flag=yes
4142   ac_cv_prog_cc_g=no
4143   CFLAGS="-g"
4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146
4147int
4148main ()
4149{
4150
4151  ;
4152  return 0;
4153}
4154_ACEOF
4155if ac_fn_c_try_compile "$LINENO"; then :
4156  ac_cv_prog_cc_g=yes
4157else
4158  CFLAGS=""
4159      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161
4162int
4163main ()
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"; then :
4171
4172else
4173  ac_c_werror_flag=$ac_save_c_werror_flag
4174	 CFLAGS="-g"
4175	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177
4178int
4179main ()
4180{
4181
4182  ;
4183  return 0;
4184}
4185_ACEOF
4186if ac_fn_c_try_compile "$LINENO"; then :
4187  ac_cv_prog_cc_g=yes
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190fi
4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192fi
4193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194   ac_c_werror_flag=$ac_save_c_werror_flag
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4197$as_echo "$ac_cv_prog_cc_g" >&6; }
4198if test "$ac_test_CFLAGS" = set; then
4199  CFLAGS=$ac_save_CFLAGS
4200elif test $ac_cv_prog_cc_g = yes; then
4201  if test "$GCC" = yes; then
4202    CFLAGS="-g -O2"
4203  else
4204    CFLAGS="-g"
4205  fi
4206else
4207  if test "$GCC" = yes; then
4208    CFLAGS="-O2"
4209  else
4210    CFLAGS=
4211  fi
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4214$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4215if ${ac_cv_prog_cc_c89+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  ac_cv_prog_cc_c89=no
4219ac_save_CC=$CC
4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222#include <stdarg.h>
4223#include <stdio.h>
4224struct stat;
4225/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4226struct buf { int x; };
4227FILE * (*rcsopen) (struct buf *, struct stat *, int);
4228static char *e (p, i)
4229     char **p;
4230     int i;
4231{
4232  return p[i];
4233}
4234static char *f (char * (*g) (char **, int), char **p, ...)
4235{
4236  char *s;
4237  va_list v;
4238  va_start (v,p);
4239  s = g (p, va_arg (v,int));
4240  va_end (v);
4241  return s;
4242}
4243
4244/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4245   function prototypes and stuff, but not '\xHH' hex character constants.
4246   These don't provoke an error unfortunately, instead are silently treated
4247   as 'x'.  The following induces an error, until -std is added to get
4248   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4249   array size at least.  It's necessary to write '\x00'==0 to get something
4250   that's true only with -std.  */
4251int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4252
4253/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4254   inside strings and character constants.  */
4255#define FOO(x) 'x'
4256int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4257
4258int test (int i, double x);
4259struct s1 {int (*f) (int a);};
4260struct s2 {int (*f) (double a);};
4261int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4262int argc;
4263char **argv;
4264int
4265main ()
4266{
4267return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4268  ;
4269  return 0;
4270}
4271_ACEOF
4272for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4273	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4274do
4275  CC="$ac_save_CC $ac_arg"
4276  if ac_fn_c_try_compile "$LINENO"; then :
4277  ac_cv_prog_cc_c89=$ac_arg
4278fi
4279rm -f core conftest.err conftest.$ac_objext
4280  test "x$ac_cv_prog_cc_c89" != "xno" && break
4281done
4282rm -f conftest.$ac_ext
4283CC=$ac_save_CC
4284
4285fi
4286# AC_CACHE_VAL
4287case "x$ac_cv_prog_cc_c89" in
4288  x)
4289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4290$as_echo "none needed" >&6; } ;;
4291  xno)
4292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4293$as_echo "unsupported" >&6; } ;;
4294  *)
4295    CC="$CC $ac_cv_prog_cc_c89"
4296    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4297$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4298esac
4299if test "x$ac_cv_prog_cc_c89" != xno; then :
4300
4301fi
4302
4303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309ac_ext=c
4310ac_cpp='$CPP $CPPFLAGS'
4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4315$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4316if ${am_cv_prog_cc_c_o+:} false; then :
4317  $as_echo_n "(cached) " >&6
4318else
4319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h.  */
4321
4322int
4323main ()
4324{
4325
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330  # Make sure it works both with $CC and with simple cc.
4331  # Following AC_PROG_CC_C_O, we do the test twice because some
4332  # compilers refuse to overwrite an existing .o file with -o,
4333  # though they will create one.
4334  am_cv_prog_cc_c_o=yes
4335  for am_i in 1 2; do
4336    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4337   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } \
4341         && test -f conftest2.$ac_objext; then
4342      : OK
4343    else
4344      am_cv_prog_cc_c_o=no
4345      break
4346    fi
4347  done
4348  rm -f core conftest*
4349  unset am_i
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4352$as_echo "$am_cv_prog_cc_c_o" >&6; }
4353if test "$am_cv_prog_cc_c_o" != yes; then
4354   # Losing compiler, so override with the script.
4355   # FIXME: It is wrong to rewrite CC.
4356   # But if we don't then we get into trouble of one sort or another.
4357   # A longer-term fix would be to have automake use am__CC in this case,
4358   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4359   CC="$am_aux_dir/compile $CC"
4360fi
4361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366
4367
4368depcc="$CC"   am_compiler_list=
4369
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4371$as_echo_n "checking dependency style of $depcc... " >&6; }
4372if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4373  $as_echo_n "(cached) " >&6
4374else
4375  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376  # We make a subdir and do the tests there.  Otherwise we can end up
4377  # making bogus files that we don't know about and never remove.  For
4378  # instance it was reported that on HP-UX the gcc test will end up
4379  # making a dummy file named 'D' -- because '-MD' means "put the output
4380  # in D".
4381  rm -rf conftest.dir
4382  mkdir conftest.dir
4383  # Copy depcomp to subdir because otherwise we won't find it if we're
4384  # using a relative directory.
4385  cp "$am_depcomp" conftest.dir
4386  cd conftest.dir
4387  # We will build objects and dependencies in a subdirectory because
4388  # it helps to detect inapplicable dependency modes.  For instance
4389  # both Tru64's cc and ICC support -MD to output dependencies as a
4390  # side effect of compilation, but ICC will put the dependencies in
4391  # the current directory while Tru64 will put them in the object
4392  # directory.
4393  mkdir sub
4394
4395  am_cv_CC_dependencies_compiler_type=none
4396  if test "$am_compiler_list" = ""; then
4397     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4398  fi
4399  am__universal=false
4400  case " $depcc " in #(
4401     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4402     esac
4403
4404  for depmode in $am_compiler_list; do
4405    # Setup a source with many dependencies, because some compilers
4406    # like to wrap large dependency lists on column 80 (with \), and
4407    # we should not choose a depcomp mode which is confused by this.
4408    #
4409    # We need to recreate these files for each test, as the compiler may
4410    # overwrite some of them when testing with obscure command lines.
4411    # This happens at least with the AIX C compiler.
4412    : > sub/conftest.c
4413    for i in 1 2 3 4 5 6; do
4414      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4416      # Solaris 10 /bin/sh.
4417      echo '/* dummy */' > sub/conftst$i.h
4418    done
4419    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4420
4421    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4422    # mode.  It turns out that the SunPro C++ compiler does not properly
4423    # handle '-M -o', and we need to detect this.  Also, some Intel
4424    # versions had trouble with output in subdirs.
4425    am__obj=sub/conftest.${OBJEXT-o}
4426    am__minus_obj="-o $am__obj"
4427    case $depmode in
4428    gcc)
4429      # This depmode causes a compiler race in universal mode.
4430      test "$am__universal" = false || continue
4431      ;;
4432    nosideeffect)
4433      # After this tag, mechanisms are not by side-effect, so they'll
4434      # only be used when explicitly requested.
4435      if test "x$enable_dependency_tracking" = xyes; then
4436	continue
4437      else
4438	break
4439      fi
4440      ;;
4441    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4442      # This compiler won't grok '-c -o', but also, the minuso test has
4443      # not run yet.  These depmodes are late enough in the game, and
4444      # so weak that their functioning should not be impacted.
4445      am__obj=conftest.${OBJEXT-o}
4446      am__minus_obj=
4447      ;;
4448    none) break ;;
4449    esac
4450    if depmode=$depmode \
4451       source=sub/conftest.c object=$am__obj \
4452       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4454         >/dev/null 2>conftest.err &&
4455       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4458       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459      # icc doesn't choke on unknown options, it will just issue warnings
4460      # or remarks (even with -Werror).  So we grep stderr for any message
4461      # that says an option was ignored or not supported.
4462      # When given -MP, icc 7.0 and 7.1 complain thusly:
4463      #   icc: Command line warning: ignoring option '-M'; no argument required
4464      # The diagnosis changed in icc 8.0:
4465      #   icc: Command line remark: option '-MP' not supported
4466      if (grep 'ignoring option' conftest.err ||
4467          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468        am_cv_CC_dependencies_compiler_type=$depmode
4469        break
4470      fi
4471    fi
4472  done
4473
4474  cd ..
4475  rm -rf conftest.dir
4476else
4477  am_cv_CC_dependencies_compiler_type=none
4478fi
4479
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4484
4485 if
4486  test "x$enable_dependency_tracking" != xno \
4487  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4488  am__fastdepCC_TRUE=
4489  am__fastdepCC_FALSE='#'
4490else
4491  am__fastdepCC_TRUE='#'
4492  am__fastdepCC_FALSE=
4493fi
4494
4495
4496case `pwd` in
4497  *\ * | *\	*)
4498    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4499$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4500esac
4501
4502
4503
4504macro_version='2.4.6'
4505macro_revision='2.4.6'
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519ltmain=$ac_aux_dir/ltmain.sh
4520
4521# Backslashify metacharacters that are still active within
4522# double-quoted strings.
4523sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4524
4525# Same as above, but do not quote variable references.
4526double_quote_subst='s/\(["`\\]\)/\\\1/g'
4527
4528# Sed substitution to delay expansion of an escaped shell variable in a
4529# double_quote_subst'ed string.
4530delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4531
4532# Sed substitution to delay expansion of an escaped single quote.
4533delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4534
4535# Sed substitution to avoid accidental globbing in evaled expressions
4536no_glob_subst='s/\*/\\\*/g'
4537
4538ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4539ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4540ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4543$as_echo_n "checking how to print strings... " >&6; }
4544# Test print first, because it will be a builtin if present.
4545if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4546   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4547  ECHO='print -r --'
4548elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4549  ECHO='printf %s\n'
4550else
4551  # Use this function as a fallback that always works.
4552  func_fallback_echo ()
4553  {
4554    eval 'cat <<_LTECHO_EOF
4555$1
4556_LTECHO_EOF'
4557  }
4558  ECHO='func_fallback_echo'
4559fi
4560
4561# func_echo_all arg...
4562# Invoke $ECHO with all args, space-separated.
4563func_echo_all ()
4564{
4565    $ECHO ""
4566}
4567
4568case $ECHO in
4569  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4570$as_echo "printf" >&6; } ;;
4571  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4572$as_echo "print -r" >&6; } ;;
4573  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4574$as_echo "cat" >&6; } ;;
4575esac
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4591$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4592if ${ac_cv_path_SED+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4596     for ac_i in 1 2 3 4 5 6 7; do
4597       ac_script="$ac_script$as_nl$ac_script"
4598     done
4599     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4600     { ac_script=; unset ac_script;}
4601     if test -z "$SED"; then
4602  ac_path_SED_found=false
4603  # Loop through the user's path and test for each of PROGNAME-LIST
4604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607  IFS=$as_save_IFS
4608  test -z "$as_dir" && as_dir=.
4609    for ac_prog in sed gsed; do
4610    for ac_exec_ext in '' $ac_executable_extensions; do
4611      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4612      as_fn_executable_p "$ac_path_SED" || continue
4613# Check for GNU ac_path_SED and select it if it is found.
4614  # Check for GNU $ac_path_SED
4615case `"$ac_path_SED" --version 2>&1` in
4616*GNU*)
4617  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4618*)
4619  ac_count=0
4620  $as_echo_n 0123456789 >"conftest.in"
4621  while :
4622  do
4623    cat "conftest.in" "conftest.in" >"conftest.tmp"
4624    mv "conftest.tmp" "conftest.in"
4625    cp "conftest.in" "conftest.nl"
4626    $as_echo '' >> "conftest.nl"
4627    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629    as_fn_arith $ac_count + 1 && ac_count=$as_val
4630    if test $ac_count -gt ${ac_path_SED_max-0}; then
4631      # Best one so far, save it but keep looking for a better one
4632      ac_cv_path_SED="$ac_path_SED"
4633      ac_path_SED_max=$ac_count
4634    fi
4635    # 10*(2^10) chars as input seems more than enough
4636    test $ac_count -gt 10 && break
4637  done
4638  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639esac
4640
4641      $ac_path_SED_found && break 3
4642    done
4643  done
4644  done
4645IFS=$as_save_IFS
4646  if test -z "$ac_cv_path_SED"; then
4647    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4648  fi
4649else
4650  ac_cv_path_SED=$SED
4651fi
4652
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4655$as_echo "$ac_cv_path_SED" >&6; }
4656 SED="$ac_cv_path_SED"
4657  rm -f conftest.sed
4658
4659test -z "$SED" && SED=sed
4660Xsed="$SED -e 1s/^X//"
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4673$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4674if ${ac_cv_path_GREP+:} false; then :
4675  $as_echo_n "(cached) " >&6
4676else
4677  if test -z "$GREP"; then
4678  ac_path_GREP_found=false
4679  # Loop through the user's path and test for each of PROGNAME-LIST
4680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682do
4683  IFS=$as_save_IFS
4684  test -z "$as_dir" && as_dir=.
4685    for ac_prog in grep ggrep; do
4686    for ac_exec_ext in '' $ac_executable_extensions; do
4687      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4688      as_fn_executable_p "$ac_path_GREP" || continue
4689# Check for GNU ac_path_GREP and select it if it is found.
4690  # Check for GNU $ac_path_GREP
4691case `"$ac_path_GREP" --version 2>&1` in
4692*GNU*)
4693  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4694*)
4695  ac_count=0
4696  $as_echo_n 0123456789 >"conftest.in"
4697  while :
4698  do
4699    cat "conftest.in" "conftest.in" >"conftest.tmp"
4700    mv "conftest.tmp" "conftest.in"
4701    cp "conftest.in" "conftest.nl"
4702    $as_echo 'GREP' >> "conftest.nl"
4703    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705    as_fn_arith $ac_count + 1 && ac_count=$as_val
4706    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4707      # Best one so far, save it but keep looking for a better one
4708      ac_cv_path_GREP="$ac_path_GREP"
4709      ac_path_GREP_max=$ac_count
4710    fi
4711    # 10*(2^10) chars as input seems more than enough
4712    test $ac_count -gt 10 && break
4713  done
4714  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715esac
4716
4717      $ac_path_GREP_found && break 3
4718    done
4719  done
4720  done
4721IFS=$as_save_IFS
4722  if test -z "$ac_cv_path_GREP"; then
4723    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724  fi
4725else
4726  ac_cv_path_GREP=$GREP
4727fi
4728
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4731$as_echo "$ac_cv_path_GREP" >&6; }
4732 GREP="$ac_cv_path_GREP"
4733
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4736$as_echo_n "checking for egrep... " >&6; }
4737if ${ac_cv_path_EGREP+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4741   then ac_cv_path_EGREP="$GREP -E"
4742   else
4743     if test -z "$EGREP"; then
4744  ac_path_EGREP_found=false
4745  # Loop through the user's path and test for each of PROGNAME-LIST
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751    for ac_prog in egrep; do
4752    for ac_exec_ext in '' $ac_executable_extensions; do
4753      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4754      as_fn_executable_p "$ac_path_EGREP" || continue
4755# Check for GNU ac_path_EGREP and select it if it is found.
4756  # Check for GNU $ac_path_EGREP
4757case `"$ac_path_EGREP" --version 2>&1` in
4758*GNU*)
4759  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4760*)
4761  ac_count=0
4762  $as_echo_n 0123456789 >"conftest.in"
4763  while :
4764  do
4765    cat "conftest.in" "conftest.in" >"conftest.tmp"
4766    mv "conftest.tmp" "conftest.in"
4767    cp "conftest.in" "conftest.nl"
4768    $as_echo 'EGREP' >> "conftest.nl"
4769    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771    as_fn_arith $ac_count + 1 && ac_count=$as_val
4772    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4773      # Best one so far, save it but keep looking for a better one
4774      ac_cv_path_EGREP="$ac_path_EGREP"
4775      ac_path_EGREP_max=$ac_count
4776    fi
4777    # 10*(2^10) chars as input seems more than enough
4778    test $ac_count -gt 10 && break
4779  done
4780  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781esac
4782
4783      $ac_path_EGREP_found && break 3
4784    done
4785  done
4786  done
4787IFS=$as_save_IFS
4788  if test -z "$ac_cv_path_EGREP"; then
4789    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790  fi
4791else
4792  ac_cv_path_EGREP=$EGREP
4793fi
4794
4795   fi
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4798$as_echo "$ac_cv_path_EGREP" >&6; }
4799 EGREP="$ac_cv_path_EGREP"
4800
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4803$as_echo_n "checking for fgrep... " >&6; }
4804if ${ac_cv_path_FGREP+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4808   then ac_cv_path_FGREP="$GREP -F"
4809   else
4810     if test -z "$FGREP"; then
4811  ac_path_FGREP_found=false
4812  # Loop through the user's path and test for each of PROGNAME-LIST
4813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4815do
4816  IFS=$as_save_IFS
4817  test -z "$as_dir" && as_dir=.
4818    for ac_prog in fgrep; do
4819    for ac_exec_ext in '' $ac_executable_extensions; do
4820      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4821      as_fn_executable_p "$ac_path_FGREP" || continue
4822# Check for GNU ac_path_FGREP and select it if it is found.
4823  # Check for GNU $ac_path_FGREP
4824case `"$ac_path_FGREP" --version 2>&1` in
4825*GNU*)
4826  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4827*)
4828  ac_count=0
4829  $as_echo_n 0123456789 >"conftest.in"
4830  while :
4831  do
4832    cat "conftest.in" "conftest.in" >"conftest.tmp"
4833    mv "conftest.tmp" "conftest.in"
4834    cp "conftest.in" "conftest.nl"
4835    $as_echo 'FGREP' >> "conftest.nl"
4836    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838    as_fn_arith $ac_count + 1 && ac_count=$as_val
4839    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4840      # Best one so far, save it but keep looking for a better one
4841      ac_cv_path_FGREP="$ac_path_FGREP"
4842      ac_path_FGREP_max=$ac_count
4843    fi
4844    # 10*(2^10) chars as input seems more than enough
4845    test $ac_count -gt 10 && break
4846  done
4847  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848esac
4849
4850      $ac_path_FGREP_found && break 3
4851    done
4852  done
4853  done
4854IFS=$as_save_IFS
4855  if test -z "$ac_cv_path_FGREP"; then
4856    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4857  fi
4858else
4859  ac_cv_path_FGREP=$FGREP
4860fi
4861
4862   fi
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4865$as_echo "$ac_cv_path_FGREP" >&6; }
4866 FGREP="$ac_cv_path_FGREP"
4867
4868
4869test -z "$GREP" && GREP=grep
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889@%:@ Check whether --with-gnu-ld was given.
4890if test "${with_gnu_ld+set}" = set; then :
4891  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4892else
4893  with_gnu_ld=no
4894fi
4895
4896ac_prog=ld
4897if test yes = "$GCC"; then
4898  # Check if gcc -print-prog-name=ld gives a path.
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4900$as_echo_n "checking for ld used by $CC... " >&6; }
4901  case $host in
4902  *-*-mingw*)
4903    # gcc leaves a trailing carriage return, which upsets mingw
4904    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4905  *)
4906    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4907  esac
4908  case $ac_prog in
4909    # Accept absolute paths.
4910    [\\/]* | ?:[\\/]*)
4911      re_direlt='/[^/][^/]*/\.\./'
4912      # Canonicalize the pathname of ld
4913      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4914      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4915	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4916      done
4917      test -z "$LD" && LD=$ac_prog
4918      ;;
4919  "")
4920    # If it fails, then pretend we aren't using GCC.
4921    ac_prog=ld
4922    ;;
4923  *)
4924    # If it is relative, then search for the first ld in PATH.
4925    with_gnu_ld=unknown
4926    ;;
4927  esac
4928elif test yes = "$with_gnu_ld"; then
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4930$as_echo_n "checking for GNU ld... " >&6; }
4931else
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4933$as_echo_n "checking for non-GNU ld... " >&6; }
4934fi
4935if ${lt_cv_path_LD+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  if test -z "$LD"; then
4939  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4940  for ac_dir in $PATH; do
4941    IFS=$lt_save_ifs
4942    test -z "$ac_dir" && ac_dir=.
4943    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4944      lt_cv_path_LD=$ac_dir/$ac_prog
4945      # Check to see if the program is GNU ld.  I'd rather use --version,
4946      # but apparently some variants of GNU ld only accept -v.
4947      # Break only if it was the GNU/non-GNU ld that we prefer.
4948      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4949      *GNU* | *'with BFD'*)
4950	test no != "$with_gnu_ld" && break
4951	;;
4952      *)
4953	test yes != "$with_gnu_ld" && break
4954	;;
4955      esac
4956    fi
4957  done
4958  IFS=$lt_save_ifs
4959else
4960  lt_cv_path_LD=$LD # Let the user override the test with a path.
4961fi
4962fi
4963
4964LD=$lt_cv_path_LD
4965if test -n "$LD"; then
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4967$as_echo "$LD" >&6; }
4968else
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4974$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4975if ${lt_cv_prog_gnu_ld+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4979case `$LD -v 2>&1 </dev/null` in
4980*GNU* | *'with BFD'*)
4981  lt_cv_prog_gnu_ld=yes
4982  ;;
4983*)
4984  lt_cv_prog_gnu_ld=no
4985  ;;
4986esac
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4989$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4990with_gnu_ld=$lt_cv_prog_gnu_ld
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5001$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5002if ${lt_cv_path_NM+:} false; then :
5003  $as_echo_n "(cached) " >&6
5004else
5005  if test -n "$NM"; then
5006  # Let the user override the test.
5007  lt_cv_path_NM=$NM
5008else
5009  lt_nm_to_check=${ac_tool_prefix}nm
5010  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5011    lt_nm_to_check="$lt_nm_to_check nm"
5012  fi
5013  for lt_tmp_nm in $lt_nm_to_check; do
5014    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5015    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5016      IFS=$lt_save_ifs
5017      test -z "$ac_dir" && ac_dir=.
5018      tmp_nm=$ac_dir/$lt_tmp_nm
5019      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5020	# Check to see if the nm accepts a BSD-compat flag.
5021	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5022	#   nm: unknown option "B" ignored
5023	# Tru64's nm complains that /dev/null is an invalid object file
5024	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5025	case $build_os in
5026	mingw*) lt_bad_file=conftest.nm/nofile ;;
5027	*) lt_bad_file=/dev/null ;;
5028	esac
5029	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5030	*$lt_bad_file* | *'Invalid file or object type'*)
5031	  lt_cv_path_NM="$tmp_nm -B"
5032	  break 2
5033	  ;;
5034	*)
5035	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5036	  */dev/null*)
5037	    lt_cv_path_NM="$tmp_nm -p"
5038	    break 2
5039	    ;;
5040	  *)
5041	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5042	    continue # so that we can try to find one that supports BSD flags
5043	    ;;
5044	  esac
5045	  ;;
5046	esac
5047      fi
5048    done
5049    IFS=$lt_save_ifs
5050  done
5051  : ${lt_cv_path_NM=no}
5052fi
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5055$as_echo "$lt_cv_path_NM" >&6; }
5056if test no != "$lt_cv_path_NM"; then
5057  NM=$lt_cv_path_NM
5058else
5059  # Didn't find any BSD compatible name lister, look for dumpbin.
5060  if test -n "$DUMPBIN"; then :
5061    # Let the user override the test.
5062  else
5063    if test -n "$ac_tool_prefix"; then
5064  for ac_prog in dumpbin "link -dump"
5065  do
5066    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
5070if ${ac_cv_prog_DUMPBIN+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  if test -n "$DUMPBIN"; then
5074  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5075else
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079  IFS=$as_save_IFS
5080  test -z "$as_dir" && as_dir=.
5081    for ac_exec_ext in '' $ac_executable_extensions; do
5082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085    break 2
5086  fi
5087done
5088  done
5089IFS=$as_save_IFS
5090
5091fi
5092fi
5093DUMPBIN=$ac_cv_prog_DUMPBIN
5094if test -n "$DUMPBIN"; then
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5096$as_echo "$DUMPBIN" >&6; }
5097else
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
5100fi
5101
5102
5103    test -n "$DUMPBIN" && break
5104  done
5105fi
5106if test -z "$DUMPBIN"; then
5107  ac_ct_DUMPBIN=$DUMPBIN
5108  for ac_prog in dumpbin "link -dump"
5109do
5110  # Extract the first word of "$ac_prog", so it can be a program name with args.
5111set dummy $ac_prog; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  if test -n "$ac_ct_DUMPBIN"; then
5118  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123  IFS=$as_save_IFS
5124  test -z "$as_dir" && as_dir=.
5125    for ac_exec_ext in '' $ac_executable_extensions; do
5126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129    break 2
5130  fi
5131done
5132  done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5138if test -n "$ac_ct_DUMPBIN"; then
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5140$as_echo "$ac_ct_DUMPBIN" >&6; }
5141else
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147  test -n "$ac_ct_DUMPBIN" && break
5148done
5149
5150  if test "x$ac_ct_DUMPBIN" = x; then
5151    DUMPBIN=":"
5152  else
5153    case $cross_compiling:$ac_tool_warned in
5154yes:)
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157ac_tool_warned=yes ;;
5158esac
5159    DUMPBIN=$ac_ct_DUMPBIN
5160  fi
5161fi
5162
5163    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5164    *COFF*)
5165      DUMPBIN="$DUMPBIN -symbols -headers"
5166      ;;
5167    *)
5168      DUMPBIN=:
5169      ;;
5170    esac
5171  fi
5172
5173  if test : != "$DUMPBIN"; then
5174    NM=$DUMPBIN
5175  fi
5176fi
5177test -z "$NM" && NM=nm
5178
5179
5180
5181
5182
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5185$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5186if ${lt_cv_nm_interface+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  lt_cv_nm_interface="BSD nm"
5190  echo "int some_variable = 0;" > conftest.$ac_ext
5191  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5192  (eval "$ac_compile" 2>conftest.err)
5193  cat conftest.err >&5
5194  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5195  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5196  cat conftest.err >&5
5197  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5198  cat conftest.out >&5
5199  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5200    lt_cv_nm_interface="MS dumpbin"
5201  fi
5202  rm -f conftest*
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5205$as_echo "$lt_cv_nm_interface" >&6; }
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5208$as_echo_n "checking whether ln -s works... " >&6; }
5209LN_S=$as_ln_s
5210if test "$LN_S" = "ln -s"; then
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212$as_echo "yes" >&6; }
5213else
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5215$as_echo "no, using $LN_S" >&6; }
5216fi
5217
5218# find the maximum length of command line arguments
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5220$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5221if ${lt_cv_sys_max_cmd_len+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224    i=0
5225  teststring=ABCD
5226
5227  case $build_os in
5228  msdosdjgpp*)
5229    # On DJGPP, this test can blow up pretty badly due to problems in libc
5230    # (any single argument exceeding 2000 bytes causes a buffer overrun
5231    # during glob expansion).  Even if it were fixed, the result of this
5232    # check would be larger than it should be.
5233    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5234    ;;
5235
5236  gnu*)
5237    # Under GNU Hurd, this test is not required because there is
5238    # no limit to the length of command line arguments.
5239    # Libtool will interpret -1 as no limit whatsoever
5240    lt_cv_sys_max_cmd_len=-1;
5241    ;;
5242
5243  cygwin* | mingw* | cegcc*)
5244    # On Win9x/ME, this test blows up -- it succeeds, but takes
5245    # about 5 minutes as the teststring grows exponentially.
5246    # Worse, since 9x/ME are not pre-emptively multitasking,
5247    # you end up with a "frozen" computer, even though with patience
5248    # the test eventually succeeds (with a max line length of 256k).
5249    # Instead, let's just punt: use the minimum linelength reported by
5250    # all of the supported platforms: 8192 (on NT/2K/XP).
5251    lt_cv_sys_max_cmd_len=8192;
5252    ;;
5253
5254  mint*)
5255    # On MiNT this can take a long time and run out of memory.
5256    lt_cv_sys_max_cmd_len=8192;
5257    ;;
5258
5259  amigaos*)
5260    # On AmigaOS with pdksh, this test takes hours, literally.
5261    # So we just punt and use a minimum line length of 8192.
5262    lt_cv_sys_max_cmd_len=8192;
5263    ;;
5264
5265  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5266    # This has been around since 386BSD, at least.  Likely further.
5267    if test -x /sbin/sysctl; then
5268      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5269    elif test -x /usr/sbin/sysctl; then
5270      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5271    else
5272      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5273    fi
5274    # And add a safety zone
5275    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5276    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5277    ;;
5278
5279  interix*)
5280    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5281    lt_cv_sys_max_cmd_len=196608
5282    ;;
5283
5284  os2*)
5285    # The test takes a long time on OS/2.
5286    lt_cv_sys_max_cmd_len=8192
5287    ;;
5288
5289  osf*)
5290    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5291    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5292    # nice to cause kernel panics so lets avoid the loop below.
5293    # First set a reasonable default.
5294    lt_cv_sys_max_cmd_len=16384
5295    #
5296    if test -x /sbin/sysconfig; then
5297      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5298        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5299      esac
5300    fi
5301    ;;
5302  sco3.2v5*)
5303    lt_cv_sys_max_cmd_len=102400
5304    ;;
5305  sysv5* | sco5v6* | sysv4.2uw2*)
5306    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5307    if test -n "$kargmax"; then
5308      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5309    else
5310      lt_cv_sys_max_cmd_len=32768
5311    fi
5312    ;;
5313  *)
5314    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5315    if test -n "$lt_cv_sys_max_cmd_len" && \
5316       test undefined != "$lt_cv_sys_max_cmd_len"; then
5317      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5318      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5319    else
5320      # Make teststring a little bigger before we do anything with it.
5321      # a 1K string should be a reasonable start.
5322      for i in 1 2 3 4 5 6 7 8; do
5323        teststring=$teststring$teststring
5324      done
5325      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5326      # If test is not a shell built-in, we'll probably end up computing a
5327      # maximum length that is only half of the actual maximum length, but
5328      # we can't tell.
5329      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5330	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5331	      test 17 != "$i" # 1/2 MB should be enough
5332      do
5333        i=`expr $i + 1`
5334        teststring=$teststring$teststring
5335      done
5336      # Only check the string length outside the loop.
5337      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5338      teststring=
5339      # Add a significant safety factor because C++ compilers can tack on
5340      # massive amounts of additional arguments before passing them to the
5341      # linker.  It appears as though 1/2 is a usable value.
5342      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5343    fi
5344    ;;
5345  esac
5346
5347fi
5348
5349if test -n "$lt_cv_sys_max_cmd_len"; then
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5351$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5354$as_echo "none" >&6; }
5355fi
5356max_cmd_len=$lt_cv_sys_max_cmd_len
5357
5358
5359
5360
5361
5362
5363: ${CP="cp -f"}
5364: ${MV="mv -f"}
5365: ${RM="rm -f"}
5366
5367if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5368  lt_unset=unset
5369else
5370  lt_unset=false
5371fi
5372
5373
5374
5375
5376
5377# test EBCDIC or ASCII
5378case `echo X|tr X '\101'` in
5379 A) # ASCII based system
5380    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5381  lt_SP2NL='tr \040 \012'
5382  lt_NL2SP='tr \015\012 \040\040'
5383  ;;
5384 *) # EBCDIC based system
5385  lt_SP2NL='tr \100 \n'
5386  lt_NL2SP='tr \r\n \100\100'
5387  ;;
5388esac
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5399$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5400if ${lt_cv_to_host_file_cmd+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  case $host in
5404  *-*-mingw* )
5405    case $build in
5406      *-*-mingw* ) # actually msys
5407        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5408        ;;
5409      *-*-cygwin* )
5410        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5411        ;;
5412      * ) # otherwise, assume *nix
5413        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5414        ;;
5415    esac
5416    ;;
5417  *-*-cygwin* )
5418    case $build in
5419      *-*-mingw* ) # actually msys
5420        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5421        ;;
5422      *-*-cygwin* )
5423        lt_cv_to_host_file_cmd=func_convert_file_noop
5424        ;;
5425      * ) # otherwise, assume *nix
5426        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5427        ;;
5428    esac
5429    ;;
5430  * ) # unhandled hosts (and "normal" native builds)
5431    lt_cv_to_host_file_cmd=func_convert_file_noop
5432    ;;
5433esac
5434
5435fi
5436
5437to_host_file_cmd=$lt_cv_to_host_file_cmd
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5439$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5440
5441
5442
5443
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5446$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5447if ${lt_cv_to_tool_file_cmd+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  #assume ordinary cross tools, or native build.
5451lt_cv_to_tool_file_cmd=func_convert_file_noop
5452case $host in
5453  *-*-mingw* )
5454    case $build in
5455      *-*-mingw* ) # actually msys
5456        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5457        ;;
5458    esac
5459    ;;
5460esac
5461
5462fi
5463
5464to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5466$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5467
5468
5469
5470
5471
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5473$as_echo_n "checking for $LD option to reload object files... " >&6; }
5474if ${lt_cv_ld_reload_flag+:} false; then :
5475  $as_echo_n "(cached) " >&6
5476else
5477  lt_cv_ld_reload_flag='-r'
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5480$as_echo "$lt_cv_ld_reload_flag" >&6; }
5481reload_flag=$lt_cv_ld_reload_flag
5482case $reload_flag in
5483"" | " "*) ;;
5484*) reload_flag=" $reload_flag" ;;
5485esac
5486reload_cmds='$LD$reload_flag -o $output$reload_objs'
5487case $host_os in
5488  cygwin* | mingw* | pw32* | cegcc*)
5489    if test yes != "$GCC"; then
5490      reload_cmds=false
5491    fi
5492    ;;
5493  darwin*)
5494    if test yes = "$GCC"; then
5495      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5496    else
5497      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5498    fi
5499    ;;
5500esac
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510if test -n "$ac_tool_prefix"; then
5511  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5512set dummy ${ac_tool_prefix}objdump; ac_word=$2
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
5515if ${ac_cv_prog_OBJDUMP+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  if test -n "$OBJDUMP"; then
5519  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524  IFS=$as_save_IFS
5525  test -z "$as_dir" && as_dir=.
5526    for ac_exec_ext in '' $ac_executable_extensions; do
5527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530    break 2
5531  fi
5532done
5533  done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538OBJDUMP=$ac_cv_prog_OBJDUMP
5539if test -n "$OBJDUMP"; then
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5541$as_echo "$OBJDUMP" >&6; }
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548fi
5549if test -z "$ac_cv_prog_OBJDUMP"; then
5550  ac_ct_OBJDUMP=$OBJDUMP
5551  # Extract the first word of "objdump", so it can be a program name with args.
5552set dummy objdump; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  if test -n "$ac_ct_OBJDUMP"; then
5559  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566    for ac_exec_ext in '' $ac_executable_extensions; do
5567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570    break 2
5571  fi
5572done
5573  done
5574IFS=$as_save_IFS
5575
5576fi
5577fi
5578ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5579if test -n "$ac_ct_OBJDUMP"; then
5580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5581$as_echo "$ac_ct_OBJDUMP" >&6; }
5582else
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584$as_echo "no" >&6; }
5585fi
5586
5587  if test "x$ac_ct_OBJDUMP" = x; then
5588    OBJDUMP="false"
5589  else
5590    case $cross_compiling:$ac_tool_warned in
5591yes:)
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594ac_tool_warned=yes ;;
5595esac
5596    OBJDUMP=$ac_ct_OBJDUMP
5597  fi
5598else
5599  OBJDUMP="$ac_cv_prog_OBJDUMP"
5600fi
5601
5602test -z "$OBJDUMP" && OBJDUMP=objdump
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5613$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5614if ${lt_cv_deplibs_check_method+:} false; then :
5615  $as_echo_n "(cached) " >&6
5616else
5617  lt_cv_file_magic_cmd='$MAGIC_CMD'
5618lt_cv_file_magic_test_file=
5619lt_cv_deplibs_check_method='unknown'
5620# Need to set the preceding variable on all platforms that support
5621# interlibrary dependencies.
5622# 'none' -- dependencies not supported.
5623# 'unknown' -- same as none, but documents that we really don't know.
5624# 'pass_all' -- all dependencies passed with no checks.
5625# 'test_compile' -- check by making test program.
5626# 'file_magic [[regex]]' -- check by looking for files in library path
5627# that responds to the $file_magic_cmd with a given extended regex.
5628# If you have 'file' or equivalent on your system and you're not sure
5629# whether 'pass_all' will *always* work, you probably want this one.
5630
5631case $host_os in
5632aix[4-9]*)
5633  lt_cv_deplibs_check_method=pass_all
5634  ;;
5635
5636beos*)
5637  lt_cv_deplibs_check_method=pass_all
5638  ;;
5639
5640bsdi[45]*)
5641  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5642  lt_cv_file_magic_cmd='/usr/bin/file -L'
5643  lt_cv_file_magic_test_file=/shlib/libc.so
5644  ;;
5645
5646cygwin*)
5647  # func_win32_libid is a shell function defined in ltmain.sh
5648  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5649  lt_cv_file_magic_cmd='func_win32_libid'
5650  ;;
5651
5652mingw* | pw32*)
5653  # Base MSYS/MinGW do not provide the 'file' command needed by
5654  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5655  # unless we find 'file', for example because we are cross-compiling.
5656  if ( file / ) >/dev/null 2>&1; then
5657    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5658    lt_cv_file_magic_cmd='func_win32_libid'
5659  else
5660    # Keep this pattern in sync with the one in func_win32_libid.
5661    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5662    lt_cv_file_magic_cmd='$OBJDUMP -f'
5663  fi
5664  ;;
5665
5666cegcc*)
5667  # use the weaker test based on 'objdump'. See mingw*.
5668  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5669  lt_cv_file_magic_cmd='$OBJDUMP -f'
5670  ;;
5671
5672darwin* | rhapsody*)
5673  lt_cv_deplibs_check_method=pass_all
5674  ;;
5675
5676freebsd* | dragonfly*)
5677  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5678    case $host_cpu in
5679    i*86 )
5680      # Not sure whether the presence of OpenBSD here was a mistake.
5681      # Let's accept both of them until this is cleared up.
5682      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5683      lt_cv_file_magic_cmd=/usr/bin/file
5684      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5685      ;;
5686    esac
5687  else
5688    lt_cv_deplibs_check_method=pass_all
5689  fi
5690  ;;
5691
5692haiku*)
5693  lt_cv_deplibs_check_method=pass_all
5694  ;;
5695
5696hpux10.20* | hpux11*)
5697  lt_cv_file_magic_cmd=/usr/bin/file
5698  case $host_cpu in
5699  ia64*)
5700    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5701    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5702    ;;
5703  hppa*64*)
5704    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]'
5705    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5706    ;;
5707  *)
5708    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5709    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5710    ;;
5711  esac
5712  ;;
5713
5714interix[3-9]*)
5715  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5716  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5717  ;;
5718
5719irix5* | irix6* | nonstopux*)
5720  case $LD in
5721  *-32|*"-32 ") libmagic=32-bit;;
5722  *-n32|*"-n32 ") libmagic=N32;;
5723  *-64|*"-64 ") libmagic=64-bit;;
5724  *) libmagic=never-match;;
5725  esac
5726  lt_cv_deplibs_check_method=pass_all
5727  ;;
5728
5729# This must be glibc/ELF.
5730linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5731  lt_cv_deplibs_check_method=pass_all
5732  ;;
5733
5734netbsd*)
5735  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5736    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5737  else
5738    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5739  fi
5740  ;;
5741
5742newos6*)
5743  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5744  lt_cv_file_magic_cmd=/usr/bin/file
5745  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5746  ;;
5747
5748*nto* | *qnx*)
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751
5752openbsd* | bitrig*)
5753  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5754    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5755  else
5756    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5757  fi
5758  ;;
5759
5760osf3* | osf4* | osf5*)
5761  lt_cv_deplibs_check_method=pass_all
5762  ;;
5763
5764rdos*)
5765  lt_cv_deplibs_check_method=pass_all
5766  ;;
5767
5768solaris*)
5769  lt_cv_deplibs_check_method=pass_all
5770  ;;
5771
5772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5773  lt_cv_deplibs_check_method=pass_all
5774  ;;
5775
5776sysv4 | sysv4.3*)
5777  case $host_vendor in
5778  motorola)
5779    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]'
5780    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5781    ;;
5782  ncr)
5783    lt_cv_deplibs_check_method=pass_all
5784    ;;
5785  sequent)
5786    lt_cv_file_magic_cmd='/bin/file'
5787    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5788    ;;
5789  sni)
5790    lt_cv_file_magic_cmd='/bin/file'
5791    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5792    lt_cv_file_magic_test_file=/lib/libc.so
5793    ;;
5794  siemens)
5795    lt_cv_deplibs_check_method=pass_all
5796    ;;
5797  pc)
5798    lt_cv_deplibs_check_method=pass_all
5799    ;;
5800  esac
5801  ;;
5802
5803tpf*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806os2*)
5807  lt_cv_deplibs_check_method=pass_all
5808  ;;
5809esac
5810
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5813$as_echo "$lt_cv_deplibs_check_method" >&6; }
5814
5815file_magic_glob=
5816want_nocaseglob=no
5817if test "$build" = "$host"; then
5818  case $host_os in
5819  mingw* | pw32*)
5820    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5821      want_nocaseglob=yes
5822    else
5823      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5824    fi
5825    ;;
5826  esac
5827fi
5828
5829file_magic_cmd=$lt_cv_file_magic_cmd
5830deplibs_check_method=$lt_cv_deplibs_check_method
5831test -z "$deplibs_check_method" && deplibs_check_method=unknown
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854if test -n "$ac_tool_prefix"; then
5855  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5856set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_DLLTOOL+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  if test -n "$DLLTOOL"; then
5863  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868  IFS=$as_save_IFS
5869  test -z "$as_dir" && as_dir=.
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874    break 2
5875  fi
5876done
5877  done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882DLLTOOL=$ac_cv_prog_DLLTOOL
5883if test -n "$DLLTOOL"; then
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5885$as_echo "$DLLTOOL" >&6; }
5886else
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891
5892fi
5893if test -z "$ac_cv_prog_DLLTOOL"; then
5894  ac_ct_DLLTOOL=$DLLTOOL
5895  # Extract the first word of "dlltool", so it can be a program name with args.
5896set dummy dlltool; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
5899if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  if test -n "$ac_ct_DLLTOOL"; then
5903  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910    for ac_exec_ext in '' $ac_executable_extensions; do
5911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914    break 2
5915  fi
5916done
5917  done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5923if test -n "$ac_ct_DLLTOOL"; then
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5925$as_echo "$ac_ct_DLLTOOL" >&6; }
5926else
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931  if test "x$ac_ct_DLLTOOL" = x; then
5932    DLLTOOL="false"
5933  else
5934    case $cross_compiling:$ac_tool_warned in
5935yes:)
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938ac_tool_warned=yes ;;
5939esac
5940    DLLTOOL=$ac_ct_DLLTOOL
5941  fi
5942else
5943  DLLTOOL="$ac_cv_prog_DLLTOOL"
5944fi
5945
5946test -z "$DLLTOOL" && DLLTOOL=dlltool
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5958$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5959if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  lt_cv_sharedlib_from_linklib_cmd='unknown'
5963
5964case $host_os in
5965cygwin* | mingw* | pw32* | cegcc*)
5966  # two different shell functions defined in ltmain.sh;
5967  # decide which one to use based on capabilities of $DLLTOOL
5968  case `$DLLTOOL --help 2>&1` in
5969  *--identify-strict*)
5970    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5971    ;;
5972  *)
5973    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5974    ;;
5975  esac
5976  ;;
5977*)
5978  # fallback: assume linklib IS sharedlib
5979  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5980  ;;
5981esac
5982
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5985$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5986sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5987test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5988
5989
5990
5991
5992
5993
5994
5995
5996if test -n "$ac_tool_prefix"; then
5997  for ac_prog in ar
5998  do
5999    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6000set dummy $ac_tool_prefix$ac_prog; 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_AR+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  if test -n "$AR"; then
6007  ac_cv_prog_AR="$AR" # 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_AR="$ac_tool_prefix$ac_prog"
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
6026AR=$ac_cv_prog_AR
6027if test -n "$AR"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6029$as_echo "$AR" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036    test -n "$AR" && break
6037  done
6038fi
6039if test -z "$AR"; then
6040  ac_ct_AR=$AR
6041  for ac_prog in ar
6042do
6043  # Extract the first word of "$ac_prog", so it can be a program name with args.
6044set dummy $ac_prog; ac_word=$2
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046$as_echo_n "checking for $ac_word... " >&6; }
6047if ${ac_cv_prog_ac_ct_AR+:} false; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  if test -n "$ac_ct_AR"; then
6051  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  test -z "$as_dir" && as_dir=.
6058    for ac_exec_ext in '' $ac_executable_extensions; do
6059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060    ac_cv_prog_ac_ct_AR="$ac_prog"
6061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062    break 2
6063  fi
6064done
6065  done
6066IFS=$as_save_IFS
6067
6068fi
6069fi
6070ac_ct_AR=$ac_cv_prog_ac_ct_AR
6071if test -n "$ac_ct_AR"; then
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6073$as_echo "$ac_ct_AR" >&6; }
6074else
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076$as_echo "no" >&6; }
6077fi
6078
6079
6080  test -n "$ac_ct_AR" && break
6081done
6082
6083  if test "x$ac_ct_AR" = x; then
6084    AR="false"
6085  else
6086    case $cross_compiling:$ac_tool_warned in
6087yes:)
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6090ac_tool_warned=yes ;;
6091esac
6092    AR=$ac_ct_AR
6093  fi
6094fi
6095
6096: ${AR=ar}
6097: ${AR_FLAGS=cru}
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6110$as_echo_n "checking for archiver @FILE support... " >&6; }
6111if ${lt_cv_ar_at_file+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  lt_cv_ar_at_file=no
6115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117
6118int
6119main ()
6120{
6121
6122  ;
6123  return 0;
6124}
6125_ACEOF
6126if ac_fn_c_try_compile "$LINENO"; then :
6127  echo conftest.$ac_objext > conftest.lst
6128      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6129      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6130  (eval $lt_ar_try) 2>&5
6131  ac_status=$?
6132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133  test $ac_status = 0; }
6134      if test 0 -eq "$ac_status"; then
6135	# Ensure the archiver fails upon bogus file names.
6136	rm -f conftest.$ac_objext libconftest.a
6137	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6138  (eval $lt_ar_try) 2>&5
6139  ac_status=$?
6140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141  test $ac_status = 0; }
6142	if test 0 -ne "$ac_status"; then
6143          lt_cv_ar_at_file=@
6144        fi
6145      fi
6146      rm -f conftest.* libconftest.a
6147
6148fi
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6153$as_echo "$lt_cv_ar_at_file" >&6; }
6154
6155if test no = "$lt_cv_ar_at_file"; then
6156  archiver_list_spec=
6157else
6158  archiver_list_spec=$lt_cv_ar_at_file
6159fi
6160
6161
6162
6163
6164
6165
6166
6167if test -n "$ac_tool_prefix"; then
6168  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}strip; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if ${ac_cv_prog_STRIP+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$STRIP"; then
6176  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183    for ac_exec_ext in '' $ac_executable_extensions; do
6184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190  done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195STRIP=$ac_cv_prog_STRIP
6196if test -n "$STRIP"; then
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6198$as_echo "$STRIP" >&6; }
6199else
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205fi
6206if test -z "$ac_cv_prog_STRIP"; then
6207  ac_ct_STRIP=$STRIP
6208  # Extract the first word of "strip", so it can be a program name with args.
6209set dummy strip; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  if test -n "$ac_ct_STRIP"; then
6216  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223    for ac_exec_ext in '' $ac_executable_extensions; do
6224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225    ac_cv_prog_ac_ct_STRIP="strip"
6226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230  done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6236if test -n "$ac_ct_STRIP"; then
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6238$as_echo "$ac_ct_STRIP" >&6; }
6239else
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244  if test "x$ac_ct_STRIP" = x; then
6245    STRIP=":"
6246  else
6247    case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251ac_tool_warned=yes ;;
6252esac
6253    STRIP=$ac_ct_STRIP
6254  fi
6255else
6256  STRIP="$ac_cv_prog_STRIP"
6257fi
6258
6259test -z "$STRIP" && STRIP=:
6260
6261
6262
6263
6264
6265
6266if test -n "$ac_tool_prefix"; then
6267  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6268set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if ${ac_cv_prog_RANLIB+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  if test -n "$RANLIB"; then
6275  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289  done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294RANLIB=$ac_cv_prog_RANLIB
6295if test -n "$RANLIB"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6297$as_echo "$RANLIB" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303
6304fi
6305if test -z "$ac_cv_prog_RANLIB"; then
6306  ac_ct_RANLIB=$RANLIB
6307  # Extract the first word of "ranlib", so it can be a program name with args.
6308set dummy ranlib; ac_word=$2
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$ac_ct_RANLIB"; then
6315  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322    for ac_exec_ext in '' $ac_executable_extensions; do
6323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324    ac_cv_prog_ac_ct_RANLIB="ranlib"
6325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329  done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6335if test -n "$ac_ct_RANLIB"; then
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6337$as_echo "$ac_ct_RANLIB" >&6; }
6338else
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343  if test "x$ac_ct_RANLIB" = x; then
6344    RANLIB=":"
6345  else
6346    case $cross_compiling:$ac_tool_warned in
6347yes:)
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350ac_tool_warned=yes ;;
6351esac
6352    RANLIB=$ac_ct_RANLIB
6353  fi
6354else
6355  RANLIB="$ac_cv_prog_RANLIB"
6356fi
6357
6358test -z "$RANLIB" && RANLIB=:
6359
6360
6361
6362
6363
6364
6365# Determine commands to create old-style static archives.
6366old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6367old_postinstall_cmds='chmod 644 $oldlib'
6368old_postuninstall_cmds=
6369
6370if test -n "$RANLIB"; then
6371  case $host_os in
6372  bitrig* | openbsd*)
6373    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6374    ;;
6375  *)
6376    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6377    ;;
6378  esac
6379  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6380fi
6381
6382case $host_os in
6383  darwin*)
6384    lock_old_archive_extraction=yes ;;
6385  *)
6386    lock_old_archive_extraction=no ;;
6387esac
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427# If no C compiler was specified, use CC.
6428LTCC=${LTCC-"$CC"}
6429
6430# If no C compiler flags were specified, use CFLAGS.
6431LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6432
6433# Allow CC to be a program name with arguments.
6434compiler=$CC
6435
6436
6437# Check for command to grab the raw symbol name followed by C symbol from nm.
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6439$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6440if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443
6444# These are sane defaults that work on at least a few old systems.
6445# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6446
6447# Character class describing NM global symbol codes.
6448symcode='[BCDEGRST]'
6449
6450# Regexp to match symbols that can be accessed directly from C.
6451sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6452
6453# Define system-specific variables.
6454case $host_os in
6455aix*)
6456  symcode='[BCDT]'
6457  ;;
6458cygwin* | mingw* | pw32* | cegcc*)
6459  symcode='[ABCDGISTW]'
6460  ;;
6461hpux*)
6462  if test ia64 = "$host_cpu"; then
6463    symcode='[ABCDEGRST]'
6464  fi
6465  ;;
6466irix* | nonstopux*)
6467  symcode='[BCDEGRST]'
6468  ;;
6469osf*)
6470  symcode='[BCDEGQRST]'
6471  ;;
6472solaris*)
6473  symcode='[BDRT]'
6474  ;;
6475sco3.2v5*)
6476  symcode='[DT]'
6477  ;;
6478sysv4.2uw2*)
6479  symcode='[DT]'
6480  ;;
6481sysv5* | sco5v6* | unixware* | OpenUNIX*)
6482  symcode='[ABDT]'
6483  ;;
6484sysv4)
6485  symcode='[DFNSTU]'
6486  ;;
6487esac
6488
6489# If we're using GNU nm, then use its standard symbol codes.
6490case `$NM -V 2>&1` in
6491*GNU* | *'with BFD'*)
6492  symcode='[ABCDGIRSTW]' ;;
6493esac
6494
6495if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496  # Gets list of data symbols to import.
6497  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6498  # Adjust the below global symbol transforms to fixup imported variables.
6499  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6500  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6501  lt_c_name_lib_hook="\
6502  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6503  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6504else
6505  # Disable hooks by default.
6506  lt_cv_sys_global_symbol_to_import=
6507  lt_cdecl_hook=
6508  lt_c_name_hook=
6509  lt_c_name_lib_hook=
6510fi
6511
6512# Transform an extracted symbol line into a proper C declaration.
6513# Some systems (esp. on ia64) link data and code symbols differently,
6514# so use this general approach.
6515lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6516$lt_cdecl_hook\
6517" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6518" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6519
6520# Transform an extracted symbol line into symbol name and symbol address
6521lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6522$lt_c_name_hook\
6523" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6524" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6525
6526# Transform an extracted symbol line into symbol name with lib prefix and
6527# symbol address.
6528lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6529$lt_c_name_lib_hook\
6530" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6531" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6532" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6533
6534# Handle CRLF in mingw tool chain
6535opt_cr=
6536case $build_os in
6537mingw*)
6538  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6539  ;;
6540esac
6541
6542# Try without a prefix underscore, then with it.
6543for ac_symprfx in "" "_"; do
6544
6545  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6546  symxfrm="\\1 $ac_symprfx\\2 \\2"
6547
6548  # Write the raw and C identifiers.
6549  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6550    # Fake it for dumpbin and say T for any non-static function,
6551    # D for any global variable and I for any imported variable.
6552    # Also find C++ and __fastcall symbols from MSVC++,
6553    # which start with @ or ?.
6554    lt_cv_sys_global_symbol_pipe="$AWK '"\
6555"     {last_section=section; section=\$ 3};"\
6556"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6557"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6558"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6559"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6560"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6561"     \$ 0!~/External *\|/{next};"\
6562"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6563"     {if(hide[section]) next};"\
6564"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6565"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6566"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6567"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6568"     ' prfx=^$ac_symprfx"
6569  else
6570    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6571  fi
6572  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6573
6574  # Check to see that the pipe works correctly.
6575  pipe_works=no
6576
6577  rm -f conftest*
6578  cat > conftest.$ac_ext <<_LT_EOF
6579#ifdef __cplusplus
6580extern "C" {
6581#endif
6582char nm_test_var;
6583void nm_test_func(void);
6584void nm_test_func(void){}
6585#ifdef __cplusplus
6586}
6587#endif
6588int main(){nm_test_var='a';nm_test_func();return(0);}
6589_LT_EOF
6590
6591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592  (eval $ac_compile) 2>&5
6593  ac_status=$?
6594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595  test $ac_status = 0; }; then
6596    # Now try to grab the symbols.
6597    nlist=conftest.nm
6598    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6599  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6600  ac_status=$?
6601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6602  test $ac_status = 0; } && test -s "$nlist"; then
6603      # Try sorting and uniquifying the output.
6604      if sort "$nlist" | uniq > "$nlist"T; then
6605	mv -f "$nlist"T "$nlist"
6606      else
6607	rm -f "$nlist"T
6608      fi
6609
6610      # Make sure that we snagged all the symbols we need.
6611      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6612	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6613	  cat <<_LT_EOF > conftest.$ac_ext
6614/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6615#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6616/* DATA imports from DLLs on WIN32 can't be const, because runtime
6617   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6618# define LT@&t@_DLSYM_CONST
6619#elif defined __osf__
6620/* This system does not cope well with relocations in const data.  */
6621# define LT@&t@_DLSYM_CONST
6622#else
6623# define LT@&t@_DLSYM_CONST const
6624#endif
6625
6626#ifdef __cplusplus
6627extern "C" {
6628#endif
6629
6630_LT_EOF
6631	  # Now generate the symbol file.
6632	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6633
6634	  cat <<_LT_EOF >> conftest.$ac_ext
6635
6636/* The mapping between symbol names and symbols.  */
6637LT@&t@_DLSYM_CONST struct {
6638  const char *name;
6639  void       *address;
6640}
6641lt__PROGRAM__LTX_preloaded_symbols[] =
6642{
6643  { "@PROGRAM@", (void *) 0 },
6644_LT_EOF
6645	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6646	  cat <<\_LT_EOF >> conftest.$ac_ext
6647  {0, (void *) 0}
6648};
6649
6650/* This works around a problem in FreeBSD linker */
6651#ifdef FREEBSD_WORKAROUND
6652static const void *lt_preloaded_setup() {
6653  return lt__PROGRAM__LTX_preloaded_symbols;
6654}
6655#endif
6656
6657#ifdef __cplusplus
6658}
6659#endif
6660_LT_EOF
6661	  # Now try linking the two files.
6662	  mv conftest.$ac_objext conftstm.$ac_objext
6663	  lt_globsym_save_LIBS=$LIBS
6664	  lt_globsym_save_CFLAGS=$CFLAGS
6665	  LIBS=conftstm.$ac_objext
6666	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6667	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6668  (eval $ac_link) 2>&5
6669  ac_status=$?
6670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6672	    pipe_works=yes
6673	  fi
6674	  LIBS=$lt_globsym_save_LIBS
6675	  CFLAGS=$lt_globsym_save_CFLAGS
6676	else
6677	  echo "cannot find nm_test_func in $nlist" >&5
6678	fi
6679      else
6680	echo "cannot find nm_test_var in $nlist" >&5
6681      fi
6682    else
6683      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6684    fi
6685  else
6686    echo "$progname: failed program was:" >&5
6687    cat conftest.$ac_ext >&5
6688  fi
6689  rm -rf conftest* conftst*
6690
6691  # Do not use the global_symbol_pipe unless it works.
6692  if test yes = "$pipe_works"; then
6693    break
6694  else
6695    lt_cv_sys_global_symbol_pipe=
6696  fi
6697done
6698
6699fi
6700
6701if test -z "$lt_cv_sys_global_symbol_pipe"; then
6702  lt_cv_sys_global_symbol_to_cdecl=
6703fi
6704if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6706$as_echo "failed" >&6; }
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6709$as_echo "ok" >&6; }
6710fi
6711
6712# Response file support.
6713if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6714  nm_file_list_spec='@'
6715elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6716  nm_file_list_spec='@'
6717fi
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6756$as_echo_n "checking for sysroot... " >&6; }
6757
6758@%:@ Check whether --with-sysroot was given.
6759if test "${with_sysroot+set}" = set; then :
6760  withval=$with_sysroot;
6761else
6762  with_sysroot=no
6763fi
6764
6765
6766lt_sysroot=
6767case $with_sysroot in #(
6768 yes)
6769   if test yes = "$GCC"; then
6770     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6771   fi
6772   ;; #(
6773 /*)
6774   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6775   ;; #(
6776 no|'')
6777   ;; #(
6778 *)
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6780$as_echo "$with_sysroot" >&6; }
6781   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6782   ;;
6783esac
6784
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6786$as_echo "${lt_sysroot:-no}" >&6; }
6787
6788
6789
6790
6791
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6793$as_echo_n "checking for a working dd... " >&6; }
6794if ${ac_cv_path_lt_DD+:} false; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  printf 0123456789abcdef0123456789abcdef >conftest.i
6798cat conftest.i conftest.i >conftest2.i
6799: ${lt_DD:=$DD}
6800if test -z "$lt_DD"; then
6801  ac_path_lt_DD_found=false
6802  # Loop through the user's path and test for each of PROGNAME-LIST
6803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808    for ac_prog in dd; do
6809    for ac_exec_ext in '' $ac_executable_extensions; do
6810      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6811      as_fn_executable_p "$ac_path_lt_DD" || continue
6812if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6813  cmp -s conftest.i conftest.out \
6814  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6815fi
6816      $ac_path_lt_DD_found && break 3
6817    done
6818  done
6819  done
6820IFS=$as_save_IFS
6821  if test -z "$ac_cv_path_lt_DD"; then
6822    :
6823  fi
6824else
6825  ac_cv_path_lt_DD=$lt_DD
6826fi
6827
6828rm -f conftest.i conftest2.i conftest.out
6829fi
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6831$as_echo "$ac_cv_path_lt_DD" >&6; }
6832
6833
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6835$as_echo_n "checking how to truncate binary pipes... " >&6; }
6836if ${lt_cv_truncate_bin+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  printf 0123456789abcdef0123456789abcdef >conftest.i
6840cat conftest.i conftest.i >conftest2.i
6841lt_cv_truncate_bin=
6842if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6843  cmp -s conftest.i conftest.out \
6844  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6845fi
6846rm -f conftest.i conftest2.i conftest.out
6847test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6848fi
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6850$as_echo "$lt_cv_truncate_bin" >&6; }
6851
6852
6853
6854
6855
6856
6857
6858# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6859func_cc_basename ()
6860{
6861    for cc_temp in @S|@*""; do
6862      case $cc_temp in
6863        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6864        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6865        \-*) ;;
6866        *) break;;
6867      esac
6868    done
6869    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6870}
6871
6872@%:@ Check whether --enable-libtool-lock was given.
6873if test "${enable_libtool_lock+set}" = set; then :
6874  enableval=$enable_libtool_lock;
6875fi
6876
6877test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6878
6879# Some flags need to be propagated to the compiler or linker for good
6880# libtool support.
6881case $host in
6882ia64-*-hpux*)
6883  # Find out what ABI is being produced by ac_compile, and set mode
6884  # options accordingly.
6885  echo 'int i;' > conftest.$ac_ext
6886  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887  (eval $ac_compile) 2>&5
6888  ac_status=$?
6889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890  test $ac_status = 0; }; then
6891    case `/usr/bin/file conftest.$ac_objext` in
6892      *ELF-32*)
6893	HPUX_IA64_MODE=32
6894	;;
6895      *ELF-64*)
6896	HPUX_IA64_MODE=64
6897	;;
6898    esac
6899  fi
6900  rm -rf conftest*
6901  ;;
6902*-*-irix6*)
6903  # Find out what ABI is being produced by ac_compile, and set linker
6904  # options accordingly.
6905  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6906  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6907  (eval $ac_compile) 2>&5
6908  ac_status=$?
6909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910  test $ac_status = 0; }; then
6911    if test yes = "$lt_cv_prog_gnu_ld"; then
6912      case `/usr/bin/file conftest.$ac_objext` in
6913	*32-bit*)
6914	  LD="${LD-ld} -melf32bsmip"
6915	  ;;
6916	*N32*)
6917	  LD="${LD-ld} -melf32bmipn32"
6918	  ;;
6919	*64-bit*)
6920	  LD="${LD-ld} -melf64bmip"
6921	;;
6922      esac
6923    else
6924      case `/usr/bin/file conftest.$ac_objext` in
6925	*32-bit*)
6926	  LD="${LD-ld} -32"
6927	  ;;
6928	*N32*)
6929	  LD="${LD-ld} -n32"
6930	  ;;
6931	*64-bit*)
6932	  LD="${LD-ld} -64"
6933	  ;;
6934      esac
6935    fi
6936  fi
6937  rm -rf conftest*
6938  ;;
6939
6940mips64*-*linux*)
6941  # Find out what ABI is being produced by ac_compile, and set linker
6942  # options accordingly.
6943  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6944  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6945  (eval $ac_compile) 2>&5
6946  ac_status=$?
6947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948  test $ac_status = 0; }; then
6949    emul=elf
6950    case `/usr/bin/file conftest.$ac_objext` in
6951      *32-bit*)
6952	emul="${emul}32"
6953	;;
6954      *64-bit*)
6955	emul="${emul}64"
6956	;;
6957    esac
6958    case `/usr/bin/file conftest.$ac_objext` in
6959      *MSB*)
6960	emul="${emul}btsmip"
6961	;;
6962      *LSB*)
6963	emul="${emul}ltsmip"
6964	;;
6965    esac
6966    case `/usr/bin/file conftest.$ac_objext` in
6967      *N32*)
6968	emul="${emul}n32"
6969	;;
6970    esac
6971    LD="${LD-ld} -m $emul"
6972  fi
6973  rm -rf conftest*
6974  ;;
6975
6976x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6977s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6978  # Find out what ABI is being produced by ac_compile, and set linker
6979  # options accordingly.  Note that the listed cases only cover the
6980  # situations where additional linker options are needed (such as when
6981  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6982  # vice versa); the common cases where no linker options are needed do
6983  # not appear in the list.
6984  echo 'int i;' > conftest.$ac_ext
6985  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986  (eval $ac_compile) 2>&5
6987  ac_status=$?
6988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989  test $ac_status = 0; }; then
6990    case `/usr/bin/file conftest.o` in
6991      *32-bit*)
6992	case $host in
6993	  x86_64-*kfreebsd*-gnu)
6994	    LD="${LD-ld} -m elf_i386_fbsd"
6995	    ;;
6996	  x86_64-*linux*)
6997	    case `/usr/bin/file conftest.o` in
6998	      *x86-64*)
6999		LD="${LD-ld} -m elf32_x86_64"
7000		;;
7001	      *)
7002		LD="${LD-ld} -m elf_i386"
7003		;;
7004	    esac
7005	    ;;
7006	  powerpc64le-*linux*)
7007	    LD="${LD-ld} -m elf32lppclinux"
7008	    ;;
7009	  powerpc64-*linux*)
7010	    LD="${LD-ld} -m elf32ppclinux"
7011	    ;;
7012	  s390x-*linux*)
7013	    LD="${LD-ld} -m elf_s390"
7014	    ;;
7015	  sparc64-*linux*)
7016	    LD="${LD-ld} -m elf32_sparc"
7017	    ;;
7018	esac
7019	;;
7020      *64-bit*)
7021	case $host in
7022	  x86_64-*kfreebsd*-gnu)
7023	    LD="${LD-ld} -m elf_x86_64_fbsd"
7024	    ;;
7025	  x86_64-*linux*)
7026	    LD="${LD-ld} -m elf_x86_64"
7027	    ;;
7028	  powerpcle-*linux*)
7029	    LD="${LD-ld} -m elf64lppc"
7030	    ;;
7031	  powerpc-*linux*)
7032	    LD="${LD-ld} -m elf64ppc"
7033	    ;;
7034	  s390*-*linux*|s390*-*tpf*)
7035	    LD="${LD-ld} -m elf64_s390"
7036	    ;;
7037	  sparc*-*linux*)
7038	    LD="${LD-ld} -m elf64_sparc"
7039	    ;;
7040	esac
7041	;;
7042    esac
7043  fi
7044  rm -rf conftest*
7045  ;;
7046
7047*-*-sco3.2v5*)
7048  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7049  SAVE_CFLAGS=$CFLAGS
7050  CFLAGS="$CFLAGS -belf"
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7052$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7053if ${lt_cv_cc_needs_belf+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064
7065int
7066main ()
7067{
7068
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073if ac_fn_c_try_link "$LINENO"; then :
7074  lt_cv_cc_needs_belf=yes
7075else
7076  lt_cv_cc_needs_belf=no
7077fi
7078rm -f core conftest.err conftest.$ac_objext \
7079    conftest$ac_exeext conftest.$ac_ext
7080     ac_ext=c
7081ac_cpp='$CPP $CPPFLAGS'
7082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086fi
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7088$as_echo "$lt_cv_cc_needs_belf" >&6; }
7089  if test yes != "$lt_cv_cc_needs_belf"; then
7090    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7091    CFLAGS=$SAVE_CFLAGS
7092  fi
7093  ;;
7094*-*solaris*)
7095  # Find out what ABI is being produced by ac_compile, and set linker
7096  # options accordingly.
7097  echo 'int i;' > conftest.$ac_ext
7098  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099  (eval $ac_compile) 2>&5
7100  ac_status=$?
7101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102  test $ac_status = 0; }; then
7103    case `/usr/bin/file conftest.o` in
7104    *64-bit*)
7105      case $lt_cv_prog_gnu_ld in
7106      yes*)
7107        case $host in
7108        i?86-*-solaris*|x86_64-*-solaris*)
7109          LD="${LD-ld} -m elf_x86_64"
7110          ;;
7111        sparc*-*-solaris*)
7112          LD="${LD-ld} -m elf64_sparc"
7113          ;;
7114        esac
7115        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7116        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7117          LD=${LD-ld}_sol2
7118        fi
7119        ;;
7120      *)
7121	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7122	  LD="${LD-ld} -64"
7123	fi
7124	;;
7125      esac
7126      ;;
7127    esac
7128  fi
7129  rm -rf conftest*
7130  ;;
7131esac
7132
7133need_locks=$enable_libtool_lock
7134
7135if test -n "$ac_tool_prefix"; then
7136  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7137set dummy ${ac_tool_prefix}mt; ac_word=$2
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
7140if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  if test -n "$MANIFEST_TOOL"; then
7144  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149  IFS=$as_save_IFS
7150  test -z "$as_dir" && as_dir=.
7151    for ac_exec_ext in '' $ac_executable_extensions; do
7152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155    break 2
7156  fi
7157done
7158  done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7164if test -n "$MANIFEST_TOOL"; then
7165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7166$as_echo "$MANIFEST_TOOL" >&6; }
7167else
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172
7173fi
7174if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7175  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7176  # Extract the first word of "mt", so it can be a program name with args.
7177set dummy mt; ac_word=$2
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179$as_echo_n "checking for $ac_word... " >&6; }
7180if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7181  $as_echo_n "(cached) " >&6
7182else
7183  if test -n "$ac_ct_MANIFEST_TOOL"; then
7184  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189  IFS=$as_save_IFS
7190  test -z "$as_dir" && as_dir=.
7191    for ac_exec_ext in '' $ac_executable_extensions; do
7192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195    break 2
7196  fi
7197done
7198  done
7199IFS=$as_save_IFS
7200
7201fi
7202fi
7203ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7204if test -n "$ac_ct_MANIFEST_TOOL"; then
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7206$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7207else
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209$as_echo "no" >&6; }
7210fi
7211
7212  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7213    MANIFEST_TOOL=":"
7214  else
7215    case $cross_compiling:$ac_tool_warned in
7216yes:)
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219ac_tool_warned=yes ;;
7220esac
7221    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7222  fi
7223else
7224  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7225fi
7226
7227test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7229$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7230if ${lt_cv_path_mainfest_tool+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  lt_cv_path_mainfest_tool=no
7234  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7235  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7236  cat conftest.err >&5
7237  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7238    lt_cv_path_mainfest_tool=yes
7239  fi
7240  rm -f conftest*
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7243$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7244if test yes != "$lt_cv_path_mainfest_tool"; then
7245  MANIFEST_TOOL=:
7246fi
7247
7248
7249
7250
7251
7252
7253  case $host_os in
7254    rhapsody* | darwin*)
7255    if test -n "$ac_tool_prefix"; then
7256  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_DSYMUTIL+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$DSYMUTIL"; then
7264  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283DSYMUTIL=$ac_cv_prog_DSYMUTIL
7284if test -n "$DSYMUTIL"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7286$as_echo "$DSYMUTIL" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293fi
7294if test -z "$ac_cv_prog_DSYMUTIL"; then
7295  ac_ct_DSYMUTIL=$DSYMUTIL
7296  # Extract the first word of "dsymutil", so it can be a program name with args.
7297set dummy dsymutil; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  if test -n "$ac_ct_DSYMUTIL"; then
7304  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311    for ac_exec_ext in '' $ac_executable_extensions; do
7312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318  done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7324if test -n "$ac_ct_DSYMUTIL"; then
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7326$as_echo "$ac_ct_DSYMUTIL" >&6; }
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332  if test "x$ac_ct_DSYMUTIL" = x; then
7333    DSYMUTIL=":"
7334  else
7335    case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341    DSYMUTIL=$ac_ct_DSYMUTIL
7342  fi
7343else
7344  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7345fi
7346
7347    if test -n "$ac_tool_prefix"; then
7348  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7349set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351$as_echo_n "checking for $ac_word... " >&6; }
7352if ${ac_cv_prog_NMEDIT+:} false; then :
7353  $as_echo_n "(cached) " >&6
7354else
7355  if test -n "$NMEDIT"; then
7356  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7357else
7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359for as_dir in $PATH
7360do
7361  IFS=$as_save_IFS
7362  test -z "$as_dir" && as_dir=.
7363    for ac_exec_ext in '' $ac_executable_extensions; do
7364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367    break 2
7368  fi
7369done
7370  done
7371IFS=$as_save_IFS
7372
7373fi
7374fi
7375NMEDIT=$ac_cv_prog_NMEDIT
7376if test -n "$NMEDIT"; then
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7378$as_echo "$NMEDIT" >&6; }
7379else
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
7382fi
7383
7384
7385fi
7386if test -z "$ac_cv_prog_NMEDIT"; then
7387  ac_ct_NMEDIT=$NMEDIT
7388  # Extract the first word of "nmedit", so it can be a program name with args.
7389set dummy nmedit; ac_word=$2
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  if test -n "$ac_ct_NMEDIT"; then
7396  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401  IFS=$as_save_IFS
7402  test -z "$as_dir" && as_dir=.
7403    for ac_exec_ext in '' $ac_executable_extensions; do
7404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407    break 2
7408  fi
7409done
7410  done
7411IFS=$as_save_IFS
7412
7413fi
7414fi
7415ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7416if test -n "$ac_ct_NMEDIT"; then
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7418$as_echo "$ac_ct_NMEDIT" >&6; }
7419else
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424  if test "x$ac_ct_NMEDIT" = x; then
7425    NMEDIT=":"
7426  else
7427    case $cross_compiling:$ac_tool_warned in
7428yes:)
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431ac_tool_warned=yes ;;
7432esac
7433    NMEDIT=$ac_ct_NMEDIT
7434  fi
7435else
7436  NMEDIT="$ac_cv_prog_NMEDIT"
7437fi
7438
7439    if test -n "$ac_tool_prefix"; then
7440  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7441set dummy ${ac_tool_prefix}lipo; ac_word=$2
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
7444if ${ac_cv_prog_LIPO+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  if test -n "$LIPO"; then
7448  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453  IFS=$as_save_IFS
7454  test -z "$as_dir" && as_dir=.
7455    for ac_exec_ext in '' $ac_executable_extensions; do
7456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459    break 2
7460  fi
7461done
7462  done
7463IFS=$as_save_IFS
7464
7465fi
7466fi
7467LIPO=$ac_cv_prog_LIPO
7468if test -n "$LIPO"; then
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7470$as_echo "$LIPO" >&6; }
7471else
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
7474fi
7475
7476
7477fi
7478if test -z "$ac_cv_prog_LIPO"; then
7479  ac_ct_LIPO=$LIPO
7480  # Extract the first word of "lipo", so it can be a program name with args.
7481set dummy lipo; ac_word=$2
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483$as_echo_n "checking for $ac_word... " >&6; }
7484if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  if test -n "$ac_ct_LIPO"; then
7488  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7489else
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493  IFS=$as_save_IFS
7494  test -z "$as_dir" && as_dir=.
7495    for ac_exec_ext in '' $ac_executable_extensions; do
7496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497    ac_cv_prog_ac_ct_LIPO="lipo"
7498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499    break 2
7500  fi
7501done
7502  done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7508if test -n "$ac_ct_LIPO"; then
7509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7510$as_echo "$ac_ct_LIPO" >&6; }
7511else
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
7514fi
7515
7516  if test "x$ac_ct_LIPO" = x; then
7517    LIPO=":"
7518  else
7519    case $cross_compiling:$ac_tool_warned in
7520yes:)
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523ac_tool_warned=yes ;;
7524esac
7525    LIPO=$ac_ct_LIPO
7526  fi
7527else
7528  LIPO="$ac_cv_prog_LIPO"
7529fi
7530
7531    if test -n "$ac_tool_prefix"; then
7532  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7533set dummy ${ac_tool_prefix}otool; ac_word=$2
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535$as_echo_n "checking for $ac_word... " >&6; }
7536if ${ac_cv_prog_OTOOL+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test -n "$OTOOL"; then
7540  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554  done
7555IFS=$as_save_IFS
7556
7557fi
7558fi
7559OTOOL=$ac_cv_prog_OTOOL
7560if test -n "$OTOOL"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7562$as_echo "$OTOOL" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568
7569fi
7570if test -z "$ac_cv_prog_OTOOL"; then
7571  ac_ct_OTOOL=$OTOOL
7572  # Extract the first word of "otool", so it can be a program name with args.
7573set dummy otool; ac_word=$2
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575$as_echo_n "checking for $ac_word... " >&6; }
7576if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  if test -n "$ac_ct_OTOOL"; then
7580  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7581else
7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585  IFS=$as_save_IFS
7586  test -z "$as_dir" && as_dir=.
7587    for ac_exec_ext in '' $ac_executable_extensions; do
7588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589    ac_cv_prog_ac_ct_OTOOL="otool"
7590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591    break 2
7592  fi
7593done
7594  done
7595IFS=$as_save_IFS
7596
7597fi
7598fi
7599ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7600if test -n "$ac_ct_OTOOL"; then
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7602$as_echo "$ac_ct_OTOOL" >&6; }
7603else
7604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
7606fi
7607
7608  if test "x$ac_ct_OTOOL" = x; then
7609    OTOOL=":"
7610  else
7611    case $cross_compiling:$ac_tool_warned in
7612yes:)
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615ac_tool_warned=yes ;;
7616esac
7617    OTOOL=$ac_ct_OTOOL
7618  fi
7619else
7620  OTOOL="$ac_cv_prog_OTOOL"
7621fi
7622
7623    if test -n "$ac_tool_prefix"; then
7624  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7625set dummy ${ac_tool_prefix}otool64; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if ${ac_cv_prog_OTOOL64+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  if test -n "$OTOOL64"; then
7632  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  test -z "$as_dir" && as_dir=.
7639    for ac_exec_ext in '' $ac_executable_extensions; do
7640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646  done
7647IFS=$as_save_IFS
7648
7649fi
7650fi
7651OTOOL64=$ac_cv_prog_OTOOL64
7652if test -n "$OTOOL64"; then
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7654$as_echo "$OTOOL64" >&6; }
7655else
7656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
7659
7660
7661fi
7662if test -z "$ac_cv_prog_OTOOL64"; then
7663  ac_ct_OTOOL64=$OTOOL64
7664  # Extract the first word of "otool64", so it can be a program name with args.
7665set dummy otool64; ac_word=$2
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667$as_echo_n "checking for $ac_word... " >&6; }
7668if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  if test -n "$ac_ct_OTOOL64"; then
7672  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677  IFS=$as_save_IFS
7678  test -z "$as_dir" && as_dir=.
7679    for ac_exec_ext in '' $ac_executable_extensions; do
7680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681    ac_cv_prog_ac_ct_OTOOL64="otool64"
7682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683    break 2
7684  fi
7685done
7686  done
7687IFS=$as_save_IFS
7688
7689fi
7690fi
7691ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7692if test -n "$ac_ct_OTOOL64"; then
7693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7694$as_echo "$ac_ct_OTOOL64" >&6; }
7695else
7696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698fi
7699
7700  if test "x$ac_ct_OTOOL64" = x; then
7701    OTOOL64=":"
7702  else
7703    case $cross_compiling:$ac_tool_warned in
7704yes:)
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7707ac_tool_warned=yes ;;
7708esac
7709    OTOOL64=$ac_ct_OTOOL64
7710  fi
7711else
7712  OTOOL64="$ac_cv_prog_OTOOL64"
7713fi
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7742$as_echo_n "checking for -single_module linker flag... " >&6; }
7743if ${lt_cv_apple_cc_single_mod+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  lt_cv_apple_cc_single_mod=no
7747      if test -z "$LT_MULTI_MODULE"; then
7748	# By default we will add the -single_module flag. You can override
7749	# by either setting the environment variable LT_MULTI_MODULE
7750	# non-empty at configure time, or by adding -multi_module to the
7751	# link flags.
7752	rm -rf libconftest.dylib*
7753	echo "int foo(void){return 1;}" > conftest.c
7754	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7755-dynamiclib -Wl,-single_module conftest.c" >&5
7756	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7757	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7758        _lt_result=$?
7759	# If there is a non-empty error log, and "single_module"
7760	# appears in it, assume the flag caused a linker warning
7761        if test -s conftest.err && $GREP single_module conftest.err; then
7762	  cat conftest.err >&5
7763	# Otherwise, if the output was created with a 0 exit code from
7764	# the compiler, it worked.
7765	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7766	  lt_cv_apple_cc_single_mod=yes
7767	else
7768	  cat conftest.err >&5
7769	fi
7770	rm -rf libconftest.dylib*
7771	rm -f conftest.*
7772      fi
7773fi
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7775$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7776
7777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7778$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7779if ${lt_cv_ld_exported_symbols_list+:} false; then :
7780  $as_echo_n "(cached) " >&6
7781else
7782  lt_cv_ld_exported_symbols_list=no
7783      save_LDFLAGS=$LDFLAGS
7784      echo "_main" > conftest.sym
7785      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788
7789int
7790main ()
7791{
7792
7793  ;
7794  return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_link "$LINENO"; then :
7798  lt_cv_ld_exported_symbols_list=yes
7799else
7800  lt_cv_ld_exported_symbols_list=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext \
7803    conftest$ac_exeext conftest.$ac_ext
7804	LDFLAGS=$save_LDFLAGS
7805
7806fi
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7808$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7809
7810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7811$as_echo_n "checking for -force_load linker flag... " >&6; }
7812if ${lt_cv_ld_force_load+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  lt_cv_ld_force_load=no
7816      cat > conftest.c << _LT_EOF
7817int forced_loaded() { return 2;}
7818_LT_EOF
7819      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7820      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7821      echo "$AR cru libconftest.a conftest.o" >&5
7822      $AR cru libconftest.a conftest.o 2>&5
7823      echo "$RANLIB libconftest.a" >&5
7824      $RANLIB libconftest.a 2>&5
7825      cat > conftest.c << _LT_EOF
7826int main() { return 0;}
7827_LT_EOF
7828      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7829      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7830      _lt_result=$?
7831      if test -s conftest.err && $GREP force_load conftest.err; then
7832	cat conftest.err >&5
7833      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7834	lt_cv_ld_force_load=yes
7835      else
7836	cat conftest.err >&5
7837      fi
7838        rm -f conftest.err libconftest.a conftest conftest.c
7839        rm -rf conftest.dSYM
7840
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7843$as_echo "$lt_cv_ld_force_load" >&6; }
7844    case $host_os in
7845    rhapsody* | darwin1.[012])
7846      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7847    darwin1.*)
7848      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7849    darwin*) # darwin 5.x on
7850      # if running on 10.5 or later, the deployment target defaults
7851      # to the OS version, if on x86, and 10.4, the deployment
7852      # target defaults to 10.4. Don't you love it?
7853      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7854	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7855	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7856	10.[012][,.]*)
7857	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7858	10.*)
7859	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7860      esac
7861    ;;
7862  esac
7863    if test yes = "$lt_cv_apple_cc_single_mod"; then
7864      _lt_dar_single_mod='$single_module'
7865    fi
7866    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7867      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7868    else
7869      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7870    fi
7871    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7872      _lt_dsymutil='~$DSYMUTIL $lib || :'
7873    else
7874      _lt_dsymutil=
7875    fi
7876    ;;
7877  esac
7878
7879# func_munge_path_list VARIABLE PATH
7880# -----------------------------------
7881# VARIABLE is name of variable containing _space_ separated list of
7882# directories to be munged by the contents of PATH, which is string
7883# having a format:
7884# "DIR[:DIR]:"
7885#       string "DIR[ DIR]" will be prepended to VARIABLE
7886# ":DIR[:DIR]"
7887#       string "DIR[ DIR]" will be appended to VARIABLE
7888# "DIRP[:DIRP]::[DIRA:]DIRA"
7889#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7890#       "DIRA[ DIRA]" will be appended to VARIABLE
7891# "DIR[:DIR]"
7892#       VARIABLE will be replaced by "DIR[ DIR]"
7893func_munge_path_list ()
7894{
7895    case x@S|@2 in
7896    x)
7897        ;;
7898    *:)
7899        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
7900        ;;
7901    x:*)
7902        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
7903        ;;
7904    *::*)
7905        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7906        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
7907        ;;
7908    *)
7909        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
7910        ;;
7911    esac
7912}
7913
7914ac_ext=c
7915ac_cpp='$CPP $CPPFLAGS'
7916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7920$as_echo_n "checking how to run the C preprocessor... " >&6; }
7921# On Suns, sometimes $CPP names a directory.
7922if test -n "$CPP" && test -d "$CPP"; then
7923  CPP=
7924fi
7925if test -z "$CPP"; then
7926  if ${ac_cv_prog_CPP+:} false; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929      # Double quotes because CPP needs to be expanded
7930    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7931    do
7932      ac_preproc_ok=false
7933for ac_c_preproc_warn_flag in '' yes
7934do
7935  # Use a header file that comes with gcc, so configuring glibc
7936  # with a fresh cross-compiler works.
7937  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7938  # <limits.h> exists even on freestanding compilers.
7939  # On the NeXT, cc -E runs the code through the compiler's parser,
7940  # not just through cpp. "Syntax error" is here to catch this case.
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943@%:@ifdef __STDC__
7944@%:@ include <limits.h>
7945@%:@else
7946@%:@ include <assert.h>
7947@%:@endif
7948		     Syntax error
7949_ACEOF
7950if ac_fn_c_try_cpp "$LINENO"; then :
7951
7952else
7953  # Broken: fails on valid input.
7954continue
7955fi
7956rm -f conftest.err conftest.i conftest.$ac_ext
7957
7958  # OK, works on sane cases.  Now check whether nonexistent headers
7959  # can be detected and how.
7960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962@%:@include <ac_nonexistent.h>
7963_ACEOF
7964if ac_fn_c_try_cpp "$LINENO"; then :
7965  # Broken: success on invalid input.
7966continue
7967else
7968  # Passes both tests.
7969ac_preproc_ok=:
7970break
7971fi
7972rm -f conftest.err conftest.i conftest.$ac_ext
7973
7974done
7975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7976rm -f conftest.i conftest.err conftest.$ac_ext
7977if $ac_preproc_ok; then :
7978  break
7979fi
7980
7981    done
7982    ac_cv_prog_CPP=$CPP
7983
7984fi
7985  CPP=$ac_cv_prog_CPP
7986else
7987  ac_cv_prog_CPP=$CPP
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7990$as_echo "$CPP" >&6; }
7991ac_preproc_ok=false
7992for ac_c_preproc_warn_flag in '' yes
7993do
7994  # Use a header file that comes with gcc, so configuring glibc
7995  # with a fresh cross-compiler works.
7996  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997  # <limits.h> exists even on freestanding compilers.
7998  # On the NeXT, cc -E runs the code through the compiler's parser,
7999  # not just through cpp. "Syntax error" is here to catch this case.
8000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001/* end confdefs.h.  */
8002@%:@ifdef __STDC__
8003@%:@ include <limits.h>
8004@%:@else
8005@%:@ include <assert.h>
8006@%:@endif
8007		     Syntax error
8008_ACEOF
8009if ac_fn_c_try_cpp "$LINENO"; then :
8010
8011else
8012  # Broken: fails on valid input.
8013continue
8014fi
8015rm -f conftest.err conftest.i conftest.$ac_ext
8016
8017  # OK, works on sane cases.  Now check whether nonexistent headers
8018  # can be detected and how.
8019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021@%:@include <ac_nonexistent.h>
8022_ACEOF
8023if ac_fn_c_try_cpp "$LINENO"; then :
8024  # Broken: success on invalid input.
8025continue
8026else
8027  # Passes both tests.
8028ac_preproc_ok=:
8029break
8030fi
8031rm -f conftest.err conftest.i conftest.$ac_ext
8032
8033done
8034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8035rm -f conftest.i conftest.err conftest.$ac_ext
8036if $ac_preproc_ok; then :
8037
8038else
8039  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8041as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8042See \`config.log' for more details" "$LINENO" 5; }
8043fi
8044
8045ac_ext=c
8046ac_cpp='$CPP $CPPFLAGS'
8047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8049ac_compiler_gnu=$ac_cv_c_compiler_gnu
8050
8051
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8053$as_echo_n "checking for ANSI C header files... " >&6; }
8054if ${ac_cv_header_stdc+:} false; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058/* end confdefs.h.  */
8059#include <stdlib.h>
8060#include <stdarg.h>
8061#include <string.h>
8062#include <float.h>
8063
8064int
8065main ()
8066{
8067
8068  ;
8069  return 0;
8070}
8071_ACEOF
8072if ac_fn_c_try_compile "$LINENO"; then :
8073  ac_cv_header_stdc=yes
8074else
8075  ac_cv_header_stdc=no
8076fi
8077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078
8079if test $ac_cv_header_stdc = yes; then
8080  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083#include <string.h>
8084
8085_ACEOF
8086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087  $EGREP "memchr" >/dev/null 2>&1; then :
8088
8089else
8090  ac_cv_header_stdc=no
8091fi
8092rm -f conftest*
8093
8094fi
8095
8096if test $ac_cv_header_stdc = yes; then
8097  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100#include <stdlib.h>
8101
8102_ACEOF
8103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104  $EGREP "free" >/dev/null 2>&1; then :
8105
8106else
8107  ac_cv_header_stdc=no
8108fi
8109rm -f conftest*
8110
8111fi
8112
8113if test $ac_cv_header_stdc = yes; then
8114  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8115  if test "$cross_compiling" = yes; then :
8116  :
8117else
8118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120#include <ctype.h>
8121#include <stdlib.h>
8122#if ((' ' & 0x0FF) == 0x020)
8123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8125#else
8126# define ISLOWER(c) \
8127		   (('a' <= (c) && (c) <= 'i') \
8128		     || ('j' <= (c) && (c) <= 'r') \
8129		     || ('s' <= (c) && (c) <= 'z'))
8130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8131#endif
8132
8133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8134int
8135main ()
8136{
8137  int i;
8138  for (i = 0; i < 256; i++)
8139    if (XOR (islower (i), ISLOWER (i))
8140	|| toupper (i) != TOUPPER (i))
8141      return 2;
8142  return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_run "$LINENO"; then :
8146
8147else
8148  ac_cv_header_stdc=no
8149fi
8150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8151  conftest.$ac_objext conftest.beam conftest.$ac_ext
8152fi
8153
8154fi
8155fi
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8157$as_echo "$ac_cv_header_stdc" >&6; }
8158if test $ac_cv_header_stdc = yes; then
8159
8160$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8161
8162fi
8163
8164# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8165for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8166		  inttypes.h stdint.h unistd.h
8167do :
8168  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8169ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8170"
8171if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8172  cat >>confdefs.h <<_ACEOF
8173@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8174_ACEOF
8175
8176fi
8177
8178done
8179
8180
8181for ac_header in dlfcn.h
8182do :
8183  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8184"
8185if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8186  cat >>confdefs.h <<_ACEOF
8187@%:@define HAVE_DLFCN_H 1
8188_ACEOF
8189
8190fi
8191
8192done
8193
8194
8195
8196
8197func_stripname_cnf ()
8198{
8199  case @S|@2 in
8200  .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
8201  *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
8202  esac
8203} # func_stripname_cnf
8204
8205
8206
8207
8208
8209# Set options
8210
8211
8212
8213        enable_dlopen=no
8214
8215
8216  enable_win32_dll=no
8217
8218
8219            @%:@ Check whether --enable-shared was given.
8220if test "${enable_shared+set}" = set; then :
8221  enableval=$enable_shared; p=${PACKAGE-default}
8222    case $enableval in
8223    yes) enable_shared=yes ;;
8224    no) enable_shared=no ;;
8225    *)
8226      enable_shared=no
8227      # Look at the argument we got.  We use all the common list separators.
8228      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8229      for pkg in $enableval; do
8230	IFS=$lt_save_ifs
8231	if test "X$pkg" = "X$p"; then
8232	  enable_shared=yes
8233	fi
8234      done
8235      IFS=$lt_save_ifs
8236      ;;
8237    esac
8238else
8239  enable_shared=yes
8240fi
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250  @%:@ Check whether --enable-static was given.
8251if test "${enable_static+set}" = set; then :
8252  enableval=$enable_static; p=${PACKAGE-default}
8253    case $enableval in
8254    yes) enable_static=yes ;;
8255    no) enable_static=no ;;
8256    *)
8257     enable_static=no
8258      # Look at the argument we got.  We use all the common list separators.
8259      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8260      for pkg in $enableval; do
8261	IFS=$lt_save_ifs
8262	if test "X$pkg" = "X$p"; then
8263	  enable_static=yes
8264	fi
8265      done
8266      IFS=$lt_save_ifs
8267      ;;
8268    esac
8269else
8270  enable_static=yes
8271fi
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282@%:@ Check whether --with-pic was given.
8283if test "${with_pic+set}" = set; then :
8284  withval=$with_pic; lt_p=${PACKAGE-default}
8285    case $withval in
8286    yes|no) pic_mode=$withval ;;
8287    *)
8288      pic_mode=default
8289      # Look at the argument we got.  We use all the common list separators.
8290      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8291      for lt_pkg in $withval; do
8292	IFS=$lt_save_ifs
8293	if test "X$lt_pkg" = "X$lt_p"; then
8294	  pic_mode=yes
8295	fi
8296      done
8297      IFS=$lt_save_ifs
8298      ;;
8299    esac
8300else
8301  pic_mode=default
8302fi
8303
8304
8305
8306
8307
8308
8309
8310
8311  @%:@ Check whether --enable-fast-install was given.
8312if test "${enable_fast_install+set}" = set; then :
8313  enableval=$enable_fast_install; p=${PACKAGE-default}
8314    case $enableval in
8315    yes) enable_fast_install=yes ;;
8316    no) enable_fast_install=no ;;
8317    *)
8318      enable_fast_install=no
8319      # Look at the argument we got.  We use all the common list separators.
8320      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8321      for pkg in $enableval; do
8322	IFS=$lt_save_ifs
8323	if test "X$pkg" = "X$p"; then
8324	  enable_fast_install=yes
8325	fi
8326      done
8327      IFS=$lt_save_ifs
8328      ;;
8329    esac
8330else
8331  enable_fast_install=yes
8332fi
8333
8334
8335
8336
8337
8338
8339
8340
8341  shared_archive_member_spec=
8342case $host,$enable_shared in
8343power*-*-aix[5-9]*,yes)
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8345$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8346
8347@%:@ Check whether --with-aix-soname was given.
8348if test "${with_aix_soname+set}" = set; then :
8349  withval=$with_aix_soname; case $withval in
8350    aix|svr4|both)
8351      ;;
8352    *)
8353      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8354      ;;
8355    esac
8356    lt_cv_with_aix_soname=$with_aix_soname
8357else
8358  if ${lt_cv_with_aix_soname+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  lt_cv_with_aix_soname=aix
8362fi
8363
8364    with_aix_soname=$lt_cv_with_aix_soname
8365fi
8366
8367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8368$as_echo "$with_aix_soname" >&6; }
8369  if test aix != "$with_aix_soname"; then
8370    # For the AIX way of multilib, we name the shared archive member
8371    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8372    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8373    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8374    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8375    if test 64 = "${OBJECT_MODE-32}"; then
8376      shared_archive_member_spec=shr_64
8377    else
8378      shared_archive_member_spec=shr
8379    fi
8380  fi
8381  ;;
8382*)
8383  with_aix_soname=aix
8384  ;;
8385esac
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396# This can be used to rebuild libtool when needed
8397LIBTOOL_DEPS=$ltmain
8398
8399# Always use our own libtool.
8400LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431test -z "$LN_S" && LN_S="ln -s"
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446if test -n "${ZSH_VERSION+set}"; then
8447   setopt NO_GLOB_SUBST
8448fi
8449
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8451$as_echo_n "checking for objdir... " >&6; }
8452if ${lt_cv_objdir+:} false; then :
8453  $as_echo_n "(cached) " >&6
8454else
8455  rm -f .libs 2>/dev/null
8456mkdir .libs 2>/dev/null
8457if test -d .libs; then
8458  lt_cv_objdir=.libs
8459else
8460  # MS-DOS does not allow filenames that begin with a dot.
8461  lt_cv_objdir=_libs
8462fi
8463rmdir .libs 2>/dev/null
8464fi
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8466$as_echo "$lt_cv_objdir" >&6; }
8467objdir=$lt_cv_objdir
8468
8469
8470
8471
8472
8473cat >>confdefs.h <<_ACEOF
8474@%:@define LT_OBJDIR "$lt_cv_objdir/"
8475_ACEOF
8476
8477
8478
8479
8480case $host_os in
8481aix3*)
8482  # AIX sometimes has problems with the GCC collect2 program.  For some
8483  # reason, if we set the COLLECT_NAMES environment variable, the problems
8484  # vanish in a puff of smoke.
8485  if test set != "${COLLECT_NAMES+set}"; then
8486    COLLECT_NAMES=
8487    export COLLECT_NAMES
8488  fi
8489  ;;
8490esac
8491
8492# Global variables:
8493ofile=libtool
8494can_build_shared=yes
8495
8496# All known linkers require a '.a' archive for static linking (except MSVC,
8497# which needs '.lib').
8498libext=a
8499
8500with_gnu_ld=$lt_cv_prog_gnu_ld
8501
8502old_CC=$CC
8503old_CFLAGS=$CFLAGS
8504
8505# Set sane defaults for various variables
8506test -z "$CC" && CC=cc
8507test -z "$LTCC" && LTCC=$CC
8508test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8509test -z "$LD" && LD=ld
8510test -z "$ac_objext" && ac_objext=o
8511
8512func_cc_basename $compiler
8513cc_basename=$func_cc_basename_result
8514
8515
8516# Only perform the check for file, if the check method requires it
8517test -z "$MAGIC_CMD" && MAGIC_CMD=file
8518case $deplibs_check_method in
8519file_magic*)
8520  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8522$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8523if ${lt_cv_path_MAGIC_CMD+:} false; then :
8524  $as_echo_n "(cached) " >&6
8525else
8526  case $MAGIC_CMD in
8527[\\/*] |  ?:[\\/]*)
8528  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8529  ;;
8530*)
8531  lt_save_MAGIC_CMD=$MAGIC_CMD
8532  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8533  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8534  for ac_dir in $ac_dummy; do
8535    IFS=$lt_save_ifs
8536    test -z "$ac_dir" && ac_dir=.
8537    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8538      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8539      if test -n "$file_magic_test_file"; then
8540	case $deplibs_check_method in
8541	"file_magic "*)
8542	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8543	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8544	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8545	    $EGREP "$file_magic_regex" > /dev/null; then
8546	    :
8547	  else
8548	    cat <<_LT_EOF 1>&2
8549
8550*** Warning: the command libtool uses to detect shared libraries,
8551*** $file_magic_cmd, produces output that libtool cannot recognize.
8552*** The result is that libtool may fail to recognize shared libraries
8553*** as such.  This will affect the creation of libtool libraries that
8554*** depend on shared libraries, but programs linked with such libtool
8555*** libraries will work regardless of this problem.  Nevertheless, you
8556*** may want to report the problem to your system manager and/or to
8557*** bug-libtool@gnu.org
8558
8559_LT_EOF
8560	  fi ;;
8561	esac
8562      fi
8563      break
8564    fi
8565  done
8566  IFS=$lt_save_ifs
8567  MAGIC_CMD=$lt_save_MAGIC_CMD
8568  ;;
8569esac
8570fi
8571
8572MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8573if test -n "$MAGIC_CMD"; then
8574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8575$as_echo "$MAGIC_CMD" >&6; }
8576else
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579fi
8580
8581
8582
8583
8584
8585if test -z "$lt_cv_path_MAGIC_CMD"; then
8586  if test -n "$ac_tool_prefix"; then
8587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8588$as_echo_n "checking for file... " >&6; }
8589if ${lt_cv_path_MAGIC_CMD+:} false; then :
8590  $as_echo_n "(cached) " >&6
8591else
8592  case $MAGIC_CMD in
8593[\\/*] |  ?:[\\/]*)
8594  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8595  ;;
8596*)
8597  lt_save_MAGIC_CMD=$MAGIC_CMD
8598  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8599  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8600  for ac_dir in $ac_dummy; do
8601    IFS=$lt_save_ifs
8602    test -z "$ac_dir" && ac_dir=.
8603    if test -f "$ac_dir/file"; then
8604      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8605      if test -n "$file_magic_test_file"; then
8606	case $deplibs_check_method in
8607	"file_magic "*)
8608	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8609	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8610	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8611	    $EGREP "$file_magic_regex" > /dev/null; then
8612	    :
8613	  else
8614	    cat <<_LT_EOF 1>&2
8615
8616*** Warning: the command libtool uses to detect shared libraries,
8617*** $file_magic_cmd, produces output that libtool cannot recognize.
8618*** The result is that libtool may fail to recognize shared libraries
8619*** as such.  This will affect the creation of libtool libraries that
8620*** depend on shared libraries, but programs linked with such libtool
8621*** libraries will work regardless of this problem.  Nevertheless, you
8622*** may want to report the problem to your system manager and/or to
8623*** bug-libtool@gnu.org
8624
8625_LT_EOF
8626	  fi ;;
8627	esac
8628      fi
8629      break
8630    fi
8631  done
8632  IFS=$lt_save_ifs
8633  MAGIC_CMD=$lt_save_MAGIC_CMD
8634  ;;
8635esac
8636fi
8637
8638MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8639if test -n "$MAGIC_CMD"; then
8640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8641$as_echo "$MAGIC_CMD" >&6; }
8642else
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644$as_echo "no" >&6; }
8645fi
8646
8647
8648  else
8649    MAGIC_CMD=:
8650  fi
8651fi
8652
8653  fi
8654  ;;
8655esac
8656
8657# Use C for the default configuration in the libtool script
8658
8659lt_save_CC=$CC
8660ac_ext=c
8661ac_cpp='$CPP $CPPFLAGS'
8662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664ac_compiler_gnu=$ac_cv_c_compiler_gnu
8665
8666
8667# Source file extension for C test sources.
8668ac_ext=c
8669
8670# Object file extension for compiled C test sources.
8671objext=o
8672objext=$objext
8673
8674# Code to be used in simple compile tests
8675lt_simple_compile_test_code="int some_variable = 0;"
8676
8677# Code to be used in simple link tests
8678lt_simple_link_test_code='int main(){return(0);}'
8679
8680
8681
8682
8683
8684
8685
8686# If no C compiler was specified, use CC.
8687LTCC=${LTCC-"$CC"}
8688
8689# If no C compiler flags were specified, use CFLAGS.
8690LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8691
8692# Allow CC to be a program name with arguments.
8693compiler=$CC
8694
8695# Save the default compiler, since it gets overwritten when the other
8696# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8697compiler_DEFAULT=$CC
8698
8699# save warnings/boilerplate of simple test code
8700ac_outfile=conftest.$ac_objext
8701echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8702eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8703_lt_compiler_boilerplate=`cat conftest.err`
8704$RM conftest*
8705
8706ac_outfile=conftest.$ac_objext
8707echo "$lt_simple_link_test_code" >conftest.$ac_ext
8708eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8709_lt_linker_boilerplate=`cat conftest.err`
8710$RM -r conftest*
8711
8712
8713## CAVEAT EMPTOR:
8714## There is no encapsulation within the following macros, do not change
8715## the running order or otherwise move them around unless you know exactly
8716## what you are doing...
8717if test -n "$compiler"; then
8718
8719lt_prog_compiler_no_builtin_flag=
8720
8721if test yes = "$GCC"; then
8722  case $cc_basename in
8723  nvcc*)
8724    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8725  *)
8726    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8727  esac
8728
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8730$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8731if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  lt_cv_prog_compiler_rtti_exceptions=no
8735   ac_outfile=conftest.$ac_objext
8736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8737   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8738   # Insert the option either (1) after the last *FLAGS variable, or
8739   # (2) before a word containing "conftest.", or (3) at the end.
8740   # Note that $ac_compile itself does not contain backslashes and begins
8741   # with a dollar sign (not a hyphen), so the echo should work correctly.
8742   # The option is referenced via a variable to avoid confusing sed.
8743   lt_compile=`echo "$ac_compile" | $SED \
8744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746   -e 's:$: $lt_compiler_flag:'`
8747   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8748   (eval "$lt_compile" 2>conftest.err)
8749   ac_status=$?
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   if (exit $ac_status) && test -s "$ac_outfile"; then
8753     # The compiler can only warn and ignore the option if not recognized
8754     # So say no if there are warnings other than the usual output.
8755     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8756     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8758       lt_cv_prog_compiler_rtti_exceptions=yes
8759     fi
8760   fi
8761   $RM conftest*
8762
8763fi
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8765$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8766
8767if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8768    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8769else
8770    :
8771fi
8772
8773fi
8774
8775
8776
8777
8778
8779
8780  lt_prog_compiler_wl=
8781lt_prog_compiler_pic=
8782lt_prog_compiler_static=
8783
8784
8785  if test yes = "$GCC"; then
8786    lt_prog_compiler_wl='-Wl,'
8787    lt_prog_compiler_static='-static'
8788
8789    case $host_os in
8790      aix*)
8791      # All AIX code is PIC.
8792      if test ia64 = "$host_cpu"; then
8793	# AIX 5 now supports IA64 processor
8794	lt_prog_compiler_static='-Bstatic'
8795      fi
8796      lt_prog_compiler_pic='-fPIC'
8797      ;;
8798
8799    amigaos*)
8800      case $host_cpu in
8801      powerpc)
8802            # see comment about AmigaOS4 .so support
8803            lt_prog_compiler_pic='-fPIC'
8804        ;;
8805      m68k)
8806            # FIXME: we need at least 68020 code to build shared libraries, but
8807            # adding the '-m68020' flag to GCC prevents building anything better,
8808            # like '-m68040'.
8809            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8810        ;;
8811      esac
8812      ;;
8813
8814    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8815      # PIC is the default for these OSes.
8816      ;;
8817
8818    mingw* | cygwin* | pw32* | os2* | cegcc*)
8819      # This hack is so that the source file can tell whether it is being
8820      # built for inclusion in a dll (and should export symbols for example).
8821      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8822      # (--disable-auto-import) libraries
8823      lt_prog_compiler_pic='-DDLL_EXPORT'
8824      case $host_os in
8825      os2*)
8826	lt_prog_compiler_static='$wl-static'
8827	;;
8828      esac
8829      ;;
8830
8831    darwin* | rhapsody*)
8832      # PIC is the default on this platform
8833      # Common symbols not allowed in MH_DYLIB files
8834      lt_prog_compiler_pic='-fno-common'
8835      ;;
8836
8837    haiku*)
8838      # PIC is the default for Haiku.
8839      # The "-static" flag exists, but is broken.
8840      lt_prog_compiler_static=
8841      ;;
8842
8843    hpux*)
8844      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8845      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8846      # sets the default TLS model and affects inlining.
8847      case $host_cpu in
8848      hppa*64*)
8849	# +Z the default
8850	;;
8851      *)
8852	lt_prog_compiler_pic='-fPIC'
8853	;;
8854      esac
8855      ;;
8856
8857    interix[3-9]*)
8858      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8859      # Instead, we relocate shared libraries at runtime.
8860      ;;
8861
8862    msdosdjgpp*)
8863      # Just because we use GCC doesn't mean we suddenly get shared libraries
8864      # on systems that don't support them.
8865      lt_prog_compiler_can_build_shared=no
8866      enable_shared=no
8867      ;;
8868
8869    *nto* | *qnx*)
8870      # QNX uses GNU C++, but need to define -shared option too, otherwise
8871      # it will coredump.
8872      lt_prog_compiler_pic='-fPIC -shared'
8873      ;;
8874
8875    sysv4*MP*)
8876      if test -d /usr/nec; then
8877	lt_prog_compiler_pic=-Kconform_pic
8878      fi
8879      ;;
8880
8881    *)
8882      lt_prog_compiler_pic='-fPIC'
8883      ;;
8884    esac
8885
8886    case $cc_basename in
8887    nvcc*) # Cuda Compiler Driver 2.2
8888      lt_prog_compiler_wl='-Xlinker '
8889      if test -n "$lt_prog_compiler_pic"; then
8890        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8891      fi
8892      ;;
8893    esac
8894  else
8895    # PORTME Check for flag to pass linker flags through the system compiler.
8896    case $host_os in
8897    aix*)
8898      lt_prog_compiler_wl='-Wl,'
8899      if test ia64 = "$host_cpu"; then
8900	# AIX 5 now supports IA64 processor
8901	lt_prog_compiler_static='-Bstatic'
8902      else
8903	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8904      fi
8905      ;;
8906
8907    darwin* | rhapsody*)
8908      # PIC is the default on this platform
8909      # Common symbols not allowed in MH_DYLIB files
8910      lt_prog_compiler_pic='-fno-common'
8911      case $cc_basename in
8912      nagfor*)
8913        # NAG Fortran compiler
8914        lt_prog_compiler_wl='-Wl,-Wl,,'
8915        lt_prog_compiler_pic='-PIC'
8916        lt_prog_compiler_static='-Bstatic'
8917        ;;
8918      esac
8919      ;;
8920
8921    mingw* | cygwin* | pw32* | os2* | cegcc*)
8922      # This hack is so that the source file can tell whether it is being
8923      # built for inclusion in a dll (and should export symbols for example).
8924      lt_prog_compiler_pic='-DDLL_EXPORT'
8925      case $host_os in
8926      os2*)
8927	lt_prog_compiler_static='$wl-static'
8928	;;
8929      esac
8930      ;;
8931
8932    hpux9* | hpux10* | hpux11*)
8933      lt_prog_compiler_wl='-Wl,'
8934      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8935      # not for PA HP-UX.
8936      case $host_cpu in
8937      hppa*64*|ia64*)
8938	# +Z the default
8939	;;
8940      *)
8941	lt_prog_compiler_pic='+Z'
8942	;;
8943      esac
8944      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8945      lt_prog_compiler_static='$wl-a ${wl}archive'
8946      ;;
8947
8948    irix5* | irix6* | nonstopux*)
8949      lt_prog_compiler_wl='-Wl,'
8950      # PIC (with -KPIC) is the default.
8951      lt_prog_compiler_static='-non_shared'
8952      ;;
8953
8954    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8955      case $cc_basename in
8956      # old Intel for x86_64, which still supported -KPIC.
8957      ecc*)
8958	lt_prog_compiler_wl='-Wl,'
8959	lt_prog_compiler_pic='-KPIC'
8960	lt_prog_compiler_static='-static'
8961        ;;
8962      # icc used to be incompatible with GCC.
8963      # ICC 10 doesn't accept -KPIC any more.
8964      icc* | ifort*)
8965	lt_prog_compiler_wl='-Wl,'
8966	lt_prog_compiler_pic='-fPIC'
8967	lt_prog_compiler_static='-static'
8968        ;;
8969      # Lahey Fortran 8.1.
8970      lf95*)
8971	lt_prog_compiler_wl='-Wl,'
8972	lt_prog_compiler_pic='--shared'
8973	lt_prog_compiler_static='--static'
8974	;;
8975      nagfor*)
8976	# NAG Fortran compiler
8977	lt_prog_compiler_wl='-Wl,-Wl,,'
8978	lt_prog_compiler_pic='-PIC'
8979	lt_prog_compiler_static='-Bstatic'
8980	;;
8981      tcc*)
8982	# Fabrice Bellard et al's Tiny C Compiler
8983	lt_prog_compiler_wl='-Wl,'
8984	lt_prog_compiler_pic='-fPIC'
8985	lt_prog_compiler_static='-static'
8986	;;
8987      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8988        # Portland Group compilers (*not* the Pentium gcc compiler,
8989	# which looks to be a dead project)
8990	lt_prog_compiler_wl='-Wl,'
8991	lt_prog_compiler_pic='-fpic'
8992	lt_prog_compiler_static='-Bstatic'
8993        ;;
8994      ccc*)
8995        lt_prog_compiler_wl='-Wl,'
8996        # All Alpha code is PIC.
8997        lt_prog_compiler_static='-non_shared'
8998        ;;
8999      xl* | bgxl* | bgf* | mpixl*)
9000	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9001	lt_prog_compiler_wl='-Wl,'
9002	lt_prog_compiler_pic='-qpic'
9003	lt_prog_compiler_static='-qstaticlink'
9004	;;
9005      *)
9006	case `$CC -V 2>&1 | sed 5q` in
9007	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9008	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9009	  lt_prog_compiler_pic='-KPIC'
9010	  lt_prog_compiler_static='-Bstatic'
9011	  lt_prog_compiler_wl=''
9012	  ;;
9013	*Sun\ F* | *Sun*Fortran*)
9014	  lt_prog_compiler_pic='-KPIC'
9015	  lt_prog_compiler_static='-Bstatic'
9016	  lt_prog_compiler_wl='-Qoption ld '
9017	  ;;
9018	*Sun\ C*)
9019	  # Sun C 5.9
9020	  lt_prog_compiler_pic='-KPIC'
9021	  lt_prog_compiler_static='-Bstatic'
9022	  lt_prog_compiler_wl='-Wl,'
9023	  ;;
9024        *Intel*\ [CF]*Compiler*)
9025	  lt_prog_compiler_wl='-Wl,'
9026	  lt_prog_compiler_pic='-fPIC'
9027	  lt_prog_compiler_static='-static'
9028	  ;;
9029	*Portland\ Group*)
9030	  lt_prog_compiler_wl='-Wl,'
9031	  lt_prog_compiler_pic='-fpic'
9032	  lt_prog_compiler_static='-Bstatic'
9033	  ;;
9034	esac
9035	;;
9036      esac
9037      ;;
9038
9039    newsos6)
9040      lt_prog_compiler_pic='-KPIC'
9041      lt_prog_compiler_static='-Bstatic'
9042      ;;
9043
9044    *nto* | *qnx*)
9045      # QNX uses GNU C++, but need to define -shared option too, otherwise
9046      # it will coredump.
9047      lt_prog_compiler_pic='-fPIC -shared'
9048      ;;
9049
9050    osf3* | osf4* | osf5*)
9051      lt_prog_compiler_wl='-Wl,'
9052      # All OSF/1 code is PIC.
9053      lt_prog_compiler_static='-non_shared'
9054      ;;
9055
9056    rdos*)
9057      lt_prog_compiler_static='-non_shared'
9058      ;;
9059
9060    solaris*)
9061      lt_prog_compiler_pic='-KPIC'
9062      lt_prog_compiler_static='-Bstatic'
9063      case $cc_basename in
9064      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9065	lt_prog_compiler_wl='-Qoption ld ';;
9066      *)
9067	lt_prog_compiler_wl='-Wl,';;
9068      esac
9069      ;;
9070
9071    sunos4*)
9072      lt_prog_compiler_wl='-Qoption ld '
9073      lt_prog_compiler_pic='-PIC'
9074      lt_prog_compiler_static='-Bstatic'
9075      ;;
9076
9077    sysv4 | sysv4.2uw2* | sysv4.3*)
9078      lt_prog_compiler_wl='-Wl,'
9079      lt_prog_compiler_pic='-KPIC'
9080      lt_prog_compiler_static='-Bstatic'
9081      ;;
9082
9083    sysv4*MP*)
9084      if test -d /usr/nec; then
9085	lt_prog_compiler_pic='-Kconform_pic'
9086	lt_prog_compiler_static='-Bstatic'
9087      fi
9088      ;;
9089
9090    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9091      lt_prog_compiler_wl='-Wl,'
9092      lt_prog_compiler_pic='-KPIC'
9093      lt_prog_compiler_static='-Bstatic'
9094      ;;
9095
9096    unicos*)
9097      lt_prog_compiler_wl='-Wl,'
9098      lt_prog_compiler_can_build_shared=no
9099      ;;
9100
9101    uts4*)
9102      lt_prog_compiler_pic='-pic'
9103      lt_prog_compiler_static='-Bstatic'
9104      ;;
9105
9106    *)
9107      lt_prog_compiler_can_build_shared=no
9108      ;;
9109    esac
9110  fi
9111
9112case $host_os in
9113  # For platforms that do not support PIC, -DPIC is meaningless:
9114  *djgpp*)
9115    lt_prog_compiler_pic=
9116    ;;
9117  *)
9118    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9119    ;;
9120esac
9121
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9123$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9124if ${lt_cv_prog_compiler_pic+:} false; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9130$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9131lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9132
9133#
9134# Check to make sure the PIC flag actually works.
9135#
9136if test -n "$lt_prog_compiler_pic"; then
9137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9138$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9139if ${lt_cv_prog_compiler_pic_works+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  lt_cv_prog_compiler_pic_works=no
9143   ac_outfile=conftest.$ac_objext
9144   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9146   # Insert the option either (1) after the last *FLAGS variable, or
9147   # (2) before a word containing "conftest.", or (3) at the end.
9148   # Note that $ac_compile itself does not contain backslashes and begins
9149   # with a dollar sign (not a hyphen), so the echo should work correctly.
9150   # The option is referenced via a variable to avoid confusing sed.
9151   lt_compile=`echo "$ac_compile" | $SED \
9152   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154   -e 's:$: $lt_compiler_flag:'`
9155   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156   (eval "$lt_compile" 2>conftest.err)
9157   ac_status=$?
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   if (exit $ac_status) && test -s "$ac_outfile"; then
9161     # The compiler can only warn and ignore the option if not recognized
9162     # So say no if there are warnings other than the usual output.
9163     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9164     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9165     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9166       lt_cv_prog_compiler_pic_works=yes
9167     fi
9168   fi
9169   $RM conftest*
9170
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9173$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9174
9175if test yes = "$lt_cv_prog_compiler_pic_works"; then
9176    case $lt_prog_compiler_pic in
9177     "" | " "*) ;;
9178     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9179     esac
9180else
9181    lt_prog_compiler_pic=
9182     lt_prog_compiler_can_build_shared=no
9183fi
9184
9185fi
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197#
9198# Check to make sure the static flag actually works.
9199#
9200wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9202$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9203if ${lt_cv_prog_compiler_static_works+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  lt_cv_prog_compiler_static_works=no
9207   save_LDFLAGS=$LDFLAGS
9208   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9209   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9210   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9211     # The linker can only warn and ignore the option if not recognized
9212     # So say no if there are warnings
9213     if test -s conftest.err; then
9214       # Append any errors to the config.log.
9215       cat conftest.err 1>&5
9216       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9217       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9218       if diff conftest.exp conftest.er2 >/dev/null; then
9219         lt_cv_prog_compiler_static_works=yes
9220       fi
9221     else
9222       lt_cv_prog_compiler_static_works=yes
9223     fi
9224   fi
9225   $RM -r conftest*
9226   LDFLAGS=$save_LDFLAGS
9227
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9230$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9231
9232if test yes = "$lt_cv_prog_compiler_static_works"; then
9233    :
9234else
9235    lt_prog_compiler_static=
9236fi
9237
9238
9239
9240
9241
9242
9243
9244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9245$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9246if ${lt_cv_prog_compiler_c_o+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  lt_cv_prog_compiler_c_o=no
9250   $RM -r conftest 2>/dev/null
9251   mkdir conftest
9252   cd conftest
9253   mkdir out
9254   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9255
9256   lt_compiler_flag="-o out/conftest2.$ac_objext"
9257   # Insert the option either (1) after the last *FLAGS variable, or
9258   # (2) before a word containing "conftest.", or (3) at the end.
9259   # Note that $ac_compile itself does not contain backslashes and begins
9260   # with a dollar sign (not a hyphen), so the echo should work correctly.
9261   lt_compile=`echo "$ac_compile" | $SED \
9262   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9263   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9264   -e 's:$: $lt_compiler_flag:'`
9265   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9266   (eval "$lt_compile" 2>out/conftest.err)
9267   ac_status=$?
9268   cat out/conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9271   then
9272     # The compiler can only warn and ignore the option if not recognized
9273     # So say no if there are warnings
9274     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9275     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9276     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9277       lt_cv_prog_compiler_c_o=yes
9278     fi
9279   fi
9280   chmod u+w . 2>&5
9281   $RM conftest*
9282   # SGI C++ compiler will create directory out/ii_files/ for
9283   # template instantiation
9284   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9285   $RM out/* && rmdir out
9286   cd ..
9287   $RM -r conftest
9288   $RM conftest*
9289
9290fi
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9292$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9293
9294
9295
9296
9297
9298
9299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9300$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9301if ${lt_cv_prog_compiler_c_o+:} false; then :
9302  $as_echo_n "(cached) " >&6
9303else
9304  lt_cv_prog_compiler_c_o=no
9305   $RM -r conftest 2>/dev/null
9306   mkdir conftest
9307   cd conftest
9308   mkdir out
9309   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310
9311   lt_compiler_flag="-o out/conftest2.$ac_objext"
9312   # Insert the option either (1) after the last *FLAGS variable, or
9313   # (2) before a word containing "conftest.", or (3) at the end.
9314   # Note that $ac_compile itself does not contain backslashes and begins
9315   # with a dollar sign (not a hyphen), so the echo should work correctly.
9316   lt_compile=`echo "$ac_compile" | $SED \
9317   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9319   -e 's:$: $lt_compiler_flag:'`
9320   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9321   (eval "$lt_compile" 2>out/conftest.err)
9322   ac_status=$?
9323   cat out/conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9326   then
9327     # The compiler can only warn and ignore the option if not recognized
9328     # So say no if there are warnings
9329     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9330     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9331     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9332       lt_cv_prog_compiler_c_o=yes
9333     fi
9334   fi
9335   chmod u+w . 2>&5
9336   $RM conftest*
9337   # SGI C++ compiler will create directory out/ii_files/ for
9338   # template instantiation
9339   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9340   $RM out/* && rmdir out
9341   cd ..
9342   $RM -r conftest
9343   $RM conftest*
9344
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9347$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9348
9349
9350
9351
9352hard_links=nottested
9353if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9354  # do not overwrite the value of need_locks provided by the user
9355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9356$as_echo_n "checking if we can lock with hard links... " >&6; }
9357  hard_links=yes
9358  $RM conftest*
9359  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9360  touch conftest.a
9361  ln conftest.a conftest.b 2>&5 || hard_links=no
9362  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9364$as_echo "$hard_links" >&6; }
9365  if test no = "$hard_links"; then
9366    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9367$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9368    need_locks=warn
9369  fi
9370else
9371  need_locks=no
9372fi
9373
9374
9375
9376
9377
9378
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9380$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9381
9382  runpath_var=
9383  allow_undefined_flag=
9384  always_export_symbols=no
9385  archive_cmds=
9386  archive_expsym_cmds=
9387  compiler_needs_object=no
9388  enable_shared_with_static_runtimes=no
9389  export_dynamic_flag_spec=
9390  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9391  hardcode_automatic=no
9392  hardcode_direct=no
9393  hardcode_direct_absolute=no
9394  hardcode_libdir_flag_spec=
9395  hardcode_libdir_separator=
9396  hardcode_minus_L=no
9397  hardcode_shlibpath_var=unsupported
9398  inherit_rpath=no
9399  link_all_deplibs=unknown
9400  module_cmds=
9401  module_expsym_cmds=
9402  old_archive_from_new_cmds=
9403  old_archive_from_expsyms_cmds=
9404  thread_safe_flag_spec=
9405  whole_archive_flag_spec=
9406  # include_expsyms should be a list of space-separated symbols to be *always*
9407  # included in the symbol list
9408  include_expsyms=
9409  # exclude_expsyms can be an extended regexp of symbols to exclude
9410  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9411  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9412  # as well as any symbol that contains 'd'.
9413  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9414  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9415  # platforms (ab)use it in PIC code, but their linkers get confused if
9416  # the symbol is explicitly referenced.  Since portable code cannot
9417  # rely on this symbol name, it's probably fine to never include it in
9418  # preloaded symbol tables.
9419  # Exclude shared library initialization/finalization symbols.
9420  extract_expsyms_cmds=
9421
9422  case $host_os in
9423  cygwin* | mingw* | pw32* | cegcc*)
9424    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9425    # When not using gcc, we currently assume that we are using
9426    # Microsoft Visual C++.
9427    if test yes != "$GCC"; then
9428      with_gnu_ld=no
9429    fi
9430    ;;
9431  interix*)
9432    # we just hope/assume this is gcc and not c89 (= MSVC++)
9433    with_gnu_ld=yes
9434    ;;
9435  openbsd* | bitrig*)
9436    with_gnu_ld=no
9437    ;;
9438  esac
9439
9440  ld_shlibs=yes
9441
9442  # On some targets, GNU ld is compatible enough with the native linker
9443  # that we're better off using the native interface for both.
9444  lt_use_gnu_ld_interface=no
9445  if test yes = "$with_gnu_ld"; then
9446    case $host_os in
9447      aix*)
9448	# The AIX port of GNU ld has always aspired to compatibility
9449	# with the native linker.  However, as the warning in the GNU ld
9450	# block says, versions before 2.19.5* couldn't really create working
9451	# shared libraries, regardless of the interface used.
9452	case `$LD -v 2>&1` in
9453	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9454	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9455	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9456	  *)
9457	    lt_use_gnu_ld_interface=yes
9458	    ;;
9459	esac
9460	;;
9461      *)
9462	lt_use_gnu_ld_interface=yes
9463	;;
9464    esac
9465  fi
9466
9467  if test yes = "$lt_use_gnu_ld_interface"; then
9468    # If archive_cmds runs LD, not CC, wlarc should be empty
9469    wlarc='$wl'
9470
9471    # Set some defaults for GNU ld with shared library support. These
9472    # are reset later if shared libraries are not supported. Putting them
9473    # here allows them to be overridden if necessary.
9474    runpath_var=LD_RUN_PATH
9475    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9476    export_dynamic_flag_spec='$wl--export-dynamic'
9477    # ancient GNU ld didn't support --whole-archive et. al.
9478    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9479      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9480    else
9481      whole_archive_flag_spec=
9482    fi
9483    supports_anon_versioning=no
9484    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9485      *GNU\ gold*) supports_anon_versioning=yes ;;
9486      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9487      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9488      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9489      *\ 2.11.*) ;; # other 2.11 versions
9490      *) supports_anon_versioning=yes ;;
9491    esac
9492
9493    # See if GNU ld supports shared libraries.
9494    case $host_os in
9495    aix[3-9]*)
9496      # On AIX/PPC, the GNU linker is very broken
9497      if test ia64 != "$host_cpu"; then
9498	ld_shlibs=no
9499	cat <<_LT_EOF 1>&2
9500
9501*** Warning: the GNU linker, at least up to release 2.19, is reported
9502*** to be unable to reliably create shared libraries on AIX.
9503*** Therefore, libtool is disabling shared libraries support.  If you
9504*** really care for shared libraries, you may want to install binutils
9505*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9506*** You will then need to restart the configuration process.
9507
9508_LT_EOF
9509      fi
9510      ;;
9511
9512    amigaos*)
9513      case $host_cpu in
9514      powerpc)
9515            # see comment about AmigaOS4 .so support
9516            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9517            archive_expsym_cmds=''
9518        ;;
9519      m68k)
9520            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)'
9521            hardcode_libdir_flag_spec='-L$libdir'
9522            hardcode_minus_L=yes
9523        ;;
9524      esac
9525      ;;
9526
9527    beos*)
9528      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529	allow_undefined_flag=unsupported
9530	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9531	# support --undefined.  This deserves some investigation.  FIXME
9532	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9533      else
9534	ld_shlibs=no
9535      fi
9536      ;;
9537
9538    cygwin* | mingw* | pw32* | cegcc*)
9539      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9540      # as there is no search path for DLLs.
9541      hardcode_libdir_flag_spec='-L$libdir'
9542      export_dynamic_flag_spec='$wl--export-all-symbols'
9543      allow_undefined_flag=unsupported
9544      always_export_symbols=no
9545      enable_shared_with_static_runtimes=yes
9546      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'
9547      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9548
9549      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9550        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9551	# If the export-symbols file already is a .def file, use it as
9552	# is; otherwise, prepend EXPORTS...
9553	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9554          cp $export_symbols $output_objdir/$soname.def;
9555        else
9556          echo EXPORTS > $output_objdir/$soname.def;
9557          cat $export_symbols >> $output_objdir/$soname.def;
9558        fi~
9559        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9560      else
9561	ld_shlibs=no
9562      fi
9563      ;;
9564
9565    haiku*)
9566      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9567      link_all_deplibs=yes
9568      ;;
9569
9570    os2*)
9571      hardcode_libdir_flag_spec='-L$libdir'
9572      hardcode_minus_L=yes
9573      allow_undefined_flag=unsupported
9574      shrext_cmds=.dll
9575      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9576	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9577	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9578	$ECHO EXPORTS >> $output_objdir/$libname.def~
9579	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9580	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9581	emximp -o $lib $output_objdir/$libname.def'
9582      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9583	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9584	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9585	$ECHO EXPORTS >> $output_objdir/$libname.def~
9586	prefix_cmds="$SED"~
9587	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9588	  prefix_cmds="$prefix_cmds -e 1d";
9589	fi~
9590	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9591	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9592	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9593	emximp -o $lib $output_objdir/$libname.def'
9594      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9595      enable_shared_with_static_runtimes=yes
9596      ;;
9597
9598    interix[3-9]*)
9599      hardcode_direct=no
9600      hardcode_shlibpath_var=no
9601      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9602      export_dynamic_flag_spec='$wl-E'
9603      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9604      # Instead, shared libraries are loaded at an image base (0x10000000 by
9605      # default) and relocated if they conflict, which is a slow very memory
9606      # consuming and fragmenting process.  To avoid this, we pick a random,
9607      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9608      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9609      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9610      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'
9611      ;;
9612
9613    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9614      tmp_diet=no
9615      if test linux-dietlibc = "$host_os"; then
9616	case $cc_basename in
9617	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9618	esac
9619      fi
9620      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9621	 && test no = "$tmp_diet"
9622      then
9623	tmp_addflag=' $pic_flag'
9624	tmp_sharedflag='-shared'
9625	case $cc_basename,$host_cpu in
9626        pgcc*)				# Portland Group C compiler
9627	  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'
9628	  tmp_addflag=' $pic_flag'
9629	  ;;
9630	pgf77* | pgf90* | pgf95* | pgfortran*)
9631					# Portland Group f77 and f90 compilers
9632	  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'
9633	  tmp_addflag=' $pic_flag -Mnomain' ;;
9634	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9635	  tmp_addflag=' -i_dynamic' ;;
9636	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9637	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9638	ifc* | ifort*)			# Intel Fortran compiler
9639	  tmp_addflag=' -nofor_main' ;;
9640	lf95*)				# Lahey Fortran 8.1
9641	  whole_archive_flag_spec=
9642	  tmp_sharedflag='--shared' ;;
9643        nagfor*)                        # NAGFOR 5.3
9644          tmp_sharedflag='-Wl,-shared' ;;
9645	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9646	  tmp_sharedflag='-qmkshrobj'
9647	  tmp_addflag= ;;
9648	nvcc*)	# Cuda Compiler Driver 2.2
9649	  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'
9650	  compiler_needs_object=yes
9651	  ;;
9652	esac
9653	case `$CC -V 2>&1 | sed 5q` in
9654	*Sun\ C*)			# Sun C 5.9
9655	  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'
9656	  compiler_needs_object=yes
9657	  tmp_sharedflag='-G' ;;
9658	*Sun\ F*)			# Sun Fortran 8.3
9659	  tmp_sharedflag='-G' ;;
9660	esac
9661	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9662
9663        if test yes = "$supports_anon_versioning"; then
9664          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9665            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9666            echo "local: *; };" >> $output_objdir/$libname.ver~
9667            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9668        fi
9669
9670	case $cc_basename in
9671	tcc*)
9672	  export_dynamic_flag_spec='-rdynamic'
9673	  ;;
9674	xlf* | bgf* | bgxlf* | mpixlf*)
9675	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9676	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9677	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9678	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9679	  if test yes = "$supports_anon_versioning"; then
9680	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9681              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9682              echo "local: *; };" >> $output_objdir/$libname.ver~
9683              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9684	  fi
9685	  ;;
9686	esac
9687      else
9688        ld_shlibs=no
9689      fi
9690      ;;
9691
9692    netbsd*)
9693      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9694	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9695	wlarc=
9696      else
9697	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9698	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9699      fi
9700      ;;
9701
9702    solaris*)
9703      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9704	ld_shlibs=no
9705	cat <<_LT_EOF 1>&2
9706
9707*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9708*** create shared libraries on Solaris systems.  Therefore, libtool
9709*** is disabling shared libraries support.  We urge you to upgrade GNU
9710*** binutils to release 2.9.1 or newer.  Another option is to modify
9711*** your PATH or compiler configuration so that the native linker is
9712*** used, and then restart.
9713
9714_LT_EOF
9715      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9716	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9717	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9718      else
9719	ld_shlibs=no
9720      fi
9721      ;;
9722
9723    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9724      case `$LD -v 2>&1` in
9725        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9726	ld_shlibs=no
9727	cat <<_LT_EOF 1>&2
9728
9729*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9730*** reliably create shared libraries on SCO systems.  Therefore, libtool
9731*** is disabling shared libraries support.  We urge you to upgrade GNU
9732*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9733*** your PATH or compiler configuration so that the native linker is
9734*** used, and then restart.
9735
9736_LT_EOF
9737	;;
9738	*)
9739	  # For security reasons, it is highly recommended that you always
9740	  # use absolute paths for naming shared libraries, and exclude the
9741	  # DT_RUNPATH tag from executables and libraries.  But doing so
9742	  # requires that you compile everything twice, which is a pain.
9743	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9744	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9745	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9746	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9747	  else
9748	    ld_shlibs=no
9749	  fi
9750	;;
9751      esac
9752      ;;
9753
9754    sunos4*)
9755      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9756      wlarc=
9757      hardcode_direct=yes
9758      hardcode_shlibpath_var=no
9759      ;;
9760
9761    *)
9762      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9764	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9765      else
9766	ld_shlibs=no
9767      fi
9768      ;;
9769    esac
9770
9771    if test no = "$ld_shlibs"; then
9772      runpath_var=
9773      hardcode_libdir_flag_spec=
9774      export_dynamic_flag_spec=
9775      whole_archive_flag_spec=
9776    fi
9777  else
9778    # PORTME fill in a description of your system's linker (not GNU ld)
9779    case $host_os in
9780    aix3*)
9781      allow_undefined_flag=unsupported
9782      always_export_symbols=yes
9783      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'
9784      # Note: this linker hardcodes the directories in LIBPATH if there
9785      # are no directories specified by -L.
9786      hardcode_minus_L=yes
9787      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9788	# Neither direct hardcoding nor static linking is supported with a
9789	# broken collect2.
9790	hardcode_direct=unsupported
9791      fi
9792      ;;
9793
9794    aix[4-9]*)
9795      if test ia64 = "$host_cpu"; then
9796	# On IA64, the linker does run time linking by default, so we don't
9797	# have to do anything special.
9798	aix_use_runtimelinking=no
9799	exp_sym_flag='-Bexport'
9800	no_entry_flag=
9801      else
9802	# If we're using GNU nm, then we don't want the "-C" option.
9803	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9804	# Without the "-l" option, or with the "-B" option, AIX nm treats
9805	# weak defined symbols like other global defined symbols, whereas
9806	# GNU nm marks them as "W".
9807	# While the 'weak' keyword is ignored in the Export File, we need
9808	# it in the Import File for the 'aix-soname' feature, so we have
9809	# to replace the "-B" option with "-P" for AIX nm.
9810	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9811	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9812	else
9813	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9814	fi
9815	aix_use_runtimelinking=no
9816
9817	# Test if we are trying to use run time linking or normal
9818	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9819	# have runtime linking enabled, and use it for executables.
9820	# For shared libraries, we enable/disable runtime linking
9821	# depending on the kind of the shared library created -
9822	# when "with_aix_soname,aix_use_runtimelinking" is:
9823	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9824	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9825	#            lib.a           static archive
9826	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9827	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9828	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9829	#            lib.a(lib.so.V) shared, rtl:no
9830	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9831	#            lib.a           static archive
9832	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9833	  for ld_flag in $LDFLAGS; do
9834	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9835	    aix_use_runtimelinking=yes
9836	    break
9837	  fi
9838	  done
9839	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9840	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9841	    # so we don't have lib.a shared libs to link our executables.
9842	    # We have to force runtime linking in this case.
9843	    aix_use_runtimelinking=yes
9844	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9845	  fi
9846	  ;;
9847	esac
9848
9849	exp_sym_flag='-bexport'
9850	no_entry_flag='-bnoentry'
9851      fi
9852
9853      # When large executables or shared objects are built, AIX ld can
9854      # have problems creating the table of contents.  If linking a library
9855      # or program results in "error TOC overflow" add -mminimal-toc to
9856      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9857      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9858
9859      archive_cmds=''
9860      hardcode_direct=yes
9861      hardcode_direct_absolute=yes
9862      hardcode_libdir_separator=':'
9863      link_all_deplibs=yes
9864      file_list_spec='$wl-f,'
9865      case $with_aix_soname,$aix_use_runtimelinking in
9866      aix,*) ;; # traditional, no import file
9867      svr4,* | *,yes) # use import file
9868	# The Import File defines what to hardcode.
9869	hardcode_direct=no
9870	hardcode_direct_absolute=no
9871	;;
9872      esac
9873
9874      if test yes = "$GCC"; then
9875	case $host_os in aix4.[012]|aix4.[012].*)
9876	# We only want to do this on AIX 4.2 and lower, the check
9877	# below for broken collect2 doesn't work under 4.3+
9878	  collect2name=`$CC -print-prog-name=collect2`
9879	  if test -f "$collect2name" &&
9880	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9881	  then
9882	  # We have reworked collect2
9883	  :
9884	  else
9885	  # We have old collect2
9886	  hardcode_direct=unsupported
9887	  # It fails to find uninstalled libraries when the uninstalled
9888	  # path is not listed in the libpath.  Setting hardcode_minus_L
9889	  # to unsupported forces relinking
9890	  hardcode_minus_L=yes
9891	  hardcode_libdir_flag_spec='-L$libdir'
9892	  hardcode_libdir_separator=
9893	  fi
9894	  ;;
9895	esac
9896	shared_flag='-shared'
9897	if test yes = "$aix_use_runtimelinking"; then
9898	  shared_flag="$shared_flag "'$wl-G'
9899	fi
9900	# Need to ensure runtime linking is disabled for the traditional
9901	# shared library, or the linker may eventually find shared libraries
9902	# /with/ Import File - we do not want to mix them.
9903	shared_flag_aix='-shared'
9904	shared_flag_svr4='-shared $wl-G'
9905      else
9906	# not using gcc
9907	if test ia64 = "$host_cpu"; then
9908	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9909	# chokes on -Wl,-G. The following line is correct:
9910	  shared_flag='-G'
9911	else
9912	  if test yes = "$aix_use_runtimelinking"; then
9913	    shared_flag='$wl-G'
9914	  else
9915	    shared_flag='$wl-bM:SRE'
9916	  fi
9917	  shared_flag_aix='$wl-bM:SRE'
9918	  shared_flag_svr4='$wl-G'
9919	fi
9920      fi
9921
9922      export_dynamic_flag_spec='$wl-bexpall'
9923      # It seems that -bexpall does not export symbols beginning with
9924      # underscore (_), so it is better to generate a list of symbols to export.
9925      always_export_symbols=yes
9926      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9927	# Warning - without using the other runtime loading flags (-brtl),
9928	# -berok will link without error, but may produce a broken library.
9929	allow_undefined_flag='-berok'
9930        # Determine the default libpath from the value encoded in an
9931        # empty executable.
9932        if test set = "${lt_cv_aix_libpath+set}"; then
9933  aix_libpath=$lt_cv_aix_libpath
9934else
9935  if ${lt_cv_aix_libpath_+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h.  */
9940
9941int
9942main ()
9943{
9944
9945  ;
9946  return 0;
9947}
9948_ACEOF
9949if ac_fn_c_try_link "$LINENO"; then :
9950
9951  lt_aix_libpath_sed='
9952      /Import File Strings/,/^$/ {
9953	  /^0/ {
9954	      s/^0  *\([^ ]*\) *$/\1/
9955	      p
9956	  }
9957      }'
9958  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9959  # Check for a 64-bit object if we didn't find anything.
9960  if test -z "$lt_cv_aix_libpath_"; then
9961    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962  fi
9963fi
9964rm -f core conftest.err conftest.$ac_objext \
9965    conftest$ac_exeext conftest.$ac_ext
9966  if test -z "$lt_cv_aix_libpath_"; then
9967    lt_cv_aix_libpath_=/usr/lib:/lib
9968  fi
9969
9970fi
9971
9972  aix_libpath=$lt_cv_aix_libpath_
9973fi
9974
9975        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9976        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9977      else
9978	if test ia64 = "$host_cpu"; then
9979	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9980	  allow_undefined_flag="-z nodefs"
9981	  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"
9982	else
9983	 # Determine the default libpath from the value encoded in an
9984	 # empty executable.
9985	 if test set = "${lt_cv_aix_libpath+set}"; then
9986  aix_libpath=$lt_cv_aix_libpath
9987else
9988  if ${lt_cv_aix_libpath_+:} false; then :
9989  $as_echo_n "(cached) " >&6
9990else
9991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992/* end confdefs.h.  */
9993
9994int
9995main ()
9996{
9997
9998  ;
9999  return 0;
10000}
10001_ACEOF
10002if ac_fn_c_try_link "$LINENO"; then :
10003
10004  lt_aix_libpath_sed='
10005      /Import File Strings/,/^$/ {
10006	  /^0/ {
10007	      s/^0  *\([^ ]*\) *$/\1/
10008	      p
10009	  }
10010      }'
10011  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10012  # Check for a 64-bit object if we didn't find anything.
10013  if test -z "$lt_cv_aix_libpath_"; then
10014    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10015  fi
10016fi
10017rm -f core conftest.err conftest.$ac_objext \
10018    conftest$ac_exeext conftest.$ac_ext
10019  if test -z "$lt_cv_aix_libpath_"; then
10020    lt_cv_aix_libpath_=/usr/lib:/lib
10021  fi
10022
10023fi
10024
10025  aix_libpath=$lt_cv_aix_libpath_
10026fi
10027
10028	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10029	  # Warning - without using the other run time loading flags,
10030	  # -berok will link without error, but may produce a broken library.
10031	  no_undefined_flag=' $wl-bernotok'
10032	  allow_undefined_flag=' $wl-berok'
10033	  if test yes = "$with_gnu_ld"; then
10034	    # We only use this code for GNU lds that support --whole-archive.
10035	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10036	  else
10037	    # Exported symbols can be pulled into shared objects from archives
10038	    whole_archive_flag_spec='$convenience'
10039	  fi
10040	  archive_cmds_need_lc=yes
10041	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10042	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10043	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10044	  if test svr4 != "$with_aix_soname"; then
10045	    # This is similar to how AIX traditionally builds its shared libraries.
10046	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10047	  fi
10048	  if test aix != "$with_aix_soname"; then
10049	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10050	  else
10051	    # used by -dlpreopen to get the symbols
10052	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10053	  fi
10054	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10055	fi
10056      fi
10057      ;;
10058
10059    amigaos*)
10060      case $host_cpu in
10061      powerpc)
10062            # see comment about AmigaOS4 .so support
10063            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10064            archive_expsym_cmds=''
10065        ;;
10066      m68k)
10067            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)'
10068            hardcode_libdir_flag_spec='-L$libdir'
10069            hardcode_minus_L=yes
10070        ;;
10071      esac
10072      ;;
10073
10074    bsdi[45]*)
10075      export_dynamic_flag_spec=-rdynamic
10076      ;;
10077
10078    cygwin* | mingw* | pw32* | cegcc*)
10079      # When not using gcc, we currently assume that we are using
10080      # Microsoft Visual C++.
10081      # hardcode_libdir_flag_spec is actually meaningless, as there is
10082      # no search path for DLLs.
10083      case $cc_basename in
10084      cl*)
10085	# Native MSVC
10086	hardcode_libdir_flag_spec=' '
10087	allow_undefined_flag=unsupported
10088	always_export_symbols=yes
10089	file_list_spec='@'
10090	# Tell ltmain to make .lib files, not .a files.
10091	libext=lib
10092	# Tell ltmain to make .dll files, not .so files.
10093	shrext_cmds=.dll
10094	# FIXME: Setting linknames here is a bad hack.
10095	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10096	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10097            cp "$export_symbols" "$output_objdir/$soname.def";
10098            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10099          else
10100            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10101          fi~
10102          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10103          linknames='
10104	# The linker will not automatically build a static lib if we build a DLL.
10105	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10106	enable_shared_with_static_runtimes=yes
10107	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10108	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10109	# Don't use ranlib
10110	old_postinstall_cmds='chmod 644 $oldlib'
10111	postlink_cmds='lt_outputfile="@OUTPUT@"~
10112          lt_tool_outputfile="@TOOL_OUTPUT@"~
10113          case $lt_outputfile in
10114            *.exe|*.EXE) ;;
10115            *)
10116              lt_outputfile=$lt_outputfile.exe
10117              lt_tool_outputfile=$lt_tool_outputfile.exe
10118              ;;
10119          esac~
10120          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10121            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10122            $RM "$lt_outputfile.manifest";
10123          fi'
10124	;;
10125      *)
10126	# Assume MSVC wrapper
10127	hardcode_libdir_flag_spec=' '
10128	allow_undefined_flag=unsupported
10129	# Tell ltmain to make .lib files, not .a files.
10130	libext=lib
10131	# Tell ltmain to make .dll files, not .so files.
10132	shrext_cmds=.dll
10133	# FIXME: Setting linknames here is a bad hack.
10134	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10135	# The linker will automatically build a .lib file if we build a DLL.
10136	old_archive_from_new_cmds='true'
10137	# FIXME: Should let the user specify the lib program.
10138	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10139	enable_shared_with_static_runtimes=yes
10140	;;
10141      esac
10142      ;;
10143
10144    darwin* | rhapsody*)
10145
10146
10147  archive_cmds_need_lc=no
10148  hardcode_direct=no
10149  hardcode_automatic=yes
10150  hardcode_shlibpath_var=unsupported
10151  if test yes = "$lt_cv_ld_force_load"; then
10152    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\"`'
10153
10154  else
10155    whole_archive_flag_spec=''
10156  fi
10157  link_all_deplibs=yes
10158  allow_undefined_flag=$_lt_dar_allow_undefined
10159  case $cc_basename in
10160     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10161     *) _lt_dar_can_shared=$GCC ;;
10162  esac
10163  if test yes = "$_lt_dar_can_shared"; then
10164    output_verbose_link_cmd=func_echo_all
10165    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10166    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10167    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"
10168    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"
10169
10170  else
10171  ld_shlibs=no
10172  fi
10173
10174      ;;
10175
10176    dgux*)
10177      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178      hardcode_libdir_flag_spec='-L$libdir'
10179      hardcode_shlibpath_var=no
10180      ;;
10181
10182    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10183    # support.  Future versions do this automatically, but an explicit c++rt0.o
10184    # does not break anything, and helps significantly (at the cost of a little
10185    # extra space).
10186    freebsd2.2*)
10187      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10188      hardcode_libdir_flag_spec='-R$libdir'
10189      hardcode_direct=yes
10190      hardcode_shlibpath_var=no
10191      ;;
10192
10193    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10194    freebsd2.*)
10195      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10196      hardcode_direct=yes
10197      hardcode_minus_L=yes
10198      hardcode_shlibpath_var=no
10199      ;;
10200
10201    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10202    freebsd* | dragonfly*)
10203      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10204      hardcode_libdir_flag_spec='-R$libdir'
10205      hardcode_direct=yes
10206      hardcode_shlibpath_var=no
10207      ;;
10208
10209    hpux9*)
10210      if test yes = "$GCC"; then
10211	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10212      else
10213	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10214      fi
10215      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10216      hardcode_libdir_separator=:
10217      hardcode_direct=yes
10218
10219      # hardcode_minus_L: Not really in the search PATH,
10220      # but as the default location of the library.
10221      hardcode_minus_L=yes
10222      export_dynamic_flag_spec='$wl-E'
10223      ;;
10224
10225    hpux10*)
10226      if test yes,no = "$GCC,$with_gnu_ld"; then
10227	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10228      else
10229	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10230      fi
10231      if test no = "$with_gnu_ld"; then
10232	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10233	hardcode_libdir_separator=:
10234	hardcode_direct=yes
10235	hardcode_direct_absolute=yes
10236	export_dynamic_flag_spec='$wl-E'
10237	# hardcode_minus_L: Not really in the search PATH,
10238	# but as the default location of the library.
10239	hardcode_minus_L=yes
10240      fi
10241      ;;
10242
10243    hpux11*)
10244      if test yes,no = "$GCC,$with_gnu_ld"; then
10245	case $host_cpu in
10246	hppa*64*)
10247	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10248	  ;;
10249	ia64*)
10250	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10251	  ;;
10252	*)
10253	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10254	  ;;
10255	esac
10256      else
10257	case $host_cpu in
10258	hppa*64*)
10259	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10260	  ;;
10261	ia64*)
10262	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10263	  ;;
10264	*)
10265
10266	  # Older versions of the 11.00 compiler do not understand -b yet
10267	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10268	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10269$as_echo_n "checking if $CC understands -b... " >&6; }
10270if ${lt_cv_prog_compiler__b+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  lt_cv_prog_compiler__b=no
10274   save_LDFLAGS=$LDFLAGS
10275   LDFLAGS="$LDFLAGS -b"
10276   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10277   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10278     # The linker can only warn and ignore the option if not recognized
10279     # So say no if there are warnings
10280     if test -s conftest.err; then
10281       # Append any errors to the config.log.
10282       cat conftest.err 1>&5
10283       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10284       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10285       if diff conftest.exp conftest.er2 >/dev/null; then
10286         lt_cv_prog_compiler__b=yes
10287       fi
10288     else
10289       lt_cv_prog_compiler__b=yes
10290     fi
10291   fi
10292   $RM -r conftest*
10293   LDFLAGS=$save_LDFLAGS
10294
10295fi
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10297$as_echo "$lt_cv_prog_compiler__b" >&6; }
10298
10299if test yes = "$lt_cv_prog_compiler__b"; then
10300    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10301else
10302    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10303fi
10304
10305	  ;;
10306	esac
10307      fi
10308      if test no = "$with_gnu_ld"; then
10309	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10310	hardcode_libdir_separator=:
10311
10312	case $host_cpu in
10313	hppa*64*|ia64*)
10314	  hardcode_direct=no
10315	  hardcode_shlibpath_var=no
10316	  ;;
10317	*)
10318	  hardcode_direct=yes
10319	  hardcode_direct_absolute=yes
10320	  export_dynamic_flag_spec='$wl-E'
10321
10322	  # hardcode_minus_L: Not really in the search PATH,
10323	  # but as the default location of the library.
10324	  hardcode_minus_L=yes
10325	  ;;
10326	esac
10327      fi
10328      ;;
10329
10330    irix5* | irix6* | nonstopux*)
10331      if test yes = "$GCC"; then
10332	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'
10333	# Try to use the -exported_symbol ld option, if it does not
10334	# work, assume that -exports_file does not work either and
10335	# implicitly export all symbols.
10336	# This should be the same for all languages, so no per-tag cache variable.
10337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10338$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10339if ${lt_cv_irix_exported_symbol+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  save_LDFLAGS=$LDFLAGS
10343	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10344	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346int foo (void) { return 0; }
10347_ACEOF
10348if ac_fn_c_try_link "$LINENO"; then :
10349  lt_cv_irix_exported_symbol=yes
10350else
10351  lt_cv_irix_exported_symbol=no
10352fi
10353rm -f core conftest.err conftest.$ac_objext \
10354    conftest$ac_exeext conftest.$ac_ext
10355           LDFLAGS=$save_LDFLAGS
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10358$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10359	if test yes = "$lt_cv_irix_exported_symbol"; then
10360          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'
10361	fi
10362      else
10363	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'
10364	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'
10365      fi
10366      archive_cmds_need_lc='no'
10367      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10368      hardcode_libdir_separator=:
10369      inherit_rpath=yes
10370      link_all_deplibs=yes
10371      ;;
10372
10373    linux*)
10374      case $cc_basename in
10375      tcc*)
10376	# Fabrice Bellard et al's Tiny C Compiler
10377	ld_shlibs=yes
10378	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10379	;;
10380      esac
10381      ;;
10382
10383    netbsd*)
10384      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10385	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10386      else
10387	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10388      fi
10389      hardcode_libdir_flag_spec='-R$libdir'
10390      hardcode_direct=yes
10391      hardcode_shlibpath_var=no
10392      ;;
10393
10394    newsos6)
10395      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396      hardcode_direct=yes
10397      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10398      hardcode_libdir_separator=:
10399      hardcode_shlibpath_var=no
10400      ;;
10401
10402    *nto* | *qnx*)
10403      ;;
10404
10405    openbsd* | bitrig*)
10406      if test -f /usr/libexec/ld.so; then
10407	hardcode_direct=yes
10408	hardcode_shlibpath_var=no
10409	hardcode_direct_absolute=yes
10410	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10411	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10412	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10413	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10414	  export_dynamic_flag_spec='$wl-E'
10415	else
10416	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10417	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10418	fi
10419      else
10420	ld_shlibs=no
10421      fi
10422      ;;
10423
10424    os2*)
10425      hardcode_libdir_flag_spec='-L$libdir'
10426      hardcode_minus_L=yes
10427      allow_undefined_flag=unsupported
10428      shrext_cmds=.dll
10429      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10430	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10431	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10432	$ECHO EXPORTS >> $output_objdir/$libname.def~
10433	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10434	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10435	emximp -o $lib $output_objdir/$libname.def'
10436      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10437	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10438	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10439	$ECHO EXPORTS >> $output_objdir/$libname.def~
10440	prefix_cmds="$SED"~
10441	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10442	  prefix_cmds="$prefix_cmds -e 1d";
10443	fi~
10444	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10445	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10446	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10447	emximp -o $lib $output_objdir/$libname.def'
10448      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10449      enable_shared_with_static_runtimes=yes
10450      ;;
10451
10452    osf3*)
10453      if test yes = "$GCC"; then
10454	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10455	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'
10456      else
10457	allow_undefined_flag=' -expect_unresolved \*'
10458	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'
10459      fi
10460      archive_cmds_need_lc='no'
10461      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10462      hardcode_libdir_separator=:
10463      ;;
10464
10465    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10466      if test yes = "$GCC"; then
10467	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10468	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'
10469	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10470      else
10471	allow_undefined_flag=' -expect_unresolved \*'
10472	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'
10473	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~
10474          $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'
10475
10476	# Both c and cxx compiler support -rpath directly
10477	hardcode_libdir_flag_spec='-rpath $libdir'
10478      fi
10479      archive_cmds_need_lc='no'
10480      hardcode_libdir_separator=:
10481      ;;
10482
10483    solaris*)
10484      no_undefined_flag=' -z defs'
10485      if test yes = "$GCC"; then
10486	wlarc='$wl'
10487	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10488	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10489          $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'
10490      else
10491	case `$CC -V 2>&1` in
10492	*"Compilers 5.0"*)
10493	  wlarc=''
10494	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10496            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10497	  ;;
10498	*)
10499	  wlarc='$wl'
10500	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10501	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10502            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10503	  ;;
10504	esac
10505      fi
10506      hardcode_libdir_flag_spec='-R$libdir'
10507      hardcode_shlibpath_var=no
10508      case $host_os in
10509      solaris2.[0-5] | solaris2.[0-5].*) ;;
10510      *)
10511	# The compiler driver will combine and reorder linker options,
10512	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10513	# but is careful enough not to reorder.
10514	# Supported since Solaris 2.6 (maybe 2.5.1?)
10515	if test yes = "$GCC"; then
10516	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10517	else
10518	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10519	fi
10520	;;
10521      esac
10522      link_all_deplibs=yes
10523      ;;
10524
10525    sunos4*)
10526      if test sequent = "$host_vendor"; then
10527	# Use $CC to link under sequent, because it throws in some extra .o
10528	# files that make .init and .fini sections work.
10529	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10530      else
10531	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10532      fi
10533      hardcode_libdir_flag_spec='-L$libdir'
10534      hardcode_direct=yes
10535      hardcode_minus_L=yes
10536      hardcode_shlibpath_var=no
10537      ;;
10538
10539    sysv4)
10540      case $host_vendor in
10541	sni)
10542	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10543	  hardcode_direct=yes # is this really true???
10544	;;
10545	siemens)
10546	  ## LD is ld it makes a PLAMLIB
10547	  ## CC just makes a GrossModule.
10548	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10549	  reload_cmds='$CC -r -o $output$reload_objs'
10550	  hardcode_direct=no
10551        ;;
10552	motorola)
10553	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10555	;;
10556      esac
10557      runpath_var='LD_RUN_PATH'
10558      hardcode_shlibpath_var=no
10559      ;;
10560
10561    sysv4.3*)
10562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563      hardcode_shlibpath_var=no
10564      export_dynamic_flag_spec='-Bexport'
10565      ;;
10566
10567    sysv4*MP*)
10568      if test -d /usr/nec; then
10569	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570	hardcode_shlibpath_var=no
10571	runpath_var=LD_RUN_PATH
10572	hardcode_runpath_var=yes
10573	ld_shlibs=yes
10574      fi
10575      ;;
10576
10577    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10578      no_undefined_flag='$wl-z,text'
10579      archive_cmds_need_lc=no
10580      hardcode_shlibpath_var=no
10581      runpath_var='LD_RUN_PATH'
10582
10583      if test yes = "$GCC"; then
10584	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586      else
10587	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589      fi
10590      ;;
10591
10592    sysv5* | sco3.2v5* | sco5v6*)
10593      # Note: We CANNOT use -z defs as we might desire, because we do not
10594      # link with -lc, and that would cause any symbols used from libc to
10595      # always be unresolved, which means just about no library would
10596      # ever link correctly.  If we're not using GNU ld we use -z text
10597      # though, which does catch some bad symbols but isn't as heavy-handed
10598      # as -z defs.
10599      no_undefined_flag='$wl-z,text'
10600      allow_undefined_flag='$wl-z,nodefs'
10601      archive_cmds_need_lc=no
10602      hardcode_shlibpath_var=no
10603      hardcode_libdir_flag_spec='$wl-R,$libdir'
10604      hardcode_libdir_separator=':'
10605      link_all_deplibs=yes
10606      export_dynamic_flag_spec='$wl-Bexport'
10607      runpath_var='LD_RUN_PATH'
10608
10609      if test yes = "$GCC"; then
10610	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612      else
10613	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615      fi
10616      ;;
10617
10618    uts4*)
10619      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620      hardcode_libdir_flag_spec='-L$libdir'
10621      hardcode_shlibpath_var=no
10622      ;;
10623
10624    *)
10625      ld_shlibs=no
10626      ;;
10627    esac
10628
10629    if test sni = "$host_vendor"; then
10630      case $host in
10631      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10632	export_dynamic_flag_spec='$wl-Blargedynsym'
10633	;;
10634      esac
10635    fi
10636  fi
10637
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10639$as_echo "$ld_shlibs" >&6; }
10640test no = "$ld_shlibs" && can_build_shared=no
10641
10642with_gnu_ld=$with_gnu_ld
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658#
10659# Do we need to explicitly link libc?
10660#
10661case "x$archive_cmds_need_lc" in
10662x|xyes)
10663  # Assume -lc should be added
10664  archive_cmds_need_lc=yes
10665
10666  if test yes,yes = "$GCC,$enable_shared"; then
10667    case $archive_cmds in
10668    *'~'*)
10669      # FIXME: we may have to deal with multi-command sequences.
10670      ;;
10671    '$CC '*)
10672      # Test whether the compiler implicitly links with -lc since on some
10673      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10674      # to ld, don't add -lc before -lgcc.
10675      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10676$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10677if ${lt_cv_archive_cmds_need_lc+:} false; then :
10678  $as_echo_n "(cached) " >&6
10679else
10680  $RM conftest*
10681	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10682
10683	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10684  (eval $ac_compile) 2>&5
10685  ac_status=$?
10686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687  test $ac_status = 0; } 2>conftest.err; then
10688	  soname=conftest
10689	  lib=conftest
10690	  libobjs=conftest.$ac_objext
10691	  deplibs=
10692	  wl=$lt_prog_compiler_wl
10693	  pic_flag=$lt_prog_compiler_pic
10694	  compiler_flags=-v
10695	  linker_flags=-v
10696	  verstring=
10697	  output_objdir=.
10698	  libname=conftest
10699	  lt_save_allow_undefined_flag=$allow_undefined_flag
10700	  allow_undefined_flag=
10701	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10702  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10703  ac_status=$?
10704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705  test $ac_status = 0; }
10706	  then
10707	    lt_cv_archive_cmds_need_lc=no
10708	  else
10709	    lt_cv_archive_cmds_need_lc=yes
10710	  fi
10711	  allow_undefined_flag=$lt_save_allow_undefined_flag
10712	else
10713	  cat conftest.err 1>&5
10714	fi
10715	$RM conftest*
10716
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10719$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10720      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10721      ;;
10722    esac
10723  fi
10724  ;;
10725esac
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10879$as_echo_n "checking dynamic linker characteristics... " >&6; }
10880
10881if test yes = "$GCC"; then
10882  case $host_os in
10883    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10884    *) lt_awk_arg='/^libraries:/' ;;
10885  esac
10886  case $host_os in
10887    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10888    *) lt_sed_strip_eq='s|=/|/|g' ;;
10889  esac
10890  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10891  case $lt_search_path_spec in
10892  *\;*)
10893    # if the path contains ";" then we assume it to be the separator
10894    # otherwise default to the standard path separator (i.e. ":") - it is
10895    # assumed that no part of a normal pathname contains ";" but that should
10896    # okay in the real world where ";" in dirpaths is itself problematic.
10897    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10898    ;;
10899  *)
10900    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10901    ;;
10902  esac
10903  # Ok, now we have the path, separated by spaces, we can step through it
10904  # and add multilib dir if necessary...
10905  lt_tmp_lt_search_path_spec=
10906  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10907  # ...but if some path component already ends with the multilib dir we assume
10908  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10909  case "$lt_multi_os_dir; $lt_search_path_spec " in
10910  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10911    lt_multi_os_dir=
10912    ;;
10913  esac
10914  for lt_sys_path in $lt_search_path_spec; do
10915    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10916      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10917    elif test -n "$lt_multi_os_dir"; then
10918      test -d "$lt_sys_path" && \
10919	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10920    fi
10921  done
10922  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10923BEGIN {RS = " "; FS = "/|\n";} {
10924  lt_foo = "";
10925  lt_count = 0;
10926  for (lt_i = NF; lt_i > 0; lt_i--) {
10927    if ($lt_i != "" && $lt_i != ".") {
10928      if ($lt_i == "..") {
10929        lt_count++;
10930      } else {
10931        if (lt_count == 0) {
10932          lt_foo = "/" $lt_i lt_foo;
10933        } else {
10934          lt_count--;
10935        }
10936      }
10937    }
10938  }
10939  if (lt_foo != "") { lt_freq[lt_foo]++; }
10940  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10941}'`
10942  # AWK program above erroneously prepends '/' to C:/dos/paths
10943  # for these hosts.
10944  case $host_os in
10945    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10946      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10947  esac
10948  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10949else
10950  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10951fi
10952library_names_spec=
10953libname_spec='lib$name'
10954soname_spec=
10955shrext_cmds=.so
10956postinstall_cmds=
10957postuninstall_cmds=
10958finish_cmds=
10959finish_eval=
10960shlibpath_var=
10961shlibpath_overrides_runpath=unknown
10962version_type=none
10963dynamic_linker="$host_os ld.so"
10964sys_lib_dlsearch_path_spec="/lib /usr/lib"
10965need_lib_prefix=unknown
10966hardcode_into_libs=no
10967
10968# when you set need_version to no, make sure it does not cause -set_version
10969# flags to be left without arguments
10970need_version=unknown
10971
10972
10973
10974case $host_os in
10975aix3*)
10976  version_type=linux # correct to gnu/linux during the next big refactor
10977  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10978  shlibpath_var=LIBPATH
10979
10980  # AIX 3 has no versioning support, so we append a major version to the name.
10981  soname_spec='$libname$release$shared_ext$major'
10982  ;;
10983
10984aix[4-9]*)
10985  version_type=linux # correct to gnu/linux during the next big refactor
10986  need_lib_prefix=no
10987  need_version=no
10988  hardcode_into_libs=yes
10989  if test ia64 = "$host_cpu"; then
10990    # AIX 5 supports IA64
10991    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10992    shlibpath_var=LD_LIBRARY_PATH
10993  else
10994    # With GCC up to 2.95.x, collect2 would create an import file
10995    # for dependence libraries.  The import file would start with
10996    # the line '#! .'.  This would cause the generated library to
10997    # depend on '.', always an invalid library.  This was fixed in
10998    # development snapshots of GCC prior to 3.0.
10999    case $host_os in
11000      aix4 | aix4.[01] | aix4.[01].*)
11001      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11002	   echo ' yes '
11003	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11004	:
11005      else
11006	can_build_shared=no
11007      fi
11008      ;;
11009    esac
11010    # Using Import Files as archive members, it is possible to support
11011    # filename-based versioning of shared library archives on AIX. While
11012    # this would work for both with and without runtime linking, it will
11013    # prevent static linking of such archives. So we do filename-based
11014    # shared library versioning with .so extension only, which is used
11015    # when both runtime linking and shared linking is enabled.
11016    # Unfortunately, runtime linking may impact performance, so we do
11017    # not want this to be the default eventually. Also, we use the
11018    # versioned .so libs for executables only if there is the -brtl
11019    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11020    # To allow for filename-based versioning support, we need to create
11021    # libNAME.so.V as an archive file, containing:
11022    # *) an Import File, referring to the versioned filename of the
11023    #    archive as well as the shared archive member, telling the
11024    #    bitwidth (32 or 64) of that shared object, and providing the
11025    #    list of exported symbols of that shared object, eventually
11026    #    decorated with the 'weak' keyword
11027    # *) the shared object with the F_LOADONLY flag set, to really avoid
11028    #    it being seen by the linker.
11029    # At run time we better use the real file rather than another symlink,
11030    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11031
11032    case $with_aix_soname,$aix_use_runtimelinking in
11033    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11034    # soname into executable. Probably we can add versioning support to
11035    # collect2, so additional links can be useful in future.
11036    aix,yes) # traditional libtool
11037      dynamic_linker='AIX unversionable lib.so'
11038      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11039      # instead of lib<name>.a to let people know that these are not
11040      # typical AIX shared libraries.
11041      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11042      ;;
11043    aix,no) # traditional AIX only
11044      dynamic_linker='AIX lib.a(lib.so.V)'
11045      # We preserve .a as extension for shared libraries through AIX4.2
11046      # and later when we are not doing run time linking.
11047      library_names_spec='$libname$release.a $libname.a'
11048      soname_spec='$libname$release$shared_ext$major'
11049      ;;
11050    svr4,*) # full svr4 only
11051      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11052      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11053      # We do not specify a path in Import Files, so LIBPATH fires.
11054      shlibpath_overrides_runpath=yes
11055      ;;
11056    *,yes) # both, prefer svr4
11057      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11058      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11059      # unpreferred sharedlib libNAME.a needs extra handling
11060      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11061      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11062      # We do not specify a path in Import Files, so LIBPATH fires.
11063      shlibpath_overrides_runpath=yes
11064      ;;
11065    *,no) # both, prefer aix
11066      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11067      library_names_spec='$libname$release.a $libname.a'
11068      soname_spec='$libname$release$shared_ext$major'
11069      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11070      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11071      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11072      ;;
11073    esac
11074    shlibpath_var=LIBPATH
11075  fi
11076  ;;
11077
11078amigaos*)
11079  case $host_cpu in
11080  powerpc)
11081    # Since July 2007 AmigaOS4 officially supports .so libraries.
11082    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11083    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11084    ;;
11085  m68k)
11086    library_names_spec='$libname.ixlibrary $libname.a'
11087    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11088    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11089    ;;
11090  esac
11091  ;;
11092
11093beos*)
11094  library_names_spec='$libname$shared_ext'
11095  dynamic_linker="$host_os ld.so"
11096  shlibpath_var=LIBRARY_PATH
11097  ;;
11098
11099bsdi[45]*)
11100  version_type=linux # correct to gnu/linux during the next big refactor
11101  need_version=no
11102  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103  soname_spec='$libname$release$shared_ext$major'
11104  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11105  shlibpath_var=LD_LIBRARY_PATH
11106  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11107  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11108  # the default ld.so.conf also contains /usr/contrib/lib and
11109  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11110  # libtool to hard-code these into programs
11111  ;;
11112
11113cygwin* | mingw* | pw32* | cegcc*)
11114  version_type=windows
11115  shrext_cmds=.dll
11116  need_version=no
11117  need_lib_prefix=no
11118
11119  case $GCC,$cc_basename in
11120  yes,*)
11121    # gcc
11122    library_names_spec='$libname.dll.a'
11123    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11124    postinstall_cmds='base_file=`basename \$file`~
11125      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11126      dldir=$destdir/`dirname \$dlpath`~
11127      test -d \$dldir || mkdir -p \$dldir~
11128      $install_prog $dir/$dlname \$dldir/$dlname~
11129      chmod a+x \$dldir/$dlname~
11130      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11131        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11132      fi'
11133    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11134      dlpath=$dir/\$dldll~
11135       $RM \$dlpath'
11136    shlibpath_overrides_runpath=yes
11137
11138    case $host_os in
11139    cygwin*)
11140      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11141      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11142
11143      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11144      ;;
11145    mingw* | cegcc*)
11146      # MinGW DLLs use traditional 'lib' prefix
11147      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11148      ;;
11149    pw32*)
11150      # pw32 DLLs use 'pw' prefix rather than 'lib'
11151      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11152      ;;
11153    esac
11154    dynamic_linker='Win32 ld.exe'
11155    ;;
11156
11157  *,cl*)
11158    # Native MSVC
11159    libname_spec='$name'
11160    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11161    library_names_spec='$libname.dll.lib'
11162
11163    case $build_os in
11164    mingw*)
11165      sys_lib_search_path_spec=
11166      lt_save_ifs=$IFS
11167      IFS=';'
11168      for lt_path in $LIB
11169      do
11170        IFS=$lt_save_ifs
11171        # Let DOS variable expansion print the short 8.3 style file name.
11172        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11173        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11174      done
11175      IFS=$lt_save_ifs
11176      # Convert to MSYS style.
11177      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11178      ;;
11179    cygwin*)
11180      # Convert to unix form, then to dos form, then back to unix form
11181      # but this time dos style (no spaces!) so that the unix form looks
11182      # like /cygdrive/c/PROGRA~1:/cygdr...
11183      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11184      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11185      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11186      ;;
11187    *)
11188      sys_lib_search_path_spec=$LIB
11189      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11190        # It is most probably a Windows format PATH.
11191        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11192      else
11193        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11194      fi
11195      # FIXME: find the short name or the path components, as spaces are
11196      # common. (e.g. "Program Files" -> "PROGRA~1")
11197      ;;
11198    esac
11199
11200    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11201    postinstall_cmds='base_file=`basename \$file`~
11202      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11203      dldir=$destdir/`dirname \$dlpath`~
11204      test -d \$dldir || mkdir -p \$dldir~
11205      $install_prog $dir/$dlname \$dldir/$dlname'
11206    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11207      dlpath=$dir/\$dldll~
11208       $RM \$dlpath'
11209    shlibpath_overrides_runpath=yes
11210    dynamic_linker='Win32 link.exe'
11211    ;;
11212
11213  *)
11214    # Assume MSVC wrapper
11215    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11216    dynamic_linker='Win32 ld.exe'
11217    ;;
11218  esac
11219  # FIXME: first we should search . and the directory the executable is in
11220  shlibpath_var=PATH
11221  ;;
11222
11223darwin* | rhapsody*)
11224  dynamic_linker="$host_os dyld"
11225  version_type=darwin
11226  need_lib_prefix=no
11227  need_version=no
11228  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11229  soname_spec='$libname$release$major$shared_ext'
11230  shlibpath_overrides_runpath=yes
11231  shlibpath_var=DYLD_LIBRARY_PATH
11232  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11233
11234  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11235  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11236  ;;
11237
11238dgux*)
11239  version_type=linux # correct to gnu/linux during the next big refactor
11240  need_lib_prefix=no
11241  need_version=no
11242  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11243  soname_spec='$libname$release$shared_ext$major'
11244  shlibpath_var=LD_LIBRARY_PATH
11245  ;;
11246
11247freebsd* | dragonfly*)
11248  # DragonFly does not have aout.  When/if they implement a new
11249  # versioning mechanism, adjust this.
11250  if test -x /usr/bin/objformat; then
11251    objformat=`/usr/bin/objformat`
11252  else
11253    case $host_os in
11254    freebsd[23].*) objformat=aout ;;
11255    *) objformat=elf ;;
11256    esac
11257  fi
11258  version_type=freebsd-$objformat
11259  case $version_type in
11260    freebsd-elf*)
11261      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262      soname_spec='$libname$release$shared_ext$major'
11263      need_version=no
11264      need_lib_prefix=no
11265      ;;
11266    freebsd-*)
11267      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11268      need_version=yes
11269      ;;
11270  esac
11271  shlibpath_var=LD_LIBRARY_PATH
11272  case $host_os in
11273  freebsd2.*)
11274    shlibpath_overrides_runpath=yes
11275    ;;
11276  freebsd3.[01]* | freebsdelf3.[01]*)
11277    shlibpath_overrides_runpath=yes
11278    hardcode_into_libs=yes
11279    ;;
11280  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11281  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11282    shlibpath_overrides_runpath=no
11283    hardcode_into_libs=yes
11284    ;;
11285  *) # from 4.6 on, and DragonFly
11286    shlibpath_overrides_runpath=yes
11287    hardcode_into_libs=yes
11288    ;;
11289  esac
11290  ;;
11291
11292haiku*)
11293  version_type=linux # correct to gnu/linux during the next big refactor
11294  need_lib_prefix=no
11295  need_version=no
11296  dynamic_linker="$host_os runtime_loader"
11297  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11298  soname_spec='$libname$release$shared_ext$major'
11299  shlibpath_var=LIBRARY_PATH
11300  shlibpath_overrides_runpath=no
11301  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11302  hardcode_into_libs=yes
11303  ;;
11304
11305hpux9* | hpux10* | hpux11*)
11306  # Give a soname corresponding to the major version so that dld.sl refuses to
11307  # link against other versions.
11308  version_type=sunos
11309  need_lib_prefix=no
11310  need_version=no
11311  case $host_cpu in
11312  ia64*)
11313    shrext_cmds='.so'
11314    hardcode_into_libs=yes
11315    dynamic_linker="$host_os dld.so"
11316    shlibpath_var=LD_LIBRARY_PATH
11317    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11318    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11319    soname_spec='$libname$release$shared_ext$major'
11320    if test 32 = "$HPUX_IA64_MODE"; then
11321      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11322      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11323    else
11324      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11325      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11326    fi
11327    ;;
11328  hppa*64*)
11329    shrext_cmds='.sl'
11330    hardcode_into_libs=yes
11331    dynamic_linker="$host_os dld.sl"
11332    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11333    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11334    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335    soname_spec='$libname$release$shared_ext$major'
11336    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11337    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11338    ;;
11339  *)
11340    shrext_cmds='.sl'
11341    dynamic_linker="$host_os dld.sl"
11342    shlibpath_var=SHLIB_PATH
11343    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
11347  esac
11348  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11349  postinstall_cmds='chmod 555 $lib'
11350  # or fails outright, so override atomically:
11351  install_override_mode=555
11352  ;;
11353
11354interix[3-9]*)
11355  version_type=linux # correct to gnu/linux during the next big refactor
11356  need_lib_prefix=no
11357  need_version=no
11358  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359  soname_spec='$libname$release$shared_ext$major'
11360  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11361  shlibpath_var=LD_LIBRARY_PATH
11362  shlibpath_overrides_runpath=no
11363  hardcode_into_libs=yes
11364  ;;
11365
11366irix5* | irix6* | nonstopux*)
11367  case $host_os in
11368    nonstopux*) version_type=nonstopux ;;
11369    *)
11370	if test yes = "$lt_cv_prog_gnu_ld"; then
11371		version_type=linux # correct to gnu/linux during the next big refactor
11372	else
11373		version_type=irix
11374	fi ;;
11375  esac
11376  need_lib_prefix=no
11377  need_version=no
11378  soname_spec='$libname$release$shared_ext$major'
11379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11380  case $host_os in
11381  irix5* | nonstopux*)
11382    libsuff= shlibsuff=
11383    ;;
11384  *)
11385    case $LD in # libtool.m4 will add one of these switches to LD
11386    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11387      libsuff= shlibsuff= libmagic=32-bit;;
11388    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11389      libsuff=32 shlibsuff=N32 libmagic=N32;;
11390    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11391      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11392    *) libsuff= shlibsuff= libmagic=never-match;;
11393    esac
11394    ;;
11395  esac
11396  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11397  shlibpath_overrides_runpath=no
11398  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11399  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11400  hardcode_into_libs=yes
11401  ;;
11402
11403# No shared lib support for Linux oldld, aout, or coff.
11404linux*oldld* | linux*aout* | linux*coff*)
11405  dynamic_linker=no
11406  ;;
11407
11408linux*android*)
11409  version_type=none # Android doesn't support versioned libraries.
11410  need_lib_prefix=no
11411  need_version=no
11412  library_names_spec='$libname$release$shared_ext'
11413  soname_spec='$libname$release$shared_ext'
11414  finish_cmds=
11415  shlibpath_var=LD_LIBRARY_PATH
11416  shlibpath_overrides_runpath=yes
11417
11418  # This implies no fast_install, which is unacceptable.
11419  # Some rework will be needed to allow for fast_install
11420  # before this can be enabled.
11421  hardcode_into_libs=yes
11422
11423  dynamic_linker='Android linker'
11424  # Don't embed -rpath directories since the linker doesn't support them.
11425  hardcode_libdir_flag_spec='-L$libdir'
11426  ;;
11427
11428# This must be glibc/ELF.
11429linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11430  version_type=linux # correct to gnu/linux during the next big refactor
11431  need_lib_prefix=no
11432  need_version=no
11433  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434  soname_spec='$libname$release$shared_ext$major'
11435  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11436  shlibpath_var=LD_LIBRARY_PATH
11437  shlibpath_overrides_runpath=no
11438
11439  # Some binutils ld are patched to set DT_RUNPATH
11440  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11441  $as_echo_n "(cached) " >&6
11442else
11443  lt_cv_shlibpath_overrides_runpath=no
11444    save_LDFLAGS=$LDFLAGS
11445    save_libdir=$libdir
11446    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11447	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11448    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h.  */
11450
11451int
11452main ()
11453{
11454
11455  ;
11456  return 0;
11457}
11458_ACEOF
11459if ac_fn_c_try_link "$LINENO"; then :
11460  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11461  lt_cv_shlibpath_overrides_runpath=yes
11462fi
11463fi
11464rm -f core conftest.err conftest.$ac_objext \
11465    conftest$ac_exeext conftest.$ac_ext
11466    LDFLAGS=$save_LDFLAGS
11467    libdir=$save_libdir
11468
11469fi
11470
11471  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11472
11473  # This implies no fast_install, which is unacceptable.
11474  # Some rework will be needed to allow for fast_install
11475  # before this can be enabled.
11476  hardcode_into_libs=yes
11477
11478  # Ideally, we could use ldconfig to report *all* directores which are
11479  # searched for libraries, however this is still not possible.  Aside from not
11480  # being certain /sbin/ldconfig is available, command
11481  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11482  # even though it is searched at run-time.  Try to do the best guess by
11483  # appending ld.so.conf contents (and includes) to the search path.
11484  if test -f /etc/ld.so.conf; then
11485    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' ' '`
11486    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11487  fi
11488
11489  # We used to test for /lib/ld.so.1 and disable shared libraries on
11490  # powerpc, because MkLinux only supported shared libraries with the
11491  # GNU dynamic linker.  Since this was broken with cross compilers,
11492  # most powerpc-linux boxes support dynamic linking these days and
11493  # people can always --disable-shared, the test was removed, and we
11494  # assume the GNU/Linux dynamic linker is in use.
11495  dynamic_linker='GNU/Linux ld.so'
11496  ;;
11497
11498netbsd*)
11499  version_type=sunos
11500  need_lib_prefix=no
11501  need_version=no
11502  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11503    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11504    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11505    dynamic_linker='NetBSD (a.out) ld.so'
11506  else
11507    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508    soname_spec='$libname$release$shared_ext$major'
11509    dynamic_linker='NetBSD ld.elf_so'
11510  fi
11511  shlibpath_var=LD_LIBRARY_PATH
11512  shlibpath_overrides_runpath=yes
11513  hardcode_into_libs=yes
11514  ;;
11515
11516newsos6)
11517  version_type=linux # correct to gnu/linux during the next big refactor
11518  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11519  shlibpath_var=LD_LIBRARY_PATH
11520  shlibpath_overrides_runpath=yes
11521  ;;
11522
11523*nto* | *qnx*)
11524  version_type=qnx
11525  need_lib_prefix=no
11526  need_version=no
11527  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528  soname_spec='$libname$release$shared_ext$major'
11529  shlibpath_var=LD_LIBRARY_PATH
11530  shlibpath_overrides_runpath=no
11531  hardcode_into_libs=yes
11532  dynamic_linker='ldqnx.so'
11533  ;;
11534
11535openbsd* | bitrig*)
11536  version_type=sunos
11537  sys_lib_dlsearch_path_spec=/usr/lib
11538  need_lib_prefix=no
11539  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11540    need_version=no
11541  else
11542    need_version=yes
11543  fi
11544  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11545  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11546  shlibpath_var=LD_LIBRARY_PATH
11547  shlibpath_overrides_runpath=yes
11548  ;;
11549
11550os2*)
11551  libname_spec='$name'
11552  version_type=windows
11553  shrext_cmds=.dll
11554  need_version=no
11555  need_lib_prefix=no
11556  # OS/2 can only load a DLL with a base name of 8 characters or less.
11557  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11558    v=$($ECHO $release$versuffix | tr -d .-);
11559    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11560    $ECHO $n$v`$shared_ext'
11561  library_names_spec='${libname}_dll.$libext'
11562  dynamic_linker='OS/2 ld.exe'
11563  shlibpath_var=BEGINLIBPATH
11564  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11565  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566  postinstall_cmds='base_file=`basename \$file`~
11567    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11568    dldir=$destdir/`dirname \$dlpath`~
11569    test -d \$dldir || mkdir -p \$dldir~
11570    $install_prog $dir/$dlname \$dldir/$dlname~
11571    chmod a+x \$dldir/$dlname~
11572    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11573      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11574    fi'
11575  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11576    dlpath=$dir/\$dldll~
11577    $RM \$dlpath'
11578  ;;
11579
11580osf3* | osf4* | osf5*)
11581  version_type=osf
11582  need_lib_prefix=no
11583  need_version=no
11584  soname_spec='$libname$release$shared_ext$major'
11585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586  shlibpath_var=LD_LIBRARY_PATH
11587  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11588  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11589  ;;
11590
11591rdos*)
11592  dynamic_linker=no
11593  ;;
11594
11595solaris*)
11596  version_type=linux # correct to gnu/linux during the next big refactor
11597  need_lib_prefix=no
11598  need_version=no
11599  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11600  soname_spec='$libname$release$shared_ext$major'
11601  shlibpath_var=LD_LIBRARY_PATH
11602  shlibpath_overrides_runpath=yes
11603  hardcode_into_libs=yes
11604  # ldd complains unless libraries are executable
11605  postinstall_cmds='chmod +x $lib'
11606  ;;
11607
11608sunos4*)
11609  version_type=sunos
11610  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11611  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11612  shlibpath_var=LD_LIBRARY_PATH
11613  shlibpath_overrides_runpath=yes
11614  if test yes = "$with_gnu_ld"; then
11615    need_lib_prefix=no
11616  fi
11617  need_version=yes
11618  ;;
11619
11620sysv4 | sysv4.3*)
11621  version_type=linux # correct to gnu/linux during the next big refactor
11622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623  soname_spec='$libname$release$shared_ext$major'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  case $host_vendor in
11626    sni)
11627      shlibpath_overrides_runpath=no
11628      need_lib_prefix=no
11629      runpath_var=LD_RUN_PATH
11630      ;;
11631    siemens)
11632      need_lib_prefix=no
11633      ;;
11634    motorola)
11635      need_lib_prefix=no
11636      need_version=no
11637      shlibpath_overrides_runpath=no
11638      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11639      ;;
11640  esac
11641  ;;
11642
11643sysv4*MP*)
11644  if test -d /usr/nec; then
11645    version_type=linux # correct to gnu/linux during the next big refactor
11646    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11647    soname_spec='$libname$shared_ext.$major'
11648    shlibpath_var=LD_LIBRARY_PATH
11649  fi
11650  ;;
11651
11652sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11653  version_type=sco
11654  need_lib_prefix=no
11655  need_version=no
11656  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11657  soname_spec='$libname$release$shared_ext$major'
11658  shlibpath_var=LD_LIBRARY_PATH
11659  shlibpath_overrides_runpath=yes
11660  hardcode_into_libs=yes
11661  if test yes = "$with_gnu_ld"; then
11662    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11663  else
11664    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11665    case $host_os in
11666      sco3.2v5*)
11667        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11668	;;
11669    esac
11670  fi
11671  sys_lib_dlsearch_path_spec='/usr/lib'
11672  ;;
11673
11674tpf*)
11675  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11676  version_type=linux # correct to gnu/linux during the next big refactor
11677  need_lib_prefix=no
11678  need_version=no
11679  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680  shlibpath_var=LD_LIBRARY_PATH
11681  shlibpath_overrides_runpath=no
11682  hardcode_into_libs=yes
11683  ;;
11684
11685uts4*)
11686  version_type=linux # correct to gnu/linux during the next big refactor
11687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11688  soname_spec='$libname$release$shared_ext$major'
11689  shlibpath_var=LD_LIBRARY_PATH
11690  ;;
11691
11692*)
11693  dynamic_linker=no
11694  ;;
11695esac
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11697$as_echo "$dynamic_linker" >&6; }
11698test no = "$dynamic_linker" && can_build_shared=no
11699
11700variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11701if test yes = "$GCC"; then
11702  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11703fi
11704
11705if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11706  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11707fi
11708
11709if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11710  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11711fi
11712
11713# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11714configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11715
11716# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11717func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11718
11719# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11720configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11819$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11820hardcode_action=
11821if test -n "$hardcode_libdir_flag_spec" ||
11822   test -n "$runpath_var" ||
11823   test yes = "$hardcode_automatic"; then
11824
11825  # We can hardcode non-existent directories.
11826  if test no != "$hardcode_direct" &&
11827     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11828     # have to relink, otherwise we might link with an installed library
11829     # when we should be linking with a yet-to-be-installed one
11830     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11831     test no != "$hardcode_minus_L"; then
11832    # Linking always hardcodes the temporary library directory.
11833    hardcode_action=relink
11834  else
11835    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11836    hardcode_action=immediate
11837  fi
11838else
11839  # We cannot hardcode anything, or else we can only hardcode existing
11840  # directories.
11841  hardcode_action=unsupported
11842fi
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11844$as_echo "$hardcode_action" >&6; }
11845
11846if test relink = "$hardcode_action" ||
11847   test yes = "$inherit_rpath"; then
11848  # Fast installation is not supported
11849  enable_fast_install=no
11850elif test yes = "$shlibpath_overrides_runpath" ||
11851     test no = "$enable_shared"; then
11852  # Fast installation is not necessary
11853  enable_fast_install=needless
11854fi
11855
11856
11857
11858
11859
11860
11861  if test yes != "$enable_dlopen"; then
11862  enable_dlopen=unknown
11863  enable_dlopen_self=unknown
11864  enable_dlopen_self_static=unknown
11865else
11866  lt_cv_dlopen=no
11867  lt_cv_dlopen_libs=
11868
11869  case $host_os in
11870  beos*)
11871    lt_cv_dlopen=load_add_on
11872    lt_cv_dlopen_libs=
11873    lt_cv_dlopen_self=yes
11874    ;;
11875
11876  mingw* | pw32* | cegcc*)
11877    lt_cv_dlopen=LoadLibrary
11878    lt_cv_dlopen_libs=
11879    ;;
11880
11881  cygwin*)
11882    lt_cv_dlopen=dlopen
11883    lt_cv_dlopen_libs=
11884    ;;
11885
11886  darwin*)
11887    # if libdl is installed we need to link against it
11888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11889$as_echo_n "checking for dlopen in -ldl... " >&6; }
11890if ${ac_cv_lib_dl_dlopen+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  ac_check_lib_save_LIBS=$LIBS
11894LIBS="-ldl  $LIBS"
11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h.  */
11897
11898/* Override any GCC internal prototype to avoid an error.
11899   Use char because int might match the return type of a GCC
11900   builtin and then its argument prototype would still apply.  */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char dlopen ();
11905int
11906main ()
11907{
11908return dlopen ();
11909  ;
11910  return 0;
11911}
11912_ACEOF
11913if ac_fn_c_try_link "$LINENO"; then :
11914  ac_cv_lib_dl_dlopen=yes
11915else
11916  ac_cv_lib_dl_dlopen=no
11917fi
11918rm -f core conftest.err conftest.$ac_objext \
11919    conftest$ac_exeext conftest.$ac_ext
11920LIBS=$ac_check_lib_save_LIBS
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11923$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11924if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11925  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11926else
11927
11928    lt_cv_dlopen=dyld
11929    lt_cv_dlopen_libs=
11930    lt_cv_dlopen_self=yes
11931
11932fi
11933
11934    ;;
11935
11936  tpf*)
11937    # Don't try to run any link tests for TPF.  We know it's impossible
11938    # because TPF is a cross-compiler, and we know how we open DSOs.
11939    lt_cv_dlopen=dlopen
11940    lt_cv_dlopen_libs=
11941    lt_cv_dlopen_self=no
11942    ;;
11943
11944  *)
11945    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11946if test "x$ac_cv_func_shl_load" = xyes; then :
11947  lt_cv_dlopen=shl_load
11948else
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11950$as_echo_n "checking for shl_load in -ldld... " >&6; }
11951if ${ac_cv_lib_dld_shl_load+:} false; then :
11952  $as_echo_n "(cached) " >&6
11953else
11954  ac_check_lib_save_LIBS=$LIBS
11955LIBS="-ldld  $LIBS"
11956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h.  */
11958
11959/* Override any GCC internal prototype to avoid an error.
11960   Use char because int might match the return type of a GCC
11961   builtin and then its argument prototype would still apply.  */
11962#ifdef __cplusplus
11963extern "C"
11964#endif
11965char shl_load ();
11966int
11967main ()
11968{
11969return shl_load ();
11970  ;
11971  return 0;
11972}
11973_ACEOF
11974if ac_fn_c_try_link "$LINENO"; then :
11975  ac_cv_lib_dld_shl_load=yes
11976else
11977  ac_cv_lib_dld_shl_load=no
11978fi
11979rm -f core conftest.err conftest.$ac_objext \
11980    conftest$ac_exeext conftest.$ac_ext
11981LIBS=$ac_check_lib_save_LIBS
11982fi
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11984$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11985if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11986  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11987else
11988  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11989if test "x$ac_cv_func_dlopen" = xyes; then :
11990  lt_cv_dlopen=dlopen
11991else
11992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11993$as_echo_n "checking for dlopen in -ldl... " >&6; }
11994if ${ac_cv_lib_dl_dlopen+:} false; then :
11995  $as_echo_n "(cached) " >&6
11996else
11997  ac_check_lib_save_LIBS=$LIBS
11998LIBS="-ldl  $LIBS"
11999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000/* end confdefs.h.  */
12001
12002/* Override any GCC internal prototype to avoid an error.
12003   Use char because int might match the return type of a GCC
12004   builtin and then its argument prototype would still apply.  */
12005#ifdef __cplusplus
12006extern "C"
12007#endif
12008char dlopen ();
12009int
12010main ()
12011{
12012return dlopen ();
12013  ;
12014  return 0;
12015}
12016_ACEOF
12017if ac_fn_c_try_link "$LINENO"; then :
12018  ac_cv_lib_dl_dlopen=yes
12019else
12020  ac_cv_lib_dl_dlopen=no
12021fi
12022rm -f core conftest.err conftest.$ac_objext \
12023    conftest$ac_exeext conftest.$ac_ext
12024LIBS=$ac_check_lib_save_LIBS
12025fi
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12027$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12028if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12029  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12030else
12031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12032$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12033if ${ac_cv_lib_svld_dlopen+:} false; then :
12034  $as_echo_n "(cached) " >&6
12035else
12036  ac_check_lib_save_LIBS=$LIBS
12037LIBS="-lsvld  $LIBS"
12038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039/* end confdefs.h.  */
12040
12041/* Override any GCC internal prototype to avoid an error.
12042   Use char because int might match the return type of a GCC
12043   builtin and then its argument prototype would still apply.  */
12044#ifdef __cplusplus
12045extern "C"
12046#endif
12047char dlopen ();
12048int
12049main ()
12050{
12051return dlopen ();
12052  ;
12053  return 0;
12054}
12055_ACEOF
12056if ac_fn_c_try_link "$LINENO"; then :
12057  ac_cv_lib_svld_dlopen=yes
12058else
12059  ac_cv_lib_svld_dlopen=no
12060fi
12061rm -f core conftest.err conftest.$ac_objext \
12062    conftest$ac_exeext conftest.$ac_ext
12063LIBS=$ac_check_lib_save_LIBS
12064fi
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12066$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12067if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12068  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12069else
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12071$as_echo_n "checking for dld_link in -ldld... " >&6; }
12072if ${ac_cv_lib_dld_dld_link+:} false; then :
12073  $as_echo_n "(cached) " >&6
12074else
12075  ac_check_lib_save_LIBS=$LIBS
12076LIBS="-ldld  $LIBS"
12077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h.  */
12079
12080/* Override any GCC internal prototype to avoid an error.
12081   Use char because int might match the return type of a GCC
12082   builtin and then its argument prototype would still apply.  */
12083#ifdef __cplusplus
12084extern "C"
12085#endif
12086char dld_link ();
12087int
12088main ()
12089{
12090return dld_link ();
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095if ac_fn_c_try_link "$LINENO"; then :
12096  ac_cv_lib_dld_dld_link=yes
12097else
12098  ac_cv_lib_dld_dld_link=no
12099fi
12100rm -f core conftest.err conftest.$ac_objext \
12101    conftest$ac_exeext conftest.$ac_ext
12102LIBS=$ac_check_lib_save_LIBS
12103fi
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12105$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12106if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12107  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12108fi
12109
12110
12111fi
12112
12113
12114fi
12115
12116
12117fi
12118
12119
12120fi
12121
12122
12123fi
12124
12125    ;;
12126  esac
12127
12128  if test no = "$lt_cv_dlopen"; then
12129    enable_dlopen=no
12130  else
12131    enable_dlopen=yes
12132  fi
12133
12134  case $lt_cv_dlopen in
12135  dlopen)
12136    save_CPPFLAGS=$CPPFLAGS
12137    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12138
12139    save_LDFLAGS=$LDFLAGS
12140    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12141
12142    save_LIBS=$LIBS
12143    LIBS="$lt_cv_dlopen_libs $LIBS"
12144
12145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12146$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12147if ${lt_cv_dlopen_self+:} false; then :
12148  $as_echo_n "(cached) " >&6
12149else
12150  	  if test yes = "$cross_compiling"; then :
12151  lt_cv_dlopen_self=cross
12152else
12153  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12154  lt_status=$lt_dlunknown
12155  cat > conftest.$ac_ext <<_LT_EOF
12156#line $LINENO "configure"
12157#include "confdefs.h"
12158
12159#if HAVE_DLFCN_H
12160#include <dlfcn.h>
12161#endif
12162
12163#include <stdio.h>
12164
12165#ifdef RTLD_GLOBAL
12166#  define LT_DLGLOBAL		RTLD_GLOBAL
12167#else
12168#  ifdef DL_GLOBAL
12169#    define LT_DLGLOBAL		DL_GLOBAL
12170#  else
12171#    define LT_DLGLOBAL		0
12172#  endif
12173#endif
12174
12175/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12176   find out it does not work in some platform. */
12177#ifndef LT_DLLAZY_OR_NOW
12178#  ifdef RTLD_LAZY
12179#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12180#  else
12181#    ifdef DL_LAZY
12182#      define LT_DLLAZY_OR_NOW		DL_LAZY
12183#    else
12184#      ifdef RTLD_NOW
12185#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12186#      else
12187#        ifdef DL_NOW
12188#          define LT_DLLAZY_OR_NOW	DL_NOW
12189#        else
12190#          define LT_DLLAZY_OR_NOW	0
12191#        endif
12192#      endif
12193#    endif
12194#  endif
12195#endif
12196
12197/* When -fvisibility=hidden is used, assume the code has been annotated
12198   correspondingly for the symbols needed.  */
12199#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12200int fnord () __attribute__((visibility("default")));
12201#endif
12202
12203int fnord () { return 42; }
12204int main ()
12205{
12206  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12207  int status = $lt_dlunknown;
12208
12209  if (self)
12210    {
12211      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12212      else
12213        {
12214	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12215          else puts (dlerror ());
12216	}
12217      /* dlclose (self); */
12218    }
12219  else
12220    puts (dlerror ());
12221
12222  return status;
12223}
12224_LT_EOF
12225  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12226  (eval $ac_link) 2>&5
12227  ac_status=$?
12228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12229  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12230    (./conftest; exit; ) >&5 2>/dev/null
12231    lt_status=$?
12232    case x$lt_status in
12233      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12234      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12235      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12236    esac
12237  else :
12238    # compilation failed
12239    lt_cv_dlopen_self=no
12240  fi
12241fi
12242rm -fr conftest*
12243
12244
12245fi
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12247$as_echo "$lt_cv_dlopen_self" >&6; }
12248
12249    if test yes = "$lt_cv_dlopen_self"; then
12250      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12251      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12252$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12253if ${lt_cv_dlopen_self_static+:} false; then :
12254  $as_echo_n "(cached) " >&6
12255else
12256  	  if test yes = "$cross_compiling"; then :
12257  lt_cv_dlopen_self_static=cross
12258else
12259  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12260  lt_status=$lt_dlunknown
12261  cat > conftest.$ac_ext <<_LT_EOF
12262#line $LINENO "configure"
12263#include "confdefs.h"
12264
12265#if HAVE_DLFCN_H
12266#include <dlfcn.h>
12267#endif
12268
12269#include <stdio.h>
12270
12271#ifdef RTLD_GLOBAL
12272#  define LT_DLGLOBAL		RTLD_GLOBAL
12273#else
12274#  ifdef DL_GLOBAL
12275#    define LT_DLGLOBAL		DL_GLOBAL
12276#  else
12277#    define LT_DLGLOBAL		0
12278#  endif
12279#endif
12280
12281/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12282   find out it does not work in some platform. */
12283#ifndef LT_DLLAZY_OR_NOW
12284#  ifdef RTLD_LAZY
12285#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12286#  else
12287#    ifdef DL_LAZY
12288#      define LT_DLLAZY_OR_NOW		DL_LAZY
12289#    else
12290#      ifdef RTLD_NOW
12291#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12292#      else
12293#        ifdef DL_NOW
12294#          define LT_DLLAZY_OR_NOW	DL_NOW
12295#        else
12296#          define LT_DLLAZY_OR_NOW	0
12297#        endif
12298#      endif
12299#    endif
12300#  endif
12301#endif
12302
12303/* When -fvisibility=hidden is used, assume the code has been annotated
12304   correspondingly for the symbols needed.  */
12305#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12306int fnord () __attribute__((visibility("default")));
12307#endif
12308
12309int fnord () { return 42; }
12310int main ()
12311{
12312  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12313  int status = $lt_dlunknown;
12314
12315  if (self)
12316    {
12317      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12318      else
12319        {
12320	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12321          else puts (dlerror ());
12322	}
12323      /* dlclose (self); */
12324    }
12325  else
12326    puts (dlerror ());
12327
12328  return status;
12329}
12330_LT_EOF
12331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12332  (eval $ac_link) 2>&5
12333  ac_status=$?
12334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12335  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12336    (./conftest; exit; ) >&5 2>/dev/null
12337    lt_status=$?
12338    case x$lt_status in
12339      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12340      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12341      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12342    esac
12343  else :
12344    # compilation failed
12345    lt_cv_dlopen_self_static=no
12346  fi
12347fi
12348rm -fr conftest*
12349
12350
12351fi
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12353$as_echo "$lt_cv_dlopen_self_static" >&6; }
12354    fi
12355
12356    CPPFLAGS=$save_CPPFLAGS
12357    LDFLAGS=$save_LDFLAGS
12358    LIBS=$save_LIBS
12359    ;;
12360  esac
12361
12362  case $lt_cv_dlopen_self in
12363  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12364  *) enable_dlopen_self=unknown ;;
12365  esac
12366
12367  case $lt_cv_dlopen_self_static in
12368  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12369  *) enable_dlopen_self_static=unknown ;;
12370  esac
12371fi
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389striplib=
12390old_striplib=
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12392$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12393if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12394  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12395  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12397$as_echo "yes" >&6; }
12398else
12399# FIXME - insert some real tests, host_os isn't really good enough
12400  case $host_os in
12401  darwin*)
12402    if test -n "$STRIP"; then
12403      striplib="$STRIP -x"
12404      old_striplib="$STRIP -S"
12405      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12406$as_echo "yes" >&6; }
12407    else
12408      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410    fi
12411    ;;
12412  *)
12413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414$as_echo "no" >&6; }
12415    ;;
12416  esac
12417fi
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430  # Report what library types will actually be built
12431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12432$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12434$as_echo "$can_build_shared" >&6; }
12435
12436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12437$as_echo_n "checking whether to build shared libraries... " >&6; }
12438  test no = "$can_build_shared" && enable_shared=no
12439
12440  # On AIX, shared libraries and static libraries use the same namespace, and
12441  # are all built from PIC.
12442  case $host_os in
12443  aix3*)
12444    test yes = "$enable_shared" && enable_static=no
12445    if test -n "$RANLIB"; then
12446      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12447      postinstall_cmds='$RANLIB $lib'
12448    fi
12449    ;;
12450
12451  aix[4-9]*)
12452    if test ia64 != "$host_cpu"; then
12453      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12454      yes,aix,yes) ;;			# shared object as lib.so file only
12455      yes,svr4,*) ;;			# shared object as lib.so archive member only
12456      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12457      esac
12458    fi
12459    ;;
12460  esac
12461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12462$as_echo "$enable_shared" >&6; }
12463
12464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12465$as_echo_n "checking whether to build static libraries... " >&6; }
12466  # Make sure either enable_shared or enable_static is yes.
12467  test yes = "$enable_shared" || enable_static=yes
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12469$as_echo "$enable_static" >&6; }
12470
12471
12472
12473
12474fi
12475ac_ext=c
12476ac_cpp='$CPP $CPPFLAGS'
12477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479ac_compiler_gnu=$ac_cv_c_compiler_gnu
12480
12481CC=$lt_save_CC
12482
12483      if test -n "$CXX" && ( test no != "$CXX" &&
12484    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12485    (test g++ != "$CXX"))); then
12486  ac_ext=cpp
12487ac_cpp='$CXXCPP $CPPFLAGS'
12488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12492$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12493if test -z "$CXXCPP"; then
12494  if ${ac_cv_prog_CXXCPP+:} false; then :
12495  $as_echo_n "(cached) " >&6
12496else
12497      # Double quotes because CXXCPP needs to be expanded
12498    for CXXCPP in "$CXX -E" "/lib/cpp"
12499    do
12500      ac_preproc_ok=false
12501for ac_cxx_preproc_warn_flag in '' yes
12502do
12503  # Use a header file that comes with gcc, so configuring glibc
12504  # with a fresh cross-compiler works.
12505  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506  # <limits.h> exists even on freestanding compilers.
12507  # On the NeXT, cc -E runs the code through the compiler's parser,
12508  # not just through cpp. "Syntax error" is here to catch this case.
12509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h.  */
12511@%:@ifdef __STDC__
12512@%:@ include <limits.h>
12513@%:@else
12514@%:@ include <assert.h>
12515@%:@endif
12516		     Syntax error
12517_ACEOF
12518if ac_fn_cxx_try_cpp "$LINENO"; then :
12519
12520else
12521  # Broken: fails on valid input.
12522continue
12523fi
12524rm -f conftest.err conftest.i conftest.$ac_ext
12525
12526  # OK, works on sane cases.  Now check whether nonexistent headers
12527  # can be detected and how.
12528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529/* end confdefs.h.  */
12530@%:@include <ac_nonexistent.h>
12531_ACEOF
12532if ac_fn_cxx_try_cpp "$LINENO"; then :
12533  # Broken: success on invalid input.
12534continue
12535else
12536  # Passes both tests.
12537ac_preproc_ok=:
12538break
12539fi
12540rm -f conftest.err conftest.i conftest.$ac_ext
12541
12542done
12543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12544rm -f conftest.i conftest.err conftest.$ac_ext
12545if $ac_preproc_ok; then :
12546  break
12547fi
12548
12549    done
12550    ac_cv_prog_CXXCPP=$CXXCPP
12551
12552fi
12553  CXXCPP=$ac_cv_prog_CXXCPP
12554else
12555  ac_cv_prog_CXXCPP=$CXXCPP
12556fi
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12558$as_echo "$CXXCPP" >&6; }
12559ac_preproc_ok=false
12560for ac_cxx_preproc_warn_flag in '' yes
12561do
12562  # Use a header file that comes with gcc, so configuring glibc
12563  # with a fresh cross-compiler works.
12564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12565  # <limits.h> exists even on freestanding compilers.
12566  # On the NeXT, cc -E runs the code through the compiler's parser,
12567  # not just through cpp. "Syntax error" is here to catch this case.
12568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570@%:@ifdef __STDC__
12571@%:@ include <limits.h>
12572@%:@else
12573@%:@ include <assert.h>
12574@%:@endif
12575		     Syntax error
12576_ACEOF
12577if ac_fn_cxx_try_cpp "$LINENO"; then :
12578
12579else
12580  # Broken: fails on valid input.
12581continue
12582fi
12583rm -f conftest.err conftest.i conftest.$ac_ext
12584
12585  # OK, works on sane cases.  Now check whether nonexistent headers
12586  # can be detected and how.
12587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588/* end confdefs.h.  */
12589@%:@include <ac_nonexistent.h>
12590_ACEOF
12591if ac_fn_cxx_try_cpp "$LINENO"; then :
12592  # Broken: success on invalid input.
12593continue
12594else
12595  # Passes both tests.
12596ac_preproc_ok=:
12597break
12598fi
12599rm -f conftest.err conftest.i conftest.$ac_ext
12600
12601done
12602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12603rm -f conftest.i conftest.err conftest.$ac_ext
12604if $ac_preproc_ok; then :
12605
12606else
12607  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12609as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12610See \`config.log' for more details" "$LINENO" 5; }
12611fi
12612
12613ac_ext=c
12614ac_cpp='$CPP $CPPFLAGS'
12615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12617ac_compiler_gnu=$ac_cv_c_compiler_gnu
12618
12619else
12620  _lt_caught_CXX_error=yes
12621fi
12622
12623ac_ext=cpp
12624ac_cpp='$CXXCPP $CPPFLAGS'
12625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12628
12629archive_cmds_need_lc_CXX=no
12630allow_undefined_flag_CXX=
12631always_export_symbols_CXX=no
12632archive_expsym_cmds_CXX=
12633compiler_needs_object_CXX=no
12634export_dynamic_flag_spec_CXX=
12635hardcode_direct_CXX=no
12636hardcode_direct_absolute_CXX=no
12637hardcode_libdir_flag_spec_CXX=
12638hardcode_libdir_separator_CXX=
12639hardcode_minus_L_CXX=no
12640hardcode_shlibpath_var_CXX=unsupported
12641hardcode_automatic_CXX=no
12642inherit_rpath_CXX=no
12643module_cmds_CXX=
12644module_expsym_cmds_CXX=
12645link_all_deplibs_CXX=unknown
12646old_archive_cmds_CXX=$old_archive_cmds
12647reload_flag_CXX=$reload_flag
12648reload_cmds_CXX=$reload_cmds
12649no_undefined_flag_CXX=
12650whole_archive_flag_spec_CXX=
12651enable_shared_with_static_runtimes_CXX=no
12652
12653# Source file extension for C++ test sources.
12654ac_ext=cpp
12655
12656# Object file extension for compiled C++ test sources.
12657objext=o
12658objext_CXX=$objext
12659
12660# No sense in running all these tests if we already determined that
12661# the CXX compiler isn't working.  Some variables (like enable_shared)
12662# are currently assumed to apply to all compilers on this platform,
12663# and will be corrupted by setting them based on a non-working compiler.
12664if test yes != "$_lt_caught_CXX_error"; then
12665  # Code to be used in simple compile tests
12666  lt_simple_compile_test_code="int some_variable = 0;"
12667
12668  # Code to be used in simple link tests
12669  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12670
12671  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12672
12673
12674
12675
12676
12677
12678# If no C compiler was specified, use CC.
12679LTCC=${LTCC-"$CC"}
12680
12681# If no C compiler flags were specified, use CFLAGS.
12682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12683
12684# Allow CC to be a program name with arguments.
12685compiler=$CC
12686
12687
12688  # save warnings/boilerplate of simple test code
12689  ac_outfile=conftest.$ac_objext
12690echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12692_lt_compiler_boilerplate=`cat conftest.err`
12693$RM conftest*
12694
12695  ac_outfile=conftest.$ac_objext
12696echo "$lt_simple_link_test_code" >conftest.$ac_ext
12697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12698_lt_linker_boilerplate=`cat conftest.err`
12699$RM -r conftest*
12700
12701
12702  # Allow CC to be a program name with arguments.
12703  lt_save_CC=$CC
12704  lt_save_CFLAGS=$CFLAGS
12705  lt_save_LD=$LD
12706  lt_save_GCC=$GCC
12707  GCC=$GXX
12708  lt_save_with_gnu_ld=$with_gnu_ld
12709  lt_save_path_LD=$lt_cv_path_LD
12710  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12711    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12712  else
12713    $as_unset lt_cv_prog_gnu_ld
12714  fi
12715  if test -n "${lt_cv_path_LDCXX+set}"; then
12716    lt_cv_path_LD=$lt_cv_path_LDCXX
12717  else
12718    $as_unset lt_cv_path_LD
12719  fi
12720  test -z "${LDCXX+set}" || LD=$LDCXX
12721  CC=${CXX-"c++"}
12722  CFLAGS=$CXXFLAGS
12723  compiler=$CC
12724  compiler_CXX=$CC
12725  func_cc_basename $compiler
12726cc_basename=$func_cc_basename_result
12727
12728
12729  if test -n "$compiler"; then
12730    # We don't want -fno-exception when compiling C++ code, so set the
12731    # no_builtin_flag separately
12732    if test yes = "$GXX"; then
12733      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12734    else
12735      lt_prog_compiler_no_builtin_flag_CXX=
12736    fi
12737
12738    if test yes = "$GXX"; then
12739      # Set up default GNU C++ configuration
12740
12741
12742
12743@%:@ Check whether --with-gnu-ld was given.
12744if test "${with_gnu_ld+set}" = set; then :
12745  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12746else
12747  with_gnu_ld=no
12748fi
12749
12750ac_prog=ld
12751if test yes = "$GCC"; then
12752  # Check if gcc -print-prog-name=ld gives a path.
12753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12754$as_echo_n "checking for ld used by $CC... " >&6; }
12755  case $host in
12756  *-*-mingw*)
12757    # gcc leaves a trailing carriage return, which upsets mingw
12758    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12759  *)
12760    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12761  esac
12762  case $ac_prog in
12763    # Accept absolute paths.
12764    [\\/]* | ?:[\\/]*)
12765      re_direlt='/[^/][^/]*/\.\./'
12766      # Canonicalize the pathname of ld
12767      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12768      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12769	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12770      done
12771      test -z "$LD" && LD=$ac_prog
12772      ;;
12773  "")
12774    # If it fails, then pretend we aren't using GCC.
12775    ac_prog=ld
12776    ;;
12777  *)
12778    # If it is relative, then search for the first ld in PATH.
12779    with_gnu_ld=unknown
12780    ;;
12781  esac
12782elif test yes = "$with_gnu_ld"; then
12783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12784$as_echo_n "checking for GNU ld... " >&6; }
12785else
12786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12787$as_echo_n "checking for non-GNU ld... " >&6; }
12788fi
12789if ${lt_cv_path_LD+:} false; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792  if test -z "$LD"; then
12793  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12794  for ac_dir in $PATH; do
12795    IFS=$lt_save_ifs
12796    test -z "$ac_dir" && ac_dir=.
12797    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12798      lt_cv_path_LD=$ac_dir/$ac_prog
12799      # Check to see if the program is GNU ld.  I'd rather use --version,
12800      # but apparently some variants of GNU ld only accept -v.
12801      # Break only if it was the GNU/non-GNU ld that we prefer.
12802      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12803      *GNU* | *'with BFD'*)
12804	test no != "$with_gnu_ld" && break
12805	;;
12806      *)
12807	test yes != "$with_gnu_ld" && break
12808	;;
12809      esac
12810    fi
12811  done
12812  IFS=$lt_save_ifs
12813else
12814  lt_cv_path_LD=$LD # Let the user override the test with a path.
12815fi
12816fi
12817
12818LD=$lt_cv_path_LD
12819if test -n "$LD"; then
12820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12821$as_echo "$LD" >&6; }
12822else
12823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824$as_echo "no" >&6; }
12825fi
12826test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12828$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12829if ${lt_cv_prog_gnu_ld+:} false; then :
12830  $as_echo_n "(cached) " >&6
12831else
12832  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12833case `$LD -v 2>&1 </dev/null` in
12834*GNU* | *'with BFD'*)
12835  lt_cv_prog_gnu_ld=yes
12836  ;;
12837*)
12838  lt_cv_prog_gnu_ld=no
12839  ;;
12840esac
12841fi
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12843$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12844with_gnu_ld=$lt_cv_prog_gnu_ld
12845
12846
12847
12848
12849
12850
12851
12852      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12853      # archiving commands below assume that GNU ld is being used.
12854      if test yes = "$with_gnu_ld"; then
12855        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12856        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12857
12858        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12859        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12860
12861        # If archive_cmds runs LD, not CC, wlarc should be empty
12862        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12863        #     investigate it a little bit more. (MM)
12864        wlarc='$wl'
12865
12866        # ancient GNU ld didn't support --whole-archive et. al.
12867        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12868	  $GREP 'no-whole-archive' > /dev/null; then
12869          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12870        else
12871          whole_archive_flag_spec_CXX=
12872        fi
12873      else
12874        with_gnu_ld=no
12875        wlarc=
12876
12877        # A generic and very simple default shared library creation
12878        # command for GNU C++ for the case where it uses the native
12879        # linker, instead of GNU ld.  If possible, this setting should
12880        # overridden to take advantage of the native linker features on
12881        # the platform it is being used on.
12882        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12883      fi
12884
12885      # Commands to make compiler produce verbose output that lists
12886      # what "hidden" libraries, object files and flags are used when
12887      # linking a shared library.
12888      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12889
12890    else
12891      GXX=no
12892      with_gnu_ld=no
12893      wlarc=
12894    fi
12895
12896    # PORTME: fill in a description of your system's C++ link characteristics
12897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12898$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12899    ld_shlibs_CXX=yes
12900    case $host_os in
12901      aix3*)
12902        # FIXME: insert proper C++ library support
12903        ld_shlibs_CXX=no
12904        ;;
12905      aix[4-9]*)
12906        if test ia64 = "$host_cpu"; then
12907          # On IA64, the linker does run time linking by default, so we don't
12908          # have to do anything special.
12909          aix_use_runtimelinking=no
12910          exp_sym_flag='-Bexport'
12911          no_entry_flag=
12912        else
12913          aix_use_runtimelinking=no
12914
12915          # Test if we are trying to use run time linking or normal
12916          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12917          # have runtime linking enabled, and use it for executables.
12918          # For shared libraries, we enable/disable runtime linking
12919          # depending on the kind of the shared library created -
12920          # when "with_aix_soname,aix_use_runtimelinking" is:
12921          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12922          # "aix,yes"  lib.so          shared, rtl:yes, for executables
12923          #            lib.a           static archive
12924          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12925          #            lib.a(lib.so.V) shared, rtl:no,  for executables
12926          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12927          #            lib.a(lib.so.V) shared, rtl:no
12928          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12929          #            lib.a           static archive
12930          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12931	    for ld_flag in $LDFLAGS; do
12932	      case $ld_flag in
12933	      *-brtl*)
12934	        aix_use_runtimelinking=yes
12935	        break
12936	        ;;
12937	      esac
12938	    done
12939	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12940	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
12941	      # so we don't have lib.a shared libs to link our executables.
12942	      # We have to force runtime linking in this case.
12943	      aix_use_runtimelinking=yes
12944	      LDFLAGS="$LDFLAGS -Wl,-brtl"
12945	    fi
12946	    ;;
12947          esac
12948
12949          exp_sym_flag='-bexport'
12950          no_entry_flag='-bnoentry'
12951        fi
12952
12953        # When large executables or shared objects are built, AIX ld can
12954        # have problems creating the table of contents.  If linking a library
12955        # or program results in "error TOC overflow" add -mminimal-toc to
12956        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12957        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12958
12959        archive_cmds_CXX=''
12960        hardcode_direct_CXX=yes
12961        hardcode_direct_absolute_CXX=yes
12962        hardcode_libdir_separator_CXX=':'
12963        link_all_deplibs_CXX=yes
12964        file_list_spec_CXX='$wl-f,'
12965        case $with_aix_soname,$aix_use_runtimelinking in
12966        aix,*) ;;	# no import file
12967        svr4,* | *,yes) # use import file
12968          # The Import File defines what to hardcode.
12969          hardcode_direct_CXX=no
12970          hardcode_direct_absolute_CXX=no
12971          ;;
12972        esac
12973
12974        if test yes = "$GXX"; then
12975          case $host_os in aix4.[012]|aix4.[012].*)
12976          # We only want to do this on AIX 4.2 and lower, the check
12977          # below for broken collect2 doesn't work under 4.3+
12978	  collect2name=`$CC -print-prog-name=collect2`
12979	  if test -f "$collect2name" &&
12980	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12981	  then
12982	    # We have reworked collect2
12983	    :
12984	  else
12985	    # We have old collect2
12986	    hardcode_direct_CXX=unsupported
12987	    # It fails to find uninstalled libraries when the uninstalled
12988	    # path is not listed in the libpath.  Setting hardcode_minus_L
12989	    # to unsupported forces relinking
12990	    hardcode_minus_L_CXX=yes
12991	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12992	    hardcode_libdir_separator_CXX=
12993	  fi
12994          esac
12995          shared_flag='-shared'
12996	  if test yes = "$aix_use_runtimelinking"; then
12997	    shared_flag=$shared_flag' $wl-G'
12998	  fi
12999	  # Need to ensure runtime linking is disabled for the traditional
13000	  # shared library, or the linker may eventually find shared libraries
13001	  # /with/ Import File - we do not want to mix them.
13002	  shared_flag_aix='-shared'
13003	  shared_flag_svr4='-shared $wl-G'
13004        else
13005          # not using gcc
13006          if test ia64 = "$host_cpu"; then
13007	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13008	  # chokes on -Wl,-G. The following line is correct:
13009	  shared_flag='-G'
13010          else
13011	    if test yes = "$aix_use_runtimelinking"; then
13012	      shared_flag='$wl-G'
13013	    else
13014	      shared_flag='$wl-bM:SRE'
13015	    fi
13016	    shared_flag_aix='$wl-bM:SRE'
13017	    shared_flag_svr4='$wl-G'
13018          fi
13019        fi
13020
13021        export_dynamic_flag_spec_CXX='$wl-bexpall'
13022        # It seems that -bexpall does not export symbols beginning with
13023        # underscore (_), so it is better to generate a list of symbols to
13024	# export.
13025        always_export_symbols_CXX=yes
13026	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13027          # Warning - without using the other runtime loading flags (-brtl),
13028          # -berok will link without error, but may produce a broken library.
13029          # The "-G" linker flag allows undefined symbols.
13030          no_undefined_flag_CXX='-bernotok'
13031          # Determine the default libpath from the value encoded in an empty
13032          # executable.
13033          if test set = "${lt_cv_aix_libpath+set}"; then
13034  aix_libpath=$lt_cv_aix_libpath
13035else
13036  if ${lt_cv_aix_libpath__CXX+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h.  */
13041
13042int
13043main ()
13044{
13045
13046  ;
13047  return 0;
13048}
13049_ACEOF
13050if ac_fn_cxx_try_link "$LINENO"; then :
13051
13052  lt_aix_libpath_sed='
13053      /Import File Strings/,/^$/ {
13054	  /^0/ {
13055	      s/^0  *\([^ ]*\) *$/\1/
13056	      p
13057	  }
13058      }'
13059  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060  # Check for a 64-bit object if we didn't find anything.
13061  if test -z "$lt_cv_aix_libpath__CXX"; then
13062    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13063  fi
13064fi
13065rm -f core conftest.err conftest.$ac_objext \
13066    conftest$ac_exeext conftest.$ac_ext
13067  if test -z "$lt_cv_aix_libpath__CXX"; then
13068    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13069  fi
13070
13071fi
13072
13073  aix_libpath=$lt_cv_aix_libpath__CXX
13074fi
13075
13076          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13077
13078          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13079        else
13080          if test ia64 = "$host_cpu"; then
13081	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13082	    allow_undefined_flag_CXX="-z nodefs"
13083	    archive_expsym_cmds_CXX="\$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"
13084          else
13085	    # Determine the default libpath from the value encoded in an
13086	    # empty executable.
13087	    if test set = "${lt_cv_aix_libpath+set}"; then
13088  aix_libpath=$lt_cv_aix_libpath
13089else
13090  if ${lt_cv_aix_libpath__CXX+:} false; then :
13091  $as_echo_n "(cached) " >&6
13092else
13093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h.  */
13095
13096int
13097main ()
13098{
13099
13100  ;
13101  return 0;
13102}
13103_ACEOF
13104if ac_fn_cxx_try_link "$LINENO"; then :
13105
13106  lt_aix_libpath_sed='
13107      /Import File Strings/,/^$/ {
13108	  /^0/ {
13109	      s/^0  *\([^ ]*\) *$/\1/
13110	      p
13111	  }
13112      }'
13113  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13114  # Check for a 64-bit object if we didn't find anything.
13115  if test -z "$lt_cv_aix_libpath__CXX"; then
13116    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117  fi
13118fi
13119rm -f core conftest.err conftest.$ac_objext \
13120    conftest$ac_exeext conftest.$ac_ext
13121  if test -z "$lt_cv_aix_libpath__CXX"; then
13122    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13123  fi
13124
13125fi
13126
13127  aix_libpath=$lt_cv_aix_libpath__CXX
13128fi
13129
13130	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13131	    # Warning - without using the other run time loading flags,
13132	    # -berok will link without error, but may produce a broken library.
13133	    no_undefined_flag_CXX=' $wl-bernotok'
13134	    allow_undefined_flag_CXX=' $wl-berok'
13135	    if test yes = "$with_gnu_ld"; then
13136	      # We only use this code for GNU lds that support --whole-archive.
13137	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13138	    else
13139	      # Exported symbols can be pulled into shared objects from archives
13140	      whole_archive_flag_spec_CXX='$convenience'
13141	    fi
13142	    archive_cmds_need_lc_CXX=yes
13143	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13144	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13145	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13146	    if test svr4 != "$with_aix_soname"; then
13147	      # This is similar to how AIX traditionally builds its shared
13148	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13149	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13150	    fi
13151	    if test aix != "$with_aix_soname"; then
13152	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13153	    else
13154	      # used by -dlpreopen to get the symbols
13155	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13156	    fi
13157	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13158          fi
13159        fi
13160        ;;
13161
13162      beos*)
13163	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13164	  allow_undefined_flag_CXX=unsupported
13165	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13166	  # support --undefined.  This deserves some investigation.  FIXME
13167	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13168	else
13169	  ld_shlibs_CXX=no
13170	fi
13171	;;
13172
13173      chorus*)
13174        case $cc_basename in
13175          *)
13176	  # FIXME: insert proper C++ library support
13177	  ld_shlibs_CXX=no
13178	  ;;
13179        esac
13180        ;;
13181
13182      cygwin* | mingw* | pw32* | cegcc*)
13183	case $GXX,$cc_basename in
13184	,cl* | no,cl*)
13185	  # Native MSVC
13186	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13187	  # no search path for DLLs.
13188	  hardcode_libdir_flag_spec_CXX=' '
13189	  allow_undefined_flag_CXX=unsupported
13190	  always_export_symbols_CXX=yes
13191	  file_list_spec_CXX='@'
13192	  # Tell ltmain to make .lib files, not .a files.
13193	  libext=lib
13194	  # Tell ltmain to make .dll files, not .so files.
13195	  shrext_cmds=.dll
13196	  # FIXME: Setting linknames here is a bad hack.
13197	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13198	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13199              cp "$export_symbols" "$output_objdir/$soname.def";
13200              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13201            else
13202              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13203            fi~
13204            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13205            linknames='
13206	  # The linker will not automatically build a static lib if we build a DLL.
13207	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13208	  enable_shared_with_static_runtimes_CXX=yes
13209	  # Don't use ranlib
13210	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13211	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13212            lt_tool_outputfile="@TOOL_OUTPUT@"~
13213            case $lt_outputfile in
13214              *.exe|*.EXE) ;;
13215              *)
13216                lt_outputfile=$lt_outputfile.exe
13217                lt_tool_outputfile=$lt_tool_outputfile.exe
13218                ;;
13219            esac~
13220            func_to_tool_file "$lt_outputfile"~
13221            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13222              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13223              $RM "$lt_outputfile.manifest";
13224            fi'
13225	  ;;
13226	*)
13227	  # g++
13228	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13229	  # as there is no search path for DLLs.
13230	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13231	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13232	  allow_undefined_flag_CXX=unsupported
13233	  always_export_symbols_CXX=no
13234	  enable_shared_with_static_runtimes_CXX=yes
13235
13236	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13237	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13238	    # If the export-symbols file already is a .def file, use it as
13239	    # is; otherwise, prepend EXPORTS...
13240	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13241              cp $export_symbols $output_objdir/$soname.def;
13242            else
13243              echo EXPORTS > $output_objdir/$soname.def;
13244              cat $export_symbols >> $output_objdir/$soname.def;
13245            fi~
13246            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13247	  else
13248	    ld_shlibs_CXX=no
13249	  fi
13250	  ;;
13251	esac
13252	;;
13253      darwin* | rhapsody*)
13254
13255
13256  archive_cmds_need_lc_CXX=no
13257  hardcode_direct_CXX=no
13258  hardcode_automatic_CXX=yes
13259  hardcode_shlibpath_var_CXX=unsupported
13260  if test yes = "$lt_cv_ld_force_load"; then
13261    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13262
13263  else
13264    whole_archive_flag_spec_CXX=''
13265  fi
13266  link_all_deplibs_CXX=yes
13267  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13268  case $cc_basename in
13269     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13270     *) _lt_dar_can_shared=$GCC ;;
13271  esac
13272  if test yes = "$_lt_dar_can_shared"; then
13273    output_verbose_link_cmd=func_echo_all
13274    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13275    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13276    archive_expsym_cmds_CXX="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"
13277    module_expsym_cmds_CXX="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"
13278       if test yes != "$lt_cv_apple_cc_single_mod"; then
13279      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13280      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13281    fi
13282
13283  else
13284  ld_shlibs_CXX=no
13285  fi
13286
13287	;;
13288
13289      os2*)
13290	hardcode_libdir_flag_spec_CXX='-L$libdir'
13291	hardcode_minus_L_CXX=yes
13292	allow_undefined_flag_CXX=unsupported
13293	shrext_cmds=.dll
13294	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13295	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13296	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13297	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13298	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13299	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13300	  emximp -o $lib $output_objdir/$libname.def'
13301	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13302	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13303	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13304	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13305	  prefix_cmds="$SED"~
13306	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13307	    prefix_cmds="$prefix_cmds -e 1d";
13308	  fi~
13309	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13310	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13311	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13312	  emximp -o $lib $output_objdir/$libname.def'
13313	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13314	enable_shared_with_static_runtimes_CXX=yes
13315	;;
13316
13317      dgux*)
13318        case $cc_basename in
13319          ec++*)
13320	    # FIXME: insert proper C++ library support
13321	    ld_shlibs_CXX=no
13322	    ;;
13323          ghcx*)
13324	    # Green Hills C++ Compiler
13325	    # FIXME: insert proper C++ library support
13326	    ld_shlibs_CXX=no
13327	    ;;
13328          *)
13329	    # FIXME: insert proper C++ library support
13330	    ld_shlibs_CXX=no
13331	    ;;
13332        esac
13333        ;;
13334
13335      freebsd2.*)
13336        # C++ shared libraries reported to be fairly broken before
13337	# switch to ELF
13338        ld_shlibs_CXX=no
13339        ;;
13340
13341      freebsd-elf*)
13342        archive_cmds_need_lc_CXX=no
13343        ;;
13344
13345      freebsd* | dragonfly*)
13346        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13347        # conventions
13348        ld_shlibs_CXX=yes
13349        ;;
13350
13351      haiku*)
13352        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13353        link_all_deplibs_CXX=yes
13354        ;;
13355
13356      hpux9*)
13357        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13358        hardcode_libdir_separator_CXX=:
13359        export_dynamic_flag_spec_CXX='$wl-E'
13360        hardcode_direct_CXX=yes
13361        hardcode_minus_L_CXX=yes # Not in the search PATH,
13362				             # but as the default
13363				             # location of the library.
13364
13365        case $cc_basename in
13366          CC*)
13367            # FIXME: insert proper C++ library support
13368            ld_shlibs_CXX=no
13369            ;;
13370          aCC*)
13371            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13372            # Commands to make compiler produce verbose output that lists
13373            # what "hidden" libraries, object files and flags are used when
13374            # linking a shared library.
13375            #
13376            # There doesn't appear to be a way to prevent this compiler from
13377            # explicitly linking system object files so we need to strip them
13378            # from the output so that they don't get included in the library
13379            # dependencies.
13380            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13381            ;;
13382          *)
13383            if test yes = "$GXX"; then
13384              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13385            else
13386              # FIXME: insert proper C++ library support
13387              ld_shlibs_CXX=no
13388            fi
13389            ;;
13390        esac
13391        ;;
13392
13393      hpux10*|hpux11*)
13394        if test no = "$with_gnu_ld"; then
13395	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13396	  hardcode_libdir_separator_CXX=:
13397
13398          case $host_cpu in
13399            hppa*64*|ia64*)
13400              ;;
13401            *)
13402	      export_dynamic_flag_spec_CXX='$wl-E'
13403              ;;
13404          esac
13405        fi
13406        case $host_cpu in
13407          hppa*64*|ia64*)
13408            hardcode_direct_CXX=no
13409            hardcode_shlibpath_var_CXX=no
13410            ;;
13411          *)
13412            hardcode_direct_CXX=yes
13413            hardcode_direct_absolute_CXX=yes
13414            hardcode_minus_L_CXX=yes # Not in the search PATH,
13415					         # but as the default
13416					         # location of the library.
13417            ;;
13418        esac
13419
13420        case $cc_basename in
13421          CC*)
13422	    # FIXME: insert proper C++ library support
13423	    ld_shlibs_CXX=no
13424	    ;;
13425          aCC*)
13426	    case $host_cpu in
13427	      hppa*64*)
13428	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13429	        ;;
13430	      ia64*)
13431	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13432	        ;;
13433	      *)
13434	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13435	        ;;
13436	    esac
13437	    # Commands to make compiler produce verbose output that lists
13438	    # what "hidden" libraries, object files and flags are used when
13439	    # linking a shared library.
13440	    #
13441	    # There doesn't appear to be a way to prevent this compiler from
13442	    # explicitly linking system object files so we need to strip them
13443	    # from the output so that they don't get included in the library
13444	    # dependencies.
13445	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13446	    ;;
13447          *)
13448	    if test yes = "$GXX"; then
13449	      if test no = "$with_gnu_ld"; then
13450	        case $host_cpu in
13451	          hppa*64*)
13452	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13453	            ;;
13454	          ia64*)
13455	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13456	            ;;
13457	          *)
13458	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13459	            ;;
13460	        esac
13461	      fi
13462	    else
13463	      # FIXME: insert proper C++ library support
13464	      ld_shlibs_CXX=no
13465	    fi
13466	    ;;
13467        esac
13468        ;;
13469
13470      interix[3-9]*)
13471	hardcode_direct_CXX=no
13472	hardcode_shlibpath_var_CXX=no
13473	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13474	export_dynamic_flag_spec_CXX='$wl-E'
13475	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13476	# Instead, shared libraries are loaded at an image base (0x10000000 by
13477	# default) and relocated if they conflict, which is a slow very memory
13478	# consuming and fragmenting process.  To avoid this, we pick a random,
13479	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13480	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13481	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13482	archive_expsym_cmds_CXX='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'
13483	;;
13484      irix5* | irix6*)
13485        case $cc_basename in
13486          CC*)
13487	    # SGI C++
13488	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13489
13490	    # Archives containing C++ object files must be created using
13491	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13492	    # necessary to make sure instantiated templates are included
13493	    # in the archive.
13494	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13495	    ;;
13496          *)
13497	    if test yes = "$GXX"; then
13498	      if test no = "$with_gnu_ld"; then
13499	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13500	      else
13501	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13502	      fi
13503	    fi
13504	    link_all_deplibs_CXX=yes
13505	    ;;
13506        esac
13507        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13508        hardcode_libdir_separator_CXX=:
13509        inherit_rpath_CXX=yes
13510        ;;
13511
13512      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13513        case $cc_basename in
13514          KCC*)
13515	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13516
13517	    # KCC will only create a shared library if the output file
13518	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13519	    # to its proper name (with version) after linking.
13520	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13521	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13522	    # Commands to make compiler produce verbose output that lists
13523	    # what "hidden" libraries, object files and flags are used when
13524	    # linking a shared library.
13525	    #
13526	    # There doesn't appear to be a way to prevent this compiler from
13527	    # explicitly linking system object files so we need to strip them
13528	    # from the output so that they don't get included in the library
13529	    # dependencies.
13530	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13531
13532	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13533	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13534
13535	    # Archives containing C++ object files must be created using
13536	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13537	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13538	    ;;
13539	  icpc* | ecpc* )
13540	    # Intel C++
13541	    with_gnu_ld=yes
13542	    # version 8.0 and above of icpc choke on multiply defined symbols
13543	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13544	    # earlier do not add the objects themselves.
13545	    case `$CC -V 2>&1` in
13546	      *"Version 7."*)
13547	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13548		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13549		;;
13550	      *)  # Version 8.0 or newer
13551	        tmp_idyn=
13552	        case $host_cpu in
13553		  ia64*) tmp_idyn=' -i_dynamic';;
13554		esac
13555	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13556		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13557		;;
13558	    esac
13559	    archive_cmds_need_lc_CXX=no
13560	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13561	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13562	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13563	    ;;
13564          pgCC* | pgcpp*)
13565            # Portland Group C++ compiler
13566	    case `$CC -V` in
13567	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13568	      prelink_cmds_CXX='tpldir=Template.dir~
13569               rm -rf $tpldir~
13570               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13571               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13572	      old_archive_cmds_CXX='tpldir=Template.dir~
13573                rm -rf $tpldir~
13574                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13575                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13576                $RANLIB $oldlib'
13577	      archive_cmds_CXX='tpldir=Template.dir~
13578                rm -rf $tpldir~
13579                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13580                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13581	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13582                rm -rf $tpldir~
13583                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13584                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13585	      ;;
13586	    *) # Version 6 and above use weak symbols
13587	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13588	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13589	      ;;
13590	    esac
13591
13592	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13593	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13594	    whole_archive_flag_spec_CXX='$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'
13595            ;;
13596	  cxx*)
13597	    # Compaq C++
13598	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13599	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
13600
13601	    runpath_var=LD_RUN_PATH
13602	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13603	    hardcode_libdir_separator_CXX=:
13604
13605	    # Commands to make compiler produce verbose output that lists
13606	    # what "hidden" libraries, object files and flags are used when
13607	    # linking a shared library.
13608	    #
13609	    # There doesn't appear to be a way to prevent this compiler from
13610	    # explicitly linking system object files so we need to strip them
13611	    # from the output so that they don't get included in the library
13612	    # dependencies.
13613	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13614	    ;;
13615	  xl* | mpixl* | bgxl*)
13616	    # IBM XL 8.0 on PPC, with GNU ld
13617	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13618	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13619	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13620	    if test yes = "$supports_anon_versioning"; then
13621	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13622                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13623                echo "local: *; };" >> $output_objdir/$libname.ver~
13624                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13625	    fi
13626	    ;;
13627	  *)
13628	    case `$CC -V 2>&1 | sed 5q` in
13629	    *Sun\ C*)
13630	      # Sun C++ 5.9
13631	      no_undefined_flag_CXX=' -zdefs'
13632	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13633	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13634	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13635	      whole_archive_flag_spec_CXX='$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'
13636	      compiler_needs_object_CXX=yes
13637
13638	      # Not sure whether something based on
13639	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13640	      # would be better.
13641	      output_verbose_link_cmd='func_echo_all'
13642
13643	      # Archives containing C++ object files must be created using
13644	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13645	      # necessary to make sure instantiated templates are included
13646	      # in the archive.
13647	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13648	      ;;
13649	    esac
13650	    ;;
13651	esac
13652	;;
13653
13654      lynxos*)
13655        # FIXME: insert proper C++ library support
13656	ld_shlibs_CXX=no
13657	;;
13658
13659      m88k*)
13660        # FIXME: insert proper C++ library support
13661        ld_shlibs_CXX=no
13662	;;
13663
13664      mvs*)
13665        case $cc_basename in
13666          cxx*)
13667	    # FIXME: insert proper C++ library support
13668	    ld_shlibs_CXX=no
13669	    ;;
13670	  *)
13671	    # FIXME: insert proper C++ library support
13672	    ld_shlibs_CXX=no
13673	    ;;
13674	esac
13675	;;
13676
13677      netbsd*)
13678        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13679	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13680	  wlarc=
13681	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13682	  hardcode_direct_CXX=yes
13683	  hardcode_shlibpath_var_CXX=no
13684	fi
13685	# Workaround some broken pre-1.5 toolchains
13686	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13687	;;
13688
13689      *nto* | *qnx*)
13690        ld_shlibs_CXX=yes
13691	;;
13692
13693      openbsd* | bitrig*)
13694	if test -f /usr/libexec/ld.so; then
13695	  hardcode_direct_CXX=yes
13696	  hardcode_shlibpath_var_CXX=no
13697	  hardcode_direct_absolute_CXX=yes
13698	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13699	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13700	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13701	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13702	    export_dynamic_flag_spec_CXX='$wl-E'
13703	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13704	  fi
13705	  output_verbose_link_cmd=func_echo_all
13706	else
13707	  ld_shlibs_CXX=no
13708	fi
13709	;;
13710
13711      osf3* | osf4* | osf5*)
13712        case $cc_basename in
13713          KCC*)
13714	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13715
13716	    # KCC will only create a shared library if the output file
13717	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13718	    # to its proper name (with version) after linking.
13719	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13720
13721	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13722	    hardcode_libdir_separator_CXX=:
13723
13724	    # Archives containing C++ object files must be created using
13725	    # the KAI C++ compiler.
13726	    case $host in
13727	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13728	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13729	    esac
13730	    ;;
13731          RCC*)
13732	    # Rational C++ 2.4.1
13733	    # FIXME: insert proper C++ library support
13734	    ld_shlibs_CXX=no
13735	    ;;
13736          cxx*)
13737	    case $host in
13738	      osf3*)
13739	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13740	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13741	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13742		;;
13743	      *)
13744	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13745	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13746	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13747                  echo "-hidden">> $lib.exp~
13748                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
13749                  $RM $lib.exp'
13750	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13751		;;
13752	    esac
13753
13754	    hardcode_libdir_separator_CXX=:
13755
13756	    # Commands to make compiler produce verbose output that lists
13757	    # what "hidden" libraries, object files and flags are used when
13758	    # linking a shared library.
13759	    #
13760	    # There doesn't appear to be a way to prevent this compiler from
13761	    # explicitly linking system object files so we need to strip them
13762	    # from the output so that they don't get included in the library
13763	    # dependencies.
13764	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13765	    ;;
13766	  *)
13767	    if test yes,no = "$GXX,$with_gnu_ld"; then
13768	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13769	      case $host in
13770	        osf3*)
13771	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
13772		  ;;
13773	        *)
13774	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
13775		  ;;
13776	      esac
13777
13778	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13779	      hardcode_libdir_separator_CXX=:
13780
13781	      # Commands to make compiler produce verbose output that lists
13782	      # what "hidden" libraries, object files and flags are used when
13783	      # linking a shared library.
13784	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13785
13786	    else
13787	      # FIXME: insert proper C++ library support
13788	      ld_shlibs_CXX=no
13789	    fi
13790	    ;;
13791        esac
13792        ;;
13793
13794      psos*)
13795        # FIXME: insert proper C++ library support
13796        ld_shlibs_CXX=no
13797        ;;
13798
13799      sunos4*)
13800        case $cc_basename in
13801          CC*)
13802	    # Sun C++ 4.x
13803	    # FIXME: insert proper C++ library support
13804	    ld_shlibs_CXX=no
13805	    ;;
13806          lcc*)
13807	    # Lucid
13808	    # FIXME: insert proper C++ library support
13809	    ld_shlibs_CXX=no
13810	    ;;
13811          *)
13812	    # FIXME: insert proper C++ library support
13813	    ld_shlibs_CXX=no
13814	    ;;
13815        esac
13816        ;;
13817
13818      solaris*)
13819        case $cc_basename in
13820          CC* | sunCC*)
13821	    # Sun C++ 4.2, 5.x and Centerline C++
13822            archive_cmds_need_lc_CXX=yes
13823	    no_undefined_flag_CXX=' -zdefs'
13824	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13825	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13826              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13827
13828	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13829	    hardcode_shlibpath_var_CXX=no
13830	    case $host_os in
13831	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13832	      *)
13833		# The compiler driver will combine and reorder linker options,
13834		# but understands '-z linker_flag'.
13835	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13836		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13837	        ;;
13838	    esac
13839	    link_all_deplibs_CXX=yes
13840
13841	    output_verbose_link_cmd='func_echo_all'
13842
13843	    # Archives containing C++ object files must be created using
13844	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13845	    # necessary to make sure instantiated templates are included
13846	    # in the archive.
13847	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13848	    ;;
13849          gcx*)
13850	    # Green Hills C++ Compiler
13851	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13852
13853	    # The C++ compiler must be used to create the archive.
13854	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13855	    ;;
13856          *)
13857	    # GNU C++ compiler with Solaris linker
13858	    if test yes,no = "$GXX,$with_gnu_ld"; then
13859	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
13860	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13861	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13862	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13863                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13864
13865	        # Commands to make compiler produce verbose output that lists
13866	        # what "hidden" libraries, object files and flags are used when
13867	        # linking a shared library.
13868	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13869	      else
13870	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
13871	        # platform.
13872	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13873	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13874                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13875
13876	        # Commands to make compiler produce verbose output that lists
13877	        # what "hidden" libraries, object files and flags are used when
13878	        # linking a shared library.
13879	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13880	      fi
13881
13882	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13883	      case $host_os in
13884		solaris2.[0-5] | solaris2.[0-5].*) ;;
13885		*)
13886		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13887		  ;;
13888	      esac
13889	    fi
13890	    ;;
13891        esac
13892        ;;
13893
13894    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13895      no_undefined_flag_CXX='$wl-z,text'
13896      archive_cmds_need_lc_CXX=no
13897      hardcode_shlibpath_var_CXX=no
13898      runpath_var='LD_RUN_PATH'
13899
13900      case $cc_basename in
13901        CC*)
13902	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13903	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13904	  ;;
13905	*)
13906	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13907	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13908	  ;;
13909      esac
13910      ;;
13911
13912      sysv5* | sco3.2v5* | sco5v6*)
13913	# Note: We CANNOT use -z defs as we might desire, because we do not
13914	# link with -lc, and that would cause any symbols used from libc to
13915	# always be unresolved, which means just about no library would
13916	# ever link correctly.  If we're not using GNU ld we use -z text
13917	# though, which does catch some bad symbols but isn't as heavy-handed
13918	# as -z defs.
13919	no_undefined_flag_CXX='$wl-z,text'
13920	allow_undefined_flag_CXX='$wl-z,nodefs'
13921	archive_cmds_need_lc_CXX=no
13922	hardcode_shlibpath_var_CXX=no
13923	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13924	hardcode_libdir_separator_CXX=':'
13925	link_all_deplibs_CXX=yes
13926	export_dynamic_flag_spec_CXX='$wl-Bexport'
13927	runpath_var='LD_RUN_PATH'
13928
13929	case $cc_basename in
13930          CC*)
13931	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13933	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13934              '"$old_archive_cmds_CXX"
13935	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13936              '"$reload_cmds_CXX"
13937	    ;;
13938	  *)
13939	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941	    ;;
13942	esac
13943      ;;
13944
13945      tandem*)
13946        case $cc_basename in
13947          NCC*)
13948	    # NonStop-UX NCC 3.20
13949	    # FIXME: insert proper C++ library support
13950	    ld_shlibs_CXX=no
13951	    ;;
13952          *)
13953	    # FIXME: insert proper C++ library support
13954	    ld_shlibs_CXX=no
13955	    ;;
13956        esac
13957        ;;
13958
13959      vxworks*)
13960        # FIXME: insert proper C++ library support
13961        ld_shlibs_CXX=no
13962        ;;
13963
13964      *)
13965        # FIXME: insert proper C++ library support
13966        ld_shlibs_CXX=no
13967        ;;
13968    esac
13969
13970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13971$as_echo "$ld_shlibs_CXX" >&6; }
13972    test no = "$ld_shlibs_CXX" && can_build_shared=no
13973
13974    GCC_CXX=$GXX
13975    LD_CXX=$LD
13976
13977    ## CAVEAT EMPTOR:
13978    ## There is no encapsulation within the following macros, do not change
13979    ## the running order or otherwise move them around unless you know exactly
13980    ## what you are doing...
13981    # Dependencies to place before and after the object being linked:
13982predep_objects_CXX=
13983postdep_objects_CXX=
13984predeps_CXX=
13985postdeps_CXX=
13986compiler_lib_search_path_CXX=
13987
13988cat > conftest.$ac_ext <<_LT_EOF
13989class Foo
13990{
13991public:
13992  Foo (void) { a = 0; }
13993private:
13994  int a;
13995};
13996_LT_EOF
13997
13998
13999_lt_libdeps_save_CFLAGS=$CFLAGS
14000case "$CC $CFLAGS " in #(
14001*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14002*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14003*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14004esac
14005
14006if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14007  (eval $ac_compile) 2>&5
14008  ac_status=$?
14009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14010  test $ac_status = 0; }; then
14011  # Parse the compiler output and extract the necessary
14012  # objects, libraries and library flags.
14013
14014  # Sentinel used to keep track of whether or not we are before
14015  # the conftest object file.
14016  pre_test_object_deps_done=no
14017
14018  for p in `eval "$output_verbose_link_cmd"`; do
14019    case $prev$p in
14020
14021    -L* | -R* | -l*)
14022       # Some compilers place space between "-{L,R}" and the path.
14023       # Remove the space.
14024       if test x-L = "$p" ||
14025          test x-R = "$p"; then
14026	 prev=$p
14027	 continue
14028       fi
14029
14030       # Expand the sysroot to ease extracting the directories later.
14031       if test -z "$prev"; then
14032         case $p in
14033         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14034         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14035         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14036         esac
14037       fi
14038       case $p in
14039       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14040       esac
14041       if test no = "$pre_test_object_deps_done"; then
14042	 case $prev in
14043	 -L | -R)
14044	   # Internal compiler library paths should come after those
14045	   # provided the user.  The postdeps already come after the
14046	   # user supplied libs so there is no need to process them.
14047	   if test -z "$compiler_lib_search_path_CXX"; then
14048	     compiler_lib_search_path_CXX=$prev$p
14049	   else
14050	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14051	   fi
14052	   ;;
14053	 # The "-l" case would never come before the object being
14054	 # linked, so don't bother handling this case.
14055	 esac
14056       else
14057	 if test -z "$postdeps_CXX"; then
14058	   postdeps_CXX=$prev$p
14059	 else
14060	   postdeps_CXX="${postdeps_CXX} $prev$p"
14061	 fi
14062       fi
14063       prev=
14064       ;;
14065
14066    *.lto.$objext) ;; # Ignore GCC LTO objects
14067    *.$objext)
14068       # This assumes that the test object file only shows up
14069       # once in the compiler output.
14070       if test "$p" = "conftest.$objext"; then
14071	 pre_test_object_deps_done=yes
14072	 continue
14073       fi
14074
14075       if test no = "$pre_test_object_deps_done"; then
14076	 if test -z "$predep_objects_CXX"; then
14077	   predep_objects_CXX=$p
14078	 else
14079	   predep_objects_CXX="$predep_objects_CXX $p"
14080	 fi
14081       else
14082	 if test -z "$postdep_objects_CXX"; then
14083	   postdep_objects_CXX=$p
14084	 else
14085	   postdep_objects_CXX="$postdep_objects_CXX $p"
14086	 fi
14087       fi
14088       ;;
14089
14090    *) ;; # Ignore the rest.
14091
14092    esac
14093  done
14094
14095  # Clean up.
14096  rm -f a.out a.exe
14097else
14098  echo "libtool.m4: error: problem compiling CXX test program"
14099fi
14100
14101$RM -f confest.$objext
14102CFLAGS=$_lt_libdeps_save_CFLAGS
14103
14104# PORTME: override above test on systems where it is broken
14105case $host_os in
14106interix[3-9]*)
14107  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14108  # hack all around it, let's just trust "g++" to DTRT.
14109  predep_objects_CXX=
14110  postdep_objects_CXX=
14111  postdeps_CXX=
14112  ;;
14113esac
14114
14115
14116case " $postdeps_CXX " in
14117*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14118esac
14119 compiler_lib_search_dirs_CXX=
14120if test -n "${compiler_lib_search_path_CXX}"; then
14121 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14122fi
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154    lt_prog_compiler_wl_CXX=
14155lt_prog_compiler_pic_CXX=
14156lt_prog_compiler_static_CXX=
14157
14158
14159  # C++ specific cases for pic, static, wl, etc.
14160  if test yes = "$GXX"; then
14161    lt_prog_compiler_wl_CXX='-Wl,'
14162    lt_prog_compiler_static_CXX='-static'
14163
14164    case $host_os in
14165    aix*)
14166      # All AIX code is PIC.
14167      if test ia64 = "$host_cpu"; then
14168	# AIX 5 now supports IA64 processor
14169	lt_prog_compiler_static_CXX='-Bstatic'
14170      fi
14171      lt_prog_compiler_pic_CXX='-fPIC'
14172      ;;
14173
14174    amigaos*)
14175      case $host_cpu in
14176      powerpc)
14177            # see comment about AmigaOS4 .so support
14178            lt_prog_compiler_pic_CXX='-fPIC'
14179        ;;
14180      m68k)
14181            # FIXME: we need at least 68020 code to build shared libraries, but
14182            # adding the '-m68020' flag to GCC prevents building anything better,
14183            # like '-m68040'.
14184            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14185        ;;
14186      esac
14187      ;;
14188
14189    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14190      # PIC is the default for these OSes.
14191      ;;
14192    mingw* | cygwin* | os2* | pw32* | cegcc*)
14193      # This hack is so that the source file can tell whether it is being
14194      # built for inclusion in a dll (and should export symbols for example).
14195      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14196      # (--disable-auto-import) libraries
14197      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14198      case $host_os in
14199      os2*)
14200	lt_prog_compiler_static_CXX='$wl-static'
14201	;;
14202      esac
14203      ;;
14204    darwin* | rhapsody*)
14205      # PIC is the default on this platform
14206      # Common symbols not allowed in MH_DYLIB files
14207      lt_prog_compiler_pic_CXX='-fno-common'
14208      ;;
14209    *djgpp*)
14210      # DJGPP does not support shared libraries at all
14211      lt_prog_compiler_pic_CXX=
14212      ;;
14213    haiku*)
14214      # PIC is the default for Haiku.
14215      # The "-static" flag exists, but is broken.
14216      lt_prog_compiler_static_CXX=
14217      ;;
14218    interix[3-9]*)
14219      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14220      # Instead, we relocate shared libraries at runtime.
14221      ;;
14222    sysv4*MP*)
14223      if test -d /usr/nec; then
14224	lt_prog_compiler_pic_CXX=-Kconform_pic
14225      fi
14226      ;;
14227    hpux*)
14228      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14229      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14230      # sets the default TLS model and affects inlining.
14231      case $host_cpu in
14232      hppa*64*)
14233	;;
14234      *)
14235	lt_prog_compiler_pic_CXX='-fPIC'
14236	;;
14237      esac
14238      ;;
14239    *qnx* | *nto*)
14240      # QNX uses GNU C++, but need to define -shared option too, otherwise
14241      # it will coredump.
14242      lt_prog_compiler_pic_CXX='-fPIC -shared'
14243      ;;
14244    *)
14245      lt_prog_compiler_pic_CXX='-fPIC'
14246      ;;
14247    esac
14248  else
14249    case $host_os in
14250      aix[4-9]*)
14251	# All AIX code is PIC.
14252	if test ia64 = "$host_cpu"; then
14253	  # AIX 5 now supports IA64 processor
14254	  lt_prog_compiler_static_CXX='-Bstatic'
14255	else
14256	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14257	fi
14258	;;
14259      chorus*)
14260	case $cc_basename in
14261	cxch68*)
14262	  # Green Hills C++ Compiler
14263	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14264	  ;;
14265	esac
14266	;;
14267      mingw* | cygwin* | os2* | pw32* | cegcc*)
14268	# This hack is so that the source file can tell whether it is being
14269	# built for inclusion in a dll (and should export symbols for example).
14270	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14271	;;
14272      dgux*)
14273	case $cc_basename in
14274	  ec++*)
14275	    lt_prog_compiler_pic_CXX='-KPIC'
14276	    ;;
14277	  ghcx*)
14278	    # Green Hills C++ Compiler
14279	    lt_prog_compiler_pic_CXX='-pic'
14280	    ;;
14281	  *)
14282	    ;;
14283	esac
14284	;;
14285      freebsd* | dragonfly*)
14286	# FreeBSD uses GNU C++
14287	;;
14288      hpux9* | hpux10* | hpux11*)
14289	case $cc_basename in
14290	  CC*)
14291	    lt_prog_compiler_wl_CXX='-Wl,'
14292	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14293	    if test ia64 != "$host_cpu"; then
14294	      lt_prog_compiler_pic_CXX='+Z'
14295	    fi
14296	    ;;
14297	  aCC*)
14298	    lt_prog_compiler_wl_CXX='-Wl,'
14299	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14300	    case $host_cpu in
14301	    hppa*64*|ia64*)
14302	      # +Z the default
14303	      ;;
14304	    *)
14305	      lt_prog_compiler_pic_CXX='+Z'
14306	      ;;
14307	    esac
14308	    ;;
14309	  *)
14310	    ;;
14311	esac
14312	;;
14313      interix*)
14314	# This is c89, which is MS Visual C++ (no shared libs)
14315	# Anyone wants to do a port?
14316	;;
14317      irix5* | irix6* | nonstopux*)
14318	case $cc_basename in
14319	  CC*)
14320	    lt_prog_compiler_wl_CXX='-Wl,'
14321	    lt_prog_compiler_static_CXX='-non_shared'
14322	    # CC pic flag -KPIC is the default.
14323	    ;;
14324	  *)
14325	    ;;
14326	esac
14327	;;
14328      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14329	case $cc_basename in
14330	  KCC*)
14331	    # KAI C++ Compiler
14332	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14333	    lt_prog_compiler_pic_CXX='-fPIC'
14334	    ;;
14335	  ecpc* )
14336	    # old Intel C++ for x86_64, which still supported -KPIC.
14337	    lt_prog_compiler_wl_CXX='-Wl,'
14338	    lt_prog_compiler_pic_CXX='-KPIC'
14339	    lt_prog_compiler_static_CXX='-static'
14340	    ;;
14341	  icpc* )
14342	    # Intel C++, used to be incompatible with GCC.
14343	    # ICC 10 doesn't accept -KPIC any more.
14344	    lt_prog_compiler_wl_CXX='-Wl,'
14345	    lt_prog_compiler_pic_CXX='-fPIC'
14346	    lt_prog_compiler_static_CXX='-static'
14347	    ;;
14348	  pgCC* | pgcpp*)
14349	    # Portland Group C++ compiler
14350	    lt_prog_compiler_wl_CXX='-Wl,'
14351	    lt_prog_compiler_pic_CXX='-fpic'
14352	    lt_prog_compiler_static_CXX='-Bstatic'
14353	    ;;
14354	  cxx*)
14355	    # Compaq C++
14356	    # Make sure the PIC flag is empty.  It appears that all Alpha
14357	    # Linux and Compaq Tru64 Unix objects are PIC.
14358	    lt_prog_compiler_pic_CXX=
14359	    lt_prog_compiler_static_CXX='-non_shared'
14360	    ;;
14361	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14362	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14363	    lt_prog_compiler_wl_CXX='-Wl,'
14364	    lt_prog_compiler_pic_CXX='-qpic'
14365	    lt_prog_compiler_static_CXX='-qstaticlink'
14366	    ;;
14367	  *)
14368	    case `$CC -V 2>&1 | sed 5q` in
14369	    *Sun\ C*)
14370	      # Sun C++ 5.9
14371	      lt_prog_compiler_pic_CXX='-KPIC'
14372	      lt_prog_compiler_static_CXX='-Bstatic'
14373	      lt_prog_compiler_wl_CXX='-Qoption ld '
14374	      ;;
14375	    esac
14376	    ;;
14377	esac
14378	;;
14379      lynxos*)
14380	;;
14381      m88k*)
14382	;;
14383      mvs*)
14384	case $cc_basename in
14385	  cxx*)
14386	    lt_prog_compiler_pic_CXX='-W c,exportall'
14387	    ;;
14388	  *)
14389	    ;;
14390	esac
14391	;;
14392      netbsd*)
14393	;;
14394      *qnx* | *nto*)
14395        # QNX uses GNU C++, but need to define -shared option too, otherwise
14396        # it will coredump.
14397        lt_prog_compiler_pic_CXX='-fPIC -shared'
14398        ;;
14399      osf3* | osf4* | osf5*)
14400	case $cc_basename in
14401	  KCC*)
14402	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14403	    ;;
14404	  RCC*)
14405	    # Rational C++ 2.4.1
14406	    lt_prog_compiler_pic_CXX='-pic'
14407	    ;;
14408	  cxx*)
14409	    # Digital/Compaq C++
14410	    lt_prog_compiler_wl_CXX='-Wl,'
14411	    # Make sure the PIC flag is empty.  It appears that all Alpha
14412	    # Linux and Compaq Tru64 Unix objects are PIC.
14413	    lt_prog_compiler_pic_CXX=
14414	    lt_prog_compiler_static_CXX='-non_shared'
14415	    ;;
14416	  *)
14417	    ;;
14418	esac
14419	;;
14420      psos*)
14421	;;
14422      solaris*)
14423	case $cc_basename in
14424	  CC* | sunCC*)
14425	    # Sun C++ 4.2, 5.x and Centerline C++
14426	    lt_prog_compiler_pic_CXX='-KPIC'
14427	    lt_prog_compiler_static_CXX='-Bstatic'
14428	    lt_prog_compiler_wl_CXX='-Qoption ld '
14429	    ;;
14430	  gcx*)
14431	    # Green Hills C++ Compiler
14432	    lt_prog_compiler_pic_CXX='-PIC'
14433	    ;;
14434	  *)
14435	    ;;
14436	esac
14437	;;
14438      sunos4*)
14439	case $cc_basename in
14440	  CC*)
14441	    # Sun C++ 4.x
14442	    lt_prog_compiler_pic_CXX='-pic'
14443	    lt_prog_compiler_static_CXX='-Bstatic'
14444	    ;;
14445	  lcc*)
14446	    # Lucid
14447	    lt_prog_compiler_pic_CXX='-pic'
14448	    ;;
14449	  *)
14450	    ;;
14451	esac
14452	;;
14453      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14454	case $cc_basename in
14455	  CC*)
14456	    lt_prog_compiler_wl_CXX='-Wl,'
14457	    lt_prog_compiler_pic_CXX='-KPIC'
14458	    lt_prog_compiler_static_CXX='-Bstatic'
14459	    ;;
14460	esac
14461	;;
14462      tandem*)
14463	case $cc_basename in
14464	  NCC*)
14465	    # NonStop-UX NCC 3.20
14466	    lt_prog_compiler_pic_CXX='-KPIC'
14467	    ;;
14468	  *)
14469	    ;;
14470	esac
14471	;;
14472      vxworks*)
14473	;;
14474      *)
14475	lt_prog_compiler_can_build_shared_CXX=no
14476	;;
14477    esac
14478  fi
14479
14480case $host_os in
14481  # For platforms that do not support PIC, -DPIC is meaningless:
14482  *djgpp*)
14483    lt_prog_compiler_pic_CXX=
14484    ;;
14485  *)
14486    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14487    ;;
14488esac
14489
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14491$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14492if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14493  $as_echo_n "(cached) " >&6
14494else
14495  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14496fi
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14498$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14499lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14500
14501#
14502# Check to make sure the PIC flag actually works.
14503#
14504if test -n "$lt_prog_compiler_pic_CXX"; then
14505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14506$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14507if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510  lt_cv_prog_compiler_pic_works_CXX=no
14511   ac_outfile=conftest.$ac_objext
14512   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513   lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14514   # Insert the option either (1) after the last *FLAGS variable, or
14515   # (2) before a word containing "conftest.", or (3) at the end.
14516   # Note that $ac_compile itself does not contain backslashes and begins
14517   # with a dollar sign (not a hyphen), so the echo should work correctly.
14518   # The option is referenced via a variable to avoid confusing sed.
14519   lt_compile=`echo "$ac_compile" | $SED \
14520   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14521   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14522   -e 's:$: $lt_compiler_flag:'`
14523   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14524   (eval "$lt_compile" 2>conftest.err)
14525   ac_status=$?
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   if (exit $ac_status) && test -s "$ac_outfile"; then
14529     # The compiler can only warn and ignore the option if not recognized
14530     # So say no if there are warnings other than the usual output.
14531     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14532     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14533     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14534       lt_cv_prog_compiler_pic_works_CXX=yes
14535     fi
14536   fi
14537   $RM conftest*
14538
14539fi
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14541$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14542
14543if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14544    case $lt_prog_compiler_pic_CXX in
14545     "" | " "*) ;;
14546     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14547     esac
14548else
14549    lt_prog_compiler_pic_CXX=
14550     lt_prog_compiler_can_build_shared_CXX=no
14551fi
14552
14553fi
14554
14555
14556
14557
14558
14559#
14560# Check to make sure the static flag actually works.
14561#
14562wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14564$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14565if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14566  $as_echo_n "(cached) " >&6
14567else
14568  lt_cv_prog_compiler_static_works_CXX=no
14569   save_LDFLAGS=$LDFLAGS
14570   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14571   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14572   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14573     # The linker can only warn and ignore the option if not recognized
14574     # So say no if there are warnings
14575     if test -s conftest.err; then
14576       # Append any errors to the config.log.
14577       cat conftest.err 1>&5
14578       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14579       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580       if diff conftest.exp conftest.er2 >/dev/null; then
14581         lt_cv_prog_compiler_static_works_CXX=yes
14582       fi
14583     else
14584       lt_cv_prog_compiler_static_works_CXX=yes
14585     fi
14586   fi
14587   $RM -r conftest*
14588   LDFLAGS=$save_LDFLAGS
14589
14590fi
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14592$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14593
14594if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14595    :
14596else
14597    lt_prog_compiler_static_CXX=
14598fi
14599
14600
14601
14602
14603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14604$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14605if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14606  $as_echo_n "(cached) " >&6
14607else
14608  lt_cv_prog_compiler_c_o_CXX=no
14609   $RM -r conftest 2>/dev/null
14610   mkdir conftest
14611   cd conftest
14612   mkdir out
14613   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14614
14615   lt_compiler_flag="-o out/conftest2.$ac_objext"
14616   # Insert the option either (1) after the last *FLAGS variable, or
14617   # (2) before a word containing "conftest.", or (3) at the end.
14618   # Note that $ac_compile itself does not contain backslashes and begins
14619   # with a dollar sign (not a hyphen), so the echo should work correctly.
14620   lt_compile=`echo "$ac_compile" | $SED \
14621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14623   -e 's:$: $lt_compiler_flag:'`
14624   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14625   (eval "$lt_compile" 2>out/conftest.err)
14626   ac_status=$?
14627   cat out/conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14630   then
14631     # The compiler can only warn and ignore the option if not recognized
14632     # So say no if there are warnings
14633     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14634     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14635     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14636       lt_cv_prog_compiler_c_o_CXX=yes
14637     fi
14638   fi
14639   chmod u+w . 2>&5
14640   $RM conftest*
14641   # SGI C++ compiler will create directory out/ii_files/ for
14642   # template instantiation
14643   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14644   $RM out/* && rmdir out
14645   cd ..
14646   $RM -r conftest
14647   $RM conftest*
14648
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14651$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14652
14653
14654
14655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14656$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14657if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14658  $as_echo_n "(cached) " >&6
14659else
14660  lt_cv_prog_compiler_c_o_CXX=no
14661   $RM -r conftest 2>/dev/null
14662   mkdir conftest
14663   cd conftest
14664   mkdir out
14665   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14666
14667   lt_compiler_flag="-o out/conftest2.$ac_objext"
14668   # Insert the option either (1) after the last *FLAGS variable, or
14669   # (2) before a word containing "conftest.", or (3) at the end.
14670   # Note that $ac_compile itself does not contain backslashes and begins
14671   # with a dollar sign (not a hyphen), so the echo should work correctly.
14672   lt_compile=`echo "$ac_compile" | $SED \
14673   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675   -e 's:$: $lt_compiler_flag:'`
14676   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14677   (eval "$lt_compile" 2>out/conftest.err)
14678   ac_status=$?
14679   cat out/conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14682   then
14683     # The compiler can only warn and ignore the option if not recognized
14684     # So say no if there are warnings
14685     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14686     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14687     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14688       lt_cv_prog_compiler_c_o_CXX=yes
14689     fi
14690   fi
14691   chmod u+w . 2>&5
14692   $RM conftest*
14693   # SGI C++ compiler will create directory out/ii_files/ for
14694   # template instantiation
14695   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14696   $RM out/* && rmdir out
14697   cd ..
14698   $RM -r conftest
14699   $RM conftest*
14700
14701fi
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14703$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14704
14705
14706
14707
14708hard_links=nottested
14709if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14710  # do not overwrite the value of need_locks provided by the user
14711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14712$as_echo_n "checking if we can lock with hard links... " >&6; }
14713  hard_links=yes
14714  $RM conftest*
14715  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716  touch conftest.a
14717  ln conftest.a conftest.b 2>&5 || hard_links=no
14718  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14720$as_echo "$hard_links" >&6; }
14721  if test no = "$hard_links"; then
14722    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14723$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14724    need_locks=warn
14725  fi
14726else
14727  need_locks=no
14728fi
14729
14730
14731
14732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14734
14735  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14736  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14737  case $host_os in
14738  aix[4-9]*)
14739    # If we're using GNU nm, then we don't want the "-C" option.
14740    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14741    # Without the "-l" option, or with the "-B" option, AIX nm treats
14742    # weak defined symbols like other global defined symbols, whereas
14743    # GNU nm marks them as "W".
14744    # While the 'weak' keyword is ignored in the Export File, we need
14745    # it in the Import File for the 'aix-soname' feature, so we have
14746    # to replace the "-B" option with "-P" for AIX nm.
14747    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14748      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14749    else
14750      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14751    fi
14752    ;;
14753  pw32*)
14754    export_symbols_cmds_CXX=$ltdll_cmds
14755    ;;
14756  cygwin* | mingw* | cegcc*)
14757    case $cc_basename in
14758    cl*)
14759      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14760      ;;
14761    *)
14762      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14763      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14764      ;;
14765    esac
14766    ;;
14767  *)
14768    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14769    ;;
14770  esac
14771
14772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14773$as_echo "$ld_shlibs_CXX" >&6; }
14774test no = "$ld_shlibs_CXX" && can_build_shared=no
14775
14776with_gnu_ld_CXX=$with_gnu_ld
14777
14778
14779
14780
14781
14782
14783#
14784# Do we need to explicitly link libc?
14785#
14786case "x$archive_cmds_need_lc_CXX" in
14787x|xyes)
14788  # Assume -lc should be added
14789  archive_cmds_need_lc_CXX=yes
14790
14791  if test yes,yes = "$GCC,$enable_shared"; then
14792    case $archive_cmds_CXX in
14793    *'~'*)
14794      # FIXME: we may have to deal with multi-command sequences.
14795      ;;
14796    '$CC '*)
14797      # Test whether the compiler implicitly links with -lc since on some
14798      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14799      # to ld, don't add -lc before -lgcc.
14800      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14801$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14802if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14803  $as_echo_n "(cached) " >&6
14804else
14805  $RM conftest*
14806	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14807
14808	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14809  (eval $ac_compile) 2>&5
14810  ac_status=$?
14811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14812  test $ac_status = 0; } 2>conftest.err; then
14813	  soname=conftest
14814	  lib=conftest
14815	  libobjs=conftest.$ac_objext
14816	  deplibs=
14817	  wl=$lt_prog_compiler_wl_CXX
14818	  pic_flag=$lt_prog_compiler_pic_CXX
14819	  compiler_flags=-v
14820	  linker_flags=-v
14821	  verstring=
14822	  output_objdir=.
14823	  libname=conftest
14824	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14825	  allow_undefined_flag_CXX=
14826	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14827  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14828  ac_status=$?
14829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14830  test $ac_status = 0; }
14831	  then
14832	    lt_cv_archive_cmds_need_lc_CXX=no
14833	  else
14834	    lt_cv_archive_cmds_need_lc_CXX=yes
14835	  fi
14836	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14837	else
14838	  cat conftest.err 1>&5
14839	fi
14840	$RM conftest*
14841
14842fi
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14844$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14845      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14846      ;;
14847    esac
14848  fi
14849  ;;
14850esac
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14914$as_echo_n "checking dynamic linker characteristics... " >&6; }
14915
14916library_names_spec=
14917libname_spec='lib$name'
14918soname_spec=
14919shrext_cmds=.so
14920postinstall_cmds=
14921postuninstall_cmds=
14922finish_cmds=
14923finish_eval=
14924shlibpath_var=
14925shlibpath_overrides_runpath=unknown
14926version_type=none
14927dynamic_linker="$host_os ld.so"
14928sys_lib_dlsearch_path_spec="/lib /usr/lib"
14929need_lib_prefix=unknown
14930hardcode_into_libs=no
14931
14932# when you set need_version to no, make sure it does not cause -set_version
14933# flags to be left without arguments
14934need_version=unknown
14935
14936
14937
14938case $host_os in
14939aix3*)
14940  version_type=linux # correct to gnu/linux during the next big refactor
14941  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14942  shlibpath_var=LIBPATH
14943
14944  # AIX 3 has no versioning support, so we append a major version to the name.
14945  soname_spec='$libname$release$shared_ext$major'
14946  ;;
14947
14948aix[4-9]*)
14949  version_type=linux # correct to gnu/linux during the next big refactor
14950  need_lib_prefix=no
14951  need_version=no
14952  hardcode_into_libs=yes
14953  if test ia64 = "$host_cpu"; then
14954    # AIX 5 supports IA64
14955    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14956    shlibpath_var=LD_LIBRARY_PATH
14957  else
14958    # With GCC up to 2.95.x, collect2 would create an import file
14959    # for dependence libraries.  The import file would start with
14960    # the line '#! .'.  This would cause the generated library to
14961    # depend on '.', always an invalid library.  This was fixed in
14962    # development snapshots of GCC prior to 3.0.
14963    case $host_os in
14964      aix4 | aix4.[01] | aix4.[01].*)
14965      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14966	   echo ' yes '
14967	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14968	:
14969      else
14970	can_build_shared=no
14971      fi
14972      ;;
14973    esac
14974    # Using Import Files as archive members, it is possible to support
14975    # filename-based versioning of shared library archives on AIX. While
14976    # this would work for both with and without runtime linking, it will
14977    # prevent static linking of such archives. So we do filename-based
14978    # shared library versioning with .so extension only, which is used
14979    # when both runtime linking and shared linking is enabled.
14980    # Unfortunately, runtime linking may impact performance, so we do
14981    # not want this to be the default eventually. Also, we use the
14982    # versioned .so libs for executables only if there is the -brtl
14983    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14984    # To allow for filename-based versioning support, we need to create
14985    # libNAME.so.V as an archive file, containing:
14986    # *) an Import File, referring to the versioned filename of the
14987    #    archive as well as the shared archive member, telling the
14988    #    bitwidth (32 or 64) of that shared object, and providing the
14989    #    list of exported symbols of that shared object, eventually
14990    #    decorated with the 'weak' keyword
14991    # *) the shared object with the F_LOADONLY flag set, to really avoid
14992    #    it being seen by the linker.
14993    # At run time we better use the real file rather than another symlink,
14994    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14995
14996    case $with_aix_soname,$aix_use_runtimelinking in
14997    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14998    # soname into executable. Probably we can add versioning support to
14999    # collect2, so additional links can be useful in future.
15000    aix,yes) # traditional libtool
15001      dynamic_linker='AIX unversionable lib.so'
15002      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15003      # instead of lib<name>.a to let people know that these are not
15004      # typical AIX shared libraries.
15005      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15006      ;;
15007    aix,no) # traditional AIX only
15008      dynamic_linker='AIX lib.a(lib.so.V)'
15009      # We preserve .a as extension for shared libraries through AIX4.2
15010      # and later when we are not doing run time linking.
15011      library_names_spec='$libname$release.a $libname.a'
15012      soname_spec='$libname$release$shared_ext$major'
15013      ;;
15014    svr4,*) # full svr4 only
15015      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15016      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15017      # We do not specify a path in Import Files, so LIBPATH fires.
15018      shlibpath_overrides_runpath=yes
15019      ;;
15020    *,yes) # both, prefer svr4
15021      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15022      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15023      # unpreferred sharedlib libNAME.a needs extra handling
15024      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15025      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15026      # We do not specify a path in Import Files, so LIBPATH fires.
15027      shlibpath_overrides_runpath=yes
15028      ;;
15029    *,no) # both, prefer aix
15030      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15031      library_names_spec='$libname$release.a $libname.a'
15032      soname_spec='$libname$release$shared_ext$major'
15033      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15034      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15035      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15036      ;;
15037    esac
15038    shlibpath_var=LIBPATH
15039  fi
15040  ;;
15041
15042amigaos*)
15043  case $host_cpu in
15044  powerpc)
15045    # Since July 2007 AmigaOS4 officially supports .so libraries.
15046    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15047    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15048    ;;
15049  m68k)
15050    library_names_spec='$libname.ixlibrary $libname.a'
15051    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15052    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15053    ;;
15054  esac
15055  ;;
15056
15057beos*)
15058  library_names_spec='$libname$shared_ext'
15059  dynamic_linker="$host_os ld.so"
15060  shlibpath_var=LIBRARY_PATH
15061  ;;
15062
15063bsdi[45]*)
15064  version_type=linux # correct to gnu/linux during the next big refactor
15065  need_version=no
15066  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15067  soname_spec='$libname$release$shared_ext$major'
15068  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15069  shlibpath_var=LD_LIBRARY_PATH
15070  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15071  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15072  # the default ld.so.conf also contains /usr/contrib/lib and
15073  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15074  # libtool to hard-code these into programs
15075  ;;
15076
15077cygwin* | mingw* | pw32* | cegcc*)
15078  version_type=windows
15079  shrext_cmds=.dll
15080  need_version=no
15081  need_lib_prefix=no
15082
15083  case $GCC,$cc_basename in
15084  yes,*)
15085    # gcc
15086    library_names_spec='$libname.dll.a'
15087    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15088    postinstall_cmds='base_file=`basename \$file`~
15089      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15090      dldir=$destdir/`dirname \$dlpath`~
15091      test -d \$dldir || mkdir -p \$dldir~
15092      $install_prog $dir/$dlname \$dldir/$dlname~
15093      chmod a+x \$dldir/$dlname~
15094      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15095        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15096      fi'
15097    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15098      dlpath=$dir/\$dldll~
15099       $RM \$dlpath'
15100    shlibpath_overrides_runpath=yes
15101
15102    case $host_os in
15103    cygwin*)
15104      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15105      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15106
15107      ;;
15108    mingw* | cegcc*)
15109      # MinGW DLLs use traditional 'lib' prefix
15110      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15111      ;;
15112    pw32*)
15113      # pw32 DLLs use 'pw' prefix rather than 'lib'
15114      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15115      ;;
15116    esac
15117    dynamic_linker='Win32 ld.exe'
15118    ;;
15119
15120  *,cl*)
15121    # Native MSVC
15122    libname_spec='$name'
15123    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15124    library_names_spec='$libname.dll.lib'
15125
15126    case $build_os in
15127    mingw*)
15128      sys_lib_search_path_spec=
15129      lt_save_ifs=$IFS
15130      IFS=';'
15131      for lt_path in $LIB
15132      do
15133        IFS=$lt_save_ifs
15134        # Let DOS variable expansion print the short 8.3 style file name.
15135        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15136        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15137      done
15138      IFS=$lt_save_ifs
15139      # Convert to MSYS style.
15140      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15141      ;;
15142    cygwin*)
15143      # Convert to unix form, then to dos form, then back to unix form
15144      # but this time dos style (no spaces!) so that the unix form looks
15145      # like /cygdrive/c/PROGRA~1:/cygdr...
15146      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15147      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15148      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15149      ;;
15150    *)
15151      sys_lib_search_path_spec=$LIB
15152      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15153        # It is most probably a Windows format PATH.
15154        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15155      else
15156        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15157      fi
15158      # FIXME: find the short name or the path components, as spaces are
15159      # common. (e.g. "Program Files" -> "PROGRA~1")
15160      ;;
15161    esac
15162
15163    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15164    postinstall_cmds='base_file=`basename \$file`~
15165      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15166      dldir=$destdir/`dirname \$dlpath`~
15167      test -d \$dldir || mkdir -p \$dldir~
15168      $install_prog $dir/$dlname \$dldir/$dlname'
15169    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15170      dlpath=$dir/\$dldll~
15171       $RM \$dlpath'
15172    shlibpath_overrides_runpath=yes
15173    dynamic_linker='Win32 link.exe'
15174    ;;
15175
15176  *)
15177    # Assume MSVC wrapper
15178    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15179    dynamic_linker='Win32 ld.exe'
15180    ;;
15181  esac
15182  # FIXME: first we should search . and the directory the executable is in
15183  shlibpath_var=PATH
15184  ;;
15185
15186darwin* | rhapsody*)
15187  dynamic_linker="$host_os dyld"
15188  version_type=darwin
15189  need_lib_prefix=no
15190  need_version=no
15191  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15192  soname_spec='$libname$release$major$shared_ext'
15193  shlibpath_overrides_runpath=yes
15194  shlibpath_var=DYLD_LIBRARY_PATH
15195  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15196
15197  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15198  ;;
15199
15200dgux*)
15201  version_type=linux # correct to gnu/linux during the next big refactor
15202  need_lib_prefix=no
15203  need_version=no
15204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15205  soname_spec='$libname$release$shared_ext$major'
15206  shlibpath_var=LD_LIBRARY_PATH
15207  ;;
15208
15209freebsd* | dragonfly*)
15210  # DragonFly does not have aout.  When/if they implement a new
15211  # versioning mechanism, adjust this.
15212  if test -x /usr/bin/objformat; then
15213    objformat=`/usr/bin/objformat`
15214  else
15215    case $host_os in
15216    freebsd[23].*) objformat=aout ;;
15217    *) objformat=elf ;;
15218    esac
15219  fi
15220  version_type=freebsd-$objformat
15221  case $version_type in
15222    freebsd-elf*)
15223      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15224      soname_spec='$libname$release$shared_ext$major'
15225      need_version=no
15226      need_lib_prefix=no
15227      ;;
15228    freebsd-*)
15229      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15230      need_version=yes
15231      ;;
15232  esac
15233  shlibpath_var=LD_LIBRARY_PATH
15234  case $host_os in
15235  freebsd2.*)
15236    shlibpath_overrides_runpath=yes
15237    ;;
15238  freebsd3.[01]* | freebsdelf3.[01]*)
15239    shlibpath_overrides_runpath=yes
15240    hardcode_into_libs=yes
15241    ;;
15242  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15243  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15244    shlibpath_overrides_runpath=no
15245    hardcode_into_libs=yes
15246    ;;
15247  *) # from 4.6 on, and DragonFly
15248    shlibpath_overrides_runpath=yes
15249    hardcode_into_libs=yes
15250    ;;
15251  esac
15252  ;;
15253
15254haiku*)
15255  version_type=linux # correct to gnu/linux during the next big refactor
15256  need_lib_prefix=no
15257  need_version=no
15258  dynamic_linker="$host_os runtime_loader"
15259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15260  soname_spec='$libname$release$shared_ext$major'
15261  shlibpath_var=LIBRARY_PATH
15262  shlibpath_overrides_runpath=no
15263  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15264  hardcode_into_libs=yes
15265  ;;
15266
15267hpux9* | hpux10* | hpux11*)
15268  # Give a soname corresponding to the major version so that dld.sl refuses to
15269  # link against other versions.
15270  version_type=sunos
15271  need_lib_prefix=no
15272  need_version=no
15273  case $host_cpu in
15274  ia64*)
15275    shrext_cmds='.so'
15276    hardcode_into_libs=yes
15277    dynamic_linker="$host_os dld.so"
15278    shlibpath_var=LD_LIBRARY_PATH
15279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15280    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15281    soname_spec='$libname$release$shared_ext$major'
15282    if test 32 = "$HPUX_IA64_MODE"; then
15283      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15284      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15285    else
15286      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15287      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15288    fi
15289    ;;
15290  hppa*64*)
15291    shrext_cmds='.sl'
15292    hardcode_into_libs=yes
15293    dynamic_linker="$host_os dld.sl"
15294    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15295    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15296    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15297    soname_spec='$libname$release$shared_ext$major'
15298    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15299    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15300    ;;
15301  *)
15302    shrext_cmds='.sl'
15303    dynamic_linker="$host_os dld.sl"
15304    shlibpath_var=SHLIB_PATH
15305    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15306    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15307    soname_spec='$libname$release$shared_ext$major'
15308    ;;
15309  esac
15310  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15311  postinstall_cmds='chmod 555 $lib'
15312  # or fails outright, so override atomically:
15313  install_override_mode=555
15314  ;;
15315
15316interix[3-9]*)
15317  version_type=linux # correct to gnu/linux during the next big refactor
15318  need_lib_prefix=no
15319  need_version=no
15320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15321  soname_spec='$libname$release$shared_ext$major'
15322  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15323  shlibpath_var=LD_LIBRARY_PATH
15324  shlibpath_overrides_runpath=no
15325  hardcode_into_libs=yes
15326  ;;
15327
15328irix5* | irix6* | nonstopux*)
15329  case $host_os in
15330    nonstopux*) version_type=nonstopux ;;
15331    *)
15332	if test yes = "$lt_cv_prog_gnu_ld"; then
15333		version_type=linux # correct to gnu/linux during the next big refactor
15334	else
15335		version_type=irix
15336	fi ;;
15337  esac
15338  need_lib_prefix=no
15339  need_version=no
15340  soname_spec='$libname$release$shared_ext$major'
15341  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15342  case $host_os in
15343  irix5* | nonstopux*)
15344    libsuff= shlibsuff=
15345    ;;
15346  *)
15347    case $LD in # libtool.m4 will add one of these switches to LD
15348    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15349      libsuff= shlibsuff= libmagic=32-bit;;
15350    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15351      libsuff=32 shlibsuff=N32 libmagic=N32;;
15352    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15353      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15354    *) libsuff= shlibsuff= libmagic=never-match;;
15355    esac
15356    ;;
15357  esac
15358  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15359  shlibpath_overrides_runpath=no
15360  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15361  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15362  hardcode_into_libs=yes
15363  ;;
15364
15365# No shared lib support for Linux oldld, aout, or coff.
15366linux*oldld* | linux*aout* | linux*coff*)
15367  dynamic_linker=no
15368  ;;
15369
15370linux*android*)
15371  version_type=none # Android doesn't support versioned libraries.
15372  need_lib_prefix=no
15373  need_version=no
15374  library_names_spec='$libname$release$shared_ext'
15375  soname_spec='$libname$release$shared_ext'
15376  finish_cmds=
15377  shlibpath_var=LD_LIBRARY_PATH
15378  shlibpath_overrides_runpath=yes
15379
15380  # This implies no fast_install, which is unacceptable.
15381  # Some rework will be needed to allow for fast_install
15382  # before this can be enabled.
15383  hardcode_into_libs=yes
15384
15385  dynamic_linker='Android linker'
15386  # Don't embed -rpath directories since the linker doesn't support them.
15387  hardcode_libdir_flag_spec_CXX='-L$libdir'
15388  ;;
15389
15390# This must be glibc/ELF.
15391linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15392  version_type=linux # correct to gnu/linux during the next big refactor
15393  need_lib_prefix=no
15394  need_version=no
15395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15396  soname_spec='$libname$release$shared_ext$major'
15397  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15398  shlibpath_var=LD_LIBRARY_PATH
15399  shlibpath_overrides_runpath=no
15400
15401  # Some binutils ld are patched to set DT_RUNPATH
15402  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15403  $as_echo_n "(cached) " >&6
15404else
15405  lt_cv_shlibpath_overrides_runpath=no
15406    save_LDFLAGS=$LDFLAGS
15407    save_libdir=$libdir
15408    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15409	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411/* end confdefs.h.  */
15412
15413int
15414main ()
15415{
15416
15417  ;
15418  return 0;
15419}
15420_ACEOF
15421if ac_fn_cxx_try_link "$LINENO"; then :
15422  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15423  lt_cv_shlibpath_overrides_runpath=yes
15424fi
15425fi
15426rm -f core conftest.err conftest.$ac_objext \
15427    conftest$ac_exeext conftest.$ac_ext
15428    LDFLAGS=$save_LDFLAGS
15429    libdir=$save_libdir
15430
15431fi
15432
15433  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15434
15435  # This implies no fast_install, which is unacceptable.
15436  # Some rework will be needed to allow for fast_install
15437  # before this can be enabled.
15438  hardcode_into_libs=yes
15439
15440  # Ideally, we could use ldconfig to report *all* directores which are
15441  # searched for libraries, however this is still not possible.  Aside from not
15442  # being certain /sbin/ldconfig is available, command
15443  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15444  # even though it is searched at run-time.  Try to do the best guess by
15445  # appending ld.so.conf contents (and includes) to the search path.
15446  if test -f /etc/ld.so.conf; then
15447    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' ' '`
15448    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15449  fi
15450
15451  # We used to test for /lib/ld.so.1 and disable shared libraries on
15452  # powerpc, because MkLinux only supported shared libraries with the
15453  # GNU dynamic linker.  Since this was broken with cross compilers,
15454  # most powerpc-linux boxes support dynamic linking these days and
15455  # people can always --disable-shared, the test was removed, and we
15456  # assume the GNU/Linux dynamic linker is in use.
15457  dynamic_linker='GNU/Linux ld.so'
15458  ;;
15459
15460netbsd*)
15461  version_type=sunos
15462  need_lib_prefix=no
15463  need_version=no
15464  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15465    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15466    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15467    dynamic_linker='NetBSD (a.out) ld.so'
15468  else
15469    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15470    soname_spec='$libname$release$shared_ext$major'
15471    dynamic_linker='NetBSD ld.elf_so'
15472  fi
15473  shlibpath_var=LD_LIBRARY_PATH
15474  shlibpath_overrides_runpath=yes
15475  hardcode_into_libs=yes
15476  ;;
15477
15478newsos6)
15479  version_type=linux # correct to gnu/linux during the next big refactor
15480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15481  shlibpath_var=LD_LIBRARY_PATH
15482  shlibpath_overrides_runpath=yes
15483  ;;
15484
15485*nto* | *qnx*)
15486  version_type=qnx
15487  need_lib_prefix=no
15488  need_version=no
15489  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15490  soname_spec='$libname$release$shared_ext$major'
15491  shlibpath_var=LD_LIBRARY_PATH
15492  shlibpath_overrides_runpath=no
15493  hardcode_into_libs=yes
15494  dynamic_linker='ldqnx.so'
15495  ;;
15496
15497openbsd* | bitrig*)
15498  version_type=sunos
15499  sys_lib_dlsearch_path_spec=/usr/lib
15500  need_lib_prefix=no
15501  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15502    need_version=no
15503  else
15504    need_version=yes
15505  fi
15506  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15507  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15508  shlibpath_var=LD_LIBRARY_PATH
15509  shlibpath_overrides_runpath=yes
15510  ;;
15511
15512os2*)
15513  libname_spec='$name'
15514  version_type=windows
15515  shrext_cmds=.dll
15516  need_version=no
15517  need_lib_prefix=no
15518  # OS/2 can only load a DLL with a base name of 8 characters or less.
15519  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15520    v=$($ECHO $release$versuffix | tr -d .-);
15521    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15522    $ECHO $n$v`$shared_ext'
15523  library_names_spec='${libname}_dll.$libext'
15524  dynamic_linker='OS/2 ld.exe'
15525  shlibpath_var=BEGINLIBPATH
15526  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15527  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528  postinstall_cmds='base_file=`basename \$file`~
15529    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15530    dldir=$destdir/`dirname \$dlpath`~
15531    test -d \$dldir || mkdir -p \$dldir~
15532    $install_prog $dir/$dlname \$dldir/$dlname~
15533    chmod a+x \$dldir/$dlname~
15534    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15535      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15536    fi'
15537  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15538    dlpath=$dir/\$dldll~
15539    $RM \$dlpath'
15540  ;;
15541
15542osf3* | osf4* | osf5*)
15543  version_type=osf
15544  need_lib_prefix=no
15545  need_version=no
15546  soname_spec='$libname$release$shared_ext$major'
15547  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15548  shlibpath_var=LD_LIBRARY_PATH
15549  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15550  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15551  ;;
15552
15553rdos*)
15554  dynamic_linker=no
15555  ;;
15556
15557solaris*)
15558  version_type=linux # correct to gnu/linux during the next big refactor
15559  need_lib_prefix=no
15560  need_version=no
15561  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15562  soname_spec='$libname$release$shared_ext$major'
15563  shlibpath_var=LD_LIBRARY_PATH
15564  shlibpath_overrides_runpath=yes
15565  hardcode_into_libs=yes
15566  # ldd complains unless libraries are executable
15567  postinstall_cmds='chmod +x $lib'
15568  ;;
15569
15570sunos4*)
15571  version_type=sunos
15572  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15573  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15574  shlibpath_var=LD_LIBRARY_PATH
15575  shlibpath_overrides_runpath=yes
15576  if test yes = "$with_gnu_ld"; then
15577    need_lib_prefix=no
15578  fi
15579  need_version=yes
15580  ;;
15581
15582sysv4 | sysv4.3*)
15583  version_type=linux # correct to gnu/linux during the next big refactor
15584  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15585  soname_spec='$libname$release$shared_ext$major'
15586  shlibpath_var=LD_LIBRARY_PATH
15587  case $host_vendor in
15588    sni)
15589      shlibpath_overrides_runpath=no
15590      need_lib_prefix=no
15591      runpath_var=LD_RUN_PATH
15592      ;;
15593    siemens)
15594      need_lib_prefix=no
15595      ;;
15596    motorola)
15597      need_lib_prefix=no
15598      need_version=no
15599      shlibpath_overrides_runpath=no
15600      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15601      ;;
15602  esac
15603  ;;
15604
15605sysv4*MP*)
15606  if test -d /usr/nec; then
15607    version_type=linux # correct to gnu/linux during the next big refactor
15608    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15609    soname_spec='$libname$shared_ext.$major'
15610    shlibpath_var=LD_LIBRARY_PATH
15611  fi
15612  ;;
15613
15614sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15615  version_type=sco
15616  need_lib_prefix=no
15617  need_version=no
15618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15619  soname_spec='$libname$release$shared_ext$major'
15620  shlibpath_var=LD_LIBRARY_PATH
15621  shlibpath_overrides_runpath=yes
15622  hardcode_into_libs=yes
15623  if test yes = "$with_gnu_ld"; then
15624    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15625  else
15626    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15627    case $host_os in
15628      sco3.2v5*)
15629        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15630	;;
15631    esac
15632  fi
15633  sys_lib_dlsearch_path_spec='/usr/lib'
15634  ;;
15635
15636tpf*)
15637  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15638  version_type=linux # correct to gnu/linux during the next big refactor
15639  need_lib_prefix=no
15640  need_version=no
15641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15642  shlibpath_var=LD_LIBRARY_PATH
15643  shlibpath_overrides_runpath=no
15644  hardcode_into_libs=yes
15645  ;;
15646
15647uts4*)
15648  version_type=linux # correct to gnu/linux during the next big refactor
15649  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15650  soname_spec='$libname$release$shared_ext$major'
15651  shlibpath_var=LD_LIBRARY_PATH
15652  ;;
15653
15654*)
15655  dynamic_linker=no
15656  ;;
15657esac
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15659$as_echo "$dynamic_linker" >&6; }
15660test no = "$dynamic_linker" && can_build_shared=no
15661
15662variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15663if test yes = "$GCC"; then
15664  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15665fi
15666
15667if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15668  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15669fi
15670
15671if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15672  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15673fi
15674
15675# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15676configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15677
15678# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15679func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15680
15681# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15682configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15724$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15725hardcode_action_CXX=
15726if test -n "$hardcode_libdir_flag_spec_CXX" ||
15727   test -n "$runpath_var_CXX" ||
15728   test yes = "$hardcode_automatic_CXX"; then
15729
15730  # We can hardcode non-existent directories.
15731  if test no != "$hardcode_direct_CXX" &&
15732     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15733     # have to relink, otherwise we might link with an installed library
15734     # when we should be linking with a yet-to-be-installed one
15735     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15736     test no != "$hardcode_minus_L_CXX"; then
15737    # Linking always hardcodes the temporary library directory.
15738    hardcode_action_CXX=relink
15739  else
15740    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15741    hardcode_action_CXX=immediate
15742  fi
15743else
15744  # We cannot hardcode anything, or else we can only hardcode existing
15745  # directories.
15746  hardcode_action_CXX=unsupported
15747fi
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15749$as_echo "$hardcode_action_CXX" >&6; }
15750
15751if test relink = "$hardcode_action_CXX" ||
15752   test yes = "$inherit_rpath_CXX"; then
15753  # Fast installation is not supported
15754  enable_fast_install=no
15755elif test yes = "$shlibpath_overrides_runpath" ||
15756     test no = "$enable_shared"; then
15757  # Fast installation is not necessary
15758  enable_fast_install=needless
15759fi
15760
15761
15762
15763
15764
15765
15766
15767  fi # test -n "$compiler"
15768
15769  CC=$lt_save_CC
15770  CFLAGS=$lt_save_CFLAGS
15771  LDCXX=$LD
15772  LD=$lt_save_LD
15773  GCC=$lt_save_GCC
15774  with_gnu_ld=$lt_save_with_gnu_ld
15775  lt_cv_path_LDCXX=$lt_cv_path_LD
15776  lt_cv_path_LD=$lt_save_path_LD
15777  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15778  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15779fi # test yes != "$_lt_caught_CXX_error"
15780
15781ac_ext=c
15782ac_cpp='$CPP $CPPFLAGS'
15783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15785ac_compiler_gnu=$ac_cv_c_compiler_gnu
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801        ac_config_commands="$ac_config_commands libtool"
15802
15803
15804
15805
15806# Only expand once:
15807
15808
15809@%:@ Check whether --enable-shared was given.
15810if test "${enable_shared+set}" = set; then :
15811  enableval=$enable_shared; p=${PACKAGE-default}
15812    case $enableval in
15813    yes) enable_shared=yes ;;
15814    no) enable_shared=no ;;
15815    *)
15816      enable_shared=no
15817      # Look at the argument we got.  We use all the common list separators.
15818      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15819      for pkg in $enableval; do
15820	IFS=$lt_save_ifs
15821	if test "X$pkg" = "X$p"; then
15822	  enable_shared=yes
15823	fi
15824      done
15825      IFS=$lt_save_ifs
15826      ;;
15827    esac
15828else
15829  enable_shared=yes
15830fi
15831
15832
15833
15834
15835
15836
15837@%:@ Check whether --enable-static was given.
15838if test "${enable_static+set}" = set; then :
15839  enableval=$enable_static; p=${PACKAGE-default}
15840    case $enableval in
15841    yes) enable_static=yes ;;
15842    no) enable_static=no ;;
15843    *)
15844     enable_static=no
15845      # Look at the argument we got.  We use all the common list separators.
15846      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15847      for pkg in $enableval; do
15848	IFS=$lt_save_ifs
15849	if test "X$pkg" = "X$p"; then
15850	  enable_static=yes
15851	fi
15852      done
15853      IFS=$lt_save_ifs
15854      ;;
15855    esac
15856else
15857  enable_static=yes
15858fi
15859
15860
15861
15862
15863
15864
15865enable_win32_dll=yes
15866
15867case $host in
15868*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
15869  if test -n "$ac_tool_prefix"; then
15870  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
15871set dummy ${ac_tool_prefix}as; ac_word=$2
15872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15873$as_echo_n "checking for $ac_word... " >&6; }
15874if ${ac_cv_prog_AS+:} false; then :
15875  $as_echo_n "(cached) " >&6
15876else
15877  if test -n "$AS"; then
15878  ac_cv_prog_AS="$AS" # Let the user override the test.
15879else
15880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881for as_dir in $PATH
15882do
15883  IFS=$as_save_IFS
15884  test -z "$as_dir" && as_dir=.
15885    for ac_exec_ext in '' $ac_executable_extensions; do
15886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887    ac_cv_prog_AS="${ac_tool_prefix}as"
15888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15889    break 2
15890  fi
15891done
15892  done
15893IFS=$as_save_IFS
15894
15895fi
15896fi
15897AS=$ac_cv_prog_AS
15898if test -n "$AS"; then
15899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
15900$as_echo "$AS" >&6; }
15901else
15902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903$as_echo "no" >&6; }
15904fi
15905
15906
15907fi
15908if test -z "$ac_cv_prog_AS"; then
15909  ac_ct_AS=$AS
15910  # Extract the first word of "as", so it can be a program name with args.
15911set dummy as; ac_word=$2
15912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15913$as_echo_n "checking for $ac_word... " >&6; }
15914if ${ac_cv_prog_ac_ct_AS+:} false; then :
15915  $as_echo_n "(cached) " >&6
15916else
15917  if test -n "$ac_ct_AS"; then
15918  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15919else
15920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15921for as_dir in $PATH
15922do
15923  IFS=$as_save_IFS
15924  test -z "$as_dir" && as_dir=.
15925    for ac_exec_ext in '' $ac_executable_extensions; do
15926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15927    ac_cv_prog_ac_ct_AS="as"
15928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15929    break 2
15930  fi
15931done
15932  done
15933IFS=$as_save_IFS
15934
15935fi
15936fi
15937ac_ct_AS=$ac_cv_prog_ac_ct_AS
15938if test -n "$ac_ct_AS"; then
15939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
15940$as_echo "$ac_ct_AS" >&6; }
15941else
15942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943$as_echo "no" >&6; }
15944fi
15945
15946  if test "x$ac_ct_AS" = x; then
15947    AS="false"
15948  else
15949    case $cross_compiling:$ac_tool_warned in
15950yes:)
15951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15953ac_tool_warned=yes ;;
15954esac
15955    AS=$ac_ct_AS
15956  fi
15957else
15958  AS="$ac_cv_prog_AS"
15959fi
15960
15961  if test -n "$ac_tool_prefix"; then
15962  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15963set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15965$as_echo_n "checking for $ac_word... " >&6; }
15966if ${ac_cv_prog_DLLTOOL+:} false; then :
15967  $as_echo_n "(cached) " >&6
15968else
15969  if test -n "$DLLTOOL"; then
15970  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15971else
15972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973for as_dir in $PATH
15974do
15975  IFS=$as_save_IFS
15976  test -z "$as_dir" && as_dir=.
15977    for ac_exec_ext in '' $ac_executable_extensions; do
15978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15979    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15981    break 2
15982  fi
15983done
15984  done
15985IFS=$as_save_IFS
15986
15987fi
15988fi
15989DLLTOOL=$ac_cv_prog_DLLTOOL
15990if test -n "$DLLTOOL"; then
15991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15992$as_echo "$DLLTOOL" >&6; }
15993else
15994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15995$as_echo "no" >&6; }
15996fi
15997
15998
15999fi
16000if test -z "$ac_cv_prog_DLLTOOL"; then
16001  ac_ct_DLLTOOL=$DLLTOOL
16002  # Extract the first word of "dlltool", so it can be a program name with args.
16003set dummy dlltool; ac_word=$2
16004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16005$as_echo_n "checking for $ac_word... " >&6; }
16006if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16007  $as_echo_n "(cached) " >&6
16008else
16009  if test -n "$ac_ct_DLLTOOL"; then
16010  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16011else
16012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013for as_dir in $PATH
16014do
16015  IFS=$as_save_IFS
16016  test -z "$as_dir" && as_dir=.
16017    for ac_exec_ext in '' $ac_executable_extensions; do
16018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16021    break 2
16022  fi
16023done
16024  done
16025IFS=$as_save_IFS
16026
16027fi
16028fi
16029ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16030if test -n "$ac_ct_DLLTOOL"; then
16031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16032$as_echo "$ac_ct_DLLTOOL" >&6; }
16033else
16034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16035$as_echo "no" >&6; }
16036fi
16037
16038  if test "x$ac_ct_DLLTOOL" = x; then
16039    DLLTOOL="false"
16040  else
16041    case $cross_compiling:$ac_tool_warned in
16042yes:)
16043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16045ac_tool_warned=yes ;;
16046esac
16047    DLLTOOL=$ac_ct_DLLTOOL
16048  fi
16049else
16050  DLLTOOL="$ac_cv_prog_DLLTOOL"
16051fi
16052
16053  if test -n "$ac_tool_prefix"; then
16054  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16055set dummy ${ac_tool_prefix}objdump; ac_word=$2
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16057$as_echo_n "checking for $ac_word... " >&6; }
16058if ${ac_cv_prog_OBJDUMP+:} false; then :
16059  $as_echo_n "(cached) " >&6
16060else
16061  if test -n "$OBJDUMP"; then
16062  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16063else
16064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16065for as_dir in $PATH
16066do
16067  IFS=$as_save_IFS
16068  test -z "$as_dir" && as_dir=.
16069    for ac_exec_ext in '' $ac_executable_extensions; do
16070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16071    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16073    break 2
16074  fi
16075done
16076  done
16077IFS=$as_save_IFS
16078
16079fi
16080fi
16081OBJDUMP=$ac_cv_prog_OBJDUMP
16082if test -n "$OBJDUMP"; then
16083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16084$as_echo "$OBJDUMP" >&6; }
16085else
16086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16087$as_echo "no" >&6; }
16088fi
16089
16090
16091fi
16092if test -z "$ac_cv_prog_OBJDUMP"; then
16093  ac_ct_OBJDUMP=$OBJDUMP
16094  # Extract the first word of "objdump", so it can be a program name with args.
16095set dummy objdump; ac_word=$2
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097$as_echo_n "checking for $ac_word... " >&6; }
16098if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16099  $as_echo_n "(cached) " >&6
16100else
16101  if test -n "$ac_ct_OBJDUMP"; then
16102  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16103else
16104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105for as_dir in $PATH
16106do
16107  IFS=$as_save_IFS
16108  test -z "$as_dir" && as_dir=.
16109    for ac_exec_ext in '' $ac_executable_extensions; do
16110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16111    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16113    break 2
16114  fi
16115done
16116  done
16117IFS=$as_save_IFS
16118
16119fi
16120fi
16121ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16122if test -n "$ac_ct_OBJDUMP"; then
16123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16124$as_echo "$ac_ct_OBJDUMP" >&6; }
16125else
16126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127$as_echo "no" >&6; }
16128fi
16129
16130  if test "x$ac_ct_OBJDUMP" = x; then
16131    OBJDUMP="false"
16132  else
16133    case $cross_compiling:$ac_tool_warned in
16134yes:)
16135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16137ac_tool_warned=yes ;;
16138esac
16139    OBJDUMP=$ac_ct_OBJDUMP
16140  fi
16141else
16142  OBJDUMP="$ac_cv_prog_OBJDUMP"
16143fi
16144
16145  ;;
16146esac
16147
16148test -z "$AS" && AS=as
16149
16150
16151
16152
16153
16154test -z "$DLLTOOL" && DLLTOOL=dlltool
16155
16156
16157test -z "$OBJDUMP" && OBJDUMP=objdump
16158
16159
16160
16161
16162
16163
16164
16165# Config files to generate
16166
16167ac_config_files="$ac_config_files Makefile libraw.pc libraw_r.pc"
16168
16169
16170# check if we want OpenMP support
16171@%:@ Check whether --enable-openmp was given.
16172if test "${enable_openmp+set}" = set; then :
16173  enableval=$enable_openmp; case "${enableval}" in
16174		yes) 	openmp=true ;;
16175		no)		openmp=false ;;
16176		*)		as_fn_error $? "bad value ${enableval} for --enable-openmp" "$LINENO" 5 ;;
16177	esac
16178else
16179  openmp=true
16180fi
16181
16182
16183if test x$openmp = xtrue ; then
16184
16185
16186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
16187$as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
16188if ${ax_cv_c_openmp+:} false; then :
16189  $as_echo_n "(cached) " >&6
16190else
16191  saveCFLAGS=$CFLAGS
16192ax_cv_c_openmp=unknown
16193# Flags to try:  -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
16194#                -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
16195ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
16196if test "x$OPENMP_CFLAGS" != x; then
16197  ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
16198fi
16199for ax_openmp_flag in $ax_openmp_flags; do
16200  case $ax_openmp_flag in
16201    none) CFLAGS=$saveC ;;
16202    *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
16203  esac
16204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205/* end confdefs.h.  */
16206
16207/* Override any GCC internal prototype to avoid an error.
16208   Use char because int might match the return type of a GCC
16209   builtin and then its argument prototype would still apply.  */
16210#ifdef __cplusplus
16211extern "C"
16212#endif
16213char omp_set_num_threads ();
16214int
16215main ()
16216{
16217return omp_set_num_threads ();
16218  ;
16219  return 0;
16220}
16221_ACEOF
16222if ac_fn_c_try_link "$LINENO"; then :
16223  ax_cv_c_openmp=$ax_openmp_flag; break
16224fi
16225rm -f core conftest.err conftest.$ac_objext \
16226    conftest$ac_exeext conftest.$ac_ext
16227done
16228CFLAGS=$saveCFLAGS
16229
16230fi
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
16232$as_echo "$ax_cv_c_openmp" >&6; }
16233if test "x$ax_cv_c_openmp" = "xunknown"; then
16234
16235		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP support cannot be enabled because your system doesn't support it." >&5
16236$as_echo "$as_me: WARNING: OpenMP support cannot be enabled because your system doesn't support it." >&2;}
16237
16238else
16239  if test "x$ax_cv_c_openmp" != "xnone"; then
16240    OPENMP_CFLAGS=$ax_cv_c_openmp
16241  fi
16242
16243		CXXFLAGS="$CXXFLAGS $OPENMP_CFLAGS"
16244		CFLAGS="$CFLAGS $OPENMP_CFLAGS"
16245		PC_OPENMP=" $OPENMP_CFLAGS"
16246
16247
16248fi
16249
16250fi
16251
16252# check for libjpeg v8
16253@%:@ Check whether --enable-jpeg was given.
16254if test "${enable_jpeg+set}" = set; then :
16255  enableval=$enable_jpeg; case "${enableval}" in
16256		yes)	jpeg=true ;;
16257		no)	jpeg=false ;;
16258		*)	as_fn_error $? "bad value ${enableval} for --enable-jpeg" "$LINENO" 5 ;;
16259	esac
16260else
16261  jpeg=true
16262fi
16263
16264
16265if test x$jpeg = xtrue; then
16266        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_mem_src in -ljpeg" >&5
16267$as_echo_n "checking for jpeg_mem_src in -ljpeg... " >&6; }
16268if ${ac_cv_lib_jpeg_jpeg_mem_src+:} false; then :
16269  $as_echo_n "(cached) " >&6
16270else
16271  ac_check_lib_save_LIBS=$LIBS
16272LIBS="-ljpeg  $LIBS"
16273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h.  */
16275
16276/* Override any GCC internal prototype to avoid an error.
16277   Use char because int might match the return type of a GCC
16278   builtin and then its argument prototype would still apply.  */
16279#ifdef __cplusplus
16280extern "C"
16281#endif
16282char jpeg_mem_src ();
16283int
16284main ()
16285{
16286return jpeg_mem_src ();
16287  ;
16288  return 0;
16289}
16290_ACEOF
16291if ac_fn_c_try_link "$LINENO"; then :
16292  ac_cv_lib_jpeg_jpeg_mem_src=yes
16293else
16294  ac_cv_lib_jpeg_jpeg_mem_src=no
16295fi
16296rm -f core conftest.err conftest.$ac_objext \
16297    conftest$ac_exeext conftest.$ac_ext
16298LIBS=$ac_check_lib_save_LIBS
16299fi
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_mem_src" >&5
16301$as_echo "$ac_cv_lib_jpeg_jpeg_mem_src" >&6; }
16302if test "x$ac_cv_lib_jpeg_jpeg_mem_src" = xyes; then :
16303
16304                        for ac_header in jpeglib.h
16305do :
16306  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
16307if test "x$ac_cv_header_jpeglib_h" = xyes; then :
16308  cat >>confdefs.h <<_ACEOF
16309@%:@define HAVE_JPEGLIB_H 1
16310_ACEOF
16311
16312                                CPPFLAGS="$CPPFLAGS -DUSE_JPEG -DUSE_JPEG8"
16313                                LIBS="$LIBS -ljpeg"
16314
16315else
16316  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no jpeg headers found" >&5
16317$as_echo "$as_me: WARNING: no jpeg headers found" >&2;}
16318fi
16319
16320done
16321
16322
16323else
16324  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg not found" >&5
16325$as_echo "$as_me: WARNING: libjpeg not found" >&2;}
16326
16327fi
16328
16329fi
16330
16331# check for Jasper (JPEG2000) support
16332@%:@ Check whether --enable-jasper was given.
16333if test "${enable_jasper+set}" = set; then :
16334  enableval=$enable_jasper; case "${enableval}" in
16335		yes)	jasper=true ;;
16336		no)	jasper=false ;;
16337		*)	as_fn_error $? "bad value ${enableval} for --enable-jasper" "$LINENO" 5 ;;
16338	esac
16339else
16340  jasper=true
16341fi
16342
16343
16344if test x$jasper = xtrue; then
16345        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_init in -ljasper" >&5
16346$as_echo_n "checking for jas_init in -ljasper... " >&6; }
16347if ${ac_cv_lib_jasper_jas_init+:} false; then :
16348  $as_echo_n "(cached) " >&6
16349else
16350  ac_check_lib_save_LIBS=$LIBS
16351LIBS="-ljasper  $LIBS"
16352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353/* end confdefs.h.  */
16354
16355/* Override any GCC internal prototype to avoid an error.
16356   Use char because int might match the return type of a GCC
16357   builtin and then its argument prototype would still apply.  */
16358#ifdef __cplusplus
16359extern "C"
16360#endif
16361char jas_init ();
16362int
16363main ()
16364{
16365return jas_init ();
16366  ;
16367  return 0;
16368}
16369_ACEOF
16370if ac_fn_c_try_link "$LINENO"; then :
16371  ac_cv_lib_jasper_jas_init=yes
16372else
16373  ac_cv_lib_jasper_jas_init=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext \
16376    conftest$ac_exeext conftest.$ac_ext
16377LIBS=$ac_check_lib_save_LIBS
16378fi
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_init" >&5
16380$as_echo "$ac_cv_lib_jasper_jas_init" >&6; }
16381if test "x$ac_cv_lib_jasper_jas_init" = xyes; then :
16382
16383                        for ac_header in jasper/jasper.h
16384do :
16385  ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
16386if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
16387  cat >>confdefs.h <<_ACEOF
16388@%:@define HAVE_JASPER_JASPER_H 1
16389_ACEOF
16390
16391                                CPPFLAGS="$CPPFLAGS -DUSE_JASPER"
16392                                LIBS="$LIBS -ljasper"
16393
16394else
16395  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no jasper headers found" >&5
16396$as_echo "$as_me: WARNING: no jasper headers found" >&2;}
16397fi
16398
16399done
16400
16401
16402else
16403  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjasper not found" >&5
16404$as_echo "$as_me: WARNING: libjasper not found" >&2;}
16405
16406fi
16407
16408fi
16409
16410# check if we want zlib support
16411@%:@ Check whether --enable-zlib was given.
16412if test "${enable_zlib+set}" = set; then :
16413  enableval=$enable_zlib; case "${enableval}" in
16414		yes)	zlib=true ;;
16415		no)		zlib=false ;;
16416		*)		as_fn_error $? "bad value ${enableval} for --enable-zlib" "$LINENO" 5 ;;
16417	esac
16418else
16419  zlib=true
16420fi
16421
16422
16423if test x$zlib = xtrue; then
16424
16425
16426
16427
16428
16429
16430
16431if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16432	if test -n "$ac_tool_prefix"; then
16433  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16434set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16436$as_echo_n "checking for $ac_word... " >&6; }
16437if ${ac_cv_path_PKG_CONFIG+:} false; then :
16438  $as_echo_n "(cached) " >&6
16439else
16440  case $PKG_CONFIG in
16441  [\\/]* | ?:[\\/]*)
16442  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16443  ;;
16444  *)
16445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446for as_dir in $PATH
16447do
16448  IFS=$as_save_IFS
16449  test -z "$as_dir" && as_dir=.
16450    for ac_exec_ext in '' $ac_executable_extensions; do
16451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16452    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16454    break 2
16455  fi
16456done
16457  done
16458IFS=$as_save_IFS
16459
16460  ;;
16461esac
16462fi
16463PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16464if test -n "$PKG_CONFIG"; then
16465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16466$as_echo "$PKG_CONFIG" >&6; }
16467else
16468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469$as_echo "no" >&6; }
16470fi
16471
16472
16473fi
16474if test -z "$ac_cv_path_PKG_CONFIG"; then
16475  ac_pt_PKG_CONFIG=$PKG_CONFIG
16476  # Extract the first word of "pkg-config", so it can be a program name with args.
16477set dummy pkg-config; ac_word=$2
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16479$as_echo_n "checking for $ac_word... " >&6; }
16480if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16481  $as_echo_n "(cached) " >&6
16482else
16483  case $ac_pt_PKG_CONFIG in
16484  [\\/]* | ?:[\\/]*)
16485  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16486  ;;
16487  *)
16488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489for as_dir in $PATH
16490do
16491  IFS=$as_save_IFS
16492  test -z "$as_dir" && as_dir=.
16493    for ac_exec_ext in '' $ac_executable_extensions; do
16494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16497    break 2
16498  fi
16499done
16500  done
16501IFS=$as_save_IFS
16502
16503  ;;
16504esac
16505fi
16506ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16507if test -n "$ac_pt_PKG_CONFIG"; then
16508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16509$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16510else
16511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512$as_echo "no" >&6; }
16513fi
16514
16515  if test "x$ac_pt_PKG_CONFIG" = x; then
16516    PKG_CONFIG=""
16517  else
16518    case $cross_compiling:$ac_tool_warned in
16519yes:)
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16522ac_tool_warned=yes ;;
16523esac
16524    PKG_CONFIG=$ac_pt_PKG_CONFIG
16525  fi
16526else
16527  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16528fi
16529
16530fi
16531if test -n "$PKG_CONFIG"; then
16532	_pkg_min_version=0.9.0
16533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16534$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16535	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537$as_echo "yes" >&6; }
16538	else
16539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540$as_echo "no" >&6; }
16541		PKG_CONFIG=""
16542	fi
16543fi
16544
16545pkg_failed=no
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
16547$as_echo_n "checking for ZLIB... " >&6; }
16548
16549if test -n "$ZLIB_CFLAGS"; then
16550    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
16551 elif test -n "$PKG_CONFIG"; then
16552    if test -n "$PKG_CONFIG" && \
16553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
16554  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
16555  ac_status=$?
16556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16557  test $ac_status = 0; }; then
16558  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
16559		      test "x$?" != "x0" && pkg_failed=yes
16560else
16561  pkg_failed=yes
16562fi
16563 else
16564    pkg_failed=untried
16565fi
16566if test -n "$ZLIB_LIBS"; then
16567    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
16568 elif test -n "$PKG_CONFIG"; then
16569    if test -n "$PKG_CONFIG" && \
16570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
16571  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
16572  ac_status=$?
16573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16574  test $ac_status = 0; }; then
16575  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
16576		      test "x$?" != "x0" && pkg_failed=yes
16577else
16578  pkg_failed=yes
16579fi
16580 else
16581    pkg_failed=untried
16582fi
16583
16584
16585
16586if test $pkg_failed = yes; then
16587   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16588$as_echo "no" >&6; }
16589
16590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16591        _pkg_short_errors_supported=yes
16592else
16593        _pkg_short_errors_supported=no
16594fi
16595        if test $_pkg_short_errors_supported = yes; then
16596	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
16597        else
16598	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
16599        fi
16600	# Put the nasty error message in config.log where it belongs
16601	echo "$ZLIB_PKG_ERRORS" >&5
16602
16603	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib support cannot be enabled" >&5
16604$as_echo "$as_me: WARNING: zlib support cannot be enabled" >&2;}
16605
16606elif test $pkg_failed = untried; then
16607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16608$as_echo "no" >&6; }
16609	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib support cannot be enabled" >&5
16610$as_echo "$as_me: WARNING: zlib support cannot be enabled" >&2;}
16611
16612else
16613	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
16614	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
16615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16616$as_echo "yes" >&6; }
16617
16618		CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS -DUSE_ZLIB"
16619		LIBS="$LIBS $ZLIB_LIBS"
16620		PACKAGE_REQUIRES=zlib
16621
16622
16623fi
16624fi
16625
16626# check if we want LCMS support
16627@%:@ Check whether --enable-lcms was given.
16628if test "${enable_lcms+set}" = set; then :
16629  enableval=$enable_lcms; case "${enableval}" in
16630		yes)	lcms=true ;;
16631		no)		lcms=false ;;
16632		*)		as_fn_error $? "bad value ${enableval} for --enable-lcms" "$LINENO" 5 ;;
16633	esac
16634else
16635  lcms=true
16636fi
16637
16638
16639if test x$lcms = xtrue; then
16640
16641pkg_failed=no
16642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
16643$as_echo_n "checking for LCMS2... " >&6; }
16644
16645if test -n "$LCMS2_CFLAGS"; then
16646    pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
16647 elif test -n "$PKG_CONFIG"; then
16648    if test -n "$PKG_CONFIG" && \
16649    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
16650  ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
16651  ac_status=$?
16652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16653  test $ac_status = 0; }; then
16654  pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
16655		      test "x$?" != "x0" && pkg_failed=yes
16656else
16657  pkg_failed=yes
16658fi
16659 else
16660    pkg_failed=untried
16661fi
16662if test -n "$LCMS2_LIBS"; then
16663    pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
16664 elif test -n "$PKG_CONFIG"; then
16665    if test -n "$PKG_CONFIG" && \
16666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
16667  ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
16668  ac_status=$?
16669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16670  test $ac_status = 0; }; then
16671  pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
16672		      test "x$?" != "x0" && pkg_failed=yes
16673else
16674  pkg_failed=yes
16675fi
16676 else
16677    pkg_failed=untried
16678fi
16679
16680
16681
16682if test $pkg_failed = yes; then
16683   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684$as_echo "no" >&6; }
16685
16686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16687        _pkg_short_errors_supported=yes
16688else
16689        _pkg_short_errors_supported=no
16690fi
16691        if test $_pkg_short_errors_supported = yes; then
16692	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2" 2>&1`
16693        else
16694	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2" 2>&1`
16695        fi
16696	# Put the nasty error message in config.log where it belongs
16697	echo "$LCMS2_PKG_ERRORS" >&5
16698
16699
16700
16701pkg_failed=no
16702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
16703$as_echo_n "checking for LCMS... " >&6; }
16704
16705if test -n "$LCMS_CFLAGS"; then
16706    pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
16707 elif test -n "$PKG_CONFIG"; then
16708    if test -n "$PKG_CONFIG" && \
16709    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16710  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16711  ac_status=$?
16712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16713  test $ac_status = 0; }; then
16714  pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
16715		      test "x$?" != "x0" && pkg_failed=yes
16716else
16717  pkg_failed=yes
16718fi
16719 else
16720    pkg_failed=untried
16721fi
16722if test -n "$LCMS_LIBS"; then
16723    pkg_cv_LCMS_LIBS="$LCMS_LIBS"
16724 elif test -n "$PKG_CONFIG"; then
16725    if test -n "$PKG_CONFIG" && \
16726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16727  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16728  ac_status=$?
16729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16730  test $ac_status = 0; }; then
16731  pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
16732		      test "x$?" != "x0" && pkg_failed=yes
16733else
16734  pkg_failed=yes
16735fi
16736 else
16737    pkg_failed=untried
16738fi
16739
16740
16741
16742if test $pkg_failed = yes; then
16743   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744$as_echo "no" >&6; }
16745
16746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16747        _pkg_short_errors_supported=yes
16748else
16749        _pkg_short_errors_supported=no
16750fi
16751        if test $_pkg_short_errors_supported = yes; then
16752	        LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms" 2>&1`
16753        else
16754	        LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms" 2>&1`
16755        fi
16756	# Put the nasty error message in config.log where it belongs
16757	echo "$LCMS_PKG_ERRORS" >&5
16758
16759
16760		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LCMS support cannot be enabled" >&5
16761$as_echo "$as_me: WARNING: LCMS support cannot be enabled" >&2;}
16762
16763elif test $pkg_failed = untried; then
16764     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765$as_echo "no" >&6; }
16766
16767		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LCMS support cannot be enabled" >&5
16768$as_echo "$as_me: WARNING: LCMS support cannot be enabled" >&2;}
16769
16770else
16771	LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
16772	LCMS_LIBS=$pkg_cv_LCMS_LIBS
16773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774$as_echo "yes" >&6; }
16775
16776		CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS -DUSE_LCMS"
16777		LIBS="$LIBS $LCMS_LIBS"
16778	        PACKAGE_REQUIRES=lcms
16779
16780
16781fi
16782
16783elif test $pkg_failed = untried; then
16784     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785$as_echo "no" >&6; }
16786
16787
16788pkg_failed=no
16789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
16790$as_echo_n "checking for LCMS... " >&6; }
16791
16792if test -n "$LCMS_CFLAGS"; then
16793    pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
16794 elif test -n "$PKG_CONFIG"; then
16795    if test -n "$PKG_CONFIG" && \
16796    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16797  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16798  ac_status=$?
16799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16800  test $ac_status = 0; }; then
16801  pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
16802		      test "x$?" != "x0" && pkg_failed=yes
16803else
16804  pkg_failed=yes
16805fi
16806 else
16807    pkg_failed=untried
16808fi
16809if test -n "$LCMS_LIBS"; then
16810    pkg_cv_LCMS_LIBS="$LCMS_LIBS"
16811 elif test -n "$PKG_CONFIG"; then
16812    if test -n "$PKG_CONFIG" && \
16813    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16814  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16815  ac_status=$?
16816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16817  test $ac_status = 0; }; then
16818  pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
16819		      test "x$?" != "x0" && pkg_failed=yes
16820else
16821  pkg_failed=yes
16822fi
16823 else
16824    pkg_failed=untried
16825fi
16826
16827
16828
16829if test $pkg_failed = yes; then
16830   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16831$as_echo "no" >&6; }
16832
16833if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16834        _pkg_short_errors_supported=yes
16835else
16836        _pkg_short_errors_supported=no
16837fi
16838        if test $_pkg_short_errors_supported = yes; then
16839	        LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms" 2>&1`
16840        else
16841	        LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms" 2>&1`
16842        fi
16843	# Put the nasty error message in config.log where it belongs
16844	echo "$LCMS_PKG_ERRORS" >&5
16845
16846
16847		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LCMS support cannot be enabled" >&5
16848$as_echo "$as_me: WARNING: LCMS support cannot be enabled" >&2;}
16849
16850elif test $pkg_failed = untried; then
16851     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852$as_echo "no" >&6; }
16853
16854		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LCMS support cannot be enabled" >&5
16855$as_echo "$as_me: WARNING: LCMS support cannot be enabled" >&2;}
16856
16857else
16858	LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
16859	LCMS_LIBS=$pkg_cv_LCMS_LIBS
16860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16861$as_echo "yes" >&6; }
16862
16863		CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS -DUSE_LCMS"
16864		LIBS="$LIBS $LCMS_LIBS"
16865	        PACKAGE_REQUIRES=lcms
16866
16867
16868fi
16869
16870else
16871	LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
16872	LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
16873        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16874$as_echo "yes" >&6; }
16875
16876		CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS -DUSE_LCMS2"
16877		LIBS="$LIBS $LCMS2_LIBS"
16878	        PACKAGE_REQUIRES=lcms2
16879
16880
16881fi
16882fi
16883
16884# check if we want build examples
16885@%:@ Check whether --enable-examples was given.
16886if test "${enable_examples+set}" = set; then :
16887  enableval=$enable_examples; case "${enableval}" in
16888		yes) 	examples=true ;;
16889		no)		examples=false ;;
16890		*)		as_fn_error $? "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
16891	esac
16892else
16893  examples=true
16894fi
16895
16896 if test x$examples = xtrue; then
16897  EXAMPLES_TRUE=
16898  EXAMPLES_FALSE='#'
16899else
16900  EXAMPLES_TRUE='#'
16901  EXAMPLES_FALSE=
16902fi
16903
16904
16905LIBS="$LIBS -lm"
16906
16907case "${host_os}" in
16908	*mingw32*) LIBS="$LIBS -lws2_32" ;;
16909esac
16910
16911LIBRAW_SHLIB_VERSION=20:0:0
16912
16913LIBRAW_RELEASE_VERSION=0.20.2
16914
16915
16916cat >confcache <<\_ACEOF
16917# This file is a shell script that caches the results of configure
16918# tests run on this system so they can be shared between configure
16919# scripts and configure runs, see configure's option --config-cache.
16920# It is not useful on other systems.  If it contains results you don't
16921# want to keep, you may remove or edit it.
16922#
16923# config.status only pays attention to the cache file if you give it
16924# the --recheck option to rerun configure.
16925#
16926# `ac_cv_env_foo' variables (set or unset) will be overridden when
16927# loading this file, other *unset* `ac_cv_foo' will be assigned the
16928# following values.
16929
16930_ACEOF
16931
16932# The following way of writing the cache mishandles newlines in values,
16933# but we know of no workaround that is simple, portable, and efficient.
16934# So, we kill variables containing newlines.
16935# Ultrix sh set writes to stderr and can't be redirected directly,
16936# and sets the high bit in the cache file unless we assign to the vars.
16937(
16938  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16939    eval ac_val=\$$ac_var
16940    case $ac_val in #(
16941    *${as_nl}*)
16942      case $ac_var in #(
16943      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16945      esac
16946      case $ac_var in #(
16947      _ | IFS | as_nl) ;; #(
16948      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16949      *) { eval $ac_var=; unset $ac_var;} ;;
16950      esac ;;
16951    esac
16952  done
16953
16954  (set) 2>&1 |
16955    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16956    *${as_nl}ac_space=\ *)
16957      # `set' does not quote correctly, so add quotes: double-quote
16958      # substitution turns \\\\ into \\, and sed turns \\ into \.
16959      sed -n \
16960	"s/'/'\\\\''/g;
16961	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16962      ;; #(
16963    *)
16964      # `set' quotes correctly as required by POSIX, so do not add quotes.
16965      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16966      ;;
16967    esac |
16968    sort
16969) |
16970  sed '
16971     /^ac_cv_env_/b end
16972     t clear
16973     :clear
16974     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16975     t end
16976     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16977     :end' >>confcache
16978if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16979  if test -w "$cache_file"; then
16980    if test "x$cache_file" != "x/dev/null"; then
16981      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16982$as_echo "$as_me: updating cache $cache_file" >&6;}
16983      if test ! -f "$cache_file" || test -h "$cache_file"; then
16984	cat confcache >"$cache_file"
16985      else
16986        case $cache_file in #(
16987        */* | ?:*)
16988	  mv -f confcache "$cache_file"$$ &&
16989	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16990        *)
16991	  mv -f confcache "$cache_file" ;;
16992	esac
16993      fi
16994    fi
16995  else
16996    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16998  fi
16999fi
17000rm -f confcache
17001
17002test "x$prefix" = xNONE && prefix=$ac_default_prefix
17003# Let make expand exec_prefix.
17004test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17005
17006# Transform confdefs.h into DEFS.
17007# Protect against shell expansion while executing Makefile rules.
17008# Protect against Makefile macro expansion.
17009#
17010# If the first sed substitution is executed (which looks for macros that
17011# take arguments), then branch to the quote section.  Otherwise,
17012# look for a macro that doesn't take arguments.
17013ac_script='
17014:mline
17015/\\$/{
17016 N
17017 s,\\\n,,
17018 b mline
17019}
17020t clear
17021:clear
17022s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
17023t quote
17024s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
17025t quote
17026b any
17027:quote
17028s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17029s/\[/\\&/g
17030s/\]/\\&/g
17031s/\$/$$/g
17032H
17033:any
17034${
17035	g
17036	s/^\n//
17037	s/\n/ /g
17038	p
17039}
17040'
17041DEFS=`sed -n "$ac_script" confdefs.h`
17042
17043
17044ac_libobjs=
17045ac_ltlibobjs=
17046U=
17047for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
17048  # 1. Remove the extension, and $U if already installed.
17049  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17050  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17051  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17052  #    will be set to the directory where LIBOBJS objects are built.
17053  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17054  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17055done
17056LIB@&t@OBJS=$ac_libobjs
17057
17058LTLIBOBJS=$ac_ltlibobjs
17059
17060
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17062$as_echo_n "checking that generated files are newer than configure... " >&6; }
17063   if test -n "$am_sleep_pid"; then
17064     # Hide warnings about reused PIDs.
17065     wait $am_sleep_pid 2>/dev/null
17066   fi
17067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17068$as_echo "done" >&6; }
17069 if test -n "$EXEEXT"; then
17070  am__EXEEXT_TRUE=
17071  am__EXEEXT_FALSE='#'
17072else
17073  am__EXEEXT_TRUE='#'
17074  am__EXEEXT_FALSE=
17075fi
17076
17077if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17078  as_fn_error $? "conditional \"AMDEP\" was never defined.
17079Usually this means the macro was only invoked conditionally." "$LINENO" 5
17080fi
17081if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17082  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17083Usually this means the macro was only invoked conditionally." "$LINENO" 5
17084fi
17085if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17086  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17087Usually this means the macro was only invoked conditionally." "$LINENO" 5
17088fi
17089if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
17090  as_fn_error $? "conditional \"EXAMPLES\" was never defined.
17091Usually this means the macro was only invoked conditionally." "$LINENO" 5
17092fi
17093
17094: "${CONFIG_STATUS=./config.status}"
17095ac_write_fail=0
17096ac_clean_files_save=$ac_clean_files
17097ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17099$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17100as_write_fail=0
17101cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17102#! $SHELL
17103# Generated by $as_me.
17104# Run this file to recreate the current configuration.
17105# Compiler output produced by configure, useful for debugging
17106# configure, is in config.log if it exists.
17107
17108debug=false
17109ac_cs_recheck=false
17110ac_cs_silent=false
17111
17112SHELL=\${CONFIG_SHELL-$SHELL}
17113export SHELL
17114_ASEOF
17115cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17116## -------------------- ##
17117## M4sh Initialization. ##
17118## -------------------- ##
17119
17120# Be more Bourne compatible
17121DUALCASE=1; export DUALCASE # for MKS sh
17122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17123  emulate sh
17124  NULLCMD=:
17125  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17126  # is contrary to our usage.  Disable this feature.
17127  alias -g '${1+"$@"}'='"$@"'
17128  setopt NO_GLOB_SUBST
17129else
17130  case `(set -o) 2>/dev/null` in @%:@(
17131  *posix*) :
17132    set -o posix ;; @%:@(
17133  *) :
17134     ;;
17135esac
17136fi
17137
17138
17139as_nl='
17140'
17141export as_nl
17142# Printing a long string crashes Solaris 7 /usr/bin/printf.
17143as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17144as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17146# Prefer a ksh shell builtin over an external printf program on Solaris,
17147# but without wasting forks for bash or zsh.
17148if test -z "$BASH_VERSION$ZSH_VERSION" \
17149    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17150  as_echo='print -r --'
17151  as_echo_n='print -rn --'
17152elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17153  as_echo='printf %s\n'
17154  as_echo_n='printf %s'
17155else
17156  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17157    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17158    as_echo_n='/usr/ucb/echo -n'
17159  else
17160    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17161    as_echo_n_body='eval
17162      arg=$1;
17163      case $arg in @%:@(
17164      *"$as_nl"*)
17165	expr "X$arg" : "X\\(.*\\)$as_nl";
17166	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17167      esac;
17168      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17169    '
17170    export as_echo_n_body
17171    as_echo_n='sh -c $as_echo_n_body as_echo'
17172  fi
17173  export as_echo_body
17174  as_echo='sh -c $as_echo_body as_echo'
17175fi
17176
17177# The user is always right.
17178if test "${PATH_SEPARATOR+set}" != set; then
17179  PATH_SEPARATOR=:
17180  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17181    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17182      PATH_SEPARATOR=';'
17183  }
17184fi
17185
17186
17187# IFS
17188# We need space, tab and new line, in precisely that order.  Quoting is
17189# there to prevent editors from complaining about space-tab.
17190# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17191# splitting by setting IFS to empty value.)
17192IFS=" ""	$as_nl"
17193
17194# Find who we are.  Look in the path if we contain no directory separator.
17195as_myself=
17196case $0 in @%:@((
17197  *[\\/]* ) as_myself=$0 ;;
17198  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199for as_dir in $PATH
17200do
17201  IFS=$as_save_IFS
17202  test -z "$as_dir" && as_dir=.
17203    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17204  done
17205IFS=$as_save_IFS
17206
17207     ;;
17208esac
17209# We did not find ourselves, most probably we were run as `sh COMMAND'
17210# in which case we are not to be found in the path.
17211if test "x$as_myself" = x; then
17212  as_myself=$0
17213fi
17214if test ! -f "$as_myself"; then
17215  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17216  exit 1
17217fi
17218
17219# Unset variables that we do not need and which cause bugs (e.g. in
17220# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17221# suppresses any "Segmentation fault" message there.  '((' could
17222# trigger a bug in pdksh 5.2.14.
17223for as_var in BASH_ENV ENV MAIL MAILPATH
17224do eval test x\${$as_var+set} = xset \
17225  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17226done
17227PS1='$ '
17228PS2='> '
17229PS4='+ '
17230
17231# NLS nuisances.
17232LC_ALL=C
17233export LC_ALL
17234LANGUAGE=C
17235export LANGUAGE
17236
17237# CDPATH.
17238(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17239
17240
17241@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
17242@%:@ ----------------------------------------
17243@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17244@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17245@%:@ script with STATUS, using 1 if that was 0.
17246as_fn_error ()
17247{
17248  as_status=$1; test $as_status -eq 0 && as_status=1
17249  if test "$4"; then
17250    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17251    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17252  fi
17253  $as_echo "$as_me: error: $2" >&2
17254  as_fn_exit $as_status
17255} @%:@ as_fn_error
17256
17257
17258@%:@ as_fn_set_status STATUS
17259@%:@ -----------------------
17260@%:@ Set @S|@? to STATUS, without forking.
17261as_fn_set_status ()
17262{
17263  return $1
17264} @%:@ as_fn_set_status
17265
17266@%:@ as_fn_exit STATUS
17267@%:@ -----------------
17268@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17269as_fn_exit ()
17270{
17271  set +e
17272  as_fn_set_status $1
17273  exit $1
17274} @%:@ as_fn_exit
17275
17276@%:@ as_fn_unset VAR
17277@%:@ ---------------
17278@%:@ Portably unset VAR.
17279as_fn_unset ()
17280{
17281  { eval $1=; unset $1;}
17282}
17283as_unset=as_fn_unset
17284@%:@ as_fn_append VAR VALUE
17285@%:@ ----------------------
17286@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
17287@%:@ advantage of any shell optimizations that allow amortized linear growth over
17288@%:@ repeated appends, instead of the typical quadratic growth present in naive
17289@%:@ implementations.
17290if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17291  eval 'as_fn_append ()
17292  {
17293    eval $1+=\$2
17294  }'
17295else
17296  as_fn_append ()
17297  {
17298    eval $1=\$$1\$2
17299  }
17300fi # as_fn_append
17301
17302@%:@ as_fn_arith ARG...
17303@%:@ ------------------
17304@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
17305@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
17306@%:@ must be portable across @S|@(()) and expr.
17307if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17308  eval 'as_fn_arith ()
17309  {
17310    as_val=$(( $* ))
17311  }'
17312else
17313  as_fn_arith ()
17314  {
17315    as_val=`expr "$@" || test $? -eq 1`
17316  }
17317fi # as_fn_arith
17318
17319
17320if expr a : '\(a\)' >/dev/null 2>&1 &&
17321   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17322  as_expr=expr
17323else
17324  as_expr=false
17325fi
17326
17327if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17328  as_basename=basename
17329else
17330  as_basename=false
17331fi
17332
17333if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17334  as_dirname=dirname
17335else
17336  as_dirname=false
17337fi
17338
17339as_me=`$as_basename -- "$0" ||
17340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17341	 X"$0" : 'X\(//\)$' \| \
17342	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17343$as_echo X/"$0" |
17344    sed '/^.*\/\([^/][^/]*\)\/*$/{
17345	    s//\1/
17346	    q
17347	  }
17348	  /^X\/\(\/\/\)$/{
17349	    s//\1/
17350	    q
17351	  }
17352	  /^X\/\(\/\).*/{
17353	    s//\1/
17354	    q
17355	  }
17356	  s/.*/./; q'`
17357
17358# Avoid depending upon Character Ranges.
17359as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17360as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17361as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17362as_cr_digits='0123456789'
17363as_cr_alnum=$as_cr_Letters$as_cr_digits
17364
17365ECHO_C= ECHO_N= ECHO_T=
17366case `echo -n x` in @%:@(((((
17367-n*)
17368  case `echo 'xy\c'` in
17369  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17370  xy)  ECHO_C='\c';;
17371  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17372       ECHO_T='	';;
17373  esac;;
17374*)
17375  ECHO_N='-n';;
17376esac
17377
17378rm -f conf$$ conf$$.exe conf$$.file
17379if test -d conf$$.dir; then
17380  rm -f conf$$.dir/conf$$.file
17381else
17382  rm -f conf$$.dir
17383  mkdir conf$$.dir 2>/dev/null
17384fi
17385if (echo >conf$$.file) 2>/dev/null; then
17386  if ln -s conf$$.file conf$$ 2>/dev/null; then
17387    as_ln_s='ln -s'
17388    # ... but there are two gotchas:
17389    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17390    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17391    # In both cases, we have to default to `cp -pR'.
17392    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17393      as_ln_s='cp -pR'
17394  elif ln conf$$.file conf$$ 2>/dev/null; then
17395    as_ln_s=ln
17396  else
17397    as_ln_s='cp -pR'
17398  fi
17399else
17400  as_ln_s='cp -pR'
17401fi
17402rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17403rmdir conf$$.dir 2>/dev/null
17404
17405
17406@%:@ as_fn_mkdir_p
17407@%:@ -------------
17408@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17409as_fn_mkdir_p ()
17410{
17411
17412  case $as_dir in #(
17413  -*) as_dir=./$as_dir;;
17414  esac
17415  test -d "$as_dir" || eval $as_mkdir_p || {
17416    as_dirs=
17417    while :; do
17418      case $as_dir in #(
17419      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17420      *) as_qdir=$as_dir;;
17421      esac
17422      as_dirs="'$as_qdir' $as_dirs"
17423      as_dir=`$as_dirname -- "$as_dir" ||
17424$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17425	 X"$as_dir" : 'X\(//\)[^/]' \| \
17426	 X"$as_dir" : 'X\(//\)$' \| \
17427	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17428$as_echo X"$as_dir" |
17429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17430	    s//\1/
17431	    q
17432	  }
17433	  /^X\(\/\/\)[^/].*/{
17434	    s//\1/
17435	    q
17436	  }
17437	  /^X\(\/\/\)$/{
17438	    s//\1/
17439	    q
17440	  }
17441	  /^X\(\/\).*/{
17442	    s//\1/
17443	    q
17444	  }
17445	  s/.*/./; q'`
17446      test -d "$as_dir" && break
17447    done
17448    test -z "$as_dirs" || eval "mkdir $as_dirs"
17449  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17450
17451
17452} @%:@ as_fn_mkdir_p
17453if mkdir -p . 2>/dev/null; then
17454  as_mkdir_p='mkdir -p "$as_dir"'
17455else
17456  test -d ./-p && rmdir ./-p
17457  as_mkdir_p=false
17458fi
17459
17460
17461@%:@ as_fn_executable_p FILE
17462@%:@ -----------------------
17463@%:@ Test if FILE is an executable regular file.
17464as_fn_executable_p ()
17465{
17466  test -f "$1" && test -x "$1"
17467} @%:@ as_fn_executable_p
17468as_test_x='test -x'
17469as_executable_p=as_fn_executable_p
17470
17471# Sed expression to map a string onto a valid CPP name.
17472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17473
17474# Sed expression to map a string onto a valid variable name.
17475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17476
17477
17478exec 6>&1
17479## ----------------------------------- ##
17480## Main body of $CONFIG_STATUS script. ##
17481## ----------------------------------- ##
17482_ASEOF
17483test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17484
17485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17486# Save the log message, to keep $0 and so on meaningful, and to
17487# report actual input values of CONFIG_FILES etc. instead of their
17488# values after options handling.
17489ac_log="
17490This file was extended by LibRaw $as_me 0.20.2, which was
17491generated by GNU Autoconf 2.69.  Invocation command line was
17492
17493  CONFIG_FILES    = $CONFIG_FILES
17494  CONFIG_HEADERS  = $CONFIG_HEADERS
17495  CONFIG_LINKS    = $CONFIG_LINKS
17496  CONFIG_COMMANDS = $CONFIG_COMMANDS
17497  $ $0 $@
17498
17499on `(hostname || uname -n) 2>/dev/null | sed 1q`
17500"
17501
17502_ACEOF
17503
17504case $ac_config_files in *"
17505"*) set x $ac_config_files; shift; ac_config_files=$*;;
17506esac
17507
17508
17509
17510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17511# Files that config.status was made for.
17512config_files="$ac_config_files"
17513config_commands="$ac_config_commands"
17514
17515_ACEOF
17516
17517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17518ac_cs_usage="\
17519\`$as_me' instantiates files and other configuration actions
17520from templates according to the current configuration.  Unless the files
17521and actions are specified as TAGs, all are instantiated by default.
17522
17523Usage: $0 [OPTION]... [TAG]...
17524
17525  -h, --help       print this help, then exit
17526  -V, --version    print version number and configuration settings, then exit
17527      --config     print configuration, then exit
17528  -q, --quiet, --silent
17529                   do not print progress messages
17530  -d, --debug      don't remove temporary files
17531      --recheck    update $as_me by reconfiguring in the same conditions
17532      --file=FILE[:TEMPLATE]
17533                   instantiate the configuration file FILE
17534
17535Configuration files:
17536$config_files
17537
17538Configuration commands:
17539$config_commands
17540
17541Report bugs to <info@libraw.org>.
17542LibRaw home page: <http://www.libraw.org>."
17543
17544_ACEOF
17545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17547ac_cs_version="\\
17548LibRaw config.status 0.20.2
17549configured by $0, generated by GNU Autoconf 2.69,
17550  with options \\"\$ac_cs_config\\"
17551
17552Copyright (C) 2012 Free Software Foundation, Inc.
17553This config.status script is free software; the Free Software Foundation
17554gives unlimited permission to copy, distribute and modify it."
17555
17556ac_pwd='$ac_pwd'
17557srcdir='$srcdir'
17558INSTALL='$INSTALL'
17559MKDIR_P='$MKDIR_P'
17560AWK='$AWK'
17561test -n "\$AWK" || AWK=awk
17562_ACEOF
17563
17564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17565# The default lists apply if the user does not specify any file.
17566ac_need_defaults=:
17567while test $# != 0
17568do
17569  case $1 in
17570  --*=?*)
17571    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17572    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17573    ac_shift=:
17574    ;;
17575  --*=)
17576    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17577    ac_optarg=
17578    ac_shift=:
17579    ;;
17580  *)
17581    ac_option=$1
17582    ac_optarg=$2
17583    ac_shift=shift
17584    ;;
17585  esac
17586
17587  case $ac_option in
17588  # Handling of the options.
17589  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17590    ac_cs_recheck=: ;;
17591  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17592    $as_echo "$ac_cs_version"; exit ;;
17593  --config | --confi | --conf | --con | --co | --c )
17594    $as_echo "$ac_cs_config"; exit ;;
17595  --debug | --debu | --deb | --de | --d | -d )
17596    debug=: ;;
17597  --file | --fil | --fi | --f )
17598    $ac_shift
17599    case $ac_optarg in
17600    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17601    '') as_fn_error $? "missing file argument" ;;
17602    esac
17603    as_fn_append CONFIG_FILES " '$ac_optarg'"
17604    ac_need_defaults=false;;
17605  --he | --h |  --help | --hel | -h )
17606    $as_echo "$ac_cs_usage"; exit ;;
17607  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17608  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17609    ac_cs_silent=: ;;
17610
17611  # This is an error.
17612  -*) as_fn_error $? "unrecognized option: \`$1'
17613Try \`$0 --help' for more information." ;;
17614
17615  *) as_fn_append ac_config_targets " $1"
17616     ac_need_defaults=false ;;
17617
17618  esac
17619  shift
17620done
17621
17622ac_configure_extra_args=
17623
17624if $ac_cs_silent; then
17625  exec 6>/dev/null
17626  ac_configure_extra_args="$ac_configure_extra_args --silent"
17627fi
17628
17629_ACEOF
17630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17631if \$ac_cs_recheck; then
17632  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17633  shift
17634  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17635  CONFIG_SHELL='$SHELL'
17636  export CONFIG_SHELL
17637  exec "\$@"
17638fi
17639
17640_ACEOF
17641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17642exec 5>>config.log
17643{
17644  echo
17645  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17646@%:@@%:@ Running $as_me. @%:@@%:@
17647_ASBOX
17648  $as_echo "$ac_log"
17649} >&5
17650
17651_ACEOF
17652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17653#
17654# INIT-COMMANDS
17655#
17656AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17657
17658
17659# The HP-UX ksh and POSIX shell print the target directory to stdout
17660# if CDPATH is set.
17661(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17662
17663sed_quote_subst='$sed_quote_subst'
17664double_quote_subst='$double_quote_subst'
17665delay_variable_subst='$delay_variable_subst'
17666macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17667macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17668enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17669enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17670pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17671enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17672shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17673SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17674ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17675PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17676host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17677host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17678host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17679build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17680build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17681build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17682SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17683Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17684GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17685EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17686FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17687LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17688NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17689LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17690max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17691ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17692exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17693lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17694lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17695lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17696lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17697lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17698reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17699reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17700OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17701deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17702file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17703file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17704want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17705DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17706sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17707AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17708AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17709archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17710STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17711RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17712old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17713old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17714old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17715lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17716CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17717CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17718compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17719GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17720lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17721lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17722lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17723lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17724lt_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"`'
17725lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17726nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17727lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17728lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17729objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17730MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17731lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17732lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17733lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17734lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17735lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17736need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17737MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17738DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17739NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17740LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17741OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17742OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17743libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17744shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17745extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17746archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17747enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17748export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17749whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17750compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17751old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17752old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17753archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17754archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17755module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17756module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17757with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17758allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17759no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17760hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17761hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17762hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17763hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17764hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17765hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17766hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17767inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17768link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17769always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17770export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17771exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17772include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17773prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17774postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17775file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17776variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17777need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17778need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17779version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17780runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17781shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17782shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17783libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17784library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17785soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17786install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17787postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17788postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17789finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17790finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17791hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17792sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17793configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17794configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17795hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17796enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17797enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17798enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17799old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17800striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17801compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17802predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17803postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17804predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17805postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17806compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17807AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17808LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17809reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17810reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17811old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17812compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17813GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17814lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17815lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17816lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17817lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17818lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17819archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17820enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17821export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17822whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17823compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17824old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17825old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17826archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17827archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17828module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17829module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17830with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17831allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17832no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17833hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17834hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17835hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17836hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17837hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17838hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17839hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17840inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17841link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17842always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17843export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17844exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17845include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17846prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17847postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17848file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17849hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17850compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17851predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17852postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17853predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17854postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17855compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17856
17857LTCC='$LTCC'
17858LTCFLAGS='$LTCFLAGS'
17859compiler='$compiler_DEFAULT'
17860
17861# A function that is used when there is no print builtin or printf.
17862func_fallback_echo ()
17863{
17864  eval 'cat <<_LTECHO_EOF
17865\$1
17866_LTECHO_EOF'
17867}
17868
17869# Quote evaled strings.
17870for var in SHELL \
17871ECHO \
17872PATH_SEPARATOR \
17873SED \
17874GREP \
17875EGREP \
17876FGREP \
17877LD \
17878NM \
17879LN_S \
17880lt_SP2NL \
17881lt_NL2SP \
17882reload_flag \
17883OBJDUMP \
17884deplibs_check_method \
17885file_magic_cmd \
17886file_magic_glob \
17887want_nocaseglob \
17888DLLTOOL \
17889sharedlib_from_linklib_cmd \
17890AR \
17891AR_FLAGS \
17892archiver_list_spec \
17893STRIP \
17894RANLIB \
17895CC \
17896CFLAGS \
17897compiler \
17898lt_cv_sys_global_symbol_pipe \
17899lt_cv_sys_global_symbol_to_cdecl \
17900lt_cv_sys_global_symbol_to_import \
17901lt_cv_sys_global_symbol_to_c_name_address \
17902lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17903lt_cv_nm_interface \
17904nm_file_list_spec \
17905lt_cv_truncate_bin \
17906lt_prog_compiler_no_builtin_flag \
17907lt_prog_compiler_pic \
17908lt_prog_compiler_wl \
17909lt_prog_compiler_static \
17910lt_cv_prog_compiler_c_o \
17911need_locks \
17912MANIFEST_TOOL \
17913DSYMUTIL \
17914NMEDIT \
17915LIPO \
17916OTOOL \
17917OTOOL64 \
17918shrext_cmds \
17919export_dynamic_flag_spec \
17920whole_archive_flag_spec \
17921compiler_needs_object \
17922with_gnu_ld \
17923allow_undefined_flag \
17924no_undefined_flag \
17925hardcode_libdir_flag_spec \
17926hardcode_libdir_separator \
17927exclude_expsyms \
17928include_expsyms \
17929file_list_spec \
17930variables_saved_for_relink \
17931libname_spec \
17932library_names_spec \
17933soname_spec \
17934install_override_mode \
17935finish_eval \
17936old_striplib \
17937striplib \
17938compiler_lib_search_dirs \
17939predep_objects \
17940postdep_objects \
17941predeps \
17942postdeps \
17943compiler_lib_search_path \
17944AS \
17945LD_CXX \
17946reload_flag_CXX \
17947compiler_CXX \
17948lt_prog_compiler_no_builtin_flag_CXX \
17949lt_prog_compiler_pic_CXX \
17950lt_prog_compiler_wl_CXX \
17951lt_prog_compiler_static_CXX \
17952lt_cv_prog_compiler_c_o_CXX \
17953export_dynamic_flag_spec_CXX \
17954whole_archive_flag_spec_CXX \
17955compiler_needs_object_CXX \
17956with_gnu_ld_CXX \
17957allow_undefined_flag_CXX \
17958no_undefined_flag_CXX \
17959hardcode_libdir_flag_spec_CXX \
17960hardcode_libdir_separator_CXX \
17961exclude_expsyms_CXX \
17962include_expsyms_CXX \
17963file_list_spec_CXX \
17964compiler_lib_search_dirs_CXX \
17965predep_objects_CXX \
17966postdep_objects_CXX \
17967predeps_CXX \
17968postdeps_CXX \
17969compiler_lib_search_path_CXX; do
17970    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17971    *[\\\\\\\`\\"\\\$]*)
17972      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17973      ;;
17974    *)
17975      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17976      ;;
17977    esac
17978done
17979
17980# Double-quote double-evaled strings.
17981for var in reload_cmds \
17982old_postinstall_cmds \
17983old_postuninstall_cmds \
17984old_archive_cmds \
17985extract_expsyms_cmds \
17986old_archive_from_new_cmds \
17987old_archive_from_expsyms_cmds \
17988archive_cmds \
17989archive_expsym_cmds \
17990module_cmds \
17991module_expsym_cmds \
17992export_symbols_cmds \
17993prelink_cmds \
17994postlink_cmds \
17995postinstall_cmds \
17996postuninstall_cmds \
17997finish_cmds \
17998sys_lib_search_path_spec \
17999configure_time_dlsearch_path \
18000configure_time_lt_sys_library_path \
18001reload_cmds_CXX \
18002old_archive_cmds_CXX \
18003old_archive_from_new_cmds_CXX \
18004old_archive_from_expsyms_cmds_CXX \
18005archive_cmds_CXX \
18006archive_expsym_cmds_CXX \
18007module_cmds_CXX \
18008module_expsym_cmds_CXX \
18009export_symbols_cmds_CXX \
18010prelink_cmds_CXX \
18011postlink_cmds_CXX; do
18012    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18013    *[\\\\\\\`\\"\\\$]*)
18014      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18015      ;;
18016    *)
18017      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18018      ;;
18019    esac
18020done
18021
18022ac_aux_dir='$ac_aux_dir'
18023
18024# See if we are running on zsh, and set the options that allow our
18025# commands through without removal of \ escapes INIT.
18026if test -n "\${ZSH_VERSION+set}"; then
18027   setopt NO_GLOB_SUBST
18028fi
18029
18030
18031    PACKAGE='$PACKAGE'
18032    VERSION='$VERSION'
18033    RM='$RM'
18034    ofile='$ofile'
18035
18036
18037
18038
18039
18040
18041_ACEOF
18042
18043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18044
18045# Handling of arguments.
18046for ac_config_target in $ac_config_targets
18047do
18048  case $ac_config_target in
18049    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18050    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18051    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18052    "libraw.pc") CONFIG_FILES="$CONFIG_FILES libraw.pc" ;;
18053    "libraw_r.pc") CONFIG_FILES="$CONFIG_FILES libraw_r.pc" ;;
18054
18055  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18056  esac
18057done
18058
18059
18060# If the user did not use the arguments to specify the items to instantiate,
18061# then the envvar interface is used.  Set only those that are not.
18062# We use the long form for the default assignment because of an extremely
18063# bizarre bug on SunOS 4.1.3.
18064if $ac_need_defaults; then
18065  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18066  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18067fi
18068
18069# Have a temporary directory for convenience.  Make it in the build tree
18070# simply because there is no reason against having it here, and in addition,
18071# creating and moving files from /tmp can sometimes cause problems.
18072# Hook for its removal unless debugging.
18073# Note that there is a small window in which the directory will not be cleaned:
18074# after its creation but before its name has been assigned to `$tmp'.
18075$debug ||
18076{
18077  tmp= ac_tmp=
18078  trap 'exit_status=$?
18079  : "${ac_tmp:=$tmp}"
18080  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18081' 0
18082  trap 'as_fn_exit 1' 1 2 13 15
18083}
18084# Create a (secure) tmp directory for tmp files.
18085
18086{
18087  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18088  test -d "$tmp"
18089}  ||
18090{
18091  tmp=./conf$$-$RANDOM
18092  (umask 077 && mkdir "$tmp")
18093} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18094ac_tmp=$tmp
18095
18096# Set up the scripts for CONFIG_FILES section.
18097# No need to generate them if there are no CONFIG_FILES.
18098# This happens for instance with `./config.status config.h'.
18099if test -n "$CONFIG_FILES"; then
18100
18101
18102ac_cr=`echo X | tr X '\015'`
18103# On cygwin, bash can eat \r inside `` if the user requested igncr.
18104# But we know of no other shell where ac_cr would be empty at this
18105# point, so we can use a bashism as a fallback.
18106if test "x$ac_cr" = x; then
18107  eval ac_cr=\$\'\\r\'
18108fi
18109ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18110if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18111  ac_cs_awk_cr='\\r'
18112else
18113  ac_cs_awk_cr=$ac_cr
18114fi
18115
18116echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18117_ACEOF
18118
18119
18120{
18121  echo "cat >conf$$subs.awk <<_ACEOF" &&
18122  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18123  echo "_ACEOF"
18124} >conf$$subs.sh ||
18125  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18126ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18127ac_delim='%!_!# '
18128for ac_last_try in false false false false false :; do
18129  . ./conf$$subs.sh ||
18130    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18131
18132  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18133  if test $ac_delim_n = $ac_delim_num; then
18134    break
18135  elif $ac_last_try; then
18136    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18137  else
18138    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18139  fi
18140done
18141rm -f conf$$subs.sh
18142
18143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18144cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18145_ACEOF
18146sed -n '
18147h
18148s/^/S["/; s/!.*/"]=/
18149p
18150g
18151s/^[^!]*!//
18152:repl
18153t repl
18154s/'"$ac_delim"'$//
18155t delim
18156:nl
18157h
18158s/\(.\{148\}\)..*/\1/
18159t more1
18160s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18161p
18162n
18163b repl
18164:more1
18165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18166p
18167g
18168s/.\{148\}//
18169t nl
18170:delim
18171h
18172s/\(.\{148\}\)..*/\1/
18173t more2
18174s/["\\]/\\&/g; s/^/"/; s/$/"/
18175p
18176b
18177:more2
18178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18179p
18180g
18181s/.\{148\}//
18182t delim
18183' <conf$$subs.awk | sed '
18184/^[^""]/{
18185  N
18186  s/\n//
18187}
18188' >>$CONFIG_STATUS || ac_write_fail=1
18189rm -f conf$$subs.awk
18190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18191_ACAWK
18192cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18193  for (key in S) S_is_set[key] = 1
18194  FS = ""
18195
18196}
18197{
18198  line = $ 0
18199  nfields = split(line, field, "@")
18200  substed = 0
18201  len = length(field[1])
18202  for (i = 2; i < nfields; i++) {
18203    key = field[i]
18204    keylen = length(key)
18205    if (S_is_set[key]) {
18206      value = S[key]
18207      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18208      len += length(value) + length(field[++i])
18209      substed = 1
18210    } else
18211      len += 1 + keylen
18212  }
18213
18214  print line
18215}
18216
18217_ACAWK
18218_ACEOF
18219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18220if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18221  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18222else
18223  cat
18224fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18225  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18226_ACEOF
18227
18228# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18229# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18230# trailing colons and then remove the whole line if VPATH becomes empty
18231# (actually we leave an empty line to preserve line numbers).
18232if test "x$srcdir" = x.; then
18233  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18234h
18235s///
18236s/^/:/
18237s/[	 ]*$/:/
18238s/:\$(srcdir):/:/g
18239s/:\${srcdir}:/:/g
18240s/:@srcdir@:/:/g
18241s/^:*//
18242s/:*$//
18243x
18244s/\(=[	 ]*\).*/\1/
18245G
18246s/\n//
18247s/^[^=]*=[	 ]*$//
18248}'
18249fi
18250
18251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18252fi # test -n "$CONFIG_FILES"
18253
18254
18255eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
18256shift
18257for ac_tag
18258do
18259  case $ac_tag in
18260  :[FHLC]) ac_mode=$ac_tag; continue;;
18261  esac
18262  case $ac_mode$ac_tag in
18263  :[FHL]*:*);;
18264  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18265  :[FH]-) ac_tag=-:-;;
18266  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18267  esac
18268  ac_save_IFS=$IFS
18269  IFS=:
18270  set x $ac_tag
18271  IFS=$ac_save_IFS
18272  shift
18273  ac_file=$1
18274  shift
18275
18276  case $ac_mode in
18277  :L) ac_source=$1;;
18278  :[FH])
18279    ac_file_inputs=
18280    for ac_f
18281    do
18282      case $ac_f in
18283      -) ac_f="$ac_tmp/stdin";;
18284      *) # Look for the file first in the build tree, then in the source tree
18285	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18286	 # because $ac_f cannot contain `:'.
18287	 test -f "$ac_f" ||
18288	   case $ac_f in
18289	   [\\/$]*) false;;
18290	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18291	   esac ||
18292	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18293      esac
18294      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18295      as_fn_append ac_file_inputs " '$ac_f'"
18296    done
18297
18298    # Let's still pretend it is `configure' which instantiates (i.e., don't
18299    # use $as_me), people would be surprised to read:
18300    #    /* config.h.  Generated by config.status.  */
18301    configure_input='Generated from '`
18302	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18303	`' by configure.'
18304    if test x"$ac_file" != x-; then
18305      configure_input="$ac_file.  $configure_input"
18306      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18307$as_echo "$as_me: creating $ac_file" >&6;}
18308    fi
18309    # Neutralize special characters interpreted by sed in replacement strings.
18310    case $configure_input in #(
18311    *\&* | *\|* | *\\* )
18312       ac_sed_conf_input=`$as_echo "$configure_input" |
18313       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18314    *) ac_sed_conf_input=$configure_input;;
18315    esac
18316
18317    case $ac_tag in
18318    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18319      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18320    esac
18321    ;;
18322  esac
18323
18324  ac_dir=`$as_dirname -- "$ac_file" ||
18325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18326	 X"$ac_file" : 'X\(//\)[^/]' \| \
18327	 X"$ac_file" : 'X\(//\)$' \| \
18328	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18329$as_echo X"$ac_file" |
18330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18331	    s//\1/
18332	    q
18333	  }
18334	  /^X\(\/\/\)[^/].*/{
18335	    s//\1/
18336	    q
18337	  }
18338	  /^X\(\/\/\)$/{
18339	    s//\1/
18340	    q
18341	  }
18342	  /^X\(\/\).*/{
18343	    s//\1/
18344	    q
18345	  }
18346	  s/.*/./; q'`
18347  as_dir="$ac_dir"; as_fn_mkdir_p
18348  ac_builddir=.
18349
18350case "$ac_dir" in
18351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18352*)
18353  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18354  # A ".." for each directory in $ac_dir_suffix.
18355  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18356  case $ac_top_builddir_sub in
18357  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18358  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18359  esac ;;
18360esac
18361ac_abs_top_builddir=$ac_pwd
18362ac_abs_builddir=$ac_pwd$ac_dir_suffix
18363# for backward compatibility:
18364ac_top_builddir=$ac_top_build_prefix
18365
18366case $srcdir in
18367  .)  # We are building in place.
18368    ac_srcdir=.
18369    ac_top_srcdir=$ac_top_builddir_sub
18370    ac_abs_top_srcdir=$ac_pwd ;;
18371  [\\/]* | ?:[\\/]* )  # Absolute name.
18372    ac_srcdir=$srcdir$ac_dir_suffix;
18373    ac_top_srcdir=$srcdir
18374    ac_abs_top_srcdir=$srcdir ;;
18375  *) # Relative name.
18376    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18377    ac_top_srcdir=$ac_top_build_prefix$srcdir
18378    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18379esac
18380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18381
18382
18383  case $ac_mode in
18384  :F)
18385  #
18386  # CONFIG_FILE
18387  #
18388
18389  case $INSTALL in
18390  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18391  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18392  esac
18393  ac_MKDIR_P=$MKDIR_P
18394  case $MKDIR_P in
18395  [\\/$]* | ?:[\\/]* ) ;;
18396  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18397  esac
18398_ACEOF
18399
18400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18401# If the template does not know about datarootdir, expand it.
18402# FIXME: This hack should be removed a few years after 2.60.
18403ac_datarootdir_hack=; ac_datarootdir_seen=
18404ac_sed_dataroot='
18405/datarootdir/ {
18406  p
18407  q
18408}
18409/@datadir@/p
18410/@docdir@/p
18411/@infodir@/p
18412/@localedir@/p
18413/@mandir@/p'
18414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18415*datarootdir*) ac_datarootdir_seen=yes;;
18416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18417  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18419_ACEOF
18420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18421  ac_datarootdir_hack='
18422  s&@datadir@&$datadir&g
18423  s&@docdir@&$docdir&g
18424  s&@infodir@&$infodir&g
18425  s&@localedir@&$localedir&g
18426  s&@mandir@&$mandir&g
18427  s&\\\${datarootdir}&$datarootdir&g' ;;
18428esac
18429_ACEOF
18430
18431# Neutralize VPATH when `$srcdir' = `.'.
18432# Shell code in configure.ac might set extrasub.
18433# FIXME: do we really want to maintain this feature?
18434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435ac_sed_extra="$ac_vpsub
18436$extrasub
18437_ACEOF
18438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18439:t
18440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18441s|@configure_input@|$ac_sed_conf_input|;t t
18442s&@top_builddir@&$ac_top_builddir_sub&;t t
18443s&@top_build_prefix@&$ac_top_build_prefix&;t t
18444s&@srcdir@&$ac_srcdir&;t t
18445s&@abs_srcdir@&$ac_abs_srcdir&;t t
18446s&@top_srcdir@&$ac_top_srcdir&;t t
18447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18448s&@builddir@&$ac_builddir&;t t
18449s&@abs_builddir@&$ac_abs_builddir&;t t
18450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18451s&@INSTALL@&$ac_INSTALL&;t t
18452s&@MKDIR_P@&$ac_MKDIR_P&;t t
18453$ac_datarootdir_hack
18454"
18455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18456  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18457
18458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18459  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18460  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18461      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18462  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18463which seems to be undefined.  Please make sure it is defined" >&5
18464$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18465which seems to be undefined.  Please make sure it is defined" >&2;}
18466
18467  rm -f "$ac_tmp/stdin"
18468  case $ac_file in
18469  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18470  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18471  esac \
18472  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18473 ;;
18474
18475
18476  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18477$as_echo "$as_me: executing $ac_file commands" >&6;}
18478 ;;
18479  esac
18480
18481
18482  case $ac_file$ac_mode in
18483    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18484  # Older Autoconf quotes --file arguments for eval, but not when files
18485  # are listed without --file.  Let's play safe and only enable the eval
18486  # if we detect the quoting.
18487  case $CONFIG_FILES in
18488  *\'*) eval set x "$CONFIG_FILES" ;;
18489  *)   set x $CONFIG_FILES ;;
18490  esac
18491  shift
18492  for mf
18493  do
18494    # Strip MF so we end up with the name of the file.
18495    mf=`echo "$mf" | sed -e 's/:.*$//'`
18496    # Check whether this is an Automake generated Makefile or not.
18497    # We used to match only the files named 'Makefile.in', but
18498    # some people rename them; so instead we look at the file content.
18499    # Grep'ing the first line is not enough: some people post-process
18500    # each Makefile.in and add a new line on top of each file to say so.
18501    # Grep'ing the whole file is not good either: AIX grep has a line
18502    # limit of 2048, but all sed's we know have understand at least 4000.
18503    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18504      dirpart=`$as_dirname -- "$mf" ||
18505$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18506	 X"$mf" : 'X\(//\)[^/]' \| \
18507	 X"$mf" : 'X\(//\)$' \| \
18508	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18509$as_echo X"$mf" |
18510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18511	    s//\1/
18512	    q
18513	  }
18514	  /^X\(\/\/\)[^/].*/{
18515	    s//\1/
18516	    q
18517	  }
18518	  /^X\(\/\/\)$/{
18519	    s//\1/
18520	    q
18521	  }
18522	  /^X\(\/\).*/{
18523	    s//\1/
18524	    q
18525	  }
18526	  s/.*/./; q'`
18527    else
18528      continue
18529    fi
18530    # Extract the definition of DEPDIR, am__include, and am__quote
18531    # from the Makefile without running 'make'.
18532    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18533    test -z "$DEPDIR" && continue
18534    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18535    test -z "$am__include" && continue
18536    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18537    # Find all dependency output files, they are included files with
18538    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18539    # simplest approach to changing $(DEPDIR) to its actual value in the
18540    # expansion.
18541    for file in `sed -n "
18542      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18543	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18544      # Make sure the directory exists.
18545      test -f "$dirpart/$file" && continue
18546      fdir=`$as_dirname -- "$file" ||
18547$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18548	 X"$file" : 'X\(//\)[^/]' \| \
18549	 X"$file" : 'X\(//\)$' \| \
18550	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18551$as_echo X"$file" |
18552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18553	    s//\1/
18554	    q
18555	  }
18556	  /^X\(\/\/\)[^/].*/{
18557	    s//\1/
18558	    q
18559	  }
18560	  /^X\(\/\/\)$/{
18561	    s//\1/
18562	    q
18563	  }
18564	  /^X\(\/\).*/{
18565	    s//\1/
18566	    q
18567	  }
18568	  s/.*/./; q'`
18569      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18570      # echo "creating $dirpart/$file"
18571      echo '# dummy' > "$dirpart/$file"
18572    done
18573  done
18574}
18575 ;;
18576    "libtool":C)
18577
18578    # See if we are running on zsh, and set the options that allow our
18579    # commands through without removal of \ escapes.
18580    if test -n "${ZSH_VERSION+set}"; then
18581      setopt NO_GLOB_SUBST
18582    fi
18583
18584    cfgfile=${ofile}T
18585    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18586    $RM "$cfgfile"
18587
18588    cat <<_LT_EOF >> "$cfgfile"
18589#! $SHELL
18590# Generated automatically by $as_me ($PACKAGE) $VERSION
18591# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18592# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18593
18594# Provide generalized library-building support services.
18595# Written by Gordon Matzigkeit, 1996
18596
18597# Copyright (C) 2014 Free Software Foundation, Inc.
18598# This is free software; see the source for copying conditions.  There is NO
18599# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18600
18601# GNU Libtool is free software; you can redistribute it and/or modify
18602# it under the terms of the GNU General Public License as published by
18603# the Free Software Foundation; either version 2 of of the License, or
18604# (at your option) any later version.
18605#
18606# As a special exception to the GNU General Public License, if you
18607# distribute this file as part of a program or library that is built
18608# using GNU Libtool, you may include this file under the  same
18609# distribution terms that you use for the rest of that program.
18610#
18611# GNU Libtool is distributed in the hope that it will be useful, but
18612# WITHOUT ANY WARRANTY; without even the implied warranty of
18613# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18614# GNU General Public License for more details.
18615#
18616# You should have received a copy of the GNU General Public License
18617# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18618
18619
18620# The names of the tagged configurations supported by this script.
18621available_tags='CXX '
18622
18623# Configured defaults for sys_lib_dlsearch_path munging.
18624: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18625
18626# ### BEGIN LIBTOOL CONFIG
18627
18628# Which release of libtool.m4 was used?
18629macro_version=$macro_version
18630macro_revision=$macro_revision
18631
18632# Whether or not to build shared libraries.
18633build_libtool_libs=$enable_shared
18634
18635# Whether or not to build static libraries.
18636build_old_libs=$enable_static
18637
18638# What type of objects to build.
18639pic_mode=$pic_mode
18640
18641# Whether or not to optimize for fast installation.
18642fast_install=$enable_fast_install
18643
18644# Shared archive member basename,for filename based shared library versioning on AIX.
18645shared_archive_member_spec=$shared_archive_member_spec
18646
18647# Shell to use when invoking shell scripts.
18648SHELL=$lt_SHELL
18649
18650# An echo program that protects backslashes.
18651ECHO=$lt_ECHO
18652
18653# The PATH separator for the build system.
18654PATH_SEPARATOR=$lt_PATH_SEPARATOR
18655
18656# The host system.
18657host_alias=$host_alias
18658host=$host
18659host_os=$host_os
18660
18661# The build system.
18662build_alias=$build_alias
18663build=$build
18664build_os=$build_os
18665
18666# A sed program that does not truncate output.
18667SED=$lt_SED
18668
18669# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18670Xsed="\$SED -e 1s/^X//"
18671
18672# A grep program that handles long lines.
18673GREP=$lt_GREP
18674
18675# An ERE matcher.
18676EGREP=$lt_EGREP
18677
18678# A literal string matcher.
18679FGREP=$lt_FGREP
18680
18681# A BSD- or MS-compatible name lister.
18682NM=$lt_NM
18683
18684# Whether we need soft or hard links.
18685LN_S=$lt_LN_S
18686
18687# What is the maximum length of a command?
18688max_cmd_len=$max_cmd_len
18689
18690# Object file suffix (normally "o").
18691objext=$ac_objext
18692
18693# Executable file suffix (normally "").
18694exeext=$exeext
18695
18696# whether the shell understands "unset".
18697lt_unset=$lt_unset
18698
18699# turn spaces into newlines.
18700SP2NL=$lt_lt_SP2NL
18701
18702# turn newlines into spaces.
18703NL2SP=$lt_lt_NL2SP
18704
18705# convert \$build file names to \$host format.
18706to_host_file_cmd=$lt_cv_to_host_file_cmd
18707
18708# convert \$build files to toolchain format.
18709to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18710
18711# An object symbol dumper.
18712OBJDUMP=$lt_OBJDUMP
18713
18714# Method to check whether dependent libraries are shared objects.
18715deplibs_check_method=$lt_deplibs_check_method
18716
18717# Command to use when deplibs_check_method = "file_magic".
18718file_magic_cmd=$lt_file_magic_cmd
18719
18720# How to find potential files when deplibs_check_method = "file_magic".
18721file_magic_glob=$lt_file_magic_glob
18722
18723# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18724want_nocaseglob=$lt_want_nocaseglob
18725
18726# DLL creation program.
18727DLLTOOL=$lt_DLLTOOL
18728
18729# Command to associate shared and link libraries.
18730sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18731
18732# The archiver.
18733AR=$lt_AR
18734
18735# Flags to create an archive.
18736AR_FLAGS=$lt_AR_FLAGS
18737
18738# How to feed a file listing to the archiver.
18739archiver_list_spec=$lt_archiver_list_spec
18740
18741# A symbol stripping program.
18742STRIP=$lt_STRIP
18743
18744# Commands used to install an old-style archive.
18745RANLIB=$lt_RANLIB
18746old_postinstall_cmds=$lt_old_postinstall_cmds
18747old_postuninstall_cmds=$lt_old_postuninstall_cmds
18748
18749# Whether to use a lock for old archive extraction.
18750lock_old_archive_extraction=$lock_old_archive_extraction
18751
18752# A C compiler.
18753LTCC=$lt_CC
18754
18755# LTCC compiler flags.
18756LTCFLAGS=$lt_CFLAGS
18757
18758# Take the output of nm and produce a listing of raw symbols and C names.
18759global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18760
18761# Transform the output of nm in a proper C declaration.
18762global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18763
18764# Transform the output of nm into a list of symbols to manually relocate.
18765global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18766
18767# Transform the output of nm in a C name address pair.
18768global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18769
18770# Transform the output of nm in a C name address pair when lib prefix is needed.
18771global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18772
18773# The name lister interface.
18774nm_interface=$lt_lt_cv_nm_interface
18775
18776# Specify filename containing input files for \$NM.
18777nm_file_list_spec=$lt_nm_file_list_spec
18778
18779# The root where to search for dependent libraries,and where our libraries should be installed.
18780lt_sysroot=$lt_sysroot
18781
18782# Command to truncate a binary pipe.
18783lt_truncate_bin=$lt_lt_cv_truncate_bin
18784
18785# The name of the directory that contains temporary libtool files.
18786objdir=$objdir
18787
18788# Used to examine libraries when file_magic_cmd begins with "file".
18789MAGIC_CMD=$MAGIC_CMD
18790
18791# Must we lock files when doing compilation?
18792need_locks=$lt_need_locks
18793
18794# Manifest tool.
18795MANIFEST_TOOL=$lt_MANIFEST_TOOL
18796
18797# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18798DSYMUTIL=$lt_DSYMUTIL
18799
18800# Tool to change global to local symbols on Mac OS X.
18801NMEDIT=$lt_NMEDIT
18802
18803# Tool to manipulate fat objects and archives on Mac OS X.
18804LIPO=$lt_LIPO
18805
18806# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18807OTOOL=$lt_OTOOL
18808
18809# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18810OTOOL64=$lt_OTOOL64
18811
18812# Old archive suffix (normally "a").
18813libext=$libext
18814
18815# Shared library suffix (normally ".so").
18816shrext_cmds=$lt_shrext_cmds
18817
18818# The commands to extract the exported symbol list from a shared archive.
18819extract_expsyms_cmds=$lt_extract_expsyms_cmds
18820
18821# Variables whose values should be saved in libtool wrapper scripts and
18822# restored at link time.
18823variables_saved_for_relink=$lt_variables_saved_for_relink
18824
18825# Do we need the "lib" prefix for modules?
18826need_lib_prefix=$need_lib_prefix
18827
18828# Do we need a version for libraries?
18829need_version=$need_version
18830
18831# Library versioning type.
18832version_type=$version_type
18833
18834# Shared library runtime path variable.
18835runpath_var=$runpath_var
18836
18837# Shared library path variable.
18838shlibpath_var=$shlibpath_var
18839
18840# Is shlibpath searched before the hard-coded library search path?
18841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18842
18843# Format of library name prefix.
18844libname_spec=$lt_libname_spec
18845
18846# List of archive names.  First name is the real one, the rest are links.
18847# The last name is the one that the linker finds with -lNAME
18848library_names_spec=$lt_library_names_spec
18849
18850# The coded name of the library, if different from the real name.
18851soname_spec=$lt_soname_spec
18852
18853# Permission mode override for installation of shared libraries.
18854install_override_mode=$lt_install_override_mode
18855
18856# Command to use after installation of a shared archive.
18857postinstall_cmds=$lt_postinstall_cmds
18858
18859# Command to use after uninstallation of a shared archive.
18860postuninstall_cmds=$lt_postuninstall_cmds
18861
18862# Commands used to finish a libtool library installation in a directory.
18863finish_cmds=$lt_finish_cmds
18864
18865# As "finish_cmds", except a single script fragment to be evaled but
18866# not shown.
18867finish_eval=$lt_finish_eval
18868
18869# Whether we should hardcode library paths into libraries.
18870hardcode_into_libs=$hardcode_into_libs
18871
18872# Compile-time system search path for libraries.
18873sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18874
18875# Detected run-time system search path for libraries.
18876sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18877
18878# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18879configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18880
18881# Whether dlopen is supported.
18882dlopen_support=$enable_dlopen
18883
18884# Whether dlopen of programs is supported.
18885dlopen_self=$enable_dlopen_self
18886
18887# Whether dlopen of statically linked programs is supported.
18888dlopen_self_static=$enable_dlopen_self_static
18889
18890# Commands to strip libraries.
18891old_striplib=$lt_old_striplib
18892striplib=$lt_striplib
18893
18894# Assembler program.
18895AS=$lt_AS
18896
18897
18898# The linker used to build libraries.
18899LD=$lt_LD
18900
18901# How to create reloadable object files.
18902reload_flag=$lt_reload_flag
18903reload_cmds=$lt_reload_cmds
18904
18905# Commands used to build an old-style archive.
18906old_archive_cmds=$lt_old_archive_cmds
18907
18908# A language specific compiler.
18909CC=$lt_compiler
18910
18911# Is the compiler the GNU compiler?
18912with_gcc=$GCC
18913
18914# Compiler flag to turn off builtin functions.
18915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18916
18917# Additional compiler flags for building library objects.
18918pic_flag=$lt_lt_prog_compiler_pic
18919
18920# How to pass a linker flag through the compiler.
18921wl=$lt_lt_prog_compiler_wl
18922
18923# Compiler flag to prevent dynamic linking.
18924link_static_flag=$lt_lt_prog_compiler_static
18925
18926# Does compiler simultaneously support -c and -o options?
18927compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18928
18929# Whether or not to add -lc for building shared libraries.
18930build_libtool_need_lc=$archive_cmds_need_lc
18931
18932# Whether or not to disallow shared libs when runtime libs are static.
18933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18934
18935# Compiler flag to allow reflexive dlopens.
18936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18937
18938# Compiler flag to generate shared objects directly from archives.
18939whole_archive_flag_spec=$lt_whole_archive_flag_spec
18940
18941# Whether the compiler copes with passing no objects directly.
18942compiler_needs_object=$lt_compiler_needs_object
18943
18944# Create an old-style archive from a shared archive.
18945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18946
18947# Create a temporary old-style archive to link instead of a shared archive.
18948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18949
18950# Commands used to build a shared archive.
18951archive_cmds=$lt_archive_cmds
18952archive_expsym_cmds=$lt_archive_expsym_cmds
18953
18954# Commands used to build a loadable module if different from building
18955# a shared archive.
18956module_cmds=$lt_module_cmds
18957module_expsym_cmds=$lt_module_expsym_cmds
18958
18959# Whether we are building with GNU ld or not.
18960with_gnu_ld=$lt_with_gnu_ld
18961
18962# Flag that allows shared libraries with undefined symbols to be built.
18963allow_undefined_flag=$lt_allow_undefined_flag
18964
18965# Flag that enforces no undefined symbols.
18966no_undefined_flag=$lt_no_undefined_flag
18967
18968# Flag to hardcode \$libdir into a binary during linking.
18969# This must work even if \$libdir does not exist
18970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18971
18972# Whether we need a single "-rpath" flag with a separated argument.
18973hardcode_libdir_separator=$lt_hardcode_libdir_separator
18974
18975# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18976# DIR into the resulting binary.
18977hardcode_direct=$hardcode_direct
18978
18979# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18980# DIR into the resulting binary and the resulting library dependency is
18981# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18982# library is relocated.
18983hardcode_direct_absolute=$hardcode_direct_absolute
18984
18985# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18986# into the resulting binary.
18987hardcode_minus_L=$hardcode_minus_L
18988
18989# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18990# into the resulting binary.
18991hardcode_shlibpath_var=$hardcode_shlibpath_var
18992
18993# Set to "yes" if building a shared library automatically hardcodes DIR
18994# into the library and all subsequent libraries and executables linked
18995# against it.
18996hardcode_automatic=$hardcode_automatic
18997
18998# Set to yes if linker adds runtime paths of dependent libraries
18999# to runtime path list.
19000inherit_rpath=$inherit_rpath
19001
19002# Whether libtool must link a program against all its dependency libraries.
19003link_all_deplibs=$link_all_deplibs
19004
19005# Set to "yes" if exported symbols are required.
19006always_export_symbols=$always_export_symbols
19007
19008# The commands to list exported symbols.
19009export_symbols_cmds=$lt_export_symbols_cmds
19010
19011# Symbols that should not be listed in the preloaded symbols.
19012exclude_expsyms=$lt_exclude_expsyms
19013
19014# Symbols that must always be exported.
19015include_expsyms=$lt_include_expsyms
19016
19017# Commands necessary for linking programs (against libraries) with templates.
19018prelink_cmds=$lt_prelink_cmds
19019
19020# Commands necessary for finishing linking programs.
19021postlink_cmds=$lt_postlink_cmds
19022
19023# Specify filename containing input files.
19024file_list_spec=$lt_file_list_spec
19025
19026# How to hardcode a shared library path into an executable.
19027hardcode_action=$hardcode_action
19028
19029# The directories searched by this compiler when creating a shared library.
19030compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19031
19032# Dependencies to place before and after the objects being linked to
19033# create a shared library.
19034predep_objects=$lt_predep_objects
19035postdep_objects=$lt_postdep_objects
19036predeps=$lt_predeps
19037postdeps=$lt_postdeps
19038
19039# The library search path used internally by the compiler when linking
19040# a shared library.
19041compiler_lib_search_path=$lt_compiler_lib_search_path
19042
19043# ### END LIBTOOL CONFIG
19044
19045_LT_EOF
19046
19047    cat <<'_LT_EOF' >> "$cfgfile"
19048
19049# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19050
19051# func_munge_path_list VARIABLE PATH
19052# -----------------------------------
19053# VARIABLE is name of variable containing _space_ separated list of
19054# directories to be munged by the contents of PATH, which is string
19055# having a format:
19056# "DIR[:DIR]:"
19057#       string "DIR[ DIR]" will be prepended to VARIABLE
19058# ":DIR[:DIR]"
19059#       string "DIR[ DIR]" will be appended to VARIABLE
19060# "DIRP[:DIRP]::[DIRA:]DIRA"
19061#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19062#       "DIRA[ DIRA]" will be appended to VARIABLE
19063# "DIR[:DIR]"
19064#       VARIABLE will be replaced by "DIR[ DIR]"
19065func_munge_path_list ()
19066{
19067    case x@S|@2 in
19068    x)
19069        ;;
19070    *:)
19071        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
19072        ;;
19073    x:*)
19074        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
19075        ;;
19076    *::*)
19077        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19078        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
19079        ;;
19080    *)
19081        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
19082        ;;
19083    esac
19084}
19085
19086
19087# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19088func_cc_basename ()
19089{
19090    for cc_temp in @S|@*""; do
19091      case $cc_temp in
19092        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19093        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19094        \-*) ;;
19095        *) break;;
19096      esac
19097    done
19098    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19099}
19100
19101
19102# ### END FUNCTIONS SHARED WITH CONFIGURE
19103
19104_LT_EOF
19105
19106  case $host_os in
19107  aix3*)
19108    cat <<\_LT_EOF >> "$cfgfile"
19109# AIX sometimes has problems with the GCC collect2 program.  For some
19110# reason, if we set the COLLECT_NAMES environment variable, the problems
19111# vanish in a puff of smoke.
19112if test set != "${COLLECT_NAMES+set}"; then
19113  COLLECT_NAMES=
19114  export COLLECT_NAMES
19115fi
19116_LT_EOF
19117    ;;
19118  esac
19119
19120
19121ltmain=$ac_aux_dir/ltmain.sh
19122
19123
19124  # We use sed instead of cat because bash on DJGPP gets confused if
19125  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19126  # text mode, it properly converts lines to CR/LF.  This bash problem
19127  # is reportedly fixed, but why not run on old versions too?
19128  sed '$q' "$ltmain" >> "$cfgfile" \
19129     || (rm -f "$cfgfile"; exit 1)
19130
19131   mv -f "$cfgfile" "$ofile" ||
19132    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19133  chmod +x "$ofile"
19134
19135
19136    cat <<_LT_EOF >> "$ofile"
19137
19138# ### BEGIN LIBTOOL TAG CONFIG: CXX
19139
19140# The linker used to build libraries.
19141LD=$lt_LD_CXX
19142
19143# How to create reloadable object files.
19144reload_flag=$lt_reload_flag_CXX
19145reload_cmds=$lt_reload_cmds_CXX
19146
19147# Commands used to build an old-style archive.
19148old_archive_cmds=$lt_old_archive_cmds_CXX
19149
19150# A language specific compiler.
19151CC=$lt_compiler_CXX
19152
19153# Is the compiler the GNU compiler?
19154with_gcc=$GCC_CXX
19155
19156# Compiler flag to turn off builtin functions.
19157no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19158
19159# Additional compiler flags for building library objects.
19160pic_flag=$lt_lt_prog_compiler_pic_CXX
19161
19162# How to pass a linker flag through the compiler.
19163wl=$lt_lt_prog_compiler_wl_CXX
19164
19165# Compiler flag to prevent dynamic linking.
19166link_static_flag=$lt_lt_prog_compiler_static_CXX
19167
19168# Does compiler simultaneously support -c and -o options?
19169compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19170
19171# Whether or not to add -lc for building shared libraries.
19172build_libtool_need_lc=$archive_cmds_need_lc_CXX
19173
19174# Whether or not to disallow shared libs when runtime libs are static.
19175allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19176
19177# Compiler flag to allow reflexive dlopens.
19178export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19179
19180# Compiler flag to generate shared objects directly from archives.
19181whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19182
19183# Whether the compiler copes with passing no objects directly.
19184compiler_needs_object=$lt_compiler_needs_object_CXX
19185
19186# Create an old-style archive from a shared archive.
19187old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19188
19189# Create a temporary old-style archive to link instead of a shared archive.
19190old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19191
19192# Commands used to build a shared archive.
19193archive_cmds=$lt_archive_cmds_CXX
19194archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19195
19196# Commands used to build a loadable module if different from building
19197# a shared archive.
19198module_cmds=$lt_module_cmds_CXX
19199module_expsym_cmds=$lt_module_expsym_cmds_CXX
19200
19201# Whether we are building with GNU ld or not.
19202with_gnu_ld=$lt_with_gnu_ld_CXX
19203
19204# Flag that allows shared libraries with undefined symbols to be built.
19205allow_undefined_flag=$lt_allow_undefined_flag_CXX
19206
19207# Flag that enforces no undefined symbols.
19208no_undefined_flag=$lt_no_undefined_flag_CXX
19209
19210# Flag to hardcode \$libdir into a binary during linking.
19211# This must work even if \$libdir does not exist
19212hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19213
19214# Whether we need a single "-rpath" flag with a separated argument.
19215hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19216
19217# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19218# DIR into the resulting binary.
19219hardcode_direct=$hardcode_direct_CXX
19220
19221# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19222# DIR into the resulting binary and the resulting library dependency is
19223# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19224# library is relocated.
19225hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19226
19227# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19228# into the resulting binary.
19229hardcode_minus_L=$hardcode_minus_L_CXX
19230
19231# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19232# into the resulting binary.
19233hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19234
19235# Set to "yes" if building a shared library automatically hardcodes DIR
19236# into the library and all subsequent libraries and executables linked
19237# against it.
19238hardcode_automatic=$hardcode_automatic_CXX
19239
19240# Set to yes if linker adds runtime paths of dependent libraries
19241# to runtime path list.
19242inherit_rpath=$inherit_rpath_CXX
19243
19244# Whether libtool must link a program against all its dependency libraries.
19245link_all_deplibs=$link_all_deplibs_CXX
19246
19247# Set to "yes" if exported symbols are required.
19248always_export_symbols=$always_export_symbols_CXX
19249
19250# The commands to list exported symbols.
19251export_symbols_cmds=$lt_export_symbols_cmds_CXX
19252
19253# Symbols that should not be listed in the preloaded symbols.
19254exclude_expsyms=$lt_exclude_expsyms_CXX
19255
19256# Symbols that must always be exported.
19257include_expsyms=$lt_include_expsyms_CXX
19258
19259# Commands necessary for linking programs (against libraries) with templates.
19260prelink_cmds=$lt_prelink_cmds_CXX
19261
19262# Commands necessary for finishing linking programs.
19263postlink_cmds=$lt_postlink_cmds_CXX
19264
19265# Specify filename containing input files.
19266file_list_spec=$lt_file_list_spec_CXX
19267
19268# How to hardcode a shared library path into an executable.
19269hardcode_action=$hardcode_action_CXX
19270
19271# The directories searched by this compiler when creating a shared library.
19272compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19273
19274# Dependencies to place before and after the objects being linked to
19275# create a shared library.
19276predep_objects=$lt_predep_objects_CXX
19277postdep_objects=$lt_postdep_objects_CXX
19278predeps=$lt_predeps_CXX
19279postdeps=$lt_postdeps_CXX
19280
19281# The library search path used internally by the compiler when linking
19282# a shared library.
19283compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19284
19285# ### END LIBTOOL TAG CONFIG: CXX
19286_LT_EOF
19287
19288 ;;
19289
19290  esac
19291done # for ac_tag
19292
19293
19294as_fn_exit 0
19295_ACEOF
19296ac_clean_files=$ac_clean_files_save
19297
19298test $ac_write_fail = 0 ||
19299  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19300
19301
19302# configure is writing to config.log, and then calls config.status.
19303# config.status does its own redirection, appending to config.log.
19304# Unfortunately, on DOS this fails, as config.log is still kept open
19305# by configure, so config.status won't be able to write to it; its
19306# output is simply discarded.  So we exec the FD to /dev/null,
19307# effectively closing config.log, so it can be properly (re)opened and
19308# appended to by config.status.  When coming back to configure, we
19309# need to make the FD available again.
19310if test "$no_create" != yes; then
19311  ac_cs_success=:
19312  ac_config_status_args=
19313  test "$silent" = yes &&
19314    ac_config_status_args="$ac_config_status_args --quiet"
19315  exec 5>/dev/null
19316  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19317  exec 5>>config.log
19318  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19319  # would make configure fail if this is the last instruction.
19320  $ac_cs_success || as_fn_exit 1
19321fi
19322if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19323  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19324$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19325fi
19326
19327
19328