Merge remote-tracking branch 'origin/moonshot' into HEAD
[shibboleth/xmltooling.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xmltooling 1.5.
4 #
5 # Report bugs to <https://bugs.internet2.edu/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.internet2.edu/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
544
545 # Name of the host.
546 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
561
562 # Identity of this package.
563 PACKAGE_NAME='xmltooling'
564 PACKAGE_TARNAME='xmltooling'
565 PACKAGE_VERSION='1.5'
566 PACKAGE_STRING='xmltooling 1.5'
567 PACKAGE_BUGREPORT='https://bugs.internet2.edu/'
568 PACKAGE_URL=''
569
570 ac_unique_file="xmltooling"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 #  include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #  include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
606
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBOBJS
611 pkgconfig_libfile
612 pkgconfig_libdir
613 BUILD_UNITTEST_FALSE
614 BUILD_UNITTEST_TRUE
615 CXXTESTFLAGS
616 CXXTEST
617 BUILD_XMLSEC_FALSE
618 BUILD_XMLSEC_TRUE
619 XMLSEC_LIBS
620 CURL_CONFIG
621 PKG_CONFIG
622 LOG4CPP_CONFIG
623 LOG4SHIB_CONFIG
624 BUILD_PTHREAD_FALSE
625 BUILD_PTHREAD_TRUE
626 PTHREAD_CFLAGS
627 PTHREAD_LIBS
628 PTHREAD_CC
629 acx_pthread_config
630 CXXCPP
631 am__fastdepCXX_FALSE
632 am__fastdepCXX_TRUE
633 CXXDEPMODE
634 ac_ct_CXX
635 CXXFLAGS
636 CXX
637 DOXYGEN_PAPER_SIZE
638 DX_COND_latex_FALSE
639 DX_COND_latex_TRUE
640 DX_COND_pdf_FALSE
641 DX_COND_pdf_TRUE
642 DX_PDFLATEX
643 DX_FLAG_pdf
644 DX_COND_ps_FALSE
645 DX_COND_ps_TRUE
646 DX_EGREP
647 DX_DVIPS
648 DX_MAKEINDEX
649 DX_LATEX
650 DX_FLAG_ps
651 DX_COND_html_FALSE
652 DX_COND_html_TRUE
653 DX_FLAG_html
654 DX_COND_chi_FALSE
655 DX_COND_chi_TRUE
656 DX_FLAG_chi
657 DX_COND_chm_FALSE
658 DX_COND_chm_TRUE
659 DX_HHC
660 DX_FLAG_chm
661 DX_COND_xml_FALSE
662 DX_COND_xml_TRUE
663 DX_FLAG_xml
664 DX_COND_rtf_FALSE
665 DX_COND_rtf_TRUE
666 DX_FLAG_rtf
667 DX_COND_man_FALSE
668 DX_COND_man_TRUE
669 DX_FLAG_man
670 DX_COND_dot_FALSE
671 DX_COND_dot_TRUE
672 DX_DOT
673 DX_FLAG_dot
674 DX_COND_doc_FALSE
675 DX_COND_doc_TRUE
676 DX_PERL
677 DX_DOXYGEN
678 DX_FLAG_doc
679 DX_ENV
680 DX_DOCDIR
681 DX_CONFIG
682 DX_PROJECT
683 CPP
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
692 AR
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 LIBTOOL
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_static
794 enable_shared
795 with_pic
796 enable_fast_install
797 enable_dependency_tracking
798 with_gnu_ld
799 with_sysroot
800 enable_libtool_lock
801 enable_doxygen_doc
802 enable_doxygen_dot
803 enable_doxygen_man
804 enable_doxygen_rtf
805 enable_doxygen_xml
806 enable_doxygen_chm
807 enable_doxygen_chi
808 enable_doxygen_html
809 enable_doxygen_ps
810 enable_doxygen_pdf
811 enable_debug
812 with_log4shib
813 with_log4cpp
814 with_xerces
815 with_xmlsec
816 with_openssl
817 with_curl
818 with_cxxtest
819 '
820       ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 CPP
829 DOXYGEN_PAPER_SIZE
830 CXX
831 CXXFLAGS
832 CCC
833 CXXCPP'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888   # If the previous option needs an argument, assign it.
889   if test -n "$ac_prev"; then
890     eval $ac_prev=\$ac_option
891     ac_prev=
892     continue
893   fi
894
895   case $ac_option in
896   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897   *=)   ac_optarg= ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used" >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures xmltooling 1.5 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking ...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmltooling]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 Program names:
1434   --program-prefix=PREFIX            prepend PREFIX to installed program names
1435   --program-suffix=SUFFIX            append SUFFIX to installed program names
1436   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445   case $ac_init_help in
1446      short | recursive ) echo "Configuration of xmltooling 1.5:";;
1447    esac
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-option-checking  ignore unrecognized --enable/--with options
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --enable-static[=PKGS]  build static libraries [default=no]
1455   --enable-shared[=PKGS]  build shared libraries [default=yes]
1456   --enable-fast-install[=PKGS]
1457                           optimize for fast installation [default=yes]
1458   --disable-dependency-tracking  speeds up one-time build
1459   --enable-dependency-tracking   do not reject slow dependency extractors
1460   --disable-libtool-lock  avoid locking (might break parallel builds)
1461   --disable-doxygen-doc   don't generate any doxygen documentation
1462   --enable-doxygen-dot    generate graphics for doxygen documentation
1463   --enable-doxygen-man    generate doxygen manual pages
1464   --enable-doxygen-rtf    generate doxygen RTF documentation
1465   --enable-doxygen-xml    generate doxygen XML documentation
1466   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1467   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1468                           file
1469   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1470   --enable-doxygen-ps     generate doxygen PostScript documentation
1471   --enable-doxygen-pdf    generate doxygen PDF documentation
1472   --enable-debug          Have GCC compile with symbols (Default = no)
1473
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-pic              try to use only PIC/non-PIC objects [default=use
1478                           both]
1479   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480   --with-sysroot=DIR Search for dependent libraries within DIR
1481                         (or the compiler's sysroot if not specified).
1482   --with-log4shib=PATH    where log4shib-config is installed
1483   --with-log4cpp=PATH     where log4cpp-config is installed
1484   --with-xerces=PATH      where xerces-c is installed
1485   --with-xmlsec=PATH      where xmlsec is installed
1486   --with-openssl=PATH     where openssl is installed
1487   --with-curl=PATH        where curl-config is installed
1488   --with-cxxtest=PATH     where cxxtest is installed
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   LIBS        libraries to pass to the linker, e.g. -l<library>
1496   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CPP         C preprocessor
1499   DOXYGEN_PAPER_SIZE
1500               a4wide (default), a4, letter, legal or executive
1501   CXX         C++ compiler command
1502   CXXFLAGS    C++ compiler flags
1503   CXXCPP      C++ preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <https://bugs.internet2.edu/>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514   # If there are subdirs, report their specific --help.
1515   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516     test -d "$ac_dir" ||
1517       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518       continue
1519     ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525   # A ".." for each directory in $ac_dir_suffix.
1526   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527   case $ac_top_builddir_sub in
1528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530   esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538   .)  # We are building in place.
1539     ac_srcdir=.
1540     ac_top_srcdir=$ac_top_builddir_sub
1541     ac_abs_top_srcdir=$ac_pwd ;;
1542   [\\/]* | ?:[\\/]* )  # Absolute name.
1543     ac_srcdir=$srcdir$ac_dir_suffix;
1544     ac_top_srcdir=$srcdir
1545     ac_abs_top_srcdir=$srcdir ;;
1546   *) # Relative name.
1547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548     ac_top_srcdir=$ac_top_build_prefix$srcdir
1549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553     cd "$ac_dir" || { ac_status=$?; continue; }
1554     # Check for guested configure.
1555     if test -f "$ac_srcdir/configure.gnu"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558     elif test -f "$ac_srcdir/configure"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure" --help=recursive
1561     else
1562       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563     fi || ac_status=$?
1564     cd "$ac_pwd" || { ac_status=$?; break; }
1565   done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570   cat <<\_ACEOF
1571 xmltooling configure 1.5
1572 generated by GNU Autoconf 2.67
1573
1574 Copyright (C) 2010 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578   exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   rm -f conftest.$ac_objext
1592   if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595   *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599   (eval "$ac_compile") 2>conftest.err
1600   ac_status=$?
1601   if test -s conftest.err; then
1602     grep -v '^ *+' conftest.err >conftest.er1
1603     cat conftest.er1 >&5
1604     mv -f conftest.er1 conftest.err
1605   fi
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; } && {
1608          test -z "$ac_c_werror_flag" ||
1609          test ! -s conftest.err
1610        } && test -s conftest.$ac_objext; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616         ac_retval=1
1617 fi
1618   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   rm -f conftest.$ac_objext conftest$ac_exeext
1630   if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_link") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && {
1646          test -z "$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        } && test -s conftest$ac_exeext && {
1649          test "$cross_compiling" = yes ||
1650          $as_test_x conftest$ac_exeext
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657         ac_retval=1
1658 fi
1659   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661   # interfere with the next link command; also delete a directory that is
1662   # left behind by Apple's compiler.  We do this before executing the actions.
1663   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665   as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval "test \"\${$3+set}\"" = set; then :
1679   $as_echo_n "(cached) " >&6
1680 else
1681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h.  */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687   eval "$3=yes"
1688 else
1689   eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } > conftest.i && {
1722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        }; then :
1725   ac_retval=0
1726 else
1727   $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730     ac_retval=1
1731 fi
1732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733   as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747   *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751   (eval "$ac_link") 2>&5
1752   ac_status=$?
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755   { { case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_try") 2>&5
1762   ac_status=$?
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; }; }; then :
1765   ac_retval=0
1766 else
1767   $as_echo "$as_me: program exited with status $ac_status" >&5
1768        $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771        ac_retval=$ac_status
1772 fi
1773   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775   as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval "test \"\${$3+set}\"" = set; then :
1788   $as_echo_n "(cached) " >&6
1789 else
1790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h.  */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797     which can conflict with char $2 (); below.
1798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799     <limits.h> exists even on freestanding compilers.  */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810    Use char because int might match the return type of a GCC
1811    builtin and then its argument prototype would still apply.  */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817     to always fail with ENOSYS.  Some functions are actually named
1818     something starting with __ and the normal name is an alias.  */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827   ;
1828   return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832   eval "$3=yes"
1833 else
1834   eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837     conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1850 {
1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852   rm -f conftest.$ac_objext
1853   if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_compile") 2>conftest.err
1861   ac_status=$?
1862   if test -s conftest.err; then
1863     grep -v '^ *+' conftest.err >conftest.er1
1864     cat conftest.er1 >&5
1865     mv -f conftest.er1 conftest.err
1866   fi
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && {
1869          test -z "$ac_cxx_werror_flag" ||
1870          test ! -s conftest.err
1871        } && test -s conftest.$ac_objext; then :
1872   ac_retval=0
1873 else
1874   $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877         ac_retval=1
1878 fi
1879   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880   as_fn_set_status $ac_retval
1881
1882 } # ac_fn_cxx_try_compile
1883
1884 # ac_fn_cxx_try_cpp LINENO
1885 # ------------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_cpp ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898   ac_status=$?
1899   if test -s conftest.err; then
1900     grep -v '^ *+' conftest.err >conftest.er1
1901     cat conftest.er1 >&5
1902     mv -f conftest.er1 conftest.err
1903   fi
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } > conftest.i && {
1906          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1907          test ! -s conftest.err
1908        }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914     ac_retval=1
1915 fi
1916   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917   as_fn_set_status $ac_retval
1918
1919 } # ac_fn_cxx_try_cpp
1920
1921 # ac_fn_cxx_try_link LINENO
1922 # -------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_link ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   rm -f conftest.$ac_objext conftest$ac_exeext
1928   if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931   *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935   (eval "$ac_link") 2>conftest.err
1936   ac_status=$?
1937   if test -s conftest.err; then
1938     grep -v '^ *+' conftest.err >conftest.er1
1939     cat conftest.er1 >&5
1940     mv -f conftest.er1 conftest.err
1941   fi
1942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943   test $ac_status = 0; } && {
1944          test -z "$ac_cxx_werror_flag" ||
1945          test ! -s conftest.err
1946        } && test -s conftest$ac_exeext && {
1947          test "$cross_compiling" = yes ||
1948          $as_test_x conftest$ac_exeext
1949        }; then :
1950   ac_retval=0
1951 else
1952   $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955         ac_retval=1
1956 fi
1957   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959   # interfere with the next link command; also delete a directory that is
1960   # left behind by Apple's compiler.  We do this before executing the actions.
1961   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963   as_fn_set_status $ac_retval
1964
1965 } # ac_fn_cxx_try_link
1966
1967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968 # -------------------------------------------
1969 # Tests whether TYPE exists after having included INCLUDES, setting cache
1970 # variable VAR accordingly.
1971 ac_fn_c_check_type ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977   $as_echo_n "(cached) " >&6
1978 else
1979   eval "$3=no"
1980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 if (sizeof ($2))
1987          return 0;
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 int
1997 main ()
1998 {
1999 if (sizeof (($2)))
2000             return 0;
2001   ;
2002   return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006
2007 else
2008   eval "$3=yes"
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
2014 eval ac_res=\$$3
2015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019 } # ac_fn_c_check_type
2020
2021 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022 # --------------------------------------------
2023 # Tries to find the compile-time value of EXPR in a program that includes
2024 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2025 # computed
2026 ac_fn_c_compute_int ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   if test "$cross_compiling" = yes; then
2030     # Depending upon the size, compute the lo and hi bounds.
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 $4
2034 int
2035 main ()
2036 {
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2038 test_array [0] = 0
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045   ac_lo=0 ac_mid=0
2046   while :; do
2047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 int
2051 main ()
2052 {
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0
2055
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061   ac_hi=$ac_mid; break
2062 else
2063   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064                         if test $ac_lo -le $ac_mid; then
2065                           ac_lo= ac_hi=
2066                           break
2067                         fi
2068                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071   done
2072 else
2073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) < 0)];
2080 test_array [0] = 0
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   ac_hi=-1 ac_mid=-1
2088   while :; do
2089     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 test_array [0] = 0
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   ac_lo=$ac_mid; break
2104 else
2105   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106                         if test $ac_mid -le $ac_hi; then
2107                           ac_lo= ac_hi=
2108                           break
2109                         fi
2110                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113   done
2114 else
2115   ac_lo= ac_hi=
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h.  */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   ac_hi=$ac_mid
2138 else
2139   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 done
2143 case $ac_lo in #((
2144 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145 '') ac_retval=1 ;;
2146 esac
2147   else
2148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 $4
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2153 #include <stdio.h>
2154 #include <stdlib.h>
2155 int
2156 main ()
2157 {
2158
2159   FILE *f = fopen ("conftest.val", "w");
2160   if (! f)
2161     return 1;
2162   if (($2) < 0)
2163     {
2164       long int i = longval ();
2165       if (i != ($2))
2166         return 1;
2167       fprintf (f, "%ld", i);
2168     }
2169   else
2170     {
2171       unsigned long int i = ulongval ();
2172       if (i != ($2))
2173         return 1;
2174       fprintf (f, "%lu", i);
2175     }
2176   /* Do not output a trailing newline, as this causes \r\n confusion
2177      on some platforms.  */
2178   return ferror (f) || fclose (f) != 0;
2179
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_run "$LINENO"; then :
2185   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2186 else
2187   ac_retval=1
2188 fi
2189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190   conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 rm -f conftest.val
2192
2193   fi
2194   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195   as_fn_set_status $ac_retval
2196
2197 } # ac_fn_c_compute_int
2198
2199 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202 # the include files in INCLUDES and setting the cache variable VAR
2203 # accordingly.
2204 ac_fn_c_check_header_mongrel ()
2205 {
2206   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207   if eval "test \"\${$3+set}\"" = set; then :
2208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 $as_echo_n "checking for $2... " >&6; }
2210 if eval "test \"\${$3+set}\"" = set; then :
2211   $as_echo_n "(cached) " >&6
2212 fi
2213 eval ac_res=\$$3
2214                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 else
2217   # Is the header compilable?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219 $as_echo_n "checking $2 usability... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 #include <$2>
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   ac_header_compiler=yes
2227 else
2228   ac_header_compiler=no
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232 $as_echo "$ac_header_compiler" >&6; }
2233
2234 # Is the header present?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236 $as_echo_n "checking $2 presence... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 #include <$2>
2240 _ACEOF
2241 if ac_fn_c_try_cpp "$LINENO"; then :
2242   ac_header_preproc=yes
2243 else
2244   ac_header_preproc=no
2245 fi
2246 rm -f conftest.err conftest.i conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248 $as_echo "$ac_header_preproc" >&6; }
2249
2250 # So?  What about this header?
2251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252   yes:no: )
2253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257     ;;
2258   no:yes:* )
2259     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2262 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2266 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2267     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269 ( $as_echo "## ------------------------------------------ ##
2270 ## Report this to https://bugs.internet2.edu/ ##
2271 ## ------------------------------------------ ##"
2272      ) | sed "s/^/$as_me: WARNING:     /" >&2
2273     ;;
2274 esac
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if eval "test \"\${$3+set}\"" = set; then :
2278   $as_echo_n "(cached) " >&6
2279 else
2280   eval "$3=\$ac_header_compiler"
2281 fi
2282 eval ac_res=\$$3
2283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 fi
2286   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288 } # ac_fn_c_check_header_mongrel
2289
2290 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2291 # ---------------------------------------------------------
2292 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2293 # the include files in INCLUDES and setting the cache variable VAR
2294 # accordingly.
2295 ac_fn_cxx_check_header_mongrel ()
2296 {
2297   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298   if eval "test \"\${$3+set}\"" = set; then :
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval "test \"\${$3+set}\"" = set; then :
2302   $as_echo_n "(cached) " >&6
2303 fi
2304 eval ac_res=\$$3
2305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 else
2308   # Is the header compilable?
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2310 $as_echo_n "checking $2 usability... " >&6; }
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 #include <$2>
2315 _ACEOF
2316 if ac_fn_cxx_try_compile "$LINENO"; then :
2317   ac_header_compiler=yes
2318 else
2319   ac_header_compiler=no
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2323 $as_echo "$ac_header_compiler" >&6; }
2324
2325 # Is the header present?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2327 $as_echo_n "checking $2 presence... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h.  */
2330 #include <$2>
2331 _ACEOF
2332 if ac_fn_cxx_try_cpp "$LINENO"; then :
2333   ac_header_preproc=yes
2334 else
2335   ac_header_preproc=no
2336 fi
2337 rm -f conftest.err conftest.i conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2339 $as_echo "$ac_header_preproc" >&6; }
2340
2341 # So?  What about this header?
2342 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2343   yes:no: )
2344     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2345 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2347 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2348     ;;
2349   no:yes:* )
2350     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2351 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2352     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2353 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2354     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2355 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2356     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2357 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2360 ( $as_echo "## ------------------------------------------ ##
2361 ## Report this to https://bugs.internet2.edu/ ##
2362 ## ------------------------------------------ ##"
2363      ) | sed "s/^/$as_me: WARNING:     /" >&2
2364     ;;
2365 esac
2366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if eval "test \"\${$3+set}\"" = set; then :
2369   $as_echo_n "(cached) " >&6
2370 else
2371   eval "$3=\$ac_header_compiler"
2372 fi
2373 eval ac_res=\$$3
2374                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 fi
2377   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378
2379 } # ac_fn_cxx_check_header_mongrel
2380
2381 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2382 # -----------------------------------------------
2383 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2384 # accordingly.
2385 ac_fn_cxx_check_decl ()
2386 {
2387   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388   as_decl_name=`echo $2|sed 's/ *(.*//'`
2389   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2391 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2392 if eval "test \"\${$3+set}\"" = set; then :
2393   $as_echo_n "(cached) " >&6
2394 else
2395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h.  */
2397 $4
2398 int
2399 main ()
2400 {
2401 #ifndef $as_decl_name
2402 #ifdef __cplusplus
2403   (void) $as_decl_use;
2404 #else
2405   (void) $as_decl_name;
2406 #endif
2407 #endif
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 if ac_fn_cxx_try_compile "$LINENO"; then :
2414   eval "$3=yes"
2415 else
2416   eval "$3=no"
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 fi
2420 eval ac_res=\$$3
2421                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2424
2425 } # ac_fn_cxx_check_decl
2426
2427 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2428 # ---------------------------------------------
2429 # Tests whether TYPE exists after having included INCLUDES, setting cache
2430 # variable VAR accordingly.
2431 ac_fn_cxx_check_type ()
2432 {
2433   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval "test \"\${$3+set}\"" = set; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   eval "$3=no"
2440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h.  */
2442 $4
2443 int
2444 main ()
2445 {
2446 if (sizeof ($2))
2447          return 0;
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h.  */
2455 $4
2456 int
2457 main ()
2458 {
2459 if (sizeof (($2)))
2460             return 0;
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_cxx_try_compile "$LINENO"; then :
2466
2467 else
2468   eval "$3=yes"
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 fi
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 fi
2474 eval ac_res=\$$3
2475                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478
2479 } # ac_fn_cxx_check_type
2480 cat >config.log <<_ACEOF
2481 This file contains any messages produced by compilers while
2482 running configure, to aid debugging if configure makes a mistake.
2483
2484 It was created by xmltooling $as_me 1.5, which was
2485 generated by GNU Autoconf 2.67.  Invocation command line was
2486
2487   $ $0 $@
2488
2489 _ACEOF
2490 exec 5>>config.log
2491 {
2492 cat <<_ASUNAME
2493 ## --------- ##
2494 ## Platform. ##
2495 ## --------- ##
2496
2497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2502
2503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2504 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2505
2506 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2507 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2509 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2510 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2511 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2512 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2513
2514 _ASUNAME
2515
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521     $as_echo "PATH: $as_dir"
2522   done
2523 IFS=$as_save_IFS
2524
2525 } >&5
2526
2527 cat >&5 <<_ACEOF
2528
2529
2530 ## ----------- ##
2531 ## Core tests. ##
2532 ## ----------- ##
2533
2534 _ACEOF
2535
2536
2537 # Keep a trace of the command line.
2538 # Strip out --no-create and --no-recursion so they do not pile up.
2539 # Strip out --silent because we don't want to record it for future runs.
2540 # Also quote any args containing shell meta-characters.
2541 # Make two passes to allow for proper duplicate-argument suppression.
2542 ac_configure_args=
2543 ac_configure_args0=
2544 ac_configure_args1=
2545 ac_must_keep_next=false
2546 for ac_pass in 1 2
2547 do
2548   for ac_arg
2549   do
2550     case $ac_arg in
2551     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2552     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2553     | -silent | --silent | --silen | --sile | --sil)
2554       continue ;;
2555     *\'*)
2556       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2557     esac
2558     case $ac_pass in
2559     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2560     2)
2561       as_fn_append ac_configure_args1 " '$ac_arg'"
2562       if test $ac_must_keep_next = true; then
2563         ac_must_keep_next=false # Got value, back to normal.
2564       else
2565         case $ac_arg in
2566           *=* | --config-cache | -C | -disable-* | --disable-* \
2567           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2568           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2569           | -with-* | --with-* | -without-* | --without-* | --x)
2570             case "$ac_configure_args0 " in
2571               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2572             esac
2573             ;;
2574           -* ) ac_must_keep_next=true ;;
2575         esac
2576       fi
2577       as_fn_append ac_configure_args " '$ac_arg'"
2578       ;;
2579     esac
2580   done
2581 done
2582 { ac_configure_args0=; unset ac_configure_args0;}
2583 { ac_configure_args1=; unset ac_configure_args1;}
2584
2585 # When interrupted or exit'd, cleanup temporary files, and complete
2586 # config.log.  We remove comments because anyway the quotes in there
2587 # would cause problems or look ugly.
2588 # WARNING: Use '\'' to represent an apostrophe within the trap.
2589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2590 trap 'exit_status=$?
2591   # Save into config.log some information that might help in debugging.
2592   {
2593     echo
2594
2595     $as_echo "## ---------------- ##
2596 ## Cache variables. ##
2597 ## ---------------- ##"
2598     echo
2599     # The following way of writing the cache mishandles newlines in values,
2600 (
2601   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2602     eval ac_val=\$$ac_var
2603     case $ac_val in #(
2604     *${as_nl}*)
2605       case $ac_var in #(
2606       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2608       esac
2609       case $ac_var in #(
2610       _ | IFS | as_nl) ;; #(
2611       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2612       *) { eval $ac_var=; unset $ac_var;} ;;
2613       esac ;;
2614     esac
2615   done
2616   (set) 2>&1 |
2617     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2618     *${as_nl}ac_space=\ *)
2619       sed -n \
2620         "s/'\''/'\''\\\\'\'''\''/g;
2621           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2622       ;; #(
2623     *)
2624       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2625       ;;
2626     esac |
2627     sort
2628 )
2629     echo
2630
2631     $as_echo "## ----------------- ##
2632 ## Output variables. ##
2633 ## ----------------- ##"
2634     echo
2635     for ac_var in $ac_subst_vars
2636     do
2637       eval ac_val=\$$ac_var
2638       case $ac_val in
2639       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2640       esac
2641       $as_echo "$ac_var='\''$ac_val'\''"
2642     done | sort
2643     echo
2644
2645     if test -n "$ac_subst_files"; then
2646       $as_echo "## ------------------- ##
2647 ## File substitutions. ##
2648 ## ------------------- ##"
2649       echo
2650       for ac_var in $ac_subst_files
2651       do
2652         eval ac_val=\$$ac_var
2653         case $ac_val in
2654         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2655         esac
2656         $as_echo "$ac_var='\''$ac_val'\''"
2657       done | sort
2658       echo
2659     fi
2660
2661     if test -s confdefs.h; then
2662       $as_echo "## ----------- ##
2663 ## confdefs.h. ##
2664 ## ----------- ##"
2665       echo
2666       cat confdefs.h
2667       echo
2668     fi
2669     test "$ac_signal" != 0 &&
2670       $as_echo "$as_me: caught signal $ac_signal"
2671     $as_echo "$as_me: exit $exit_status"
2672   } >&5
2673   rm -f core *.core core.conftest.* &&
2674     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2675     exit $exit_status
2676 ' 0
2677 for ac_signal in 1 2 13 15; do
2678   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2679 done
2680 ac_signal=0
2681
2682 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2683 rm -f -r conftest* confdefs.h
2684
2685 $as_echo "/* confdefs.h */" > confdefs.h
2686
2687 # Predefined preprocessor variables.
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_NAME "$PACKAGE_NAME"
2691 _ACEOF
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2695 _ACEOF
2696
2697 cat >>confdefs.h <<_ACEOF
2698 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2699 _ACEOF
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define PACKAGE_STRING "$PACKAGE_STRING"
2703 _ACEOF
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2707 _ACEOF
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_URL "$PACKAGE_URL"
2711 _ACEOF
2712
2713
2714 # Let the site file select an alternate cache file if it wants to.
2715 # Prefer an explicitly selected file to automatically selected ones.
2716 ac_site_file1=NONE
2717 ac_site_file2=NONE
2718 if test -n "$CONFIG_SITE"; then
2719   # We do not want a PATH search for config.site.
2720   case $CONFIG_SITE in #((
2721     -*)  ac_site_file1=./$CONFIG_SITE;;
2722     */*) ac_site_file1=$CONFIG_SITE;;
2723     *)   ac_site_file1=./$CONFIG_SITE;;
2724   esac
2725 elif test "x$prefix" != xNONE; then
2726   ac_site_file1=$prefix/share/config.site
2727   ac_site_file2=$prefix/etc/config.site
2728 else
2729   ac_site_file1=$ac_default_prefix/share/config.site
2730   ac_site_file2=$ac_default_prefix/etc/config.site
2731 fi
2732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2733 do
2734   test "x$ac_site_file" = xNONE && continue
2735   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2736     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2738     sed 's/^/| /' "$ac_site_file" >&5
2739     . "$ac_site_file" \
2740       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 as_fn_error $? "failed to load site script $ac_site_file
2743 See \`config.log' for more details" "$LINENO" 5 ; }
2744   fi
2745 done
2746
2747 if test -r "$cache_file"; then
2748   # Some versions of bash will fail to source /dev/null (special files
2749   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2750   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2751     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2752 $as_echo "$as_me: loading cache $cache_file" >&6;}
2753     case $cache_file in
2754       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2755       *)                      . "./$cache_file";;
2756     esac
2757   fi
2758 else
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2760 $as_echo "$as_me: creating cache $cache_file" >&6;}
2761   >$cache_file
2762 fi
2763
2764 # Check that the precious variables saved in the cache have kept the same
2765 # value.
2766 ac_cache_corrupted=false
2767 for ac_var in $ac_precious_vars; do
2768   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2769   eval ac_new_set=\$ac_env_${ac_var}_set
2770   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2771   eval ac_new_val=\$ac_env_${ac_var}_value
2772   case $ac_old_set,$ac_new_set in
2773     set,)
2774       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2775 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2776       ac_cache_corrupted=: ;;
2777     ,set)
2778       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2779 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2780       ac_cache_corrupted=: ;;
2781     ,);;
2782     *)
2783       if test "x$ac_old_val" != "x$ac_new_val"; then
2784         # differences in whitespace do not lead to failure.
2785         ac_old_val_w=`echo x $ac_old_val`
2786         ac_new_val_w=`echo x $ac_new_val`
2787         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2788           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2789 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2790           ac_cache_corrupted=:
2791         else
2792           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2793 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2794           eval $ac_var=\$ac_old_val
2795         fi
2796         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2797 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2798         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2799 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2800       fi;;
2801   esac
2802   # Pass precious variables to config.status.
2803   if test "$ac_new_set" = set; then
2804     case $ac_new_val in
2805     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2806     *) ac_arg=$ac_var=$ac_new_val ;;
2807     esac
2808     case " $ac_configure_args " in
2809       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2810       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2811     esac
2812   fi
2813 done
2814 if $ac_cache_corrupted; then
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2818 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2819   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2820 fi
2821 ## -------------------- ##
2822 ## Main body of script. ##
2823 ## -------------------- ##
2824
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830
2831
2832
2833 ac_aux_dir=
2834 for ac_dir in build-aux "$srcdir"/build-aux; do
2835   if test -f "$ac_dir/install-sh"; then
2836     ac_aux_dir=$ac_dir
2837     ac_install_sh="$ac_aux_dir/install-sh -c"
2838     break
2839   elif test -f "$ac_dir/install.sh"; then
2840     ac_aux_dir=$ac_dir
2841     ac_install_sh="$ac_aux_dir/install.sh -c"
2842     break
2843   elif test -f "$ac_dir/shtool"; then
2844     ac_aux_dir=$ac_dir
2845     ac_install_sh="$ac_aux_dir/shtool install -c"
2846     break
2847   fi
2848 done
2849 if test -z "$ac_aux_dir"; then
2850   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2851 fi
2852
2853 # These three variables are undocumented and unsupported,
2854 # and are intended to be withdrawn in a future Autoconf release.
2855 # They can cause serious problems if a builder's source tree is in a directory
2856 # whose full name contains unusual characters.
2857 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2858 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2859 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2860
2861
2862
2863 am__api_version='1.11'
2864
2865 # Find a good install program.  We prefer a C program (faster),
2866 # so one script is as good as another.  But avoid the broken or
2867 # incompatible versions:
2868 # SysV /etc/install, /usr/sbin/install
2869 # SunOS /usr/etc/install
2870 # IRIX /sbin/install
2871 # AIX /bin/install
2872 # AmigaOS /C/install, which installs bootblocks on floppy discs
2873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2876 # OS/2's system install, which has a completely different semantic
2877 # ./install, which can be erroneously created by make from ./install.sh.
2878 # Reject install programs that cannot install multiple files.
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2881 if test -z "$INSTALL"; then
2882 if test "${ac_cv_path_install+set}" = set; then :
2883   $as_echo_n "(cached) " >&6
2884 else
2885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890     # Account for people who put trailing slashes in PATH elements.
2891 case $as_dir/ in #((
2892   ./ | .// | /[cC]/* | \
2893   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2894   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2895   /usr/ucb/* ) ;;
2896   *)
2897     # OSF1 and SCO ODT 3.0 have their own names for install.
2898     # Don't use installbsd from OSF since it installs stuff as root
2899     # by default.
2900     for ac_prog in ginstall scoinst install; do
2901       for ac_exec_ext in '' $ac_executable_extensions; do
2902         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2903           if test $ac_prog = install &&
2904             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905             # AIX install.  It has an incompatible calling convention.
2906             :
2907           elif test $ac_prog = install &&
2908             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909             # program-specific install script used by HP pwplus--don't use.
2910             :
2911           else
2912             rm -rf conftest.one conftest.two conftest.dir
2913             echo one > conftest.one
2914             echo two > conftest.two
2915             mkdir conftest.dir
2916             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2917               test -s conftest.one && test -s conftest.two &&
2918               test -s conftest.dir/conftest.one &&
2919               test -s conftest.dir/conftest.two
2920             then
2921               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2922               break 3
2923             fi
2924           fi
2925         fi
2926       done
2927     done
2928     ;;
2929 esac
2930
2931   done
2932 IFS=$as_save_IFS
2933
2934 rm -rf conftest.one conftest.two conftest.dir
2935
2936 fi
2937   if test "${ac_cv_path_install+set}" = set; then
2938     INSTALL=$ac_cv_path_install
2939   else
2940     # As a last resort, use the slow shell script.  Don't cache a
2941     # value for INSTALL within a source directory, because that will
2942     # break other packages using the cache if that directory is
2943     # removed, or if the value is a relative name.
2944     INSTALL=$ac_install_sh
2945   fi
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2948 $as_echo "$INSTALL" >&6; }
2949
2950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951 # It thinks the first close brace ends the variable substitution.
2952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2953
2954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2955
2956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2959 $as_echo_n "checking whether build environment is sane... " >&6; }
2960 # Just in case
2961 sleep 1
2962 echo timestamp > conftest.file
2963 # Reject unsafe characters in $srcdir or the absolute working directory
2964 # name.  Accept space and tab only in the latter.
2965 am_lf='
2966 '
2967 case `pwd` in
2968   *[\\\"\#\$\&\'\`$am_lf]*)
2969     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2970 esac
2971 case $srcdir in
2972   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2973     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2974 esac
2975
2976 # Do `set' in a subshell so we don't clobber the current shell's
2977 # arguments.  Must try -L first in case configure is actually a
2978 # symlink; some systems play weird games with the mod time of symlinks
2979 # (eg FreeBSD returns the mod time of the symlink's containing
2980 # directory).
2981 if (
2982    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2983    if test "$*" = "X"; then
2984       # -L didn't work.
2985       set X `ls -t "$srcdir/configure" conftest.file`
2986    fi
2987    rm -f conftest.file
2988    if test "$*" != "X $srcdir/configure conftest.file" \
2989       && test "$*" != "X conftest.file $srcdir/configure"; then
2990
2991       # If neither matched, then we have a broken ls.  This can happen
2992       # if, for instance, CONFIG_SHELL is bash and it inherits a
2993       # broken ls alias from the environment.  This has actually
2994       # happened.  Such a system could not be considered "sane".
2995       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2996 alias in your environment" "$LINENO" 5
2997    fi
2998
2999    test "$2" = conftest.file
3000    )
3001 then
3002    # Ok.
3003    :
3004 else
3005    as_fn_error $? "newly created file is older than distributed files!
3006 Check your system clock" "$LINENO" 5
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010 test "$program_prefix" != NONE &&
3011   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3012 # Use a double $ so make ignores it.
3013 test "$program_suffix" != NONE &&
3014   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3015 # Double any \ or $.
3016 # By default was `s,x,x', remove it if useless.
3017 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3018 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3019
3020 # expand $ac_aux_dir to an absolute path
3021 am_aux_dir=`cd $ac_aux_dir && pwd`
3022
3023 if test x"${MISSING+set}" != xset; then
3024   case $am_aux_dir in
3025   *\ * | *\     *)
3026     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3027   *)
3028     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3029   esac
3030 fi
3031 # Use eval to expand $SHELL
3032 if eval "$MISSING --run true"; then
3033   am_missing_run="$MISSING --run "
3034 else
3035   am_missing_run=
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3037 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3038 fi
3039
3040 if test x"${install_sh}" != xset; then
3041   case $am_aux_dir in
3042   *\ * | *\     *)
3043     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3044   *)
3045     install_sh="\${SHELL} $am_aux_dir/install-sh"
3046   esac
3047 fi
3048
3049 # Installed binaries are usually stripped using `strip' when the user
3050 # run `make install-strip'.  However `strip' might not be the right
3051 # tool to use in cross-compilation environments, therefore Automake
3052 # will honor the `STRIP' environment variable to overrule this program.
3053 if test "$cross_compiling" != no; then
3054   if test -n "$ac_tool_prefix"; then
3055   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}strip; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_STRIP+set}" = set; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$STRIP"; then
3063   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 STRIP=$ac_cv_prog_STRIP
3083 if test -n "$STRIP"; then
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3085 $as_echo "$STRIP" >&6; }
3086 else
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092 fi
3093 if test -z "$ac_cv_prog_STRIP"; then
3094   ac_ct_STRIP=$STRIP
3095   # Extract the first word of "strip", so it can be a program name with args.
3096 set dummy strip; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$ac_ct_STRIP"; then
3103   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_ac_ct_STRIP="strip"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3123 if test -n "$ac_ct_STRIP"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3125 $as_echo "$ac_ct_STRIP" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131   if test "x$ac_ct_STRIP" = x; then
3132     STRIP=":"
3133   else
3134     case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     STRIP=$ac_ct_STRIP
3141   fi
3142 else
3143   STRIP="$ac_cv_prog_STRIP"
3144 fi
3145
3146 fi
3147 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3150 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3151 if test -z "$MKDIR_P"; then
3152   if test "${ac_cv_path_mkdir+set}" = set; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3157 do
3158   IFS=$as_save_IFS
3159   test -z "$as_dir" && as_dir=.
3160     for ac_prog in mkdir gmkdir; do
3161          for ac_exec_ext in '' $ac_executable_extensions; do
3162            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3163            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3164              'mkdir (GNU coreutils) '* | \
3165              'mkdir (coreutils) '* | \
3166              'mkdir (fileutils) '4.1*)
3167                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3168                break 3;;
3169            esac
3170          done
3171        done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176
3177   test -d ./--version && rmdir ./--version
3178   if test "${ac_cv_path_mkdir+set}" = set; then
3179     MKDIR_P="$ac_cv_path_mkdir -p"
3180   else
3181     # As a last resort, use the slow shell script.  Don't cache a
3182     # value for MKDIR_P within a source directory, because that will
3183     # break other packages using the cache if that directory is
3184     # removed, or if the value is a relative name.
3185     MKDIR_P="$ac_install_sh -d"
3186   fi
3187 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3189 $as_echo "$MKDIR_P" >&6; }
3190
3191 mkdir_p="$MKDIR_P"
3192 case $mkdir_p in
3193   [\\/$]* | ?:[\\/]*) ;;
3194   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3195 esac
3196
3197 for ac_prog in gawk mawk nawk awk
3198 do
3199   # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_AWK+set}" = set; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$AWK"; then
3207   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_AWK="$ac_prog"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 AWK=$ac_cv_prog_AWK
3227 if test -n "$AWK"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236   test -n "$AWK" && break
3237 done
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 set x ${MAKE-make}
3242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   cat >conftest.make <<\_ACEOF
3247 SHELL = /bin/sh
3248 all:
3249         @echo '@@@%%%=$(MAKE)=@@@%%%'
3250 _ACEOF
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253   *@@@%%%=?*=@@@%%%*)
3254     eval ac_cv_prog_make_${ac_make}_set=yes;;
3255   *)
3256     eval ac_cv_prog_make_${ac_make}_set=no;;
3257 esac
3258 rm -f conftest.make
3259 fi
3260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263   SET_MAKE=
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267   SET_MAKE="MAKE=${MAKE-make}"
3268 fi
3269
3270 rm -rf .tst 2>/dev/null
3271 mkdir .tst 2>/dev/null
3272 if test -d .tst; then
3273   am__leading_dot=.
3274 else
3275   am__leading_dot=_
3276 fi
3277 rmdir .tst 2>/dev/null
3278
3279 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3280   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3281   # is not polluted with repeated "-I."
3282   am__isrc=' -I$(srcdir)'
3283   # test to see if srcdir already configured
3284   if test -f $srcdir/config.status; then
3285     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3286   fi
3287 fi
3288
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291   if (cygpath --version) >/dev/null 2>/dev/null; then
3292     CYGPATH_W='cygpath -w'
3293   else
3294     CYGPATH_W=echo
3295   fi
3296 fi
3297
3298
3299 # Define the identity of the package.
3300  PACKAGE='xmltooling'
3301  VERSION='1.5'
3302
3303
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3307
3308
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3312
3313 # Some tools Automake needs.
3314
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316
3317
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319
3320
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322
3323
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325
3326
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3328
3329 # We need awk for the "check" target.  The system "awk" is bad on
3330 # some platforms.
3331 # Always define AMTAR for backward compatibility.
3332
3333 AMTAR=${AMTAR-"${am_missing_run}tar"}
3334
3335 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3336
3337
3338
3339
3340
3341 # Check whether --enable-static was given.
3342 if test "${enable_static+set}" = set; then :
3343   enableval=$enable_static; p=${PACKAGE-default}
3344     case $enableval in
3345     yes) enable_static=yes ;;
3346     no) enable_static=no ;;
3347     *)
3348      enable_static=no
3349       # Look at the argument we got.  We use all the common list separators.
3350       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3351       for pkg in $enableval; do
3352         IFS="$lt_save_ifs"
3353         if test "X$pkg" = "X$p"; then
3354           enable_static=yes
3355         fi
3356       done
3357       IFS="$lt_save_ifs"
3358       ;;
3359     esac
3360 else
3361   enable_static=no
3362 fi
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372 case `pwd` in
3373   *\ * | *\     *)
3374     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3375 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3376 esac
3377
3378
3379
3380 macro_version='2.4'
3381 macro_revision='1.3293'
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395 ltmain="$ac_aux_dir/ltmain.sh"
3396
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if test "${ac_cv_build+set}" = set; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3413
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3418 *-*-*) ;;
3419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3420 esac
3421 build=$ac_cv_build
3422 ac_save_IFS=$IFS; IFS='-'
3423 set x $ac_cv_build
3424 shift
3425 build_cpu=$1
3426 build_vendor=$2
3427 shift; shift
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3430 build_os=$*
3431 IFS=$ac_save_IFS
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3433
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if test "${ac_cv_host+set}" = set; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   if test "x$host_alias" = x; then
3441   ac_cv_host=$ac_cv_build
3442 else
3443   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3445 fi
3446
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3450 case $ac_cv_host in
3451 *-*-*) ;;
3452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3453 esac
3454 host=$ac_cv_host
3455 ac_save_IFS=$IFS; IFS='-'
3456 set x $ac_cv_host
3457 shift
3458 host_cpu=$1
3459 host_vendor=$2
3460 shift; shift
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3463 host_os=$*
3464 IFS=$ac_save_IFS
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3466
3467
3468 # Backslashify metacharacters that are still active within
3469 # double-quoted strings.
3470 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3471
3472 # Same as above, but do not quote variable references.
3473 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3474
3475 # Sed substitution to delay expansion of an escaped shell variable in a
3476 # double_quote_subst'ed string.
3477 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3478
3479 # Sed substitution to delay expansion of an escaped single quote.
3480 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3481
3482 # Sed substitution to avoid accidental globbing in evaled expressions
3483 no_glob_subst='s/\*/\\\*/g'
3484
3485 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3488
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3490 $as_echo_n "checking how to print strings... " >&6; }
3491 # Test print first, because it will be a builtin if present.
3492 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3493    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3494   ECHO='print -r --'
3495 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3496   ECHO='printf %s\n'
3497 else
3498   # Use this function as a fallback that always works.
3499   func_fallback_echo ()
3500   {
3501     eval 'cat <<_LTECHO_EOF
3502 $1
3503 _LTECHO_EOF'
3504   }
3505   ECHO='func_fallback_echo'
3506 fi
3507
3508 # func_echo_all arg...
3509 # Invoke $ECHO with all args, space-separated.
3510 func_echo_all ()
3511 {
3512     $ECHO ""
3513 }
3514
3515 case "$ECHO" in
3516   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3517 $as_echo "printf" >&6; } ;;
3518   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3519 $as_echo "print -r" >&6; } ;;
3520   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3521 $as_echo "cat" >&6; } ;;
3522 esac
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537 DEPDIR="${am__leading_dot}deps"
3538
3539 ac_config_commands="$ac_config_commands depfiles"
3540
3541
3542 am_make=${MAKE-make}
3543 cat > confinc << 'END'
3544 am__doit:
3545         @echo this is the am__doit target
3546 .PHONY: am__doit
3547 END
3548 # If we don't find an include directive, just comment out the code.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3551 am__include="#"
3552 am__quote=
3553 _am_result=none
3554 # First try GNU make style include.
3555 echo "include confinc" > confmf
3556 # Ignore all kinds of additional output from `make'.
3557 case `$am_make -s -f confmf 2> /dev/null` in #(
3558 *the\ am__doit\ target*)
3559   am__include=include
3560   am__quote=
3561   _am_result=GNU
3562   ;;
3563 esac
3564 # Now try BSD make style include.
3565 if test "$am__include" = "#"; then
3566    echo '.include "confinc"' > confmf
3567    case `$am_make -s -f confmf 2> /dev/null` in #(
3568    *the\ am__doit\ target*)
3569      am__include=.include
3570      am__quote="\""
3571      _am_result=BSD
3572      ;;
3573    esac
3574 fi
3575
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3578 $as_echo "$_am_result" >&6; }
3579 rm -f confinc confmf
3580
3581 # Check whether --enable-dependency-tracking was given.
3582 if test "${enable_dependency_tracking+set}" = set; then :
3583   enableval=$enable_dependency_tracking;
3584 fi
3585
3586 if test "x$enable_dependency_tracking" != xno; then
3587   am_depcomp="$ac_aux_dir/depcomp"
3588   AMDEPBACKSLASH='\'
3589 fi
3590  if test "x$enable_dependency_tracking" != xno; then
3591   AMDEP_TRUE=
3592   AMDEP_FALSE='#'
3593 else
3594   AMDEP_TRUE='#'
3595   AMDEP_FALSE=
3596 fi
3597
3598
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 if test -n "$ac_tool_prefix"; then
3605   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -n "$CC"; then
3613   ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620     for ac_exec_ext in '' $ac_executable_extensions; do
3621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627   done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642 fi
3643 if test -z "$ac_cv_prog_CC"; then
3644   ac_ct_CC=$CC
3645   # Extract the first word of "gcc", so it can be a program name with args.
3646 set dummy gcc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   if test -n "$ac_ct_CC"; then
3653   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658   IFS=$as_save_IFS
3659   test -z "$as_dir" && as_dir=.
3660     for ac_exec_ext in '' $ac_executable_extensions; do
3661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662     ac_cv_prog_ac_ct_CC="gcc"
3663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664     break 2
3665   fi
3666 done
3667   done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3673 if test -n "$ac_ct_CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3675 $as_echo "$ac_ct_CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681   if test "x$ac_ct_CC" = x; then
3682     CC=""
3683   else
3684     case $cross_compiling:$ac_tool_warned in
3685 yes:)
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3688 ac_tool_warned=yes ;;
3689 esac
3690     CC=$ac_ct_CC
3691   fi
3692 else
3693   CC="$ac_cv_prog_CC"
3694 fi
3695
3696 if test -z "$CC"; then
3697           if test -n "$ac_tool_prefix"; then
3698     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3699 set dummy ${ac_tool_prefix}cc; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if test -n "$CC"; then
3706   ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715     ac_cv_prog_CC="${ac_tool_prefix}cc"
3716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720   done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735   fi
3736 fi
3737 if test -z "$CC"; then
3738   # Extract the first word of "cc", so it can be a program name with args.
3739 set dummy cc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743   $as_echo_n "(cached) " >&6
3744 else
3745   if test -n "$CC"; then
3746   ac_cv_prog_CC="$CC" # Let the user override the test.
3747 else
3748   ac_prog_rejected=no
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752   IFS=$as_save_IFS
3753   test -z "$as_dir" && as_dir=.
3754     for ac_exec_ext in '' $ac_executable_extensions; do
3755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3757        ac_prog_rejected=yes
3758        continue
3759      fi
3760     ac_cv_prog_CC="cc"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 if test $ac_prog_rejected = yes; then
3769   # We found a bogon in the path, so make sure we never use it.
3770   set dummy $ac_cv_prog_CC
3771   shift
3772   if test $# != 0; then
3773     # We chose a different compiler from the bogus one.
3774     # However, it has the same basename, so the bogon will be chosen
3775     # first if we set CC to just the basename; use the full file name.
3776     shift
3777     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3778   fi
3779 fi
3780 fi
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 if test -z "$CC"; then
3794   if test -n "$ac_tool_prefix"; then
3795   for ac_prog in cl.exe
3796   do
3797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if test "${ac_cv_prog_CC+set}" = set; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   if test -n "$CC"; then
3805   ac_cv_prog_CC="$CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812     for ac_exec_ext in '' $ac_executable_extensions; do
3813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816     break 2
3817   fi
3818 done
3819   done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 CC=$ac_cv_prog_CC
3825 if test -n "$CC"; then
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827 $as_echo "$CC" >&6; }
3828 else
3829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 fi
3832
3833
3834     test -n "$CC" && break
3835   done
3836 fi
3837 if test -z "$CC"; then
3838   ac_ct_CC=$CC
3839   for ac_prog in cl.exe
3840 do
3841   # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -n "$ac_ct_CC"; then
3849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858     ac_cv_prog_ac_ct_CC="$ac_prog"
3859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863   done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3869 if test -n "$ac_ct_CC"; then
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3871 $as_echo "$ac_ct_CC" >&6; }
3872 else
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878   test -n "$ac_ct_CC" && break
3879 done
3880
3881   if test "x$ac_ct_CC" = x; then
3882     CC=""
3883   else
3884     case $cross_compiling:$ac_tool_warned in
3885 yes:)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888 ac_tool_warned=yes ;;
3889 esac
3890     CC=$ac_ct_CC
3891   fi
3892 fi
3893
3894 fi
3895
3896
3897 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "no acceptable C compiler found in \$PATH
3900 See \`config.log' for more details" "$LINENO" 5 ; }
3901
3902 # Provide some information about the compiler.
3903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3904 set X $ac_compile
3905 ac_compiler=$2
3906 for ac_option in --version -v -V -qversion; do
3907   { { ac_try="$ac_compiler $ac_option >&5"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3915   ac_status=$?
3916   if test -s conftest.err; then
3917     sed '10a\
3918 ... rest of stderr output deleted ...
3919          10q' conftest.err >conftest.er1
3920     cat conftest.er1 >&5
3921   fi
3922   rm -f conftest.er1 conftest.err
3923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924   test $ac_status = 0; }
3925 done
3926
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3929
3930 int
3931 main ()
3932 {
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 ac_clean_files_save=$ac_clean_files
3939 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3940 # Try to create an executable without -o first, disregard a.out.
3941 # It will help us diagnose broken compilers, and finding out an intuition
3942 # of exeext.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3944 $as_echo_n "checking whether the C compiler works... " >&6; }
3945 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3946
3947 # The possible output files:
3948 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3949
3950 ac_rmfiles=
3951 for ac_file in $ac_files
3952 do
3953   case $ac_file in
3954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3955     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3956   esac
3957 done
3958 rm -f $ac_rmfiles
3959
3960 if { { ac_try="$ac_link_default"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967   (eval "$ac_link_default") 2>&5
3968   ac_status=$?
3969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970   test $ac_status = 0; }; then :
3971   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3972 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3973 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3974 # so that the user can short-circuit this test for compilers unknown to
3975 # Autoconf.
3976 for ac_file in $ac_files ''
3977 do
3978   test -f "$ac_file" || continue
3979   case $ac_file in
3980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3981         ;;
3982     [ab].out )
3983         # We found the default executable, but exeext='' is most
3984         # certainly right.
3985         break;;
3986     *.* )
3987         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3988         then :; else
3989            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990         fi
3991         # We set ac_cv_exeext here because the later test for it is not
3992         # safe: cross compilers may not add the suffix if given an `-o'
3993         # argument, so we may need to know it at that point already.
3994         # Even if this section looks crufty: it has the advantage of
3995         # actually working.
3996         break;;
3997     * )
3998         break;;
3999   esac
4000 done
4001 test "$ac_cv_exeext" = no && ac_cv_exeext=
4002
4003 else
4004   ac_file=''
4005 fi
4006 if test -z "$ac_file"; then :
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 $as_echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error 77 "C compiler cannot create executables
4015 See \`config.log' for more details" "$LINENO" 5 ; }
4016 else
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018 $as_echo "yes" >&6; }
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4021 $as_echo_n "checking for C compiler default output file name... " >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4023 $as_echo "$ac_file" >&6; }
4024 ac_exeext=$ac_cv_exeext
4025
4026 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4027 ac_clean_files=$ac_clean_files_save
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4029 $as_echo_n "checking for suffix of executables... " >&6; }
4030 if { { ac_try="$ac_link"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037   (eval "$ac_link") 2>&5
4038   ac_status=$?
4039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040   test $ac_status = 0; }; then :
4041   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4042 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4043 # work properly (i.e., refer to `conftest.exe'), while it won't with
4044 # `rm'.
4045 for ac_file in conftest.exe conftest conftest.*; do
4046   test -f "$ac_file" || continue
4047   case $ac_file in
4048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4049     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4050           break;;
4051     * ) break;;
4052   esac
4053 done
4054 else
4055   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4058 See \`config.log' for more details" "$LINENO" 5 ; }
4059 fi
4060 rm -f conftest conftest$ac_cv_exeext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4062 $as_echo "$ac_cv_exeext" >&6; }
4063
4064 rm -f conftest.$ac_ext
4065 EXEEXT=$ac_cv_exeext
4066 ac_exeext=$EXEEXT
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069 #include <stdio.h>
4070 int
4071 main ()
4072 {
4073 FILE *f = fopen ("conftest.out", "w");
4074  return ferror (f) || fclose (f) != 0;
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 ac_clean_files="$ac_clean_files conftest.out"
4081 # Check that the compiler produces executables we can run.  If not, either
4082 # the compiler is broken, or we cross compile.
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4084 $as_echo_n "checking whether we are cross compiling... " >&6; }
4085 if test "$cross_compiling" != yes; then
4086   { { ac_try="$ac_link"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093   (eval "$ac_link") 2>&5
4094   ac_status=$?
4095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096   test $ac_status = 0; }
4097   if { ac_try='./conftest$ac_cv_exeext'
4098   { { case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104   (eval "$ac_try") 2>&5
4105   ac_status=$?
4106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107   test $ac_status = 0; }; }; then
4108     cross_compiling=no
4109   else
4110     if test "$cross_compiling" = maybe; then
4111         cross_compiling=yes
4112     else
4113         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "cannot run C compiled programs.
4116 If you meant to cross compile, use \`--host'.
4117 See \`config.log' for more details" "$LINENO" 5 ; }
4118     fi
4119   fi
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4122 $as_echo "$cross_compiling" >&6; }
4123
4124 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4125 ac_clean_files=$ac_clean_files_save
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4127 $as_echo_n "checking for suffix of object files... " >&6; }
4128 if test "${ac_cv_objext+set}" = set; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h.  */
4133
4134 int
4135 main ()
4136 {
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 rm -f conftest.o conftest.obj
4143 if { { ac_try="$ac_compile"
4144 case "(($ac_try" in
4145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146   *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150   (eval "$ac_compile") 2>&5
4151   ac_status=$?
4152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153   test $ac_status = 0; }; then :
4154   for ac_file in conftest.o conftest.obj conftest.*; do
4155   test -f "$ac_file" || continue;
4156   case $ac_file in
4157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4158     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4159        break;;
4160   esac
4161 done
4162 else
4163   $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "cannot compute suffix of object files: cannot compile
4169 See \`config.log' for more details" "$LINENO" 5 ; }
4170 fi
4171 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4174 $as_echo "$ac_cv_objext" >&6; }
4175 OBJEXT=$ac_cv_objext
4176 ac_objext=$OBJEXT
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4179 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184
4185 int
4186 main ()
4187 {
4188 #ifndef __GNUC__
4189        choke me
4190 #endif
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197   ac_compiler_gnu=yes
4198 else
4199   ac_compiler_gnu=no
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4206 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4207 if test $ac_compiler_gnu = yes; then
4208   GCC=yes
4209 else
4210   GCC=
4211 fi
4212 ac_test_CFLAGS=${CFLAGS+set}
4213 ac_save_CFLAGS=$CFLAGS
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4215 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4216 if test "${ac_cv_prog_cc_g+set}" = set; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   ac_save_c_werror_flag=$ac_c_werror_flag
4220    ac_c_werror_flag=yes
4221    ac_cv_prog_cc_g=no
4222    CFLAGS="-g"
4223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235   ac_cv_prog_cc_g=yes
4236 else
4237   CFLAGS=""
4238       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250
4251 else
4252   ac_c_werror_flag=$ac_save_c_werror_flag
4253          CFLAGS="-g"
4254          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256
4257 int
4258 main ()
4259 {
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266   ac_cv_prog_cc_g=yes
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273    ac_c_werror_flag=$ac_save_c_werror_flag
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4276 $as_echo "$ac_cv_prog_cc_g" >&6; }
4277 if test "$ac_test_CFLAGS" = set; then
4278   CFLAGS=$ac_save_CFLAGS
4279 elif test $ac_cv_prog_cc_g = yes; then
4280   if test "$GCC" = yes; then
4281     CFLAGS="-g -O2"
4282   else
4283     CFLAGS="-g"
4284   fi
4285 else
4286   if test "$GCC" = yes; then
4287     CFLAGS="-O2"
4288   else
4289     CFLAGS=
4290   fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4293 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4294 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4295   $as_echo_n "(cached) " >&6
4296 else
4297   ac_cv_prog_cc_c89=no
4298 ac_save_CC=$CC
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301 #include <stdarg.h>
4302 #include <stdio.h>
4303 #include <sys/types.h>
4304 #include <sys/stat.h>
4305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4306 struct buf { int x; };
4307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4308 static char *e (p, i)
4309      char **p;
4310      int i;
4311 {
4312   return p[i];
4313 }
4314 static char *f (char * (*g) (char **, int), char **p, ...)
4315 {
4316   char *s;
4317   va_list v;
4318   va_start (v,p);
4319   s = g (p, va_arg (v,int));
4320   va_end (v);
4321   return s;
4322 }
4323
4324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4325    function prototypes and stuff, but not '\xHH' hex character constants.
4326    These don't provoke an error unfortunately, instead are silently treated
4327    as 'x'.  The following induces an error, until -std is added to get
4328    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4329    array size at least.  It's necessary to write '\x00'==0 to get something
4330    that's true only with -std.  */
4331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4332
4333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4334    inside strings and character constants.  */
4335 #define FOO(x) 'x'
4336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4337
4338 int test (int i, double x);
4339 struct s1 {int (*f) (int a);};
4340 struct s2 {int (*f) (double a);};
4341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4342 int argc;
4343 char **argv;
4344 int
4345 main ()
4346 {
4347 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4353         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4354 do
4355   CC="$ac_save_CC $ac_arg"
4356   if ac_fn_c_try_compile "$LINENO"; then :
4357   ac_cv_prog_cc_c89=$ac_arg
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext
4360   test "x$ac_cv_prog_cc_c89" != "xno" && break
4361 done
4362 rm -f conftest.$ac_ext
4363 CC=$ac_save_CC
4364
4365 fi
4366 # AC_CACHE_VAL
4367 case "x$ac_cv_prog_cc_c89" in
4368   x)
4369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4370 $as_echo "none needed" >&6; } ;;
4371   xno)
4372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4373 $as_echo "unsupported" >&6; } ;;
4374   *)
4375     CC="$CC $ac_cv_prog_cc_c89"
4376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4378 esac
4379 if test "x$ac_cv_prog_cc_c89" != xno; then :
4380
4381 fi
4382
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389 depcc="$CC"   am_compiler_list=
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4392 $as_echo_n "checking dependency style of $depcc... " >&6; }
4393 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4397   # We make a subdir and do the tests there.  Otherwise we can end up
4398   # making bogus files that we don't know about and never remove.  For
4399   # instance it was reported that on HP-UX the gcc test will end up
4400   # making a dummy file named `D' -- because `-MD' means `put the output
4401   # in D'.
4402   mkdir conftest.dir
4403   # Copy depcomp to subdir because otherwise we won't find it if we're
4404   # using a relative directory.
4405   cp "$am_depcomp" conftest.dir
4406   cd conftest.dir
4407   # We will build objects and dependencies in a subdirectory because
4408   # it helps to detect inapplicable dependency modes.  For instance
4409   # both Tru64's cc and ICC support -MD to output dependencies as a
4410   # side effect of compilation, but ICC will put the dependencies in
4411   # the current directory while Tru64 will put them in the object
4412   # directory.
4413   mkdir sub
4414
4415   am_cv_CC_dependencies_compiler_type=none
4416   if test "$am_compiler_list" = ""; then
4417      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4418   fi
4419   am__universal=false
4420   case " $depcc " in #(
4421      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4422      esac
4423
4424   for depmode in $am_compiler_list; do
4425     # Setup a source with many dependencies, because some compilers
4426     # like to wrap large dependency lists on column 80 (with \), and
4427     # we should not choose a depcomp mode which is confused by this.
4428     #
4429     # We need to recreate these files for each test, as the compiler may
4430     # overwrite some of them when testing with obscure command lines.
4431     # This happens at least with the AIX C compiler.
4432     : > sub/conftest.c
4433     for i in 1 2 3 4 5 6; do
4434       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4435       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4436       # Solaris 8's {/usr,}/bin/sh.
4437       touch sub/conftst$i.h
4438     done
4439     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4440
4441     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4442     # mode.  It turns out that the SunPro C++ compiler does not properly
4443     # handle `-M -o', and we need to detect this.  Also, some Intel
4444     # versions had trouble with output in subdirs
4445     am__obj=sub/conftest.${OBJEXT-o}
4446     am__minus_obj="-o $am__obj"
4447     case $depmode in
4448     gcc)
4449       # This depmode causes a compiler race in universal mode.
4450       test "$am__universal" = false || continue
4451       ;;
4452     nosideeffect)
4453       # after this tag, mechanisms are not by side-effect, so they'll
4454       # only be used when explicitly requested
4455       if test "x$enable_dependency_tracking" = xyes; then
4456         continue
4457       else
4458         break
4459       fi
4460       ;;
4461     msvisualcpp | msvcmsys)
4462       # This compiler won't grok `-c -o', but also, the minuso test has
4463       # not run yet.  These depmodes are late enough in the game, and
4464       # so weak that their functioning should not be impacted.
4465       am__obj=conftest.${OBJEXT-o}
4466       am__minus_obj=
4467       ;;
4468     none) break ;;
4469     esac
4470     if depmode=$depmode \
4471        source=sub/conftest.c object=$am__obj \
4472        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4473        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4474          >/dev/null 2>conftest.err &&
4475        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4476        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4477        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4478        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4479       # icc doesn't choke on unknown options, it will just issue warnings
4480       # or remarks (even with -Werror).  So we grep stderr for any message
4481       # that says an option was ignored or not supported.
4482       # When given -MP, icc 7.0 and 7.1 complain thusly:
4483       #   icc: Command line warning: ignoring option '-M'; no argument required
4484       # The diagnosis changed in icc 8.0:
4485       #   icc: Command line remark: option '-MP' not supported
4486       if (grep 'ignoring option' conftest.err ||
4487           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4488         am_cv_CC_dependencies_compiler_type=$depmode
4489         break
4490       fi
4491     fi
4492   done
4493
4494   cd ..
4495   rm -rf conftest.dir
4496 else
4497   am_cv_CC_dependencies_compiler_type=none
4498 fi
4499
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4502 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4503 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4504
4505  if
4506   test "x$enable_dependency_tracking" != xno \
4507   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4508   am__fastdepCC_TRUE=
4509   am__fastdepCC_FALSE='#'
4510 else
4511   am__fastdepCC_TRUE='#'
4512   am__fastdepCC_FALSE=
4513 fi
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4517 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4518 if test "${ac_cv_path_SED+set}" = set; then :
4519   $as_echo_n "(cached) " >&6
4520 else
4521             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4522      for ac_i in 1 2 3 4 5 6 7; do
4523        ac_script="$ac_script$as_nl$ac_script"
4524      done
4525      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4526      { ac_script=; unset ac_script;}
4527      if test -z "$SED"; then
4528   ac_path_SED_found=false
4529   # Loop through the user's path and test for each of PROGNAME-LIST
4530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535     for ac_prog in sed gsed; do
4536     for ac_exec_ext in '' $ac_executable_extensions; do
4537       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4538       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4539 # Check for GNU ac_path_SED and select it if it is found.
4540   # Check for GNU $ac_path_SED
4541 case `"$ac_path_SED" --version 2>&1` in
4542 *GNU*)
4543   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4544 *)
4545   ac_count=0
4546   $as_echo_n 0123456789 >"conftest.in"
4547   while :
4548   do
4549     cat "conftest.in" "conftest.in" >"conftest.tmp"
4550     mv "conftest.tmp" "conftest.in"
4551     cp "conftest.in" "conftest.nl"
4552     $as_echo '' >> "conftest.nl"
4553     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555     as_fn_arith $ac_count + 1 && ac_count=$as_val
4556     if test $ac_count -gt ${ac_path_SED_max-0}; then
4557       # Best one so far, save it but keep looking for a better one
4558       ac_cv_path_SED="$ac_path_SED"
4559       ac_path_SED_max=$ac_count
4560     fi
4561     # 10*(2^10) chars as input seems more than enough
4562     test $ac_count -gt 10 && break
4563   done
4564   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565 esac
4566
4567       $ac_path_SED_found && break 3
4568     done
4569   done
4570   done
4571 IFS=$as_save_IFS
4572   if test -z "$ac_cv_path_SED"; then
4573     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4574   fi
4575 else
4576   ac_cv_path_SED=$SED
4577 fi
4578
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4581 $as_echo "$ac_cv_path_SED" >&6; }
4582  SED="$ac_cv_path_SED"
4583   rm -f conftest.sed
4584
4585 test -z "$SED" && SED=sed
4586 Xsed="$SED -e 1s/^X//"
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4599 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4600 if test "${ac_cv_path_GREP+set}" = set; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -z "$GREP"; then
4604   ac_path_GREP_found=false
4605   # Loop through the user's path and test for each of PROGNAME-LIST
4606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_prog in grep ggrep; do
4612     for ac_exec_ext in '' $ac_executable_extensions; do
4613       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4614       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4615 # Check for GNU ac_path_GREP and select it if it is found.
4616   # Check for GNU $ac_path_GREP
4617 case `"$ac_path_GREP" --version 2>&1` in
4618 *GNU*)
4619   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4620 *)
4621   ac_count=0
4622   $as_echo_n 0123456789 >"conftest.in"
4623   while :
4624   do
4625     cat "conftest.in" "conftest.in" >"conftest.tmp"
4626     mv "conftest.tmp" "conftest.in"
4627     cp "conftest.in" "conftest.nl"
4628     $as_echo 'GREP' >> "conftest.nl"
4629     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631     as_fn_arith $ac_count + 1 && ac_count=$as_val
4632     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4633       # Best one so far, save it but keep looking for a better one
4634       ac_cv_path_GREP="$ac_path_GREP"
4635       ac_path_GREP_max=$ac_count
4636     fi
4637     # 10*(2^10) chars as input seems more than enough
4638     test $ac_count -gt 10 && break
4639   done
4640   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4642
4643       $ac_path_GREP_found && break 3
4644     done
4645   done
4646   done
4647 IFS=$as_save_IFS
4648   if test -z "$ac_cv_path_GREP"; then
4649     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4650   fi
4651 else
4652   ac_cv_path_GREP=$GREP
4653 fi
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4657 $as_echo "$ac_cv_path_GREP" >&6; }
4658  GREP="$ac_cv_path_GREP"
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4662 $as_echo_n "checking for egrep... " >&6; }
4663 if test "${ac_cv_path_EGREP+set}" = set; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4667    then ac_cv_path_EGREP="$GREP -E"
4668    else
4669      if test -z "$EGREP"; then
4670   ac_path_EGREP_found=false
4671   # Loop through the user's path and test for each of PROGNAME-LIST
4672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677     for ac_prog in egrep; do
4678     for ac_exec_ext in '' $ac_executable_extensions; do
4679       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4680       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4681 # Check for GNU ac_path_EGREP and select it if it is found.
4682   # Check for GNU $ac_path_EGREP
4683 case `"$ac_path_EGREP" --version 2>&1` in
4684 *GNU*)
4685   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4686 *)
4687   ac_count=0
4688   $as_echo_n 0123456789 >"conftest.in"
4689   while :
4690   do
4691     cat "conftest.in" "conftest.in" >"conftest.tmp"
4692     mv "conftest.tmp" "conftest.in"
4693     cp "conftest.in" "conftest.nl"
4694     $as_echo 'EGREP' >> "conftest.nl"
4695     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697     as_fn_arith $ac_count + 1 && ac_count=$as_val
4698     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4699       # Best one so far, save it but keep looking for a better one
4700       ac_cv_path_EGREP="$ac_path_EGREP"
4701       ac_path_EGREP_max=$ac_count
4702     fi
4703     # 10*(2^10) chars as input seems more than enough
4704     test $ac_count -gt 10 && break
4705   done
4706   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707 esac
4708
4709       $ac_path_EGREP_found && break 3
4710     done
4711   done
4712   done
4713 IFS=$as_save_IFS
4714   if test -z "$ac_cv_path_EGREP"; then
4715     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4716   fi
4717 else
4718   ac_cv_path_EGREP=$EGREP
4719 fi
4720
4721    fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4724 $as_echo "$ac_cv_path_EGREP" >&6; }
4725  EGREP="$ac_cv_path_EGREP"
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4729 $as_echo_n "checking for fgrep... " >&6; }
4730 if test "${ac_cv_path_FGREP+set}" = set; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4734    then ac_cv_path_FGREP="$GREP -F"
4735    else
4736      if test -z "$FGREP"; then
4737   ac_path_FGREP_found=false
4738   # Loop through the user's path and test for each of PROGNAME-LIST
4739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744     for ac_prog in fgrep; do
4745     for ac_exec_ext in '' $ac_executable_extensions; do
4746       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4747       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4748 # Check for GNU ac_path_FGREP and select it if it is found.
4749   # Check for GNU $ac_path_FGREP
4750 case `"$ac_path_FGREP" --version 2>&1` in
4751 *GNU*)
4752   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4753 *)
4754   ac_count=0
4755   $as_echo_n 0123456789 >"conftest.in"
4756   while :
4757   do
4758     cat "conftest.in" "conftest.in" >"conftest.tmp"
4759     mv "conftest.tmp" "conftest.in"
4760     cp "conftest.in" "conftest.nl"
4761     $as_echo 'FGREP' >> "conftest.nl"
4762     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4763     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4764     as_fn_arith $ac_count + 1 && ac_count=$as_val
4765     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4766       # Best one so far, save it but keep looking for a better one
4767       ac_cv_path_FGREP="$ac_path_FGREP"
4768       ac_path_FGREP_max=$ac_count
4769     fi
4770     # 10*(2^10) chars as input seems more than enough
4771     test $ac_count -gt 10 && break
4772   done
4773   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4774 esac
4775
4776       $ac_path_FGREP_found && break 3
4777     done
4778   done
4779   done
4780 IFS=$as_save_IFS
4781   if test -z "$ac_cv_path_FGREP"; then
4782     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4783   fi
4784 else
4785   ac_cv_path_FGREP=$FGREP
4786 fi
4787
4788    fi
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4791 $as_echo "$ac_cv_path_FGREP" >&6; }
4792  FGREP="$ac_cv_path_FGREP"
4793
4794
4795 test -z "$GREP" && GREP=grep
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815 # Check whether --with-gnu-ld was given.
4816 if test "${with_gnu_ld+set}" = set; then :
4817   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4818 else
4819   with_gnu_ld=no
4820 fi
4821
4822 ac_prog=ld
4823 if test "$GCC" = yes; then
4824   # Check if gcc -print-prog-name=ld gives a path.
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4826 $as_echo_n "checking for ld used by $CC... " >&6; }
4827   case $host in
4828   *-*-mingw*)
4829     # gcc leaves a trailing carriage return which upsets mingw
4830     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4831   *)
4832     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4833   esac
4834   case $ac_prog in
4835     # Accept absolute paths.
4836     [\\/]* | ?:[\\/]*)
4837       re_direlt='/[^/][^/]*/\.\./'
4838       # Canonicalize the pathname of ld
4839       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4840       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4841         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4842       done
4843       test -z "$LD" && LD="$ac_prog"
4844       ;;
4845   "")
4846     # If it fails, then pretend we aren't using GCC.
4847     ac_prog=ld
4848     ;;
4849   *)
4850     # If it is relative, then search for the first ld in PATH.
4851     with_gnu_ld=unknown
4852     ;;
4853   esac
4854 elif test "$with_gnu_ld" = yes; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4856 $as_echo_n "checking for GNU ld... " >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4859 $as_echo_n "checking for non-GNU ld... " >&6; }
4860 fi
4861 if test "${lt_cv_path_LD+set}" = set; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   if test -z "$LD"; then
4865   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4866   for ac_dir in $PATH; do
4867     IFS="$lt_save_ifs"
4868     test -z "$ac_dir" && ac_dir=.
4869     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4870       lt_cv_path_LD="$ac_dir/$ac_prog"
4871       # Check to see if the program is GNU ld.  I'd rather use --version,
4872       # but apparently some variants of GNU ld only accept -v.
4873       # Break only if it was the GNU/non-GNU ld that we prefer.
4874       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4875       *GNU* | *'with BFD'*)
4876         test "$with_gnu_ld" != no && break
4877         ;;
4878       *)
4879         test "$with_gnu_ld" != yes && break
4880         ;;
4881       esac
4882     fi
4883   done
4884   IFS="$lt_save_ifs"
4885 else
4886   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4887 fi
4888 fi
4889
4890 LD="$lt_cv_path_LD"
4891 if test -n "$LD"; then
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4893 $as_echo "$LD" >&6; }
4894 else
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4901 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4905 case `$LD -v 2>&1 </dev/null` in
4906 *GNU* | *'with BFD'*)
4907   lt_cv_prog_gnu_ld=yes
4908   ;;
4909 *)
4910   lt_cv_prog_gnu_ld=no
4911   ;;
4912 esac
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4915 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4916 with_gnu_ld=$lt_cv_prog_gnu_ld
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4927 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4928 if test "${lt_cv_path_NM+set}" = set; then :
4929   $as_echo_n "(cached) " >&6
4930 else
4931   if test -n "$NM"; then
4932   # Let the user override the test.
4933   lt_cv_path_NM="$NM"
4934 else
4935   lt_nm_to_check="${ac_tool_prefix}nm"
4936   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4937     lt_nm_to_check="$lt_nm_to_check nm"
4938   fi
4939   for lt_tmp_nm in $lt_nm_to_check; do
4940     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4941     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4942       IFS="$lt_save_ifs"
4943       test -z "$ac_dir" && ac_dir=.
4944       tmp_nm="$ac_dir/$lt_tmp_nm"
4945       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4946         # Check to see if the nm accepts a BSD-compat flag.
4947         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4948         #   nm: unknown option "B" ignored
4949         # Tru64's nm complains that /dev/null is an invalid object file
4950         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4951         */dev/null* | *'Invalid file or object type'*)
4952           lt_cv_path_NM="$tmp_nm -B"
4953           break
4954           ;;
4955         *)
4956           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4957           */dev/null*)
4958             lt_cv_path_NM="$tmp_nm -p"
4959             break
4960             ;;
4961           *)
4962             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4963             continue # so that we can try to find one that supports BSD flags
4964             ;;
4965           esac
4966           ;;
4967         esac
4968       fi
4969     done
4970     IFS="$lt_save_ifs"
4971   done
4972   : ${lt_cv_path_NM=no}
4973 fi
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4976 $as_echo "$lt_cv_path_NM" >&6; }
4977 if test "$lt_cv_path_NM" != "no"; then
4978   NM="$lt_cv_path_NM"
4979 else
4980   # Didn't find any BSD compatible name lister, look for dumpbin.
4981   if test -n "$DUMPBIN"; then :
4982     # Let the user override the test.
4983   else
4984     if test -n "$ac_tool_prefix"; then
4985   for ac_prog in dumpbin "link -dump"
4986   do
4987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   if test -n "$DUMPBIN"; then
4995   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002     for ac_exec_ext in '' $ac_executable_extensions; do
5003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009   done
5010 IFS=$as_save_IFS
5011
5012 fi
5013 fi
5014 DUMPBIN=$ac_cv_prog_DUMPBIN
5015 if test -n "$DUMPBIN"; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5017 $as_echo "$DUMPBIN" >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022
5023
5024     test -n "$DUMPBIN" && break
5025   done
5026 fi
5027 if test -z "$DUMPBIN"; then
5028   ac_ct_DUMPBIN=$DUMPBIN
5029   for ac_prog in dumpbin "link -dump"
5030 do
5031   # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   if test -n "$ac_ct_DUMPBIN"; then
5039   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5059 if test -n "$ac_ct_DUMPBIN"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5061 $as_echo "$ac_ct_DUMPBIN" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068   test -n "$ac_ct_DUMPBIN" && break
5069 done
5070
5071   if test "x$ac_ct_DUMPBIN" = x; then
5072     DUMPBIN=":"
5073   else
5074     case $cross_compiling:$ac_tool_warned in
5075 yes:)
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078 ac_tool_warned=yes ;;
5079 esac
5080     DUMPBIN=$ac_ct_DUMPBIN
5081   fi
5082 fi
5083
5084     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5085     *COFF*)
5086       DUMPBIN="$DUMPBIN -symbols"
5087       ;;
5088     *)
5089       DUMPBIN=:
5090       ;;
5091     esac
5092   fi
5093
5094   if test "$DUMPBIN" != ":"; then
5095     NM="$DUMPBIN"
5096   fi
5097 fi
5098 test -z "$NM" && NM=nm
5099
5100
5101
5102
5103
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5106 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5107 if test "${lt_cv_nm_interface+set}" = set; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   lt_cv_nm_interface="BSD nm"
5111   echo "int some_variable = 0;" > conftest.$ac_ext
5112   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5113   (eval "$ac_compile" 2>conftest.err)
5114   cat conftest.err >&5
5115   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5116   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5117   cat conftest.err >&5
5118   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5119   cat conftest.out >&5
5120   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5121     lt_cv_nm_interface="MS dumpbin"
5122   fi
5123   rm -f conftest*
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5126 $as_echo "$lt_cv_nm_interface" >&6; }
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129 $as_echo_n "checking whether ln -s works... " >&6; }
5130 LN_S=$as_ln_s
5131 if test "$LN_S" = "ln -s"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136 $as_echo "no, using $LN_S" >&6; }
5137 fi
5138
5139 # find the maximum length of command line arguments
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5141 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5142 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145     i=0
5146   teststring="ABCD"
5147
5148   case $build_os in
5149   msdosdjgpp*)
5150     # On DJGPP, this test can blow up pretty badly due to problems in libc
5151     # (any single argument exceeding 2000 bytes causes a buffer overrun
5152     # during glob expansion).  Even if it were fixed, the result of this
5153     # check would be larger than it should be.
5154     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5155     ;;
5156
5157   gnu*)
5158     # Under GNU Hurd, this test is not required because there is
5159     # no limit to the length of command line arguments.
5160     # Libtool will interpret -1 as no limit whatsoever
5161     lt_cv_sys_max_cmd_len=-1;
5162     ;;
5163
5164   cygwin* | mingw* | cegcc*)
5165     # On Win9x/ME, this test blows up -- it succeeds, but takes
5166     # about 5 minutes as the teststring grows exponentially.
5167     # Worse, since 9x/ME are not pre-emptively multitasking,
5168     # you end up with a "frozen" computer, even though with patience
5169     # the test eventually succeeds (with a max line length of 256k).
5170     # Instead, let's just punt: use the minimum linelength reported by
5171     # all of the supported platforms: 8192 (on NT/2K/XP).
5172     lt_cv_sys_max_cmd_len=8192;
5173     ;;
5174
5175   mint*)
5176     # On MiNT this can take a long time and run out of memory.
5177     lt_cv_sys_max_cmd_len=8192;
5178     ;;
5179
5180   amigaos*)
5181     # On AmigaOS with pdksh, this test takes hours, literally.
5182     # So we just punt and use a minimum line length of 8192.
5183     lt_cv_sys_max_cmd_len=8192;
5184     ;;
5185
5186   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5187     # This has been around since 386BSD, at least.  Likely further.
5188     if test -x /sbin/sysctl; then
5189       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5190     elif test -x /usr/sbin/sysctl; then
5191       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5192     else
5193       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5194     fi
5195     # And add a safety zone
5196     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5197     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5198     ;;
5199
5200   interix*)
5201     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5202     lt_cv_sys_max_cmd_len=196608
5203     ;;
5204
5205   osf*)
5206     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5207     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5208     # nice to cause kernel panics so lets avoid the loop below.
5209     # First set a reasonable default.
5210     lt_cv_sys_max_cmd_len=16384
5211     #
5212     if test -x /sbin/sysconfig; then
5213       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5214         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5215       esac
5216     fi
5217     ;;
5218   sco3.2v5*)
5219     lt_cv_sys_max_cmd_len=102400
5220     ;;
5221   sysv5* | sco5v6* | sysv4.2uw2*)
5222     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5223     if test -n "$kargmax"; then
5224       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5225     else
5226       lt_cv_sys_max_cmd_len=32768
5227     fi
5228     ;;
5229   *)
5230     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5231     if test -n "$lt_cv_sys_max_cmd_len"; then
5232       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5233       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5234     else
5235       # Make teststring a little bigger before we do anything with it.
5236       # a 1K string should be a reasonable start.
5237       for i in 1 2 3 4 5 6 7 8 ; do
5238         teststring=$teststring$teststring
5239       done
5240       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5241       # If test is not a shell built-in, we'll probably end up computing a
5242       # maximum length that is only half of the actual maximum length, but
5243       # we can't tell.
5244       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5245                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5246               test $i != 17 # 1/2 MB should be enough
5247       do
5248         i=`expr $i + 1`
5249         teststring=$teststring$teststring
5250       done
5251       # Only check the string length outside the loop.
5252       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5253       teststring=
5254       # Add a significant safety factor because C++ compilers can tack on
5255       # massive amounts of additional arguments before passing them to the
5256       # linker.  It appears as though 1/2 is a usable value.
5257       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5258     fi
5259     ;;
5260   esac
5261
5262 fi
5263
5264 if test -n $lt_cv_sys_max_cmd_len ; then
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5266 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5267 else
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5269 $as_echo "none" >&6; }
5270 fi
5271 max_cmd_len=$lt_cv_sys_max_cmd_len
5272
5273
5274
5275
5276
5277
5278 : ${CP="cp -f"}
5279 : ${MV="mv -f"}
5280 : ${RM="rm -f"}
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5283 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5284 # Try some XSI features
5285 xsi_shell=no
5286 ( _lt_dummy="a/b/c"
5287   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5288       = c,a/b,b/c, \
5289     && eval 'test $(( 1 + 1 )) -eq 2 \
5290     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5291   && xsi_shell=yes
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5293 $as_echo "$xsi_shell" >&6; }
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5297 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5298 lt_shell_append=no
5299 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5300     >/dev/null 2>&1 \
5301   && lt_shell_append=yes
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5303 $as_echo "$lt_shell_append" >&6; }
5304
5305
5306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5307   lt_unset=unset
5308 else
5309   lt_unset=false
5310 fi
5311
5312
5313
5314
5315
5316 # test EBCDIC or ASCII
5317 case `echo X|tr X '\101'` in
5318  A) # ASCII based system
5319     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5320   lt_SP2NL='tr \040 \012'
5321   lt_NL2SP='tr \015\012 \040\040'
5322   ;;
5323  *) # EBCDIC based system
5324   lt_SP2NL='tr \100 \n'
5325   lt_NL2SP='tr \r\n \100\100'
5326   ;;
5327 esac
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5338 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5339 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   case $host in
5343   *-*-mingw* )
5344     case $build in
5345       *-*-mingw* ) # actually msys
5346         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5347         ;;
5348       *-*-cygwin* )
5349         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5350         ;;
5351       * ) # otherwise, assume *nix
5352         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5353         ;;
5354     esac
5355     ;;
5356   *-*-cygwin* )
5357     case $build in
5358       *-*-mingw* ) # actually msys
5359         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5360         ;;
5361       *-*-cygwin* )
5362         lt_cv_to_host_file_cmd=func_convert_file_noop
5363         ;;
5364       * ) # otherwise, assume *nix
5365         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5366         ;;
5367     esac
5368     ;;
5369   * ) # unhandled hosts (and "normal" native builds)
5370     lt_cv_to_host_file_cmd=func_convert_file_noop
5371     ;;
5372 esac
5373
5374 fi
5375
5376 to_host_file_cmd=$lt_cv_to_host_file_cmd
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5378 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5379
5380
5381
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5385 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5386 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   #assume ordinary cross tools, or native build.
5390 lt_cv_to_tool_file_cmd=func_convert_file_noop
5391 case $host in
5392   *-*-mingw* )
5393     case $build in
5394       *-*-mingw* ) # actually msys
5395         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5396         ;;
5397     esac
5398     ;;
5399 esac
5400
5401 fi
5402
5403 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5405 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5406
5407
5408
5409
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5413 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   lt_cv_ld_reload_flag='-r'
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5420 reload_flag=$lt_cv_ld_reload_flag
5421 case $reload_flag in
5422 "" | " "*) ;;
5423 *) reload_flag=" $reload_flag" ;;
5424 esac
5425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5426 case $host_os in
5427   cygwin* | mingw* | pw32* | cegcc*)
5428     if test "$GCC" != yes; then
5429       reload_cmds=false
5430     fi
5431     ;;
5432   darwin*)
5433     if test "$GCC" = yes; then
5434       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5435     else
5436       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5437     fi
5438     ;;
5439 esac
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 if test -n "$ac_tool_prefix"; then
5450   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   if test -n "$OBJDUMP"; then
5458   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 OBJDUMP=$ac_cv_prog_OBJDUMP
5478 if test -n "$OBJDUMP"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5480 $as_echo "$OBJDUMP" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 fi
5488 if test -z "$ac_cv_prog_OBJDUMP"; then
5489   ac_ct_OBJDUMP=$OBJDUMP
5490   # Extract the first word of "objdump", so it can be a program name with args.
5491 set dummy objdump; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497   if test -n "$ac_ct_OBJDUMP"; then
5498   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505     for ac_exec_ext in '' $ac_executable_extensions; do
5506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512   done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5518 if test -n "$ac_ct_OBJDUMP"; then
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5520 $as_echo "$ac_ct_OBJDUMP" >&6; }
5521 else
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526   if test "x$ac_ct_OBJDUMP" = x; then
5527     OBJDUMP="false"
5528   else
5529     case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535     OBJDUMP=$ac_ct_OBJDUMP
5536   fi
5537 else
5538   OBJDUMP="$ac_cv_prog_OBJDUMP"
5539 fi
5540
5541 test -z "$OBJDUMP" && OBJDUMP=objdump
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5552 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5553 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   lt_cv_file_magic_cmd='$MAGIC_CMD'
5557 lt_cv_file_magic_test_file=
5558 lt_cv_deplibs_check_method='unknown'
5559 # Need to set the preceding variable on all platforms that support
5560 # interlibrary dependencies.
5561 # 'none' -- dependencies not supported.
5562 # `unknown' -- same as none, but documents that we really don't know.
5563 # 'pass_all' -- all dependencies passed with no checks.
5564 # 'test_compile' -- check by making test program.
5565 # 'file_magic [[regex]]' -- check by looking for files in library path
5566 # which responds to the $file_magic_cmd with a given extended regex.
5567 # If you have `file' or equivalent on your system and you're not sure
5568 # whether `pass_all' will *always* work, you probably want this one.
5569
5570 case $host_os in
5571 aix[4-9]*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 beos*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 bsdi[45]*)
5580   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5581   lt_cv_file_magic_cmd='/usr/bin/file -L'
5582   lt_cv_file_magic_test_file=/shlib/libc.so
5583   ;;
5584
5585 cygwin*)
5586   # func_win32_libid is a shell function defined in ltmain.sh
5587   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5588   lt_cv_file_magic_cmd='func_win32_libid'
5589   ;;
5590
5591 mingw* | pw32*)
5592   # Base MSYS/MinGW do not provide the 'file' command needed by
5593   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5594   # unless we find 'file', for example because we are cross-compiling.
5595   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5596   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5597     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5598     lt_cv_file_magic_cmd='func_win32_libid'
5599   else
5600     # Keep this pattern in sync with the one in func_win32_libid.
5601     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5602     lt_cv_file_magic_cmd='$OBJDUMP -f'
5603   fi
5604   ;;
5605
5606 cegcc*)
5607   # use the weaker test based on 'objdump'. See mingw*.
5608   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5609   lt_cv_file_magic_cmd='$OBJDUMP -f'
5610   ;;
5611
5612 darwin* | rhapsody*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615
5616 freebsd* | dragonfly*)
5617   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5618     case $host_cpu in
5619     i*86 )
5620       # Not sure whether the presence of OpenBSD here was a mistake.
5621       # Let's accept both of them until this is cleared up.
5622       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5623       lt_cv_file_magic_cmd=/usr/bin/file
5624       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5625       ;;
5626     esac
5627   else
5628     lt_cv_deplibs_check_method=pass_all
5629   fi
5630   ;;
5631
5632 gnu*)
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 haiku*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639
5640 hpux10.20* | hpux11*)
5641   lt_cv_file_magic_cmd=/usr/bin/file
5642   case $host_cpu in
5643   ia64*)
5644     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5645     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5646     ;;
5647   hppa*64*)
5648     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]'
5649     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5650     ;;
5651   *)
5652     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5653     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5654     ;;
5655   esac
5656   ;;
5657
5658 interix[3-9]*)
5659   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5660   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5661   ;;
5662
5663 irix5* | irix6* | nonstopux*)
5664   case $LD in
5665   *-32|*"-32 ") libmagic=32-bit;;
5666   *-n32|*"-n32 ") libmagic=N32;;
5667   *-64|*"-64 ") libmagic=64-bit;;
5668   *) libmagic=never-match;;
5669   esac
5670   lt_cv_deplibs_check_method=pass_all
5671   ;;
5672
5673 # This must be Linux ELF.
5674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677
5678 netbsd*)
5679   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5680     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5681   else
5682     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5683   fi
5684   ;;
5685
5686 newos6*)
5687   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5688   lt_cv_file_magic_cmd=/usr/bin/file
5689   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5690   ;;
5691
5692 *nto* | *qnx*)
5693   lt_cv_deplibs_check_method=pass_all
5694   ;;
5695
5696 openbsd*)
5697   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5699   else
5700     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701   fi
5702   ;;
5703
5704 osf3* | osf4* | osf5*)
5705   lt_cv_deplibs_check_method=pass_all
5706   ;;
5707
5708 rdos*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 solaris*)
5713   lt_cv_deplibs_check_method=pass_all
5714   ;;
5715
5716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5717   lt_cv_deplibs_check_method=pass_all
5718   ;;
5719
5720 sysv4 | sysv4.3*)
5721   case $host_vendor in
5722   motorola)
5723     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]'
5724     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5725     ;;
5726   ncr)
5727     lt_cv_deplibs_check_method=pass_all
5728     ;;
5729   sequent)
5730     lt_cv_file_magic_cmd='/bin/file'
5731     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5732     ;;
5733   sni)
5734     lt_cv_file_magic_cmd='/bin/file'
5735     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5736     lt_cv_file_magic_test_file=/lib/libc.so
5737     ;;
5738   siemens)
5739     lt_cv_deplibs_check_method=pass_all
5740     ;;
5741   pc)
5742     lt_cv_deplibs_check_method=pass_all
5743     ;;
5744   esac
5745   ;;
5746
5747 tpf*)
5748   lt_cv_deplibs_check_method=pass_all
5749   ;;
5750 esac
5751
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5755
5756 file_magic_glob=
5757 want_nocaseglob=no
5758 if test "$build" = "$host"; then
5759   case $host_os in
5760   mingw* | pw32*)
5761     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5762       want_nocaseglob=yes
5763     else
5764       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5765     fi
5766     ;;
5767   esac
5768 fi
5769
5770 file_magic_cmd=$lt_cv_file_magic_cmd
5771 deplibs_check_method=$lt_cv_deplibs_check_method
5772 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795 if test -n "$ac_tool_prefix"; then
5796   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5801   $as_echo_n "(cached) " >&6
5802 else
5803   if test -n "$DLLTOOL"; then
5804   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 DLLTOOL=$ac_cv_prog_DLLTOOL
5824 if test -n "$DLLTOOL"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5826 $as_echo "$DLLTOOL" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833 fi
5834 if test -z "$ac_cv_prog_DLLTOOL"; then
5835   ac_ct_DLLTOOL=$DLLTOOL
5836   # Extract the first word of "dlltool", so it can be a program name with args.
5837 set dummy dlltool; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if test -n "$ac_ct_DLLTOOL"; then
5844   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858   done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5864 if test -n "$ac_ct_DLLTOOL"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5866 $as_echo "$ac_ct_DLLTOOL" >&6; }
5867 else
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872   if test "x$ac_ct_DLLTOOL" = x; then
5873     DLLTOOL="false"
5874   else
5875     case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881     DLLTOOL=$ac_ct_DLLTOOL
5882   fi
5883 else
5884   DLLTOOL="$ac_cv_prog_DLLTOOL"
5885 fi
5886
5887 test -z "$DLLTOOL" && DLLTOOL=dlltool
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5899 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5900 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   lt_cv_sharedlib_from_linklib_cmd='unknown'
5904
5905 case $host_os in
5906 cygwin* | mingw* | pw32* | cegcc*)
5907   # two different shell functions defined in ltmain.sh
5908   # decide which to use based on capabilities of $DLLTOOL
5909   case `$DLLTOOL --help 2>&1` in
5910   *--identify-strict*)
5911     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5912     ;;
5913   *)
5914     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5915     ;;
5916   esac
5917   ;;
5918 *)
5919   # fallback: assume linklib IS sharedlib
5920   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5921   ;;
5922 esac
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5926 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5927 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5928 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5929
5930
5931
5932
5933
5934
5935
5936
5937 if test -n "$ac_tool_prefix"; then
5938   for ac_prog in ar
5939   do
5940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if test "${ac_cv_prog_AR+set}" = set; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   if test -n "$AR"; then
5948   ac_cv_prog_AR="$AR" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955     for ac_exec_ext in '' $ac_executable_extensions; do
5956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962   done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 AR=$ac_cv_prog_AR
5968 if test -n "$AR"; then
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5970 $as_echo "$AR" >&6; }
5971 else
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976
5977     test -n "$AR" && break
5978   done
5979 fi
5980 if test -z "$AR"; then
5981   ac_ct_AR=$AR
5982   for ac_prog in ar
5983 do
5984   # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   if test -n "$ac_ct_AR"; then
5992   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_ac_ct_AR="$ac_prog"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6012 if test -n "$ac_ct_AR"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6014 $as_echo "$ac_ct_AR" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021   test -n "$ac_ct_AR" && break
6022 done
6023
6024   if test "x$ac_ct_AR" = x; then
6025     AR="false"
6026   else
6027     case $cross_compiling:$ac_tool_warned in
6028 yes:)
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6031 ac_tool_warned=yes ;;
6032 esac
6033     AR=$ac_ct_AR
6034   fi
6035 fi
6036
6037 : ${AR=ar}
6038 : ${AR_FLAGS=cru}
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6051 $as_echo_n "checking for archiver @FILE support... " >&6; }
6052 if test "${lt_cv_ar_at_file+set}" = set; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   lt_cv_ar_at_file=no
6056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h.  */
6058
6059 int
6060 main ()
6061 {
6062
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 if ac_fn_c_try_compile "$LINENO"; then :
6068   echo conftest.$ac_objext > conftest.lst
6069       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6070       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6071   (eval $lt_ar_try) 2>&5
6072   ac_status=$?
6073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074   test $ac_status = 0; }
6075       if test "$ac_status" -eq 0; then
6076         # Ensure the archiver fails upon bogus file names.
6077         rm -f conftest.$ac_objext libconftest.a
6078         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6079   (eval $lt_ar_try) 2>&5
6080   ac_status=$?
6081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082   test $ac_status = 0; }
6083         if test "$ac_status" -ne 0; then
6084           lt_cv_ar_at_file=@
6085         fi
6086       fi
6087       rm -f conftest.* libconftest.a
6088
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6094 $as_echo "$lt_cv_ar_at_file" >&6; }
6095
6096 if test "x$lt_cv_ar_at_file" = xno; then
6097   archiver_list_spec=
6098 else
6099   archiver_list_spec=$lt_cv_ar_at_file
6100 fi
6101
6102
6103
6104
6105
6106
6107
6108 if test -n "$ac_tool_prefix"; then
6109   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}strip; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_STRIP+set}" = set; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   if test -n "$STRIP"; then
6117   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 STRIP=$ac_cv_prog_STRIP
6137 if test -n "$STRIP"; then
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6139 $as_echo "$STRIP" >&6; }
6140 else
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146 fi
6147 if test -z "$ac_cv_prog_STRIP"; then
6148   ac_ct_STRIP=$STRIP
6149   # Extract the first word of "strip", so it can be a program name with args.
6150 set dummy strip; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   if test -n "$ac_ct_STRIP"; then
6157   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_exec_ext in '' $ac_executable_extensions; do
6165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166     ac_cv_prog_ac_ct_STRIP="strip"
6167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171   done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6177 if test -n "$ac_ct_STRIP"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6179 $as_echo "$ac_ct_STRIP" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185   if test "x$ac_ct_STRIP" = x; then
6186     STRIP=":"
6187   else
6188     case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194     STRIP=$ac_ct_STRIP
6195   fi
6196 else
6197   STRIP="$ac_cv_prog_STRIP"
6198 fi
6199
6200 test -z "$STRIP" && STRIP=:
6201
6202
6203
6204
6205
6206
6207 if test -n "$ac_tool_prefix"; then
6208   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}ranlib; 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; }
6212 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   if test -n "$RANLIB"; then
6216   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223     for ac_exec_ext in '' $ac_executable_extensions; do
6224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230   done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 RANLIB=$ac_cv_prog_RANLIB
6236 if test -n "$RANLIB"; then
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6238 $as_echo "$RANLIB" >&6; }
6239 else
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244
6245 fi
6246 if test -z "$ac_cv_prog_RANLIB"; then
6247   ac_ct_RANLIB=$RANLIB
6248   # Extract the first word of "ranlib", so it can be a program name with args.
6249 set dummy ranlib; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255   if test -n "$ac_ct_RANLIB"; then
6256   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263     for ac_exec_ext in '' $ac_executable_extensions; do
6264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265     ac_cv_prog_ac_ct_RANLIB="ranlib"
6266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270   done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6276 if test -n "$ac_ct_RANLIB"; then
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6278 $as_echo "$ac_ct_RANLIB" >&6; }
6279 else
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284   if test "x$ac_ct_RANLIB" = x; then
6285     RANLIB=":"
6286   else
6287     case $cross_compiling:$ac_tool_warned in
6288 yes:)
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293     RANLIB=$ac_ct_RANLIB
6294   fi
6295 else
6296   RANLIB="$ac_cv_prog_RANLIB"
6297 fi
6298
6299 test -z "$RANLIB" && RANLIB=:
6300
6301
6302
6303
6304
6305
6306 # Determine commands to create old-style static archives.
6307 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6308 old_postinstall_cmds='chmod 644 $oldlib'
6309 old_postuninstall_cmds=
6310
6311 if test -n "$RANLIB"; then
6312   case $host_os in
6313   openbsd*)
6314     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6315     ;;
6316   *)
6317     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6318     ;;
6319   esac
6320   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6321 fi
6322
6323 case $host_os in
6324   darwin*)
6325     lock_old_archive_extraction=yes ;;
6326   *)
6327     lock_old_archive_extraction=no ;;
6328 esac
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368 # If no C compiler was specified, use CC.
6369 LTCC=${LTCC-"$CC"}
6370
6371 # If no C compiler flags were specified, use CFLAGS.
6372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6373
6374 # Allow CC to be a program name with arguments.
6375 compiler=$CC
6376
6377
6378 # Check for command to grab the raw symbol name followed by C symbol from nm.
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6380 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6381 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384
6385 # These are sane defaults that work on at least a few old systems.
6386 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6387
6388 # Character class describing NM global symbol codes.
6389 symcode='[BCDEGRST]'
6390
6391 # Regexp to match symbols that can be accessed directly from C.
6392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6393
6394 # Define system-specific variables.
6395 case $host_os in
6396 aix*)
6397   symcode='[BCDT]'
6398   ;;
6399 cygwin* | mingw* | pw32* | cegcc*)
6400   symcode='[ABCDGISTW]'
6401   ;;
6402 hpux*)
6403   if test "$host_cpu" = ia64; then
6404     symcode='[ABCDEGRST]'
6405   fi
6406   ;;
6407 irix* | nonstopux*)
6408   symcode='[BCDEGRST]'
6409   ;;
6410 osf*)
6411   symcode='[BCDEGQRST]'
6412   ;;
6413 solaris*)
6414   symcode='[BDRT]'
6415   ;;
6416 sco3.2v5*)
6417   symcode='[DT]'
6418   ;;
6419 sysv4.2uw2*)
6420   symcode='[DT]'
6421   ;;
6422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6423   symcode='[ABDT]'
6424   ;;
6425 sysv4)
6426   symcode='[DFNSTU]'
6427   ;;
6428 esac
6429
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433   symcode='[ABCDGIRSTW]' ;;
6434 esac
6435
6436 # Transform an extracted symbol line into a proper C declaration.
6437 # Some systems (esp. on ia64) link data and code symbols differently,
6438 # so use this general approach.
6439 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6440
6441 # Transform an extracted symbol line into symbol name and symbol address
6442 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6444
6445 # Handle CRLF in mingw tool chain
6446 opt_cr=
6447 case $build_os in
6448 mingw*)
6449   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6450   ;;
6451 esac
6452
6453 # Try without a prefix underscore, then with it.
6454 for ac_symprfx in "" "_"; do
6455
6456   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6457   symxfrm="\\1 $ac_symprfx\\2 \\2"
6458
6459   # Write the raw and C identifiers.
6460   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6461     # Fake it for dumpbin and say T for any non-static function
6462     # and D for any global variable.
6463     # Also find C++ and __fastcall symbols from MSVC++,
6464     # which start with @ or ?.
6465     lt_cv_sys_global_symbol_pipe="$AWK '"\
6466 "     {last_section=section; section=\$ 3};"\
6467 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6468 "     \$ 0!~/External *\|/{next};"\
6469 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6470 "     {if(hide[section]) next};"\
6471 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6472 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6473 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6474 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6475 "     ' prfx=^$ac_symprfx"
6476   else
6477     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6478   fi
6479   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6480
6481   # Check to see that the pipe works correctly.
6482   pipe_works=no
6483
6484   rm -f conftest*
6485   cat > conftest.$ac_ext <<_LT_EOF
6486 #ifdef __cplusplus
6487 extern "C" {
6488 #endif
6489 char nm_test_var;
6490 void nm_test_func(void);
6491 void nm_test_func(void){}
6492 #ifdef __cplusplus
6493 }
6494 #endif
6495 int main(){nm_test_var='a';nm_test_func();return(0);}
6496 _LT_EOF
6497
6498   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6499   (eval $ac_compile) 2>&5
6500   ac_status=$?
6501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502   test $ac_status = 0; }; then
6503     # Now try to grab the symbols.
6504     nlist=conftest.nm
6505     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6506   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6507   ac_status=$?
6508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509   test $ac_status = 0; } && test -s "$nlist"; then
6510       # Try sorting and uniquifying the output.
6511       if sort "$nlist" | uniq > "$nlist"T; then
6512         mv -f "$nlist"T "$nlist"
6513       else
6514         rm -f "$nlist"T
6515       fi
6516
6517       # Make sure that we snagged all the symbols we need.
6518       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6519         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6520           cat <<_LT_EOF > conftest.$ac_ext
6521 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6522 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6523 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6524    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6525 # define LT_DLSYM_CONST
6526 #elif defined(__osf__)
6527 /* This system does not cope well with relocations in const data.  */
6528 # define LT_DLSYM_CONST
6529 #else
6530 # define LT_DLSYM_CONST const
6531 #endif
6532
6533 #ifdef __cplusplus
6534 extern "C" {
6535 #endif
6536
6537 _LT_EOF
6538           # Now generate the symbol file.
6539           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6540
6541           cat <<_LT_EOF >> conftest.$ac_ext
6542
6543 /* The mapping between symbol names and symbols.  */
6544 LT_DLSYM_CONST struct {
6545   const char *name;
6546   void       *address;
6547 }
6548 lt__PROGRAM__LTX_preloaded_symbols[] =
6549 {
6550   { "@PROGRAM@", (void *) 0 },
6551 _LT_EOF
6552           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6553           cat <<\_LT_EOF >> conftest.$ac_ext
6554   {0, (void *) 0}
6555 };
6556
6557 /* This works around a problem in FreeBSD linker */
6558 #ifdef FREEBSD_WORKAROUND
6559 static const void *lt_preloaded_setup() {
6560   return lt__PROGRAM__LTX_preloaded_symbols;
6561 }
6562 #endif
6563
6564 #ifdef __cplusplus
6565 }
6566 #endif
6567 _LT_EOF
6568           # Now try linking the two files.
6569           mv conftest.$ac_objext conftstm.$ac_objext
6570           lt_globsym_save_LIBS=$LIBS
6571           lt_globsym_save_CFLAGS=$CFLAGS
6572           LIBS="conftstm.$ac_objext"
6573           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6574           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6575   (eval $ac_link) 2>&5
6576   ac_status=$?
6577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6579             pipe_works=yes
6580           fi
6581           LIBS=$lt_globsym_save_LIBS
6582           CFLAGS=$lt_globsym_save_CFLAGS
6583         else
6584           echo "cannot find nm_test_func in $nlist" >&5
6585         fi
6586       else
6587         echo "cannot find nm_test_var in $nlist" >&5
6588       fi
6589     else
6590       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6591     fi
6592   else
6593     echo "$progname: failed program was:" >&5
6594     cat conftest.$ac_ext >&5
6595   fi
6596   rm -rf conftest* conftst*
6597
6598   # Do not use the global_symbol_pipe unless it works.
6599   if test "$pipe_works" = yes; then
6600     break
6601   else
6602     lt_cv_sys_global_symbol_pipe=
6603   fi
6604 done
6605
6606 fi
6607
6608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6609   lt_cv_sys_global_symbol_to_cdecl=
6610 fi
6611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6613 $as_echo "failed" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6616 $as_echo "ok" >&6; }
6617 fi
6618
6619 # Response file support.
6620 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6621   nm_file_list_spec='@'
6622 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6623   nm_file_list_spec='@'
6624 fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6653 $as_echo_n "checking for sysroot... " >&6; }
6654
6655 # Check whether --with-sysroot was given.
6656 if test "${with_sysroot+set}" = set; then :
6657   withval=$with_sysroot;
6658 else
6659   with_sysroot=no
6660 fi
6661
6662
6663 lt_sysroot=
6664 case ${with_sysroot} in #(
6665  yes)
6666    if test "$GCC" = yes; then
6667      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6668    fi
6669    ;; #(
6670  /*)
6671    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6672    ;; #(
6673  no|'')
6674    ;; #(
6675  *)
6676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6677 $as_echo "${with_sysroot}" >&6; }
6678    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6679    ;;
6680 esac
6681
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6683 $as_echo "${lt_sysroot:-no}" >&6; }
6684
6685
6686
6687
6688
6689 # Check whether --enable-libtool-lock was given.
6690 if test "${enable_libtool_lock+set}" = set; then :
6691   enableval=$enable_libtool_lock;
6692 fi
6693
6694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6695
6696 # Some flags need to be propagated to the compiler or linker for good
6697 # libtool support.
6698 case $host in
6699 ia64-*-hpux*)
6700   # Find out which ABI we are using.
6701   echo 'int i;' > conftest.$ac_ext
6702   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6703   (eval $ac_compile) 2>&5
6704   ac_status=$?
6705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706   test $ac_status = 0; }; then
6707     case `/usr/bin/file conftest.$ac_objext` in
6708       *ELF-32*)
6709         HPUX_IA64_MODE="32"
6710         ;;
6711       *ELF-64*)
6712         HPUX_IA64_MODE="64"
6713         ;;
6714     esac
6715   fi
6716   rm -rf conftest*
6717   ;;
6718 *-*-irix6*)
6719   # Find out which ABI we are using.
6720   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6721   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6722   (eval $ac_compile) 2>&5
6723   ac_status=$?
6724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725   test $ac_status = 0; }; then
6726     if test "$lt_cv_prog_gnu_ld" = yes; then
6727       case `/usr/bin/file conftest.$ac_objext` in
6728         *32-bit*)
6729           LD="${LD-ld} -melf32bsmip"
6730           ;;
6731         *N32*)
6732           LD="${LD-ld} -melf32bmipn32"
6733           ;;
6734         *64-bit*)
6735           LD="${LD-ld} -melf64bmip"
6736         ;;
6737       esac
6738     else
6739       case `/usr/bin/file conftest.$ac_objext` in
6740         *32-bit*)
6741           LD="${LD-ld} -32"
6742           ;;
6743         *N32*)
6744           LD="${LD-ld} -n32"
6745           ;;
6746         *64-bit*)
6747           LD="${LD-ld} -64"
6748           ;;
6749       esac
6750     fi
6751   fi
6752   rm -rf conftest*
6753   ;;
6754
6755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6757   # Find out which ABI we are using.
6758   echo 'int i;' > conftest.$ac_ext
6759   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760   (eval $ac_compile) 2>&5
6761   ac_status=$?
6762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763   test $ac_status = 0; }; then
6764     case `/usr/bin/file conftest.o` in
6765       *32-bit*)
6766         case $host in
6767           x86_64-*kfreebsd*-gnu)
6768             LD="${LD-ld} -m elf_i386_fbsd"
6769             ;;
6770           x86_64-*linux*)
6771             LD="${LD-ld} -m elf_i386"
6772             ;;
6773           ppc64-*linux*|powerpc64-*linux*)
6774             LD="${LD-ld} -m elf32ppclinux"
6775             ;;
6776           s390x-*linux*)
6777             LD="${LD-ld} -m elf_s390"
6778             ;;
6779           sparc64-*linux*)
6780             LD="${LD-ld} -m elf32_sparc"
6781             ;;
6782         esac
6783         ;;
6784       *64-bit*)
6785         case $host in
6786           x86_64-*kfreebsd*-gnu)
6787             LD="${LD-ld} -m elf_x86_64_fbsd"
6788             ;;
6789           x86_64-*linux*)
6790             LD="${LD-ld} -m elf_x86_64"
6791             ;;
6792           ppc*-*linux*|powerpc*-*linux*)
6793             LD="${LD-ld} -m elf64ppc"
6794             ;;
6795           s390*-*linux*|s390*-*tpf*)
6796             LD="${LD-ld} -m elf64_s390"
6797             ;;
6798           sparc*-*linux*)
6799             LD="${LD-ld} -m elf64_sparc"
6800             ;;
6801         esac
6802         ;;
6803     esac
6804   fi
6805   rm -rf conftest*
6806   ;;
6807
6808 *-*-sco3.2v5*)
6809   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6810   SAVE_CFLAGS="$CFLAGS"
6811   CFLAGS="$CFLAGS -belf"
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6813 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6814 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h.  */
6825
6826 int
6827 main ()
6828 {
6829
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 if ac_fn_c_try_link "$LINENO"; then :
6835   lt_cv_cc_needs_belf=yes
6836 else
6837   lt_cv_cc_needs_belf=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext \
6840     conftest$ac_exeext conftest.$ac_ext
6841      ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6849 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6850   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6851     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6852     CFLAGS="$SAVE_CFLAGS"
6853   fi
6854   ;;
6855 sparc*-*solaris*)
6856   # Find out which ABI we are using.
6857   echo 'int i;' > conftest.$ac_ext
6858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859   (eval $ac_compile) 2>&5
6860   ac_status=$?
6861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862   test $ac_status = 0; }; then
6863     case `/usr/bin/file conftest.o` in
6864     *64-bit*)
6865       case $lt_cv_prog_gnu_ld in
6866       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6867       *)
6868         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6869           LD="${LD-ld} -64"
6870         fi
6871         ;;
6872       esac
6873       ;;
6874     esac
6875   fi
6876   rm -rf conftest*
6877   ;;
6878 esac
6879
6880 need_locks="$enable_libtool_lock"
6881
6882 if test -n "$ac_tool_prefix"; then
6883   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}mt; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$MANIFEST_TOOL"; then
6891   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6911 if test -n "$MANIFEST_TOOL"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6913 $as_echo "$MANIFEST_TOOL" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6922   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6923   # Extract the first word of "mt", so it can be a program name with args.
6924 set dummy mt; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$ac_ct_MANIFEST_TOOL"; then
6931   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6951 if test -n "$ac_ct_MANIFEST_TOOL"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6953 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6960     MANIFEST_TOOL=":"
6961   else
6962     case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6969   fi
6970 else
6971   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6972 fi
6973
6974 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6976 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6977 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980   lt_cv_path_mainfest_tool=no
6981   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6982   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6983   cat conftest.err >&5
6984   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6985     lt_cv_path_mainfest_tool=yes
6986   fi
6987   rm -f conftest*
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6990 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6991 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6992   MANIFEST_TOOL=:
6993 fi
6994
6995
6996
6997
6998
6999
7000   case $host_os in
7001     rhapsody* | darwin*)
7002     if test -n "$ac_tool_prefix"; then
7003   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   if test -n "$DSYMUTIL"; then
7011   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018     for ac_exec_ext in '' $ac_executable_extensions; do
7019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025   done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7031 if test -n "$DSYMUTIL"; then
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7033 $as_echo "$DSYMUTIL" >&6; }
7034 else
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039
7040 fi
7041 if test -z "$ac_cv_prog_DSYMUTIL"; then
7042   ac_ct_DSYMUTIL=$DSYMUTIL
7043   # Extract the first word of "dsymutil", so it can be a program name with args.
7044 set dummy dsymutil; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   if test -n "$ac_ct_DSYMUTIL"; then
7051   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7071 if test -n "$ac_ct_DSYMUTIL"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7073 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079   if test "x$ac_ct_DSYMUTIL" = x; then
7080     DSYMUTIL=":"
7081   else
7082     case $cross_compiling:$ac_tool_warned in
7083 yes:)
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086 ac_tool_warned=yes ;;
7087 esac
7088     DSYMUTIL=$ac_ct_DSYMUTIL
7089   fi
7090 else
7091   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7092 fi
7093
7094     if test -n "$ac_tool_prefix"; then
7095   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$NMEDIT"; then
7103   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 NMEDIT=$ac_cv_prog_NMEDIT
7123 if test -n "$NMEDIT"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7125 $as_echo "$NMEDIT" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_NMEDIT"; then
7134   ac_ct_NMEDIT=$NMEDIT
7135   # Extract the first word of "nmedit", so it can be a program name with args.
7136 set dummy nmedit; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$ac_ct_NMEDIT"; then
7143   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7163 if test -n "$ac_ct_NMEDIT"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7165 $as_echo "$ac_ct_NMEDIT" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171   if test "x$ac_ct_NMEDIT" = x; then
7172     NMEDIT=":"
7173   else
7174     case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180     NMEDIT=$ac_ct_NMEDIT
7181   fi
7182 else
7183   NMEDIT="$ac_cv_prog_NMEDIT"
7184 fi
7185
7186     if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if test "${ac_cv_prog_LIPO+set}" = set; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$LIPO"; then
7195   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 LIPO=$ac_cv_prog_LIPO
7215 if test -n "$LIPO"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7217 $as_echo "$LIPO" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_LIPO"; then
7226   ac_ct_LIPO=$LIPO
7227   # Extract the first word of "lipo", so it can be a program name with args.
7228 set dummy lipo; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_LIPO"; then
7235   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_prog_ac_ct_LIPO="lipo"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7255 if test -n "$ac_ct_LIPO"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7257 $as_echo "$ac_ct_LIPO" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263   if test "x$ac_ct_LIPO" = x; then
7264     LIPO=":"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     LIPO=$ac_ct_LIPO
7273   fi
7274 else
7275   LIPO="$ac_cv_prog_LIPO"
7276 fi
7277
7278     if test -n "$ac_tool_prefix"; then
7279   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7280 set dummy ${ac_tool_prefix}otool; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7284   $as_echo_n "(cached) " >&6
7285 else
7286   if test -n "$OTOOL"; then
7287   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294     for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301   done
7302 IFS=$as_save_IFS
7303
7304 fi
7305 fi
7306 OTOOL=$ac_cv_prog_OTOOL
7307 if test -n "$OTOOL"; then
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7309 $as_echo "$OTOOL" >&6; }
7310 else
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315
7316 fi
7317 if test -z "$ac_cv_prog_OTOOL"; then
7318   ac_ct_OTOOL=$OTOOL
7319   # Extract the first word of "otool", so it can be a program name with args.
7320 set dummy otool; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   if test -n "$ac_ct_OTOOL"; then
7327   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334     for ac_exec_ext in '' $ac_executable_extensions; do
7335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336     ac_cv_prog_ac_ct_OTOOL="otool"
7337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338     break 2
7339   fi
7340 done
7341   done
7342 IFS=$as_save_IFS
7343
7344 fi
7345 fi
7346 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7347 if test -n "$ac_ct_OTOOL"; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7349 $as_echo "$ac_ct_OTOOL" >&6; }
7350 else
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355   if test "x$ac_ct_OTOOL" = x; then
7356     OTOOL=":"
7357   else
7358     case $cross_compiling:$ac_tool_warned in
7359 yes:)
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362 ac_tool_warned=yes ;;
7363 esac
7364     OTOOL=$ac_ct_OTOOL
7365   fi
7366 else
7367   OTOOL="$ac_cv_prog_OTOOL"
7368 fi
7369
7370     if test -n "$ac_tool_prefix"; then
7371   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7372 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   if test -n "$OTOOL64"; then
7379   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386     for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393   done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 OTOOL64=$ac_cv_prog_OTOOL64
7399 if test -n "$OTOOL64"; then
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7401 $as_echo "$OTOOL64" >&6; }
7402 else
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407
7408 fi
7409 if test -z "$ac_cv_prog_OTOOL64"; then
7410   ac_ct_OTOOL64=$OTOOL64
7411   # Extract the first word of "otool64", so it can be a program name with args.
7412 set dummy otool64; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   if test -n "$ac_ct_OTOOL64"; then
7419   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426     for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_prog_ac_ct_OTOOL64="otool64"
7429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433   done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7439 if test -n "$ac_ct_OTOOL64"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7441 $as_echo "$ac_ct_OTOOL64" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447   if test "x$ac_ct_OTOOL64" = x; then
7448     OTOOL64=":"
7449   else
7450     case $cross_compiling:$ac_tool_warned in
7451 yes:)
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7454 ac_tool_warned=yes ;;
7455 esac
7456     OTOOL64=$ac_ct_OTOOL64
7457   fi
7458 else
7459   OTOOL64="$ac_cv_prog_OTOOL64"
7460 fi
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7489 $as_echo_n "checking for -single_module linker flag... " >&6; }
7490 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7491   $as_echo_n "(cached) " >&6
7492 else
7493   lt_cv_apple_cc_single_mod=no
7494       if test -z "${LT_MULTI_MODULE}"; then
7495         # By default we will add the -single_module flag. You can override
7496         # by either setting the environment variable LT_MULTI_MODULE
7497         # non-empty at configure time, or by adding -multi_module to the
7498         # link flags.
7499         rm -rf libconftest.dylib*
7500         echo "int foo(void){return 1;}" > conftest.c
7501         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7502 -dynamiclib -Wl,-single_module conftest.c" >&5
7503         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7505         _lt_result=$?
7506         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7507           lt_cv_apple_cc_single_mod=yes
7508         else
7509           cat conftest.err >&5
7510         fi
7511         rm -rf libconftest.dylib*
7512         rm -f conftest.*
7513       fi
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7516 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7518 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7519 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   lt_cv_ld_exported_symbols_list=no
7523       save_LDFLAGS=$LDFLAGS
7524       echo "_main" > conftest.sym
7525       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h.  */
7528
7529 int
7530 main ()
7531 {
7532
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_link "$LINENO"; then :
7538   lt_cv_ld_exported_symbols_list=yes
7539 else
7540   lt_cv_ld_exported_symbols_list=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext \
7543     conftest$ac_exeext conftest.$ac_ext
7544         LDFLAGS="$save_LDFLAGS"
7545
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7548 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7550 $as_echo_n "checking for -force_load linker flag... " >&6; }
7551 if test "${lt_cv_ld_force_load+set}" = set; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   lt_cv_ld_force_load=no
7555       cat > conftest.c << _LT_EOF
7556 int forced_loaded() { return 2;}
7557 _LT_EOF
7558       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7559       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7560       echo "$AR cru libconftest.a conftest.o" >&5
7561       $AR cru libconftest.a conftest.o 2>&5
7562       echo "$RANLIB libconftest.a" >&5
7563       $RANLIB libconftest.a 2>&5
7564       cat > conftest.c << _LT_EOF
7565 int main() { return 0;}
7566 _LT_EOF
7567       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7568       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7569       _lt_result=$?
7570       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7571         lt_cv_ld_force_load=yes
7572       else
7573         cat conftest.err >&5
7574       fi
7575         rm -f conftest.err libconftest.a conftest conftest.c
7576         rm -rf conftest.dSYM
7577
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7580 $as_echo "$lt_cv_ld_force_load" >&6; }
7581     case $host_os in
7582     rhapsody* | darwin1.[012])
7583       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7584     darwin1.*)
7585       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586     darwin*) # darwin 5.x on
7587       # if running on 10.5 or later, the deployment target defaults
7588       # to the OS version, if on x86, and 10.4, the deployment
7589       # target defaults to 10.4. Don't you love it?
7590       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7591         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7592           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7593         10.[012]*)
7594           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7595         10.*)
7596           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7597       esac
7598     ;;
7599   esac
7600     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7601       _lt_dar_single_mod='$single_module'
7602     fi
7603     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7604       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7605     else
7606       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7607     fi
7608     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7609       _lt_dsymutil='~$DSYMUTIL $lib || :'
7610     else
7611       _lt_dsymutil=
7612     fi
7613     ;;
7614   esac
7615
7616 ac_ext=c
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7623 # On Suns, sometimes $CPP names a directory.
7624 if test -n "$CPP" && test -d "$CPP"; then
7625   CPP=
7626 fi
7627 if test -z "$CPP"; then
7628   if test "${ac_cv_prog_CPP+set}" = set; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631       # Double quotes because CPP needs to be expanded
7632     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7633     do
7634       ac_preproc_ok=false
7635 for ac_c_preproc_warn_flag in '' yes
7636 do
7637   # Use a header file that comes with gcc, so configuring glibc
7638   # with a fresh cross-compiler works.
7639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640   # <limits.h> exists even on freestanding compilers.
7641   # On the NeXT, cc -E runs the code through the compiler's parser,
7642   # not just through cpp. "Syntax error" is here to catch this case.
7643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h.  */
7645 #ifdef __STDC__
7646 # include <limits.h>
7647 #else
7648 # include <assert.h>
7649 #endif
7650                      Syntax error
7651 _ACEOF
7652 if ac_fn_c_try_cpp "$LINENO"; then :
7653
7654 else
7655   # Broken: fails on valid input.
7656 continue
7657 fi
7658 rm -f conftest.err conftest.i conftest.$ac_ext
7659
7660   # OK, works on sane cases.  Now check whether nonexistent headers
7661   # can be detected and how.
7662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h.  */
7664 #include <ac_nonexistent.h>
7665 _ACEOF
7666 if ac_fn_c_try_cpp "$LINENO"; then :
7667   # Broken: success on invalid input.
7668 continue
7669 else
7670   # Passes both tests.
7671 ac_preproc_ok=:
7672 break
7673 fi
7674 rm -f conftest.err conftest.i conftest.$ac_ext
7675
7676 done
7677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7678 rm -f conftest.i conftest.err conftest.$ac_ext
7679 if $ac_preproc_ok; then :
7680   break
7681 fi
7682
7683     done
7684     ac_cv_prog_CPP=$CPP
7685
7686 fi
7687   CPP=$ac_cv_prog_CPP
7688 else
7689   ac_cv_prog_CPP=$CPP
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7692 $as_echo "$CPP" >&6; }
7693 ac_preproc_ok=false
7694 for ac_c_preproc_warn_flag in '' yes
7695 do
7696   # Use a header file that comes with gcc, so configuring glibc
7697   # with a fresh cross-compiler works.
7698   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699   # <limits.h> exists even on freestanding compilers.
7700   # On the NeXT, cc -E runs the code through the compiler's parser,
7701   # not just through cpp. "Syntax error" is here to catch this case.
7702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h.  */
7704 #ifdef __STDC__
7705 # include <limits.h>
7706 #else
7707 # include <assert.h>
7708 #endif
7709                      Syntax error
7710 _ACEOF
7711 if ac_fn_c_try_cpp "$LINENO"; then :
7712
7713 else
7714   # Broken: fails on valid input.
7715 continue
7716 fi
7717 rm -f conftest.err conftest.i conftest.$ac_ext
7718
7719   # OK, works on sane cases.  Now check whether nonexistent headers
7720   # can be detected and how.
7721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h.  */
7723 #include <ac_nonexistent.h>
7724 _ACEOF
7725 if ac_fn_c_try_cpp "$LINENO"; then :
7726   # Broken: success on invalid input.
7727 continue
7728 else
7729   # Passes both tests.
7730 ac_preproc_ok=:
7731 break
7732 fi
7733 rm -f conftest.err conftest.i conftest.$ac_ext
7734
7735 done
7736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7737 rm -f conftest.i conftest.err conftest.$ac_ext
7738 if $ac_preproc_ok; then :
7739
7740 else
7741   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7743 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7744 See \`config.log' for more details" "$LINENO" 5 ; }
7745 fi
7746
7747 ac_ext=c
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7755 $as_echo_n "checking for ANSI C header files... " >&6; }
7756 if test "${ac_cv_header_stdc+set}" = set; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h.  */
7761 #include <stdlib.h>
7762 #include <stdarg.h>
7763 #include <string.h>
7764 #include <float.h>
7765
7766 int
7767 main ()
7768 {
7769
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775   ac_cv_header_stdc=yes
7776 else
7777   ac_cv_header_stdc=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780
7781 if test $ac_cv_header_stdc = yes; then
7782   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h.  */
7785 #include <string.h>
7786
7787 _ACEOF
7788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7789   $EGREP "memchr" >/dev/null 2>&1; then :
7790
7791 else
7792   ac_cv_header_stdc=no
7793 fi
7794 rm -f conftest*
7795
7796 fi
7797
7798 if test $ac_cv_header_stdc = yes; then
7799   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802 #include <stdlib.h>
7803
7804 _ACEOF
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806   $EGREP "free" >/dev/null 2>&1; then :
7807
7808 else
7809   ac_cv_header_stdc=no
7810 fi
7811 rm -f conftest*
7812
7813 fi
7814
7815 if test $ac_cv_header_stdc = yes; then
7816   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7817   if test "$cross_compiling" = yes; then :
7818   :
7819 else
7820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h.  */
7822 #include <ctype.h>
7823 #include <stdlib.h>
7824 #if ((' ' & 0x0FF) == 0x020)
7825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7827 #else
7828 # define ISLOWER(c) \
7829                    (('a' <= (c) && (c) <= 'i') \
7830                      || ('j' <= (c) && (c) <= 'r') \
7831                      || ('s' <= (c) && (c) <= 'z'))
7832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7833 #endif
7834
7835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7836 int
7837 main ()
7838 {
7839   int i;
7840   for (i = 0; i < 256; i++)
7841     if (XOR (islower (i), ISLOWER (i))
7842         || toupper (i) != TOUPPER (i))
7843       return 2;
7844   return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_run "$LINENO"; then :
7848
7849 else
7850   ac_cv_header_stdc=no
7851 fi
7852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7853   conftest.$ac_objext conftest.beam conftest.$ac_ext
7854 fi
7855
7856 fi
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7859 $as_echo "$ac_cv_header_stdc" >&6; }
7860 if test $ac_cv_header_stdc = yes; then
7861
7862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7863
7864 fi
7865
7866 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7868                   inttypes.h stdint.h unistd.h
7869 do :
7870   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7872 "
7873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7874   cat >>confdefs.h <<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 _ACEOF
7877
7878 fi
7879
7880 done
7881
7882
7883 for ac_header in dlfcn.h
7884 do :
7885   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7886 "
7887 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7888   cat >>confdefs.h <<_ACEOF
7889 #define HAVE_DLFCN_H 1
7890 _ACEOF
7891
7892 fi
7893
7894 done
7895
7896
7897
7898
7899
7900 # Set options
7901
7902
7903
7904         enable_dlopen=no
7905
7906
7907   enable_win32_dll=no
7908
7909
7910             # Check whether --enable-shared was given.
7911 if test "${enable_shared+set}" = set; then :
7912   enableval=$enable_shared; p=${PACKAGE-default}
7913     case $enableval in
7914     yes) enable_shared=yes ;;
7915     no) enable_shared=no ;;
7916     *)
7917       enable_shared=no
7918       # Look at the argument we got.  We use all the common list separators.
7919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920       for pkg in $enableval; do
7921         IFS="$lt_save_ifs"
7922         if test "X$pkg" = "X$p"; then
7923           enable_shared=yes
7924         fi
7925       done
7926       IFS="$lt_save_ifs"
7927       ;;
7928     esac
7929 else
7930   enable_shared=yes
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 # Check whether --with-pic was given.
7944 if test "${with_pic+set}" = set; then :
7945   withval=$with_pic; pic_mode="$withval"
7946 else
7947   pic_mode=default
7948 fi
7949
7950
7951 test -z "$pic_mode" && pic_mode=default
7952
7953
7954
7955
7956
7957
7958
7959   # Check whether --enable-fast-install was given.
7960 if test "${enable_fast_install+set}" = set; then :
7961   enableval=$enable_fast_install; p=${PACKAGE-default}
7962     case $enableval in
7963     yes) enable_fast_install=yes ;;
7964     no) enable_fast_install=no ;;
7965     *)
7966       enable_fast_install=no
7967       # Look at the argument we got.  We use all the common list separators.
7968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7969       for pkg in $enableval; do
7970         IFS="$lt_save_ifs"
7971         if test "X$pkg" = "X$p"; then
7972           enable_fast_install=yes
7973         fi
7974       done
7975       IFS="$lt_save_ifs"
7976       ;;
7977     esac
7978 else
7979   enable_fast_install=yes
7980 fi
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992 # This can be used to rebuild libtool when needed
7993 LIBTOOL_DEPS="$ltmain"
7994
7995 # Always use our own libtool.
7996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023 test -z "$LN_S" && LN_S="ln -s"
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 if test -n "${ZSH_VERSION+set}" ; then
8039    setopt NO_GLOB_SUBST
8040 fi
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8043 $as_echo_n "checking for objdir... " >&6; }
8044 if test "${lt_cv_objdir+set}" = set; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   rm -f .libs 2>/dev/null
8048 mkdir .libs 2>/dev/null
8049 if test -d .libs; then
8050   lt_cv_objdir=.libs
8051 else
8052   # MS-DOS does not allow filenames that begin with a dot.
8053   lt_cv_objdir=_libs
8054 fi
8055 rmdir .libs 2>/dev/null
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8058 $as_echo "$lt_cv_objdir" >&6; }
8059 objdir=$lt_cv_objdir
8060
8061
8062
8063
8064
8065 cat >>confdefs.h <<_ACEOF
8066 #define LT_OBJDIR "$lt_cv_objdir/"
8067 _ACEOF
8068
8069
8070
8071
8072 case $host_os in
8073 aix3*)
8074   # AIX sometimes has problems with the GCC collect2 program.  For some
8075   # reason, if we set the COLLECT_NAMES environment variable, the problems
8076   # vanish in a puff of smoke.
8077   if test "X${COLLECT_NAMES+set}" != Xset; then
8078     COLLECT_NAMES=
8079     export COLLECT_NAMES
8080   fi
8081   ;;
8082 esac
8083
8084 # Global variables:
8085 ofile=libtool
8086 can_build_shared=yes
8087
8088 # All known linkers require a `.a' archive for static linking (except MSVC,
8089 # which needs '.lib').
8090 libext=a
8091
8092 with_gnu_ld="$lt_cv_prog_gnu_ld"
8093
8094 old_CC="$CC"
8095 old_CFLAGS="$CFLAGS"
8096
8097 # Set sane defaults for various variables
8098 test -z "$CC" && CC=cc
8099 test -z "$LTCC" && LTCC=$CC
8100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8101 test -z "$LD" && LD=ld
8102 test -z "$ac_objext" && ac_objext=o
8103
8104 for cc_temp in $compiler""; do
8105   case $cc_temp in
8106     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8107     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8108     \-*) ;;
8109     *) break;;
8110   esac
8111 done
8112 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8113
8114
8115 # Only perform the check for file, if the check method requires it
8116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8117 case $deplibs_check_method in
8118 file_magic*)
8119   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8121 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8122 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8123   $as_echo_n "(cached) " >&6
8124 else
8125   case $MAGIC_CMD in
8126 [\\/*] |  ?:[\\/]*)
8127   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8128   ;;
8129 *)
8130   lt_save_MAGIC_CMD="$MAGIC_CMD"
8131   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8132   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8133   for ac_dir in $ac_dummy; do
8134     IFS="$lt_save_ifs"
8135     test -z "$ac_dir" && ac_dir=.
8136     if test -f $ac_dir/${ac_tool_prefix}file; then
8137       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8138       if test -n "$file_magic_test_file"; then
8139         case $deplibs_check_method in
8140         "file_magic "*)
8141           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8142           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8144             $EGREP "$file_magic_regex" > /dev/null; then
8145             :
8146           else
8147             cat <<_LT_EOF 1>&2
8148
8149 *** Warning: the command libtool uses to detect shared libraries,
8150 *** $file_magic_cmd, produces output that libtool cannot recognize.
8151 *** The result is that libtool may fail to recognize shared libraries
8152 *** as such.  This will affect the creation of libtool libraries that
8153 *** depend on shared libraries, but programs linked with such libtool
8154 *** libraries will work regardless of this problem.  Nevertheless, you
8155 *** may want to report the problem to your system manager and/or to
8156 *** bug-libtool@gnu.org
8157
8158 _LT_EOF
8159           fi ;;
8160         esac
8161       fi
8162       break
8163     fi
8164   done
8165   IFS="$lt_save_ifs"
8166   MAGIC_CMD="$lt_save_MAGIC_CMD"
8167   ;;
8168 esac
8169 fi
8170
8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172 if test -n "$MAGIC_CMD"; then
8173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8174 $as_echo "$MAGIC_CMD" >&6; }
8175 else
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178 fi
8179
8180
8181
8182
8183
8184 if test -z "$lt_cv_path_MAGIC_CMD"; then
8185   if test -n "$ac_tool_prefix"; then
8186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8187 $as_echo_n "checking for file... " >&6; }
8188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   case $MAGIC_CMD in
8192 [\\/*] |  ?:[\\/]*)
8193   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8194   ;;
8195 *)
8196   lt_save_MAGIC_CMD="$MAGIC_CMD"
8197   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8198   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8199   for ac_dir in $ac_dummy; do
8200     IFS="$lt_save_ifs"
8201     test -z "$ac_dir" && ac_dir=.
8202     if test -f $ac_dir/file; then
8203       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8204       if test -n "$file_magic_test_file"; then
8205         case $deplibs_check_method in
8206         "file_magic "*)
8207           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8208           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8210             $EGREP "$file_magic_regex" > /dev/null; then
8211             :
8212           else
8213             cat <<_LT_EOF 1>&2
8214
8215 *** Warning: the command libtool uses to detect shared libraries,
8216 *** $file_magic_cmd, produces output that libtool cannot recognize.
8217 *** The result is that libtool may fail to recognize shared libraries
8218 *** as such.  This will affect the creation of libtool libraries that
8219 *** depend on shared libraries, but programs linked with such libtool
8220 *** libraries will work regardless of this problem.  Nevertheless, you
8221 *** may want to report the problem to your system manager and/or to
8222 *** bug-libtool@gnu.org
8223
8224 _LT_EOF
8225           fi ;;
8226         esac
8227       fi
8228       break
8229     fi
8230   done
8231   IFS="$lt_save_ifs"
8232   MAGIC_CMD="$lt_save_MAGIC_CMD"
8233   ;;
8234 esac
8235 fi
8236
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if test -n "$MAGIC_CMD"; then
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8240 $as_echo "$MAGIC_CMD" >&6; }
8241 else
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246
8247   else
8248     MAGIC_CMD=:
8249   fi
8250 fi
8251
8252   fi
8253   ;;
8254 esac
8255
8256 # Use C for the default configuration in the libtool script
8257
8258 lt_save_CC="$CC"
8259 ac_ext=c
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264
8265
8266 # Source file extension for C test sources.
8267 ac_ext=c
8268
8269 # Object file extension for compiled C test sources.
8270 objext=o
8271 objext=$objext
8272
8273 # Code to be used in simple compile tests
8274 lt_simple_compile_test_code="int some_variable = 0;"
8275
8276 # Code to be used in simple link tests
8277 lt_simple_link_test_code='int main(){return(0);}'
8278
8279
8280
8281
8282
8283
8284
8285 # If no C compiler was specified, use CC.
8286 LTCC=${LTCC-"$CC"}
8287
8288 # If no C compiler flags were specified, use CFLAGS.
8289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8290
8291 # Allow CC to be a program name with arguments.
8292 compiler=$CC
8293
8294 # Save the default compiler, since it gets overwritten when the other
8295 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8296 compiler_DEFAULT=$CC
8297
8298 # save warnings/boilerplate of simple test code
8299 ac_outfile=conftest.$ac_objext
8300 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8302 _lt_compiler_boilerplate=`cat conftest.err`
8303 $RM conftest*
8304
8305 ac_outfile=conftest.$ac_objext
8306 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8308 _lt_linker_boilerplate=`cat conftest.err`
8309 $RM -r conftest*
8310
8311
8312 ## CAVEAT EMPTOR:
8313 ## There is no encapsulation within the following macros, do not change
8314 ## the running order or otherwise move them around unless you know exactly
8315 ## what you are doing...
8316 if test -n "$compiler"; then
8317
8318 lt_prog_compiler_no_builtin_flag=
8319
8320 if test "$GCC" = yes; then
8321   case $cc_basename in
8322   nvcc*)
8323     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8324   *)
8325     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8326   esac
8327
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   lt_cv_prog_compiler_rtti_exceptions=no
8334    ac_outfile=conftest.$ac_objext
8335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336    lt_compiler_flag="-fno-rtti -fno-exceptions"
8337    # Insert the option either (1) after the last *FLAGS variable, or
8338    # (2) before a word containing "conftest.", or (3) at the end.
8339    # Note that $ac_compile itself does not contain backslashes and begins
8340    # with a dollar sign (not a hyphen), so the echo should work correctly.
8341    # The option is referenced via a variable to avoid confusing sed.
8342    lt_compile=`echo "$ac_compile" | $SED \
8343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345    -e 's:$: $lt_compiler_flag:'`
8346    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347    (eval "$lt_compile" 2>conftest.err)
8348    ac_status=$?
8349    cat conftest.err >&5
8350    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351    if (exit $ac_status) && test -s "$ac_outfile"; then
8352      # The compiler can only warn and ignore the option if not recognized
8353      # So say no if there are warnings other than the usual output.
8354      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357        lt_cv_prog_compiler_rtti_exceptions=yes
8358      fi
8359    fi
8360    $RM conftest*
8361
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8365
8366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8367     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8368 else
8369     :
8370 fi
8371
8372 fi
8373
8374
8375
8376
8377
8378
8379   lt_prog_compiler_wl=
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_static=
8382
8383
8384   if test "$GCC" = yes; then
8385     lt_prog_compiler_wl='-Wl,'
8386     lt_prog_compiler_static='-static'
8387
8388     case $host_os in
8389       aix*)
8390       # All AIX code is PIC.
8391       if test "$host_cpu" = ia64; then
8392         # AIX 5 now supports IA64 processor
8393         lt_prog_compiler_static='-Bstatic'
8394       fi
8395       ;;
8396
8397     amigaos*)
8398       case $host_cpu in
8399       powerpc)
8400             # see comment about AmigaOS4 .so support
8401             lt_prog_compiler_pic='-fPIC'
8402         ;;
8403       m68k)
8404             # FIXME: we need at least 68020 code to build shared libraries, but
8405             # adding the `-m68020' flag to GCC prevents building anything better,
8406             # like `-m68040'.
8407             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8408         ;;
8409       esac
8410       ;;
8411
8412     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8413       # PIC is the default for these OSes.
8414       ;;
8415
8416     mingw* | cygwin* | pw32* | os2* | cegcc*)
8417       # This hack is so that the source file can tell whether it is being
8418       # built for inclusion in a dll (and should export symbols for example).
8419       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8420       # (--disable-auto-import) libraries
8421       lt_prog_compiler_pic='-DDLL_EXPORT'
8422       ;;
8423
8424     darwin* | rhapsody*)
8425       # PIC is the default on this platform
8426       # Common symbols not allowed in MH_DYLIB files
8427       lt_prog_compiler_pic='-fno-common'
8428       ;;
8429
8430     haiku*)
8431       # PIC is the default for Haiku.
8432       # The "-static" flag exists, but is broken.
8433       lt_prog_compiler_static=
8434       ;;
8435
8436     hpux*)
8437       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8438       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8439       # sets the default TLS model and affects inlining.
8440       case $host_cpu in
8441       hppa*64*)
8442         # +Z the default
8443         ;;
8444       *)
8445         lt_prog_compiler_pic='-fPIC'
8446         ;;
8447       esac
8448       ;;
8449
8450     interix[3-9]*)
8451       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8452       # Instead, we relocate shared libraries at runtime.
8453       ;;
8454
8455     msdosdjgpp*)
8456       # Just because we use GCC doesn't mean we suddenly get shared libraries
8457       # on systems that don't support them.
8458       lt_prog_compiler_can_build_shared=no
8459       enable_shared=no
8460       ;;
8461
8462     *nto* | *qnx*)
8463       # QNX uses GNU C++, but need to define -shared option too, otherwise
8464       # it will coredump.
8465       lt_prog_compiler_pic='-fPIC -shared'
8466       ;;
8467
8468     sysv4*MP*)
8469       if test -d /usr/nec; then
8470         lt_prog_compiler_pic=-Kconform_pic
8471       fi
8472       ;;
8473
8474     *)
8475       lt_prog_compiler_pic='-fPIC'
8476       ;;
8477     esac
8478
8479     case $cc_basename in
8480     nvcc*) # Cuda Compiler Driver 2.2
8481       lt_prog_compiler_wl='-Xlinker '
8482       lt_prog_compiler_pic='-Xcompiler -fPIC'
8483       ;;
8484     esac
8485   else
8486     # PORTME Check for flag to pass linker flags through the system compiler.
8487     case $host_os in
8488     aix*)
8489       lt_prog_compiler_wl='-Wl,'
8490       if test "$host_cpu" = ia64; then
8491         # AIX 5 now supports IA64 processor
8492         lt_prog_compiler_static='-Bstatic'
8493       else
8494         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8495       fi
8496       ;;
8497
8498     mingw* | cygwin* | pw32* | os2* | cegcc*)
8499       # This hack is so that the source file can tell whether it is being
8500       # built for inclusion in a dll (and should export symbols for example).
8501       lt_prog_compiler_pic='-DDLL_EXPORT'
8502       ;;
8503
8504     hpux9* | hpux10* | hpux11*)
8505       lt_prog_compiler_wl='-Wl,'
8506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8507       # not for PA HP-UX.
8508       case $host_cpu in
8509       hppa*64*|ia64*)
8510         # +Z the default
8511         ;;
8512       *)
8513         lt_prog_compiler_pic='+Z'
8514         ;;
8515       esac
8516       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8517       lt_prog_compiler_static='${wl}-a ${wl}archive'
8518       ;;
8519
8520     irix5* | irix6* | nonstopux*)
8521       lt_prog_compiler_wl='-Wl,'
8522       # PIC (with -KPIC) is the default.
8523       lt_prog_compiler_static='-non_shared'
8524       ;;
8525
8526     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8527       case $cc_basename in
8528       # old Intel for x86_64 which still supported -KPIC.
8529       ecc*)
8530         lt_prog_compiler_wl='-Wl,'
8531         lt_prog_compiler_pic='-KPIC'
8532         lt_prog_compiler_static='-static'
8533         ;;
8534       # icc used to be incompatible with GCC.
8535       # ICC 10 doesn't accept -KPIC any more.
8536       icc* | ifort*)
8537         lt_prog_compiler_wl='-Wl,'
8538         lt_prog_compiler_pic='-fPIC'
8539         lt_prog_compiler_static='-static'
8540         ;;
8541       # Lahey Fortran 8.1.
8542       lf95*)
8543         lt_prog_compiler_wl='-Wl,'
8544         lt_prog_compiler_pic='--shared'
8545         lt_prog_compiler_static='--static'
8546         ;;
8547       nagfor*)
8548         # NAG Fortran compiler
8549         lt_prog_compiler_wl='-Wl,-Wl,,'
8550         lt_prog_compiler_pic='-PIC'
8551         lt_prog_compiler_static='-Bstatic'
8552         ;;
8553       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8554         # Portland Group compilers (*not* the Pentium gcc compiler,
8555         # which looks to be a dead project)
8556         lt_prog_compiler_wl='-Wl,'
8557         lt_prog_compiler_pic='-fpic'
8558         lt_prog_compiler_static='-Bstatic'
8559         ;;
8560       ccc*)
8561         lt_prog_compiler_wl='-Wl,'
8562         # All Alpha code is PIC.
8563         lt_prog_compiler_static='-non_shared'
8564         ;;
8565       xl* | bgxl* | bgf* | mpixl*)
8566         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8567         lt_prog_compiler_wl='-Wl,'
8568         lt_prog_compiler_pic='-qpic'
8569         lt_prog_compiler_static='-qstaticlink'
8570         ;;
8571       *)
8572         case `$CC -V 2>&1 | sed 5q` in
8573         *Sun\ F* | *Sun*Fortran*)
8574           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8575           lt_prog_compiler_pic='-KPIC'
8576           lt_prog_compiler_static='-Bstatic'
8577           lt_prog_compiler_wl=''
8578           ;;
8579         *Sun\ C*)
8580           # Sun C 5.9
8581           lt_prog_compiler_pic='-KPIC'
8582           lt_prog_compiler_static='-Bstatic'
8583           lt_prog_compiler_wl='-Wl,'
8584           ;;
8585         esac
8586         ;;
8587       esac
8588       ;;
8589
8590     newsos6)
8591       lt_prog_compiler_pic='-KPIC'
8592       lt_prog_compiler_static='-Bstatic'
8593       ;;
8594
8595     *nto* | *qnx*)
8596       # QNX uses GNU C++, but need to define -shared option too, otherwise
8597       # it will coredump.
8598       lt_prog_compiler_pic='-fPIC -shared'
8599       ;;
8600
8601     osf3* | osf4* | osf5*)
8602       lt_prog_compiler_wl='-Wl,'
8603       # All OSF/1 code is PIC.
8604       lt_prog_compiler_static='-non_shared'
8605       ;;
8606
8607     rdos*)
8608       lt_prog_compiler_static='-non_shared'
8609       ;;
8610
8611     solaris*)
8612       lt_prog_compiler_pic='-KPIC'
8613       lt_prog_compiler_static='-Bstatic'
8614       case $cc_basename in
8615       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8616         lt_prog_compiler_wl='-Qoption ld ';;
8617       *)
8618         lt_prog_compiler_wl='-Wl,';;
8619       esac
8620       ;;
8621
8622     sunos4*)
8623       lt_prog_compiler_wl='-Qoption ld '
8624       lt_prog_compiler_pic='-PIC'
8625       lt_prog_compiler_static='-Bstatic'
8626       ;;
8627
8628     sysv4 | sysv4.2uw2* | sysv4.3*)
8629       lt_prog_compiler_wl='-Wl,'
8630       lt_prog_compiler_pic='-KPIC'
8631       lt_prog_compiler_static='-Bstatic'
8632       ;;
8633
8634     sysv4*MP*)
8635       if test -d /usr/nec ;then
8636         lt_prog_compiler_pic='-Kconform_pic'
8637         lt_prog_compiler_static='-Bstatic'
8638       fi
8639       ;;
8640
8641     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8642       lt_prog_compiler_wl='-Wl,'
8643       lt_prog_compiler_pic='-KPIC'
8644       lt_prog_compiler_static='-Bstatic'
8645       ;;
8646
8647     unicos*)
8648       lt_prog_compiler_wl='-Wl,'
8649       lt_prog_compiler_can_build_shared=no
8650       ;;
8651
8652     uts4*)
8653       lt_prog_compiler_pic='-pic'
8654       lt_prog_compiler_static='-Bstatic'
8655       ;;
8656
8657     *)
8658       lt_prog_compiler_can_build_shared=no
8659       ;;
8660     esac
8661   fi
8662
8663 case $host_os in
8664   # For platforms which do not support PIC, -DPIC is meaningless:
8665   *djgpp*)
8666     lt_prog_compiler_pic=
8667     ;;
8668   *)
8669     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8670     ;;
8671 esac
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8675 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
8676   $as_echo_n "(cached) " >&6
8677 else
8678   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8681 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8682 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8683
8684 #
8685 # Check to make sure the PIC flag actually works.
8686 #
8687 if test -n "$lt_prog_compiler_pic"; then
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8689 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8690 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   lt_cv_prog_compiler_pic_works=no
8694    ac_outfile=conftest.$ac_objext
8695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8696    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8697    # Insert the option either (1) after the last *FLAGS variable, or
8698    # (2) before a word containing "conftest.", or (3) at the end.
8699    # Note that $ac_compile itself does not contain backslashes and begins
8700    # with a dollar sign (not a hyphen), so the echo should work correctly.
8701    # The option is referenced via a variable to avoid confusing sed.
8702    lt_compile=`echo "$ac_compile" | $SED \
8703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8705    -e 's:$: $lt_compiler_flag:'`
8706    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8707    (eval "$lt_compile" 2>conftest.err)
8708    ac_status=$?
8709    cat conftest.err >&5
8710    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711    if (exit $ac_status) && test -s "$ac_outfile"; then
8712      # The compiler can only warn and ignore the option if not recognized
8713      # So say no if there are warnings other than the usual output.
8714      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8717        lt_cv_prog_compiler_pic_works=yes
8718      fi
8719    fi
8720    $RM conftest*
8721
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8724 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8725
8726 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8727     case $lt_prog_compiler_pic in
8728      "" | " "*) ;;
8729      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8730      esac
8731 else
8732     lt_prog_compiler_pic=
8733      lt_prog_compiler_can_build_shared=no
8734 fi
8735
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 #
8749 # Check to make sure the static flag actually works.
8750 #
8751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8753 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8754 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8755   $as_echo_n "(cached) " >&6
8756 else
8757   lt_cv_prog_compiler_static_works=no
8758    save_LDFLAGS="$LDFLAGS"
8759    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8760    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8761    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8762      # The linker can only warn and ignore the option if not recognized
8763      # So say no if there are warnings
8764      if test -s conftest.err; then
8765        # Append any errors to the config.log.
8766        cat conftest.err 1>&5
8767        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8768        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769        if diff conftest.exp conftest.er2 >/dev/null; then
8770          lt_cv_prog_compiler_static_works=yes
8771        fi
8772      else
8773        lt_cv_prog_compiler_static_works=yes
8774      fi
8775    fi
8776    $RM -r conftest*
8777    LDFLAGS="$save_LDFLAGS"
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8781 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8782
8783 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8784     :
8785 else
8786     lt_prog_compiler_static=
8787 fi
8788
8789
8790
8791
8792
8793
8794
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8797 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   lt_cv_prog_compiler_c_o=no
8801    $RM -r conftest 2>/dev/null
8802    mkdir conftest
8803    cd conftest
8804    mkdir out
8805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8806
8807    lt_compiler_flag="-o out/conftest2.$ac_objext"
8808    # Insert the option either (1) after the last *FLAGS variable, or
8809    # (2) before a word containing "conftest.", or (3) at the end.
8810    # Note that $ac_compile itself does not contain backslashes and begins
8811    # with a dollar sign (not a hyphen), so the echo should work correctly.
8812    lt_compile=`echo "$ac_compile" | $SED \
8813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8815    -e 's:$: $lt_compiler_flag:'`
8816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8817    (eval "$lt_compile" 2>out/conftest.err)
8818    ac_status=$?
8819    cat out/conftest.err >&5
8820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8822    then
8823      # The compiler can only warn and ignore the option if not recognized
8824      # So say no if there are warnings
8825      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8826      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8827      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8828        lt_cv_prog_compiler_c_o=yes
8829      fi
8830    fi
8831    chmod u+w . 2>&5
8832    $RM conftest*
8833    # SGI C++ compiler will create directory out/ii_files/ for
8834    # template instantiation
8835    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8836    $RM out/* && rmdir out
8837    cd ..
8838    $RM -r conftest
8839    $RM conftest*
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8843 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8844
8845
8846
8847
8848
8849
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8852 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   lt_cv_prog_compiler_c_o=no
8856    $RM -r conftest 2>/dev/null
8857    mkdir conftest
8858    cd conftest
8859    mkdir out
8860    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8861
8862    lt_compiler_flag="-o out/conftest2.$ac_objext"
8863    # Insert the option either (1) after the last *FLAGS variable, or
8864    # (2) before a word containing "conftest.", or (3) at the end.
8865    # Note that $ac_compile itself does not contain backslashes and begins
8866    # with a dollar sign (not a hyphen), so the echo should work correctly.
8867    lt_compile=`echo "$ac_compile" | $SED \
8868    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8870    -e 's:$: $lt_compiler_flag:'`
8871    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8872    (eval "$lt_compile" 2>out/conftest.err)
8873    ac_status=$?
8874    cat out/conftest.err >&5
8875    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8877    then
8878      # The compiler can only warn and ignore the option if not recognized
8879      # So say no if there are warnings
8880      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8881      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8882      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8883        lt_cv_prog_compiler_c_o=yes
8884      fi
8885    fi
8886    chmod u+w . 2>&5
8887    $RM conftest*
8888    # SGI C++ compiler will create directory out/ii_files/ for
8889    # template instantiation
8890    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8891    $RM out/* && rmdir out
8892    cd ..
8893    $RM -r conftest
8894    $RM conftest*
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8898 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8899
8900
8901
8902
8903 hard_links="nottested"
8904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8905   # do not overwrite the value of need_locks provided by the user
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8907 $as_echo_n "checking if we can lock with hard links... " >&6; }
8908   hard_links=yes
8909   $RM conftest*
8910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8911   touch conftest.a
8912   ln conftest.a conftest.b 2>&5 || hard_links=no
8913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8915 $as_echo "$hard_links" >&6; }
8916   if test "$hard_links" = no; then
8917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8919     need_locks=warn
8920   fi
8921 else
8922   need_locks=no
8923 fi
8924
8925
8926
8927
8928
8929
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8931 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8932
8933   runpath_var=
8934   allow_undefined_flag=
8935   always_export_symbols=no
8936   archive_cmds=
8937   archive_expsym_cmds=
8938   compiler_needs_object=no
8939   enable_shared_with_static_runtimes=no
8940   export_dynamic_flag_spec=
8941   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8942   hardcode_automatic=no
8943   hardcode_direct=no
8944   hardcode_direct_absolute=no
8945   hardcode_libdir_flag_spec=
8946   hardcode_libdir_flag_spec_ld=
8947   hardcode_libdir_separator=
8948   hardcode_minus_L=no
8949   hardcode_shlibpath_var=unsupported
8950   inherit_rpath=no
8951   link_all_deplibs=unknown
8952   module_cmds=
8953   module_expsym_cmds=
8954   old_archive_from_new_cmds=
8955   old_archive_from_expsyms_cmds=
8956   thread_safe_flag_spec=
8957   whole_archive_flag_spec=
8958   # include_expsyms should be a list of space-separated symbols to be *always*
8959   # included in the symbol list
8960   include_expsyms=
8961   # exclude_expsyms can be an extended regexp of symbols to exclude
8962   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8963   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8964   # as well as any symbol that contains `d'.
8965   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8966   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8967   # platforms (ab)use it in PIC code, but their linkers get confused if
8968   # the symbol is explicitly referenced.  Since portable code cannot
8969   # rely on this symbol name, it's probably fine to never include it in
8970   # preloaded symbol tables.
8971   # Exclude shared library initialization/finalization symbols.
8972   extract_expsyms_cmds=
8973
8974   case $host_os in
8975   cygwin* | mingw* | pw32* | cegcc*)
8976     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8977     # When not using gcc, we currently assume that we are using
8978     # Microsoft Visual C++.
8979     if test "$GCC" != yes; then
8980       with_gnu_ld=no
8981     fi
8982     ;;
8983   interix*)
8984     # we just hope/assume this is gcc and not c89 (= MSVC++)
8985     with_gnu_ld=yes
8986     ;;
8987   openbsd*)
8988     with_gnu_ld=no
8989     ;;
8990   esac
8991
8992   ld_shlibs=yes
8993
8994   # On some targets, GNU ld is compatible enough with the native linker
8995   # that we're better off using the native interface for both.
8996   lt_use_gnu_ld_interface=no
8997   if test "$with_gnu_ld" = yes; then
8998     case $host_os in
8999       aix*)
9000         # The AIX port of GNU ld has always aspired to compatibility
9001         # with the native linker.  However, as the warning in the GNU ld
9002         # block says, versions before 2.19.5* couldn't really create working
9003         # shared libraries, regardless of the interface used.
9004         case `$LD -v 2>&1` in
9005           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9006           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9007           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9008           *)
9009             lt_use_gnu_ld_interface=yes
9010             ;;
9011         esac
9012         ;;
9013       *)
9014         lt_use_gnu_ld_interface=yes
9015         ;;
9016     esac
9017   fi
9018
9019   if test "$lt_use_gnu_ld_interface" = yes; then
9020     # If archive_cmds runs LD, not CC, wlarc should be empty
9021     wlarc='${wl}'
9022
9023     # Set some defaults for GNU ld with shared library support. These
9024     # are reset later if shared libraries are not supported. Putting them
9025     # here allows them to be overridden if necessary.
9026     runpath_var=LD_RUN_PATH
9027     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9028     export_dynamic_flag_spec='${wl}--export-dynamic'
9029     # ancient GNU ld didn't support --whole-archive et. al.
9030     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9031       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9032     else
9033       whole_archive_flag_spec=
9034     fi
9035     supports_anon_versioning=no
9036     case `$LD -v 2>&1` in
9037       *GNU\ gold*) supports_anon_versioning=yes ;;
9038       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9039       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9040       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9041       *\ 2.11.*) ;; # other 2.11 versions
9042       *) supports_anon_versioning=yes ;;
9043     esac
9044
9045     # See if GNU ld supports shared libraries.
9046     case $host_os in
9047     aix[3-9]*)
9048       # On AIX/PPC, the GNU linker is very broken
9049       if test "$host_cpu" != ia64; then
9050         ld_shlibs=no
9051         cat <<_LT_EOF 1>&2
9052
9053 *** Warning: the GNU linker, at least up to release 2.19, is reported
9054 *** to be unable to reliably create shared libraries on AIX.
9055 *** Therefore, libtool is disabling shared libraries support.  If you
9056 *** really care for shared libraries, you may want to install binutils
9057 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9058 *** You will then need to restart the configuration process.
9059
9060 _LT_EOF
9061       fi
9062       ;;
9063
9064     amigaos*)
9065       case $host_cpu in
9066       powerpc)
9067             # see comment about AmigaOS4 .so support
9068             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069             archive_expsym_cmds=''
9070         ;;
9071       m68k)
9072             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)'
9073             hardcode_libdir_flag_spec='-L$libdir'
9074             hardcode_minus_L=yes
9075         ;;
9076       esac
9077       ;;
9078
9079     beos*)
9080       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9081         allow_undefined_flag=unsupported
9082         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9083         # support --undefined.  This deserves some investigation.  FIXME
9084         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085       else
9086         ld_shlibs=no
9087       fi
9088       ;;
9089
9090     cygwin* | mingw* | pw32* | cegcc*)
9091       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9092       # as there is no search path for DLLs.
9093       hardcode_libdir_flag_spec='-L$libdir'
9094       export_dynamic_flag_spec='${wl}--export-all-symbols'
9095       allow_undefined_flag=unsupported
9096       always_export_symbols=no
9097       enable_shared_with_static_runtimes=yes
9098       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'
9099       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9100
9101       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9102         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9103         # If the export-symbols file already is a .def file (1st line
9104         # is EXPORTS), use it as is; otherwise, prepend...
9105         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9106           cp $export_symbols $output_objdir/$soname.def;
9107         else
9108           echo EXPORTS > $output_objdir/$soname.def;
9109           cat $export_symbols >> $output_objdir/$soname.def;
9110         fi~
9111         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9112       else
9113         ld_shlibs=no
9114       fi
9115       ;;
9116
9117     haiku*)
9118       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119       link_all_deplibs=yes
9120       ;;
9121
9122     interix[3-9]*)
9123       hardcode_direct=no
9124       hardcode_shlibpath_var=no
9125       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9126       export_dynamic_flag_spec='${wl}-E'
9127       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9128       # Instead, shared libraries are loaded at an image base (0x10000000 by
9129       # default) and relocated if they conflict, which is a slow very memory
9130       # consuming and fragmenting process.  To avoid this, we pick a random,
9131       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9132       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9133       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9134       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'
9135       ;;
9136
9137     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9138       tmp_diet=no
9139       if test "$host_os" = linux-dietlibc; then
9140         case $cc_basename in
9141           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9142         esac
9143       fi
9144       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9145          && test "$tmp_diet" = no
9146       then
9147         tmp_addflag=' $pic_flag'
9148         tmp_sharedflag='-shared'
9149         case $cc_basename,$host_cpu in
9150         pgcc*)                          # Portland Group C compiler
9151           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'
9152           tmp_addflag=' $pic_flag'
9153           ;;
9154         pgf77* | pgf90* | pgf95* | pgfortran*)
9155                                         # Portland Group f77 and f90 compilers
9156           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'
9157           tmp_addflag=' $pic_flag -Mnomain' ;;
9158         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9159           tmp_addflag=' -i_dynamic' ;;
9160         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9161           tmp_addflag=' -i_dynamic -nofor_main' ;;
9162         ifc* | ifort*)                  # Intel Fortran compiler
9163           tmp_addflag=' -nofor_main' ;;
9164         lf95*)                          # Lahey Fortran 8.1
9165           whole_archive_flag_spec=
9166           tmp_sharedflag='--shared' ;;
9167         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9168           tmp_sharedflag='-qmkshrobj'
9169           tmp_addflag= ;;
9170         nvcc*)  # Cuda Compiler Driver 2.2
9171           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'
9172           compiler_needs_object=yes
9173           ;;
9174         esac
9175         case `$CC -V 2>&1 | sed 5q` in
9176         *Sun\ C*)                       # Sun C 5.9
9177           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'
9178           compiler_needs_object=yes
9179           tmp_sharedflag='-G' ;;
9180         *Sun\ F*)                       # Sun Fortran 8.3
9181           tmp_sharedflag='-G' ;;
9182         esac
9183         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184
9185         if test "x$supports_anon_versioning" = xyes; then
9186           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9187             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188             echo "local: *; };" >> $output_objdir/$libname.ver~
9189             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9190         fi
9191
9192         case $cc_basename in
9193         xlf* | bgf* | bgxlf* | mpixlf*)
9194           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9195           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9196           hardcode_libdir_flag_spec=
9197           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9198           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9199           if test "x$supports_anon_versioning" = xyes; then
9200             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9201               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9202               echo "local: *; };" >> $output_objdir/$libname.ver~
9203               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9204           fi
9205           ;;
9206         esac
9207       else
9208         ld_shlibs=no
9209       fi
9210       ;;
9211
9212     netbsd*)
9213       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9215         wlarc=
9216       else
9217         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219       fi
9220       ;;
9221
9222     solaris*)
9223       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9224         ld_shlibs=no
9225         cat <<_LT_EOF 1>&2
9226
9227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9228 *** create shared libraries on Solaris systems.  Therefore, libtool
9229 *** is disabling shared libraries support.  We urge you to upgrade GNU
9230 *** binutils to release 2.9.1 or newer.  Another option is to modify
9231 *** your PATH or compiler configuration so that the native linker is
9232 *** used, and then restart.
9233
9234 _LT_EOF
9235       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9238       else
9239         ld_shlibs=no
9240       fi
9241       ;;
9242
9243     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9244       case `$LD -v 2>&1` in
9245         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9246         ld_shlibs=no
9247         cat <<_LT_EOF 1>&2
9248
9249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9250 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9251 *** is disabling shared libraries support.  We urge you to upgrade GNU
9252 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9255
9256 _LT_EOF
9257         ;;
9258         *)
9259           # For security reasons, it is highly recommended that you always
9260           # use absolute paths for naming shared libraries, and exclude the
9261           # DT_RUNPATH tag from executables and libraries.  But doing so
9262           # requires that you compile everything twice, which is a pain.
9263           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9267           else
9268             ld_shlibs=no
9269           fi
9270         ;;
9271       esac
9272       ;;
9273
9274     sunos4*)
9275       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276       wlarc=
9277       hardcode_direct=yes
9278       hardcode_shlibpath_var=no
9279       ;;
9280
9281     *)
9282       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285       else
9286         ld_shlibs=no
9287       fi
9288       ;;
9289     esac
9290
9291     if test "$ld_shlibs" = no; then
9292       runpath_var=
9293       hardcode_libdir_flag_spec=
9294       export_dynamic_flag_spec=
9295       whole_archive_flag_spec=
9296     fi
9297   else
9298     # PORTME fill in a description of your system's linker (not GNU ld)
9299     case $host_os in
9300     aix3*)
9301       allow_undefined_flag=unsupported
9302       always_export_symbols=yes
9303       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'
9304       # Note: this linker hardcodes the directories in LIBPATH if there
9305       # are no directories specified by -L.
9306       hardcode_minus_L=yes
9307       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9308         # Neither direct hardcoding nor static linking is supported with a
9309         # broken collect2.
9310         hardcode_direct=unsupported
9311       fi
9312       ;;
9313
9314     aix[4-9]*)
9315       if test "$host_cpu" = ia64; then
9316         # On IA64, the linker does run time linking by default, so we don't
9317         # have to do anything special.
9318         aix_use_runtimelinking=no
9319         exp_sym_flag='-Bexport'
9320         no_entry_flag=""
9321       else
9322         # If we're using GNU nm, then we don't want the "-C" option.
9323         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9324         # Also, AIX nm treats weak defined symbols like other global
9325         # defined symbols, whereas GNU nm marks them as "W".
9326         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9327           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9328         else
9329           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9330         fi
9331         aix_use_runtimelinking=no
9332
9333         # Test if we are trying to use run time linking or normal
9334         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9335         # need to do runtime linking.
9336         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9337           for ld_flag in $LDFLAGS; do
9338           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9339             aix_use_runtimelinking=yes
9340             break
9341           fi
9342           done
9343           ;;
9344         esac
9345
9346         exp_sym_flag='-bexport'
9347         no_entry_flag='-bnoentry'
9348       fi
9349
9350       # When large executables or shared objects are built, AIX ld can
9351       # have problems creating the table of contents.  If linking a library
9352       # or program results in "error TOC overflow" add -mminimal-toc to
9353       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9354       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9355
9356       archive_cmds=''
9357       hardcode_direct=yes
9358       hardcode_direct_absolute=yes
9359       hardcode_libdir_separator=':'
9360       link_all_deplibs=yes
9361       file_list_spec='${wl}-f,'
9362
9363       if test "$GCC" = yes; then
9364         case $host_os in aix4.[012]|aix4.[012].*)
9365         # We only want to do this on AIX 4.2 and lower, the check
9366         # below for broken collect2 doesn't work under 4.3+
9367           collect2name=`${CC} -print-prog-name=collect2`
9368           if test -f "$collect2name" &&
9369            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9370           then
9371           # We have reworked collect2
9372           :
9373           else
9374           # We have old collect2
9375           hardcode_direct=unsupported
9376           # It fails to find uninstalled libraries when the uninstalled
9377           # path is not listed in the libpath.  Setting hardcode_minus_L
9378           # to unsupported forces relinking
9379           hardcode_minus_L=yes
9380           hardcode_libdir_flag_spec='-L$libdir'
9381           hardcode_libdir_separator=
9382           fi
9383           ;;
9384         esac
9385         shared_flag='-shared'
9386         if test "$aix_use_runtimelinking" = yes; then
9387           shared_flag="$shared_flag "'${wl}-G'
9388         fi
9389       else
9390         # not using gcc
9391         if test "$host_cpu" = ia64; then
9392         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9393         # chokes on -Wl,-G. The following line is correct:
9394           shared_flag='-G'
9395         else
9396           if test "$aix_use_runtimelinking" = yes; then
9397             shared_flag='${wl}-G'
9398           else
9399             shared_flag='${wl}-bM:SRE'
9400           fi
9401         fi
9402       fi
9403
9404       export_dynamic_flag_spec='${wl}-bexpall'
9405       # It seems that -bexpall does not export symbols beginning with
9406       # underscore (_), so it is better to generate a list of symbols to export.
9407       always_export_symbols=yes
9408       if test "$aix_use_runtimelinking" = yes; then
9409         # Warning - without using the other runtime loading flags (-brtl),
9410         # -berok will link without error, but may produce a broken library.
9411         allow_undefined_flag='-berok'
9412         # Determine the default libpath from the value encoded in an
9413         # empty executable.
9414         if test "${lt_cv_aix_libpath+set}" = set; then
9415   aix_libpath=$lt_cv_aix_libpath
9416 else
9417   if test "${lt_cv_aix_libpath_+set}" = set; then :
9418   $as_echo_n "(cached) " >&6
9419 else
9420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h.  */
9422
9423 int
9424 main ()
9425 {
9426
9427   ;
9428   return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432
9433   lt_aix_libpath_sed='
9434       /Import File Strings/,/^$/ {
9435           /^0/ {
9436               s/^0  *\([^ ]*\) *$/\1/
9437               p
9438           }
9439       }'
9440   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9441   # Check for a 64-bit object if we didn't find anything.
9442   if test -z "$lt_cv_aix_libpath_"; then
9443     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9444   fi
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext \
9447     conftest$ac_exeext conftest.$ac_ext
9448   if test -z "$lt_cv_aix_libpath_"; then
9449     lt_cv_aix_libpath_="/usr/lib:/lib"
9450   fi
9451
9452 fi
9453
9454   aix_libpath=$lt_cv_aix_libpath_
9455 fi
9456
9457         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9458         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9459       else
9460         if test "$host_cpu" = ia64; then
9461           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9462           allow_undefined_flag="-z nodefs"
9463           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"
9464         else
9465          # Determine the default libpath from the value encoded in an
9466          # empty executable.
9467          if test "${lt_cv_aix_libpath+set}" = set; then
9468   aix_libpath=$lt_cv_aix_libpath
9469 else
9470   if test "${lt_cv_aix_libpath_+set}" = set; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h.  */
9475
9476 int
9477 main ()
9478 {
9479
9480   ;
9481   return 0;
9482 }
9483 _ACEOF
9484 if ac_fn_c_try_link "$LINENO"; then :
9485
9486   lt_aix_libpath_sed='
9487       /Import File Strings/,/^$/ {
9488           /^0/ {
9489               s/^0  *\([^ ]*\) *$/\1/
9490               p
9491           }
9492       }'
9493   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494   # Check for a 64-bit object if we didn't find anything.
9495   if test -z "$lt_cv_aix_libpath_"; then
9496     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9497   fi
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500     conftest$ac_exeext conftest.$ac_ext
9501   if test -z "$lt_cv_aix_libpath_"; then
9502     lt_cv_aix_libpath_="/usr/lib:/lib"
9503   fi
9504
9505 fi
9506
9507   aix_libpath=$lt_cv_aix_libpath_
9508 fi
9509
9510          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9511           # Warning - without using the other run time loading flags,
9512           # -berok will link without error, but may produce a broken library.
9513           no_undefined_flag=' ${wl}-bernotok'
9514           allow_undefined_flag=' ${wl}-berok'
9515           if test "$with_gnu_ld" = yes; then
9516             # We only use this code for GNU lds that support --whole-archive.
9517             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9518           else
9519             # Exported symbols can be pulled into shared objects from archives
9520             whole_archive_flag_spec='$convenience'
9521           fi
9522           archive_cmds_need_lc=yes
9523           # This is similar to how AIX traditionally builds its shared libraries.
9524           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9525         fi
9526       fi
9527       ;;
9528
9529     amigaos*)
9530       case $host_cpu in
9531       powerpc)
9532             # see comment about AmigaOS4 .so support
9533             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534             archive_expsym_cmds=''
9535         ;;
9536       m68k)
9537             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)'
9538             hardcode_libdir_flag_spec='-L$libdir'
9539             hardcode_minus_L=yes
9540         ;;
9541       esac
9542       ;;
9543
9544     bsdi[45]*)
9545       export_dynamic_flag_spec=-rdynamic
9546       ;;
9547
9548     cygwin* | mingw* | pw32* | cegcc*)
9549       # When not using gcc, we currently assume that we are using
9550       # Microsoft Visual C++.
9551       # hardcode_libdir_flag_spec is actually meaningless, as there is
9552       # no search path for DLLs.
9553       case $cc_basename in
9554       cl*)
9555         # Native MSVC
9556         hardcode_libdir_flag_spec=' '
9557         allow_undefined_flag=unsupported
9558         always_export_symbols=yes
9559         file_list_spec='@'
9560         # Tell ltmain to make .lib files, not .a files.
9561         libext=lib
9562         # Tell ltmain to make .dll files, not .so files.
9563         shrext_cmds=".dll"
9564         # FIXME: Setting linknames here is a bad hack.
9565         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9566         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9567             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9568           else
9569             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9570           fi~
9571           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9572           linknames='
9573         # The linker will not automatically build a static lib if we build a DLL.
9574         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9575         enable_shared_with_static_runtimes=yes
9576         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9577         # Don't use ranlib
9578         old_postinstall_cmds='chmod 644 $oldlib'
9579         postlink_cmds='lt_outputfile="@OUTPUT@"~
9580           lt_tool_outputfile="@TOOL_OUTPUT@"~
9581           case $lt_outputfile in
9582             *.exe|*.EXE) ;;
9583             *)
9584               lt_outputfile="$lt_outputfile.exe"
9585               lt_tool_outputfile="$lt_tool_outputfile.exe"
9586               ;;
9587           esac~
9588           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9589             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9590             $RM "$lt_outputfile.manifest";
9591           fi'
9592         ;;
9593       *)
9594         # Assume MSVC wrapper
9595         hardcode_libdir_flag_spec=' '
9596         allow_undefined_flag=unsupported
9597         # Tell ltmain to make .lib files, not .a files.
9598         libext=lib
9599         # Tell ltmain to make .dll files, not .so files.
9600         shrext_cmds=".dll"
9601         # FIXME: Setting linknames here is a bad hack.
9602         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9603         # The linker will automatically build a .lib file if we build a DLL.
9604         old_archive_from_new_cmds='true'
9605         # FIXME: Should let the user specify the lib program.
9606         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9607         enable_shared_with_static_runtimes=yes
9608         ;;
9609       esac
9610       ;;
9611
9612     darwin* | rhapsody*)
9613
9614
9615   archive_cmds_need_lc=no
9616   hardcode_direct=no
9617   hardcode_automatic=yes
9618   hardcode_shlibpath_var=unsupported
9619   if test "$lt_cv_ld_force_load" = "yes"; then
9620     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\"`'
9621   else
9622     whole_archive_flag_spec=''
9623   fi
9624   link_all_deplibs=yes
9625   allow_undefined_flag="$_lt_dar_allow_undefined"
9626   case $cc_basename in
9627      ifort*) _lt_dar_can_shared=yes ;;
9628      *) _lt_dar_can_shared=$GCC ;;
9629   esac
9630   if test "$_lt_dar_can_shared" = "yes"; then
9631     output_verbose_link_cmd=func_echo_all
9632     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9633     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9634     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}"
9635     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}"
9636
9637   else
9638   ld_shlibs=no
9639   fi
9640
9641       ;;
9642
9643     dgux*)
9644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645       hardcode_libdir_flag_spec='-L$libdir'
9646       hardcode_shlibpath_var=no
9647       ;;
9648
9649     freebsd1*)
9650       ld_shlibs=no
9651       ;;
9652
9653     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654     # support.  Future versions do this automatically, but an explicit c++rt0.o
9655     # does not break anything, and helps significantly (at the cost of a little
9656     # extra space).
9657     freebsd2.2*)
9658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659       hardcode_libdir_flag_spec='-R$libdir'
9660       hardcode_direct=yes
9661       hardcode_shlibpath_var=no
9662       ;;
9663
9664     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665     freebsd2*)
9666       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667       hardcode_direct=yes
9668       hardcode_minus_L=yes
9669       hardcode_shlibpath_var=no
9670       ;;
9671
9672     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673     freebsd* | dragonfly*)
9674       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675       hardcode_libdir_flag_spec='-R$libdir'
9676       hardcode_direct=yes
9677       hardcode_shlibpath_var=no
9678       ;;
9679
9680     hpux9*)
9681       if test "$GCC" = yes; then
9682         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9683       else
9684         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9685       fi
9686       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687       hardcode_libdir_separator=:
9688       hardcode_direct=yes
9689
9690       # hardcode_minus_L: Not really in the search PATH,
9691       # but as the default location of the library.
9692       hardcode_minus_L=yes
9693       export_dynamic_flag_spec='${wl}-E'
9694       ;;
9695
9696     hpux10*)
9697       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699       else
9700         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701       fi
9702       if test "$with_gnu_ld" = no; then
9703         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9704         hardcode_libdir_flag_spec_ld='+b $libdir'
9705         hardcode_libdir_separator=:
9706         hardcode_direct=yes
9707         hardcode_direct_absolute=yes
9708         export_dynamic_flag_spec='${wl}-E'
9709         # hardcode_minus_L: Not really in the search PATH,
9710         # but as the default location of the library.
9711         hardcode_minus_L=yes
9712       fi
9713       ;;
9714
9715     hpux11*)
9716       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9717         case $host_cpu in
9718         hppa*64*)
9719           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720           ;;
9721         ia64*)
9722           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9723           ;;
9724         *)
9725           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9726           ;;
9727         esac
9728       else
9729         case $host_cpu in
9730         hppa*64*)
9731           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9732           ;;
9733         ia64*)
9734           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9735           ;;
9736         *)
9737
9738           # Older versions of the 11.00 compiler do not understand -b yet
9739           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9740           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9741 $as_echo_n "checking if $CC understands -b... " >&6; }
9742 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9743   $as_echo_n "(cached) " >&6
9744 else
9745   lt_cv_prog_compiler__b=no
9746    save_LDFLAGS="$LDFLAGS"
9747    LDFLAGS="$LDFLAGS -b"
9748    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9749    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9750      # The linker can only warn and ignore the option if not recognized
9751      # So say no if there are warnings
9752      if test -s conftest.err; then
9753        # Append any errors to the config.log.
9754        cat conftest.err 1>&5
9755        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9756        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9757        if diff conftest.exp conftest.er2 >/dev/null; then
9758          lt_cv_prog_compiler__b=yes
9759        fi
9760      else
9761        lt_cv_prog_compiler__b=yes
9762      fi
9763    fi
9764    $RM -r conftest*
9765    LDFLAGS="$save_LDFLAGS"
9766
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9769 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9770
9771 if test x"$lt_cv_prog_compiler__b" = xyes; then
9772     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9775 fi
9776
9777           ;;
9778         esac
9779       fi
9780       if test "$with_gnu_ld" = no; then
9781         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782         hardcode_libdir_separator=:
9783
9784         case $host_cpu in
9785         hppa*64*|ia64*)
9786           hardcode_direct=no
9787           hardcode_shlibpath_var=no
9788           ;;
9789         *)
9790           hardcode_direct=yes
9791           hardcode_direct_absolute=yes
9792           export_dynamic_flag_spec='${wl}-E'
9793
9794           # hardcode_minus_L: Not really in the search PATH,
9795           # but as the default location of the library.
9796           hardcode_minus_L=yes
9797           ;;
9798         esac
9799       fi
9800       ;;
9801
9802     irix5* | irix6* | nonstopux*)
9803       if test "$GCC" = yes; then
9804         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'
9805         # Try to use the -exported_symbol ld option, if it does not
9806         # work, assume that -exports_file does not work either and
9807         # implicitly export all symbols.
9808         # This should be the same for all languages, so no per-tag cache variable.
9809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9810 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9811 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   save_LDFLAGS="$LDFLAGS"
9815            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9816            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h.  */
9818 int foo (void) { return 0; }
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821   lt_cv_irix_exported_symbol=yes
9822 else
9823   lt_cv_irix_exported_symbol=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext \
9826     conftest$ac_exeext conftest.$ac_ext
9827            LDFLAGS="$save_LDFLAGS"
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9830 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9831         if test "$lt_cv_irix_exported_symbol" = yes; then
9832           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'
9833         fi
9834       else
9835         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'
9836         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'
9837       fi
9838       archive_cmds_need_lc='no'
9839       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840       hardcode_libdir_separator=:
9841       inherit_rpath=yes
9842       link_all_deplibs=yes
9843       ;;
9844
9845     netbsd*)
9846       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9847         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9848       else
9849         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9850       fi
9851       hardcode_libdir_flag_spec='-R$libdir'
9852       hardcode_direct=yes
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     newsos6)
9857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858       hardcode_direct=yes
9859       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860       hardcode_libdir_separator=:
9861       hardcode_shlibpath_var=no
9862       ;;
9863
9864     *nto* | *qnx*)
9865       ;;
9866
9867     openbsd*)
9868       if test -f /usr/libexec/ld.so; then
9869         hardcode_direct=yes
9870         hardcode_shlibpath_var=no
9871         hardcode_direct_absolute=yes
9872         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9873           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9875           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9876           export_dynamic_flag_spec='${wl}-E'
9877         else
9878           case $host_os in
9879            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9880              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881              hardcode_libdir_flag_spec='-R$libdir'
9882              ;;
9883            *)
9884              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9885              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9886              ;;
9887           esac
9888         fi
9889       else
9890         ld_shlibs=no
9891       fi
9892       ;;
9893
9894     os2*)
9895       hardcode_libdir_flag_spec='-L$libdir'
9896       hardcode_minus_L=yes
9897       allow_undefined_flag=unsupported
9898       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9899       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9900       ;;
9901
9902     osf3*)
9903       if test "$GCC" = yes; then
9904         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9905         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'
9906       else
9907         allow_undefined_flag=' -expect_unresolved \*'
9908         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'
9909       fi
9910       archive_cmds_need_lc='no'
9911       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912       hardcode_libdir_separator=:
9913       ;;
9914
9915     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9916       if test "$GCC" = yes; then
9917         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9918         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'
9919         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920       else
9921         allow_undefined_flag=' -expect_unresolved \*'
9922         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'
9923         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~
9924         $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'
9925
9926         # Both c and cxx compiler support -rpath directly
9927         hardcode_libdir_flag_spec='-rpath $libdir'
9928       fi
9929       archive_cmds_need_lc='no'
9930       hardcode_libdir_separator=:
9931       ;;
9932
9933     solaris*)
9934       no_undefined_flag=' -z defs'
9935       if test "$GCC" = yes; then
9936         wlarc='${wl}'
9937         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9939           $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'
9940       else
9941         case `$CC -V 2>&1` in
9942         *"Compilers 5.0"*)
9943           wlarc=''
9944           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9947           ;;
9948         *)
9949           wlarc='${wl}'
9950           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9951           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9953           ;;
9954         esac
9955       fi
9956       hardcode_libdir_flag_spec='-R$libdir'
9957       hardcode_shlibpath_var=no
9958       case $host_os in
9959       solaris2.[0-5] | solaris2.[0-5].*) ;;
9960       *)
9961         # The compiler driver will combine and reorder linker options,
9962         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9963         # but is careful enough not to reorder.
9964         # Supported since Solaris 2.6 (maybe 2.5.1?)
9965         if test "$GCC" = yes; then
9966           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9967         else
9968           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9969         fi
9970         ;;
9971       esac
9972       link_all_deplibs=yes
9973       ;;
9974
9975     sunos4*)
9976       if test "x$host_vendor" = xsequent; then
9977         # Use $CC to link under sequent, because it throws in some extra .o
9978         # files that make .init and .fini sections work.
9979         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9980       else
9981         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9982       fi
9983       hardcode_libdir_flag_spec='-L$libdir'
9984       hardcode_direct=yes
9985       hardcode_minus_L=yes
9986       hardcode_shlibpath_var=no
9987       ;;
9988
9989     sysv4)
9990       case $host_vendor in
9991         sni)
9992           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993           hardcode_direct=yes # is this really true???
9994         ;;
9995         siemens)
9996           ## LD is ld it makes a PLAMLIB
9997           ## CC just makes a GrossModule.
9998           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9999           reload_cmds='$CC -r -o $output$reload_objs'
10000           hardcode_direct=no
10001         ;;
10002         motorola)
10003           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10005         ;;
10006       esac
10007       runpath_var='LD_RUN_PATH'
10008       hardcode_shlibpath_var=no
10009       ;;
10010
10011     sysv4.3*)
10012       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013       hardcode_shlibpath_var=no
10014       export_dynamic_flag_spec='-Bexport'
10015       ;;
10016
10017     sysv4*MP*)
10018       if test -d /usr/nec; then
10019         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020         hardcode_shlibpath_var=no
10021         runpath_var=LD_RUN_PATH
10022         hardcode_runpath_var=yes
10023         ld_shlibs=yes
10024       fi
10025       ;;
10026
10027     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10028       no_undefined_flag='${wl}-z,text'
10029       archive_cmds_need_lc=no
10030       hardcode_shlibpath_var=no
10031       runpath_var='LD_RUN_PATH'
10032
10033       if test "$GCC" = yes; then
10034         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036       else
10037         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039       fi
10040       ;;
10041
10042     sysv5* | sco3.2v5* | sco5v6*)
10043       # Note: We can NOT use -z defs as we might desire, because we do not
10044       # link with -lc, and that would cause any symbols used from libc to
10045       # always be unresolved, which means just about no library would
10046       # ever link correctly.  If we're not using GNU ld we use -z text
10047       # though, which does catch some bad symbols but isn't as heavy-handed
10048       # as -z defs.
10049       no_undefined_flag='${wl}-z,text'
10050       allow_undefined_flag='${wl}-z,nodefs'
10051       archive_cmds_need_lc=no
10052       hardcode_shlibpath_var=no
10053       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10054       hardcode_libdir_separator=':'
10055       link_all_deplibs=yes
10056       export_dynamic_flag_spec='${wl}-Bexport'
10057       runpath_var='LD_RUN_PATH'
10058
10059       if test "$GCC" = yes; then
10060         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062       else
10063         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065       fi
10066       ;;
10067
10068     uts4*)
10069       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070       hardcode_libdir_flag_spec='-L$libdir'
10071       hardcode_shlibpath_var=no
10072       ;;
10073
10074     *)
10075       ld_shlibs=no
10076       ;;
10077     esac
10078
10079     if test x$host_vendor = xsni; then
10080       case $host in
10081       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10082         export_dynamic_flag_spec='${wl}-Blargedynsym'
10083         ;;
10084       esac
10085     fi
10086   fi
10087
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10089 $as_echo "$ld_shlibs" >&6; }
10090 test "$ld_shlibs" = no && can_build_shared=no
10091
10092 with_gnu_ld=$with_gnu_ld
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108 #
10109 # Do we need to explicitly link libc?
10110 #
10111 case "x$archive_cmds_need_lc" in
10112 x|xyes)
10113   # Assume -lc should be added
10114   archive_cmds_need_lc=yes
10115
10116   if test "$enable_shared" = yes && test "$GCC" = yes; then
10117     case $archive_cmds in
10118     *'~'*)
10119       # FIXME: we may have to deal with multi-command sequences.
10120       ;;
10121     '$CC '*)
10122       # Test whether the compiler implicitly links with -lc since on some
10123       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10124       # to ld, don't add -lc before -lgcc.
10125       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10127 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   $RM conftest*
10131         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10132
10133         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10134   (eval $ac_compile) 2>&5
10135   ac_status=$?
10136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10137   test $ac_status = 0; } 2>conftest.err; then
10138           soname=conftest
10139           lib=conftest
10140           libobjs=conftest.$ac_objext
10141           deplibs=
10142           wl=$lt_prog_compiler_wl
10143           pic_flag=$lt_prog_compiler_pic
10144           compiler_flags=-v
10145           linker_flags=-v
10146           verstring=
10147           output_objdir=.
10148           libname=conftest
10149           lt_save_allow_undefined_flag=$allow_undefined_flag
10150           allow_undefined_flag=
10151           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10152   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10153   ac_status=$?
10154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155   test $ac_status = 0; }
10156           then
10157             lt_cv_archive_cmds_need_lc=no
10158           else
10159             lt_cv_archive_cmds_need_lc=yes
10160           fi
10161           allow_undefined_flag=$lt_save_allow_undefined_flag
10162         else
10163           cat conftest.err 1>&5
10164         fi
10165         $RM conftest*
10166
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10169 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10170       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10171       ;;
10172     esac
10173   fi
10174   ;;
10175 esac
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10335
10336 if test "$GCC" = yes; then
10337   case $host_os in
10338     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10339     *) lt_awk_arg="/^libraries:/" ;;
10340   esac
10341   case $host_os in
10342     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10343     *) lt_sed_strip_eq="s,=/,/,g" ;;
10344   esac
10345   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10346   case $lt_search_path_spec in
10347   *\;*)
10348     # if the path contains ";" then we assume it to be the separator
10349     # otherwise default to the standard path separator (i.e. ":") - it is
10350     # assumed that no part of a normal pathname contains ";" but that should
10351     # okay in the real world where ";" in dirpaths is itself problematic.
10352     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10353     ;;
10354   *)
10355     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10356     ;;
10357   esac
10358   # Ok, now we have the path, separated by spaces, we can step through it
10359   # and add multilib dir if necessary.
10360   lt_tmp_lt_search_path_spec=
10361   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10362   for lt_sys_path in $lt_search_path_spec; do
10363     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10364       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10365     else
10366       test -d "$lt_sys_path" && \
10367         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10368     fi
10369   done
10370   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10371 BEGIN {RS=" "; FS="/|\n";} {
10372   lt_foo="";
10373   lt_count=0;
10374   for (lt_i = NF; lt_i > 0; lt_i--) {
10375     if ($lt_i != "" && $lt_i != ".") {
10376       if ($lt_i == "..") {
10377         lt_count++;
10378       } else {
10379         if (lt_count == 0) {
10380           lt_foo="/" $lt_i lt_foo;
10381         } else {
10382           lt_count--;
10383         }
10384       }
10385     }
10386   }
10387   if (lt_foo != "") { lt_freq[lt_foo]++; }
10388   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10389 }'`
10390   # AWK program above erroneously prepends '/' to C:/dos/paths
10391   # for these hosts.
10392   case $host_os in
10393     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10394       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10395   esac
10396   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10397 else
10398   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10399 fi
10400 library_names_spec=
10401 libname_spec='lib$name'
10402 soname_spec=
10403 shrext_cmds=".so"
10404 postinstall_cmds=
10405 postuninstall_cmds=
10406 finish_cmds=
10407 finish_eval=
10408 shlibpath_var=
10409 shlibpath_overrides_runpath=unknown
10410 version_type=none
10411 dynamic_linker="$host_os ld.so"
10412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10413 need_lib_prefix=unknown
10414 hardcode_into_libs=no
10415
10416 # when you set need_version to no, make sure it does not cause -set_version
10417 # flags to be left without arguments
10418 need_version=unknown
10419
10420 case $host_os in
10421 aix3*)
10422   version_type=linux
10423   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10424   shlibpath_var=LIBPATH
10425
10426   # AIX 3 has no versioning support, so we append a major version to the name.
10427   soname_spec='${libname}${release}${shared_ext}$major'
10428   ;;
10429
10430 aix[4-9]*)
10431   version_type=linux
10432   need_lib_prefix=no
10433   need_version=no
10434   hardcode_into_libs=yes
10435   if test "$host_cpu" = ia64; then
10436     # AIX 5 supports IA64
10437     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10438     shlibpath_var=LD_LIBRARY_PATH
10439   else
10440     # With GCC up to 2.95.x, collect2 would create an import file
10441     # for dependence libraries.  The import file would start with
10442     # the line `#! .'.  This would cause the generated library to
10443     # depend on `.', always an invalid library.  This was fixed in
10444     # development snapshots of GCC prior to 3.0.
10445     case $host_os in
10446       aix4 | aix4.[01] | aix4.[01].*)
10447       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10448            echo ' yes '
10449            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10450         :
10451       else
10452         can_build_shared=no
10453       fi
10454       ;;
10455     esac
10456     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10457     # soname into executable. Probably we can add versioning support to
10458     # collect2, so additional links can be useful in future.
10459     if test "$aix_use_runtimelinking" = yes; then
10460       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10461       # instead of lib<name>.a to let people know that these are not
10462       # typical AIX shared libraries.
10463       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464     else
10465       # We preserve .a as extension for shared libraries through AIX4.2
10466       # and later when we are not doing run time linking.
10467       library_names_spec='${libname}${release}.a $libname.a'
10468       soname_spec='${libname}${release}${shared_ext}$major'
10469     fi
10470     shlibpath_var=LIBPATH
10471   fi
10472   ;;
10473
10474 amigaos*)
10475   case $host_cpu in
10476   powerpc)
10477     # Since July 2007 AmigaOS4 officially supports .so libraries.
10478     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480     ;;
10481   m68k)
10482     library_names_spec='$libname.ixlibrary $libname.a'
10483     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10484     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10485     ;;
10486   esac
10487   ;;
10488
10489 beos*)
10490   library_names_spec='${libname}${shared_ext}'
10491   dynamic_linker="$host_os ld.so"
10492   shlibpath_var=LIBRARY_PATH
10493   ;;
10494
10495 bsdi[45]*)
10496   version_type=linux
10497   need_version=no
10498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499   soname_spec='${libname}${release}${shared_ext}$major'
10500   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10501   shlibpath_var=LD_LIBRARY_PATH
10502   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10503   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10504   # the default ld.so.conf also contains /usr/contrib/lib and
10505   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10506   # libtool to hard-code these into programs
10507   ;;
10508
10509 cygwin* | mingw* | pw32* | cegcc*)
10510   version_type=windows
10511   shrext_cmds=".dll"
10512   need_version=no
10513   need_lib_prefix=no
10514
10515   case $GCC,$cc_basename in
10516   yes,*)
10517     # gcc
10518     library_names_spec='$libname.dll.a'
10519     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10520     postinstall_cmds='base_file=`basename \${file}`~
10521       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10522       dldir=$destdir/`dirname \$dlpath`~
10523       test -d \$dldir || mkdir -p \$dldir~
10524       $install_prog $dir/$dlname \$dldir/$dlname~
10525       chmod a+x \$dldir/$dlname~
10526       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10527         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10528       fi'
10529     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10530       dlpath=$dir/\$dldll~
10531        $RM \$dlpath'
10532     shlibpath_overrides_runpath=yes
10533
10534     case $host_os in
10535     cygwin*)
10536       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10537       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538
10539       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10540       ;;
10541     mingw* | cegcc*)
10542       # MinGW DLLs use traditional 'lib' prefix
10543       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544       ;;
10545     pw32*)
10546       # pw32 DLLs use 'pw' prefix rather than 'lib'
10547       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548       ;;
10549     esac
10550     dynamic_linker='Win32 ld.exe'
10551     ;;
10552
10553   *,cl*)
10554     # Native MSVC
10555     libname_spec='$name'
10556     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10557     library_names_spec='${libname}.dll.lib'
10558
10559     case $build_os in
10560     mingw*)
10561       sys_lib_search_path_spec=
10562       lt_save_ifs=$IFS
10563       IFS=';'
10564       for lt_path in $LIB
10565       do
10566         IFS=$lt_save_ifs
10567         # Let DOS variable expansion print the short 8.3 style file name.
10568         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10569         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10570       done
10571       IFS=$lt_save_ifs
10572       # Convert to MSYS style.
10573       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10574       ;;
10575     cygwin*)
10576       # Convert to unix form, then to dos form, then back to unix form
10577       # but this time dos style (no spaces!) so that the unix form looks
10578       # like /cygdrive/c/PROGRA~1:/cygdr...
10579       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10580       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10581       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10582       ;;
10583     *)
10584       sys_lib_search_path_spec="$LIB"
10585       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10586         # It is most probably a Windows format PATH.
10587         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10588       else
10589         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10590       fi
10591       # FIXME: find the short name or the path components, as spaces are
10592       # common. (e.g. "Program Files" -> "PROGRA~1")
10593       ;;
10594     esac
10595
10596     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10597     postinstall_cmds='base_file=`basename \${file}`~
10598       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10599       dldir=$destdir/`dirname \$dlpath`~
10600       test -d \$dldir || mkdir -p \$dldir~
10601       $install_prog $dir/$dlname \$dldir/$dlname'
10602     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10603       dlpath=$dir/\$dldll~
10604        $RM \$dlpath'
10605     shlibpath_overrides_runpath=yes
10606     dynamic_linker='Win32 link.exe'
10607     ;;
10608
10609   *)
10610     # Assume MSVC wrapper
10611     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10612     dynamic_linker='Win32 ld.exe'
10613     ;;
10614   esac
10615   # FIXME: first we should search . and the directory the executable is in
10616   shlibpath_var=PATH
10617   ;;
10618
10619 darwin* | rhapsody*)
10620   dynamic_linker="$host_os dyld"
10621   version_type=darwin
10622   need_lib_prefix=no
10623   need_version=no
10624   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10625   soname_spec='${libname}${release}${major}$shared_ext'
10626   shlibpath_overrides_runpath=yes
10627   shlibpath_var=DYLD_LIBRARY_PATH
10628   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10629
10630   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10631   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10632   ;;
10633
10634 dgux*)
10635   version_type=linux
10636   need_lib_prefix=no
10637   need_version=no
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10639   soname_spec='${libname}${release}${shared_ext}$major'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   ;;
10642
10643 freebsd1*)
10644   dynamic_linker=no
10645   ;;
10646
10647 freebsd* | dragonfly*)
10648   # DragonFly does not have aout.  When/if they implement a new
10649   # versioning mechanism, adjust this.
10650   if test -x /usr/bin/objformat; then
10651     objformat=`/usr/bin/objformat`
10652   else
10653     case $host_os in
10654     freebsd[123]*) objformat=aout ;;
10655     *) objformat=elf ;;
10656     esac
10657   fi
10658   version_type=freebsd-$objformat
10659   case $version_type in
10660     freebsd-elf*)
10661       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10662       need_version=no
10663       need_lib_prefix=no
10664       ;;
10665     freebsd-*)
10666       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10667       need_version=yes
10668       ;;
10669   esac
10670   shlibpath_var=LD_LIBRARY_PATH
10671   case $host_os in
10672   freebsd2*)
10673     shlibpath_overrides_runpath=yes
10674     ;;
10675   freebsd3.[01]* | freebsdelf3.[01]*)
10676     shlibpath_overrides_runpath=yes
10677     hardcode_into_libs=yes
10678     ;;
10679   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10680   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10681     shlibpath_overrides_runpath=no
10682     hardcode_into_libs=yes
10683     ;;
10684   *) # from 4.6 on, and DragonFly
10685     shlibpath_overrides_runpath=yes
10686     hardcode_into_libs=yes
10687     ;;
10688   esac
10689   ;;
10690
10691 gnu*)
10692   version_type=linux
10693   need_lib_prefix=no
10694   need_version=no
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   hardcode_into_libs=yes
10699   ;;
10700
10701 haiku*)
10702   version_type=linux
10703   need_lib_prefix=no
10704   need_version=no
10705   dynamic_linker="$host_os runtime_loader"
10706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10707   soname_spec='${libname}${release}${shared_ext}$major'
10708   shlibpath_var=LIBRARY_PATH
10709   shlibpath_overrides_runpath=yes
10710   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10711   hardcode_into_libs=yes
10712   ;;
10713
10714 hpux9* | hpux10* | hpux11*)
10715   # Give a soname corresponding to the major version so that dld.sl refuses to
10716   # link against other versions.
10717   version_type=sunos
10718   need_lib_prefix=no
10719   need_version=no
10720   case $host_cpu in
10721   ia64*)
10722     shrext_cmds='.so'
10723     hardcode_into_libs=yes
10724     dynamic_linker="$host_os dld.so"
10725     shlibpath_var=LD_LIBRARY_PATH
10726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728     soname_spec='${libname}${release}${shared_ext}$major'
10729     if test "X$HPUX_IA64_MODE" = X32; then
10730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10731     else
10732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10733     fi
10734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10735     ;;
10736   hppa*64*)
10737     shrext_cmds='.sl'
10738     hardcode_into_libs=yes
10739     dynamic_linker="$host_os dld.sl"
10740     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743     soname_spec='${libname}${release}${shared_ext}$major'
10744     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10746     ;;
10747   *)
10748     shrext_cmds='.sl'
10749     dynamic_linker="$host_os dld.sl"
10750     shlibpath_var=SHLIB_PATH
10751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753     soname_spec='${libname}${release}${shared_ext}$major'
10754     ;;
10755   esac
10756   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10757   postinstall_cmds='chmod 555 $lib'
10758   # or fails outright, so override atomically:
10759   install_override_mode=555
10760   ;;
10761
10762 interix[3-9]*)
10763   version_type=linux
10764   need_lib_prefix=no
10765   need_version=no
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767   soname_spec='${libname}${release}${shared_ext}$major'
10768   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10769   shlibpath_var=LD_LIBRARY_PATH
10770   shlibpath_overrides_runpath=no
10771   hardcode_into_libs=yes
10772   ;;
10773
10774 irix5* | irix6* | nonstopux*)
10775   case $host_os in
10776     nonstopux*) version_type=nonstopux ;;
10777     *)
10778         if test "$lt_cv_prog_gnu_ld" = yes; then
10779                 version_type=linux
10780         else
10781                 version_type=irix
10782         fi ;;
10783   esac
10784   need_lib_prefix=no
10785   need_version=no
10786   soname_spec='${libname}${release}${shared_ext}$major'
10787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10788   case $host_os in
10789   irix5* | nonstopux*)
10790     libsuff= shlibsuff=
10791     ;;
10792   *)
10793     case $LD in # libtool.m4 will add one of these switches to LD
10794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10795       libsuff= shlibsuff= libmagic=32-bit;;
10796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10797       libsuff=32 shlibsuff=N32 libmagic=N32;;
10798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10800     *) libsuff= shlibsuff= libmagic=never-match;;
10801     esac
10802     ;;
10803   esac
10804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10805   shlibpath_overrides_runpath=no
10806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10808   hardcode_into_libs=yes
10809   ;;
10810
10811 # No shared lib support for Linux oldld, aout, or coff.
10812 linux*oldld* | linux*aout* | linux*coff*)
10813   dynamic_linker=no
10814   ;;
10815
10816 # This must be Linux ELF.
10817 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10818   version_type=linux
10819   need_lib_prefix=no
10820   need_version=no
10821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822   soname_spec='${libname}${release}${shared_ext}$major'
10823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10824   shlibpath_var=LD_LIBRARY_PATH
10825   shlibpath_overrides_runpath=no
10826
10827   # Some binutils ld are patched to set DT_RUNPATH
10828   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   lt_cv_shlibpath_overrides_runpath=no
10832     save_LDFLAGS=$LDFLAGS
10833     save_libdir=$libdir
10834     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10835          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h.  */
10838
10839 int
10840 main ()
10841 {
10842
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10849   lt_cv_shlibpath_overrides_runpath=yes
10850 fi
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext \
10853     conftest$ac_exeext conftest.$ac_ext
10854     LDFLAGS=$save_LDFLAGS
10855     libdir=$save_libdir
10856
10857 fi
10858
10859   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10860
10861   # This implies no fast_install, which is unacceptable.
10862   # Some rework will be needed to allow for fast_install
10863   # before this can be enabled.
10864   hardcode_into_libs=yes
10865
10866   # Append ld.so.conf contents to the search path
10867   if test -f /etc/ld.so.conf; then
10868     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' ' '`
10869     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10870   fi
10871
10872   # We used to test for /lib/ld.so.1 and disable shared libraries on
10873   # powerpc, because MkLinux only supported shared libraries with the
10874   # GNU dynamic linker.  Since this was broken with cross compilers,
10875   # most powerpc-linux boxes support dynamic linking these days and
10876   # people can always --disable-shared, the test was removed, and we
10877   # assume the GNU/Linux dynamic linker is in use.
10878   dynamic_linker='GNU/Linux ld.so'
10879   ;;
10880
10881 netbsd*)
10882   version_type=sunos
10883   need_lib_prefix=no
10884   need_version=no
10885   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10888     dynamic_linker='NetBSD (a.out) ld.so'
10889   else
10890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891     soname_spec='${libname}${release}${shared_ext}$major'
10892     dynamic_linker='NetBSD ld.elf_so'
10893   fi
10894   shlibpath_var=LD_LIBRARY_PATH
10895   shlibpath_overrides_runpath=yes
10896   hardcode_into_libs=yes
10897   ;;
10898
10899 newsos6)
10900   version_type=linux
10901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902   shlibpath_var=LD_LIBRARY_PATH
10903   shlibpath_overrides_runpath=yes
10904   ;;
10905
10906 *nto* | *qnx*)
10907   version_type=qnx
10908   need_lib_prefix=no
10909   need_version=no
10910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911   soname_spec='${libname}${release}${shared_ext}$major'
10912   shlibpath_var=LD_LIBRARY_PATH
10913   shlibpath_overrides_runpath=no
10914   hardcode_into_libs=yes
10915   dynamic_linker='ldqnx.so'
10916   ;;
10917
10918 openbsd*)
10919   version_type=sunos
10920   sys_lib_dlsearch_path_spec="/usr/lib"
10921   need_lib_prefix=no
10922   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10923   case $host_os in
10924     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10925     *)                          need_version=no  ;;
10926   esac
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10931     case $host_os in
10932       openbsd2.[89] | openbsd2.[89].*)
10933         shlibpath_overrides_runpath=no
10934         ;;
10935       *)
10936         shlibpath_overrides_runpath=yes
10937         ;;
10938       esac
10939   else
10940     shlibpath_overrides_runpath=yes
10941   fi
10942   ;;
10943
10944 os2*)
10945   libname_spec='$name'
10946   shrext_cmds=".dll"
10947   need_lib_prefix=no
10948   library_names_spec='$libname${shared_ext} $libname.a'
10949   dynamic_linker='OS/2 ld.exe'
10950   shlibpath_var=LIBPATH
10951   ;;
10952
10953 osf3* | osf4* | osf5*)
10954   version_type=osf
10955   need_lib_prefix=no
10956   need_version=no
10957   soname_spec='${libname}${release}${shared_ext}$major'
10958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959   shlibpath_var=LD_LIBRARY_PATH
10960   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10961   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10962   ;;
10963
10964 rdos*)
10965   dynamic_linker=no
10966   ;;
10967
10968 solaris*)
10969   version_type=linux
10970   need_lib_prefix=no
10971   need_version=no
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973   soname_spec='${libname}${release}${shared_ext}$major'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   shlibpath_overrides_runpath=yes
10976   hardcode_into_libs=yes
10977   # ldd complains unless libraries are executable
10978   postinstall_cmds='chmod +x $lib'
10979   ;;
10980
10981 sunos4*)
10982   version_type=sunos
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985   shlibpath_var=LD_LIBRARY_PATH
10986   shlibpath_overrides_runpath=yes
10987   if test "$with_gnu_ld" = yes; then
10988     need_lib_prefix=no
10989   fi
10990   need_version=yes
10991   ;;
10992
10993 sysv4 | sysv4.3*)
10994   version_type=linux
10995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996   soname_spec='${libname}${release}${shared_ext}$major'
10997   shlibpath_var=LD_LIBRARY_PATH
10998   case $host_vendor in
10999     sni)
11000       shlibpath_overrides_runpath=no
11001       need_lib_prefix=no
11002       runpath_var=LD_RUN_PATH
11003       ;;
11004     siemens)
11005       need_lib_prefix=no
11006       ;;
11007     motorola)
11008       need_lib_prefix=no
11009       need_version=no
11010       shlibpath_overrides_runpath=no
11011       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11012       ;;
11013   esac
11014   ;;
11015
11016 sysv4*MP*)
11017   if test -d /usr/nec ;then
11018     version_type=linux
11019     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020     soname_spec='$libname${shared_ext}.$major'
11021     shlibpath_var=LD_LIBRARY_PATH
11022   fi
11023   ;;
11024
11025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11026   version_type=freebsd-elf
11027   need_lib_prefix=no
11028   need_version=no
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11030   soname_spec='${libname}${release}${shared_ext}$major'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   shlibpath_overrides_runpath=yes
11033   hardcode_into_libs=yes
11034   if test "$with_gnu_ld" = yes; then
11035     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11036   else
11037     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11038     case $host_os in
11039       sco3.2v5*)
11040         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11041         ;;
11042     esac
11043   fi
11044   sys_lib_dlsearch_path_spec='/usr/lib'
11045   ;;
11046
11047 tpf*)
11048   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11049   version_type=linux
11050   need_lib_prefix=no
11051   need_version=no
11052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   shlibpath_overrides_runpath=no
11055   hardcode_into_libs=yes
11056   ;;
11057
11058 uts4*)
11059   version_type=linux
11060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061   soname_spec='${libname}${release}${shared_ext}$major'
11062   shlibpath_var=LD_LIBRARY_PATH
11063   ;;
11064
11065 *)
11066   dynamic_linker=no
11067   ;;
11068 esac
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11070 $as_echo "$dynamic_linker" >&6; }
11071 test "$dynamic_linker" = no && can_build_shared=no
11072
11073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11074 if test "$GCC" = yes; then
11075   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11076 fi
11077
11078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11079   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11080 fi
11081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11082   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11083 fi
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11178 hardcode_action=
11179 if test -n "$hardcode_libdir_flag_spec" ||
11180    test -n "$runpath_var" ||
11181    test "X$hardcode_automatic" = "Xyes" ; then
11182
11183   # We can hardcode non-existent directories.
11184   if test "$hardcode_direct" != no &&
11185      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11186      # have to relink, otherwise we might link with an installed library
11187      # when we should be linking with a yet-to-be-installed one
11188      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11189      test "$hardcode_minus_L" != no; then
11190     # Linking always hardcodes the temporary library directory.
11191     hardcode_action=relink
11192   else
11193     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11194     hardcode_action=immediate
11195   fi
11196 else
11197   # We cannot hardcode anything, or else we can only hardcode existing
11198   # directories.
11199   hardcode_action=unsupported
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11202 $as_echo "$hardcode_action" >&6; }
11203
11204 if test "$hardcode_action" = relink ||
11205    test "$inherit_rpath" = yes; then
11206   # Fast installation is not supported
11207   enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209      test "$enable_shared" = no; then
11210   # Fast installation is not necessary
11211   enable_fast_install=needless
11212 fi
11213
11214
11215
11216
11217
11218
11219   if test "x$enable_dlopen" != xyes; then
11220   enable_dlopen=unknown
11221   enable_dlopen_self=unknown
11222   enable_dlopen_self_static=unknown
11223 else
11224   lt_cv_dlopen=no
11225   lt_cv_dlopen_libs=
11226
11227   case $host_os in
11228   beos*)
11229     lt_cv_dlopen="load_add_on"
11230     lt_cv_dlopen_libs=
11231     lt_cv_dlopen_self=yes
11232     ;;
11233
11234   mingw* | pw32* | cegcc*)
11235     lt_cv_dlopen="LoadLibrary"
11236     lt_cv_dlopen_libs=
11237     ;;
11238
11239   cygwin*)
11240     lt_cv_dlopen="dlopen"
11241     lt_cv_dlopen_libs=
11242     ;;
11243
11244   darwin*)
11245   # if libdl is installed we need to link against it
11246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11249   $as_echo_n "(cached) " >&6
11250 else
11251   ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldl  $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h.  */
11255
11256 /* Override any GCC internal prototype to avoid an error.
11257    Use char because int might match the return type of a GCC
11258    builtin and then its argument prototype would still apply.  */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char dlopen ();
11263 int
11264 main ()
11265 {
11266 return dlopen ();
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272   ac_cv_lib_dl_dlopen=yes
11273 else
11274   ac_cv_lib_dl_dlopen=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277     conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11282 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11283   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11284 else
11285
11286     lt_cv_dlopen="dyld"
11287     lt_cv_dlopen_libs=
11288     lt_cv_dlopen_self=yes
11289
11290 fi
11291
11292     ;;
11293
11294   *)
11295     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11296 if test "x$ac_cv_func_shl_load" = x""yes; then :
11297   lt_cv_dlopen="shl_load"
11298 else
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304   ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-ldld  $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h.  */
11308
11309 /* Override any GCC internal prototype to avoid an error.
11310    Use char because int might match the return type of a GCC
11311    builtin and then its argument prototype would still apply.  */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char shl_load ();
11316 int
11317 main ()
11318 {
11319 return shl_load ();
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325   ac_cv_lib_dld_shl_load=yes
11326 else
11327   ac_cv_lib_dld_shl_load=no
11328 fi
11329 rm -f core conftest.err conftest.$ac_objext \
11330     conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11335 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11336   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11337 else
11338   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11339 if test "x$ac_cv_func_dlopen" = x""yes; then :
11340   lt_cv_dlopen="dlopen"
11341 else
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11345   $as_echo_n "(cached) " >&6
11346 else
11347   ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-ldl  $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h.  */
11351
11352 /* Override any GCC internal prototype to avoid an error.
11353    Use char because int might match the return type of a GCC
11354    builtin and then its argument prototype would still apply.  */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char dlopen ();
11359 int
11360 main ()
11361 {
11362 return dlopen ();
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368   ac_cv_lib_dl_dlopen=yes
11369 else
11370   ac_cv_lib_dl_dlopen=no
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext \
11373     conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11379   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11380 else
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lsvld  $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h.  */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392    Use char because int might match the return type of a GCC
11393    builtin and then its argument prototype would still apply.  */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char dlopen ();
11398 int
11399 main ()
11400 {
11401 return dlopen ();
11402   ;
11403   return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407   ac_cv_lib_svld_dlopen=yes
11408 else
11409   ac_cv_lib_svld_dlopen=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412     conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11417 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11419 else
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldld  $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h.  */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431    Use char because int might match the return type of a GCC
11432    builtin and then its argument prototype would still apply.  */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dld_link ();
11437 int
11438 main ()
11439 {
11440 return dld_link ();
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446   ac_cv_lib_dld_dld_link=yes
11447 else
11448   ac_cv_lib_dld_dld_link=no
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451     conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11456 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11457   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11458 fi
11459
11460
11461 fi
11462
11463
11464 fi
11465
11466
11467 fi
11468
11469
11470 fi
11471
11472
11473 fi
11474
11475     ;;
11476   esac
11477
11478   if test "x$lt_cv_dlopen" != xno; then
11479     enable_dlopen=yes
11480   else
11481     enable_dlopen=no
11482   fi
11483
11484   case $lt_cv_dlopen in
11485   dlopen)
11486     save_CPPFLAGS="$CPPFLAGS"
11487     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11488
11489     save_LDFLAGS="$LDFLAGS"
11490     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11491
11492     save_LIBS="$LIBS"
11493     LIBS="$lt_cv_dlopen_libs $LIBS"
11494
11495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11497 if test "${lt_cv_dlopen_self+set}" = set; then :
11498   $as_echo_n "(cached) " >&6
11499 else
11500           if test "$cross_compiling" = yes; then :
11501   lt_cv_dlopen_self=cross
11502 else
11503   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11504   lt_status=$lt_dlunknown
11505   cat > conftest.$ac_ext <<_LT_EOF
11506 #line $LINENO "configure"
11507 #include "confdefs.h"
11508
11509 #if HAVE_DLFCN_H
11510 #include <dlfcn.h>
11511 #endif
11512
11513 #include <stdio.h>
11514
11515 #ifdef RTLD_GLOBAL
11516 #  define LT_DLGLOBAL           RTLD_GLOBAL
11517 #else
11518 #  ifdef DL_GLOBAL
11519 #    define LT_DLGLOBAL         DL_GLOBAL
11520 #  else
11521 #    define LT_DLGLOBAL         0
11522 #  endif
11523 #endif
11524
11525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11526    find out it does not work in some platform. */
11527 #ifndef LT_DLLAZY_OR_NOW
11528 #  ifdef RTLD_LAZY
11529 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11530 #  else
11531 #    ifdef DL_LAZY
11532 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11533 #    else
11534 #      ifdef RTLD_NOW
11535 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11536 #      else
11537 #        ifdef DL_NOW
11538 #          define LT_DLLAZY_OR_NOW      DL_NOW
11539 #        else
11540 #          define LT_DLLAZY_OR_NOW      0
11541 #        endif
11542 #      endif
11543 #    endif
11544 #  endif
11545 #endif
11546
11547 /* When -fvisbility=hidden is used, assume the code has been annotated
11548    correspondingly for the symbols needed.  */
11549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11550 int fnord () __attribute__((visibility("default")));
11551 #endif
11552
11553 int fnord () { return 42; }
11554 int main ()
11555 {
11556   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11557   int status = $lt_dlunknown;
11558
11559   if (self)
11560     {
11561       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11562       else
11563         {
11564           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11565           else puts (dlerror ());
11566         }
11567       /* dlclose (self); */
11568     }
11569   else
11570     puts (dlerror ());
11571
11572   return status;
11573 }
11574 _LT_EOF
11575   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576   (eval $ac_link) 2>&5
11577   ac_status=$?
11578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580     (./conftest; exit; ) >&5 2>/dev/null
11581     lt_status=$?
11582     case x$lt_status in
11583       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586     esac
11587   else :
11588     # compilation failed
11589     lt_cv_dlopen_self=no
11590   fi
11591 fi
11592 rm -fr conftest*
11593
11594
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11597 $as_echo "$lt_cv_dlopen_self" >&6; }
11598
11599     if test "x$lt_cv_dlopen_self" = xyes; then
11600       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11602 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11603 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11604   $as_echo_n "(cached) " >&6
11605 else
11606           if test "$cross_compiling" = yes; then :
11607   lt_cv_dlopen_self_static=cross
11608 else
11609   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610   lt_status=$lt_dlunknown
11611   cat > conftest.$ac_ext <<_LT_EOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11614
11615 #if HAVE_DLFCN_H
11616 #include <dlfcn.h>
11617 #endif
11618
11619 #include <stdio.h>
11620
11621 #ifdef RTLD_GLOBAL
11622 #  define LT_DLGLOBAL           RTLD_GLOBAL
11623 #else
11624 #  ifdef DL_GLOBAL
11625 #    define LT_DLGLOBAL         DL_GLOBAL
11626 #  else
11627 #    define LT_DLGLOBAL         0
11628 #  endif
11629 #endif
11630
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632    find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11634 #  ifdef RTLD_LAZY
11635 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11636 #  else
11637 #    ifdef DL_LAZY
11638 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11639 #    else
11640 #      ifdef RTLD_NOW
11641 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11642 #      else
11643 #        ifdef DL_NOW
11644 #          define LT_DLLAZY_OR_NOW      DL_NOW
11645 #        else
11646 #          define LT_DLLAZY_OR_NOW      0
11647 #        endif
11648 #      endif
11649 #    endif
11650 #  endif
11651 #endif
11652
11653 /* When -fvisbility=hidden is used, assume the code has been annotated
11654    correspondingly for the symbols needed.  */
11655 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11656 int fnord () __attribute__((visibility("default")));
11657 #endif
11658
11659 int fnord () { return 42; }
11660 int main ()
11661 {
11662   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663   int status = $lt_dlunknown;
11664
11665   if (self)
11666     {
11667       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11668       else
11669         {
11670           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11671           else puts (dlerror ());
11672         }
11673       /* dlclose (self); */
11674     }
11675   else
11676     puts (dlerror ());
11677
11678   return status;
11679 }
11680 _LT_EOF
11681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11682   (eval $ac_link) 2>&5
11683   ac_status=$?
11684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11686     (./conftest; exit; ) >&5 2>/dev/null
11687     lt_status=$?
11688     case x$lt_status in
11689       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11690       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11691       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11692     esac
11693   else :
11694     # compilation failed
11695     lt_cv_dlopen_self_static=no
11696   fi
11697 fi
11698 rm -fr conftest*
11699
11700
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11703 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11704     fi
11705
11706     CPPFLAGS="$save_CPPFLAGS"
11707     LDFLAGS="$save_LDFLAGS"
11708     LIBS="$save_LIBS"
11709     ;;
11710   esac
11711
11712   case $lt_cv_dlopen_self in
11713   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11714   *) enable_dlopen_self=unknown ;;
11715   esac
11716
11717   case $lt_cv_dlopen_self_static in
11718   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11719   *) enable_dlopen_self_static=unknown ;;
11720   esac
11721 fi
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739 striplib=
11740 old_striplib=
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11742 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11744   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11745   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11748 else
11749 # FIXME - insert some real tests, host_os isn't really good enough
11750   case $host_os in
11751   darwin*)
11752     if test -n "$STRIP" ; then
11753       striplib="$STRIP -x"
11754       old_striplib="$STRIP -S"
11755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11757     else
11758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760     fi
11761     ;;
11762   *)
11763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765     ;;
11766   esac
11767 fi
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780   # Report which library types will actually be built
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11782 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11784 $as_echo "$can_build_shared" >&6; }
11785
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11787 $as_echo_n "checking whether to build shared libraries... " >&6; }
11788   test "$can_build_shared" = "no" && enable_shared=no
11789
11790   # On AIX, shared libraries and static libraries use the same namespace, and
11791   # are all built from PIC.
11792   case $host_os in
11793   aix3*)
11794     test "$enable_shared" = yes && enable_static=no
11795     if test -n "$RANLIB"; then
11796       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11797       postinstall_cmds='$RANLIB $lib'
11798     fi
11799     ;;
11800
11801   aix[4-9]*)
11802     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11803       test "$enable_shared" = yes && enable_static=no
11804     fi
11805     ;;
11806   esac
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11808 $as_echo "$enable_shared" >&6; }
11809
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11811 $as_echo_n "checking whether to build static libraries... " >&6; }
11812   # Make sure either enable_shared or enable_static is yes.
11813   test "$enable_shared" = yes || enable_static=yes
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11815 $as_echo "$enable_static" >&6; }
11816
11817
11818
11819
11820 fi
11821 ac_ext=c
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11826
11827 CC="$lt_save_CC"
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841         ac_config_commands="$ac_config_commands libtool"
11842
11843
11844
11845
11846 # Only expand once:
11847
11848
11849
11850 # Docygen features
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861 # Files:
11862 DX_PROJECT=xmltooling
11863
11864 DX_CONFIG=doxygen.cfg
11865
11866 DX_DOCDIR=doc/api
11867
11868
11869 # Environment variables used inside doxygen.cfg:
11870 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11871
11872 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11873
11874 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11875
11876 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11877
11878
11879 # Doxygen itself:
11880
11881
11882
11883     # Check whether --enable-doxygen-doc was given.
11884 if test "${enable_doxygen_doc+set}" = set; then :
11885   enableval=$enable_doxygen_doc;
11886 case "$enableval" in
11887 #(
11888 y|Y|yes|Yes|YES)
11889     DX_FLAG_doc=1
11890
11891
11892 ;; #(
11893 n|N|no|No|NO)
11894     DX_FLAG_doc=0
11895
11896 ;; #(
11897 *)
11898     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11899 ;;
11900 esac
11901
11902 else
11903
11904 DX_FLAG_doc=1
11905
11906
11907
11908 fi
11909
11910 if test "$DX_FLAG_doc" = 1; then
11911
11912 if test -n "$ac_tool_prefix"; then
11913   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11914 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   case $DX_DOXYGEN in
11921   [\\/]* | ?:[\\/]*)
11922   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11923   ;;
11924   *)
11925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939
11940   ;;
11941 esac
11942 fi
11943 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11944 if test -n "$DX_DOXYGEN"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11946 $as_echo "$DX_DOXYGEN" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953 fi
11954 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11955   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11956   # Extract the first word of "doxygen", so it can be a program name with args.
11957 set dummy doxygen; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   case $ac_pt_DX_DOXYGEN in
11964   [\\/]* | ?:[\\/]*)
11965   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11966   ;;
11967   *)
11968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971   IFS=$as_save_IFS
11972   test -z "$as_dir" && as_dir=.
11973     for ac_exec_ext in '' $ac_executable_extensions; do
11974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977     break 2
11978   fi
11979 done
11980   done
11981 IFS=$as_save_IFS
11982
11983   ;;
11984 esac
11985 fi
11986 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11987 if test -n "$ac_pt_DX_DOXYGEN"; then
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11989 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11990 else
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994
11995   if test "x$ac_pt_DX_DOXYGEN" = x; then
11996     DX_DOXYGEN=""
11997   else
11998     case $cross_compiling:$ac_tool_warned in
11999 yes:)
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12002 ac_tool_warned=yes ;;
12003 esac
12004     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
12005   fi
12006 else
12007   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
12008 fi
12009
12010 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
12011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
12012 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
12013     DX_FLAG_doc=0
12014
12015 fi
12016
12017
12018 if test -n "$ac_tool_prefix"; then
12019   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
12020 set dummy ${ac_tool_prefix}perl; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_DX_PERL+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   case $DX_PERL in
12027   [\\/]* | ?:[\\/]*)
12028   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
12029   ;;
12030   *)
12031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036     for ac_exec_ext in '' $ac_executable_extensions; do
12037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
12039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043   done
12044 IFS=$as_save_IFS
12045
12046   ;;
12047 esac
12048 fi
12049 DX_PERL=$ac_cv_path_DX_PERL
12050 if test -n "$DX_PERL"; then
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
12052 $as_echo "$DX_PERL" >&6; }
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059 fi
12060 if test -z "$ac_cv_path_DX_PERL"; then
12061   ac_pt_DX_PERL=$DX_PERL
12062   # Extract the first word of "perl", so it can be a program name with args.
12063 set dummy perl; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069   case $ac_pt_DX_PERL in
12070   [\\/]* | ?:[\\/]*)
12071   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
12072   ;;
12073   *)
12074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075 for as_dir in $PATH
12076 do
12077   IFS=$as_save_IFS
12078   test -z "$as_dir" && as_dir=.
12079     for ac_exec_ext in '' $ac_executable_extensions; do
12080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12081     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
12082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083     break 2
12084   fi
12085 done
12086   done
12087 IFS=$as_save_IFS
12088
12089   ;;
12090 esac
12091 fi
12092 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
12093 if test -n "$ac_pt_DX_PERL"; then
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
12095 $as_echo "$ac_pt_DX_PERL" >&6; }
12096 else
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12099 fi
12100
12101   if test "x$ac_pt_DX_PERL" = x; then
12102     DX_PERL=""
12103   else
12104     case $cross_compiling:$ac_tool_warned in
12105 yes:)
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12108 ac_tool_warned=yes ;;
12109 esac
12110     DX_PERL=$ac_pt_DX_PERL
12111   fi
12112 else
12113   DX_PERL="$ac_cv_path_DX_PERL"
12114 fi
12115
12116 if test "$DX_FLAG_doc$DX_PERL" = 1; then
12117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
12118 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
12119     DX_FLAG_doc=0
12120
12121 fi
12122
12123     :
12124 fi
12125 if test "$DX_FLAG_doc" = 1; then
12126      if :; then
12127   DX_COND_doc_TRUE=
12128   DX_COND_doc_FALSE='#'
12129 else
12130   DX_COND_doc_TRUE='#'
12131   DX_COND_doc_FALSE=
12132 fi
12133
12134     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
12135
12136     :
12137 else
12138      if false; then
12139   DX_COND_doc_TRUE=
12140   DX_COND_doc_FALSE='#'
12141 else
12142   DX_COND_doc_TRUE='#'
12143   DX_COND_doc_FALSE=
12144 fi
12145
12146
12147     :
12148 fi
12149
12150
12151 # Dot for graphics:
12152
12153
12154
12155     # Check whether --enable-doxygen-dot was given.
12156 if test "${enable_doxygen_dot+set}" = set; then :
12157   enableval=$enable_doxygen_dot;
12158 case "$enableval" in
12159 #(
12160 y|Y|yes|Yes|YES)
12161     DX_FLAG_dot=1
12162
12163
12164 test "$DX_FLAG_doc" = "1" \
12165 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
12166
12167 ;; #(
12168 n|N|no|No|NO)
12169     DX_FLAG_dot=0
12170
12171 ;; #(
12172 *)
12173     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
12174 ;;
12175 esac
12176
12177 else
12178
12179 DX_FLAG_dot=0
12180
12181
12182 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
12183
12184
12185
12186 fi
12187
12188 if test "$DX_FLAG_dot" = 1; then
12189
12190 if test -n "$ac_tool_prefix"; then
12191   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
12192 set dummy ${ac_tool_prefix}dot; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_path_DX_DOT+set}" = set; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   case $DX_DOT in
12199   [\\/]* | ?:[\\/]*)
12200   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
12201   ;;
12202   *)
12203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12205 do
12206   IFS=$as_save_IFS
12207   test -z "$as_dir" && as_dir=.
12208     for ac_exec_ext in '' $ac_executable_extensions; do
12209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12210     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212     break 2
12213   fi
12214 done
12215   done
12216 IFS=$as_save_IFS
12217
12218   ;;
12219 esac
12220 fi
12221 DX_DOT=$ac_cv_path_DX_DOT
12222 if test -n "$DX_DOT"; then
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
12224 $as_echo "$DX_DOT" >&6; }
12225 else
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 fi
12232 if test -z "$ac_cv_path_DX_DOT"; then
12233   ac_pt_DX_DOT=$DX_DOT
12234   # Extract the first word of "dot", so it can be a program name with args.
12235 set dummy dot; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   case $ac_pt_DX_DOT in
12242   [\\/]* | ?:[\\/]*)
12243   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
12244   ;;
12245   *)
12246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249   IFS=$as_save_IFS
12250   test -z "$as_dir" && as_dir=.
12251     for ac_exec_ext in '' $ac_executable_extensions; do
12252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255     break 2
12256   fi
12257 done
12258   done
12259 IFS=$as_save_IFS
12260
12261   ;;
12262 esac
12263 fi
12264 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
12265 if test -n "$ac_pt_DX_DOT"; then
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
12267 $as_echo "$ac_pt_DX_DOT" >&6; }
12268 else
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271 fi
12272
12273   if test "x$ac_pt_DX_DOT" = x; then
12274     DX_DOT=""
12275   else
12276     case $cross_compiling:$ac_tool_warned in
12277 yes:)
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12280 ac_tool_warned=yes ;;
12281 esac
12282     DX_DOT=$ac_pt_DX_DOT
12283   fi
12284 else
12285   DX_DOT="$ac_cv_path_DX_DOT"
12286 fi
12287
12288 if test "$DX_FLAG_dot$DX_DOT" = 1; then
12289     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
12290 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
12291     DX_FLAG_dot=0
12292
12293 fi
12294
12295     :
12296 fi
12297 if test "$DX_FLAG_dot" = 1; then
12298      if :; then
12299   DX_COND_dot_TRUE=
12300   DX_COND_dot_FALSE='#'
12301 else
12302   DX_COND_dot_TRUE='#'
12303   DX_COND_dot_FALSE=
12304 fi
12305
12306     DX_ENV="$DX_ENV HAVE_DOT='YES'"
12307
12308              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
12309
12310     :
12311 else
12312      if false; then
12313   DX_COND_dot_TRUE=
12314   DX_COND_dot_FALSE='#'
12315 else
12316   DX_COND_dot_TRUE='#'
12317   DX_COND_dot_FALSE=
12318 fi
12319
12320     DX_ENV="$DX_ENV HAVE_DOT='NO'"
12321
12322     :
12323 fi
12324
12325
12326 # Man pages generation:
12327
12328
12329
12330     # Check whether --enable-doxygen-man was given.
12331 if test "${enable_doxygen_man+set}" = set; then :
12332   enableval=$enable_doxygen_man;
12333 case "$enableval" in
12334 #(
12335 y|Y|yes|Yes|YES)
12336     DX_FLAG_man=1
12337
12338
12339 test "$DX_FLAG_doc" = "1" \
12340 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
12341
12342 ;; #(
12343 n|N|no|No|NO)
12344     DX_FLAG_man=0
12345
12346 ;; #(
12347 *)
12348     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
12349 ;;
12350 esac
12351
12352 else
12353
12354 DX_FLAG_man=0
12355
12356
12357 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
12358
12359
12360
12361 fi
12362
12363 if test "$DX_FLAG_man" = 1; then
12364
12365     :
12366 fi
12367 if test "$DX_FLAG_man" = 1; then
12368      if :; then
12369   DX_COND_man_TRUE=
12370   DX_COND_man_FALSE='#'
12371 else
12372   DX_COND_man_TRUE='#'
12373   DX_COND_man_FALSE=
12374 fi
12375
12376     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
12377
12378     :
12379 else
12380      if false; then
12381   DX_COND_man_TRUE=
12382   DX_COND_man_FALSE='#'
12383 else
12384   DX_COND_man_TRUE='#'
12385   DX_COND_man_FALSE=
12386 fi
12387
12388     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
12389
12390     :
12391 fi
12392
12393
12394 # RTF file generation:
12395
12396
12397
12398     # Check whether --enable-doxygen-rtf was given.
12399 if test "${enable_doxygen_rtf+set}" = set; then :
12400   enableval=$enable_doxygen_rtf;
12401 case "$enableval" in
12402 #(
12403 y|Y|yes|Yes|YES)
12404     DX_FLAG_rtf=1
12405
12406
12407 test "$DX_FLAG_doc" = "1" \
12408 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
12409
12410 ;; #(
12411 n|N|no|No|NO)
12412     DX_FLAG_rtf=0
12413
12414 ;; #(
12415 *)
12416     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
12417 ;;
12418 esac
12419
12420 else
12421
12422 DX_FLAG_rtf=0
12423
12424
12425 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
12426
12427
12428
12429 fi
12430
12431 if test "$DX_FLAG_rtf" = 1; then
12432
12433     :
12434 fi
12435 if test "$DX_FLAG_rtf" = 1; then
12436      if :; then
12437   DX_COND_rtf_TRUE=
12438   DX_COND_rtf_FALSE='#'
12439 else
12440   DX_COND_rtf_TRUE='#'
12441   DX_COND_rtf_FALSE=
12442 fi
12443
12444     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
12445
12446     :
12447 else
12448      if false; then
12449   DX_COND_rtf_TRUE=
12450   DX_COND_rtf_FALSE='#'
12451 else
12452   DX_COND_rtf_TRUE='#'
12453   DX_COND_rtf_FALSE=
12454 fi
12455
12456     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
12457
12458     :
12459 fi
12460
12461
12462 # XML file generation:
12463
12464
12465
12466     # Check whether --enable-doxygen-xml was given.
12467 if test "${enable_doxygen_xml+set}" = set; then :
12468   enableval=$enable_doxygen_xml;
12469 case "$enableval" in
12470 #(
12471 y|Y|yes|Yes|YES)
12472     DX_FLAG_xml=1
12473
12474
12475 test "$DX_FLAG_doc" = "1" \
12476 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
12477
12478 ;; #(
12479 n|N|no|No|NO)
12480     DX_FLAG_xml=0
12481
12482 ;; #(
12483 *)
12484     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
12485 ;;
12486 esac
12487
12488 else
12489
12490 DX_FLAG_xml=0
12491
12492
12493 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
12494
12495
12496
12497 fi
12498
12499 if test "$DX_FLAG_xml" = 1; then
12500
12501     :
12502 fi
12503 if test "$DX_FLAG_xml" = 1; then
12504      if :; then
12505   DX_COND_xml_TRUE=
12506   DX_COND_xml_FALSE='#'
12507 else
12508   DX_COND_xml_TRUE='#'
12509   DX_COND_xml_FALSE=
12510 fi
12511
12512     DX_ENV="$DX_ENV GENERATE_XML='YES'"
12513
12514     :
12515 else
12516      if false; then
12517   DX_COND_xml_TRUE=
12518   DX_COND_xml_FALSE='#'
12519 else
12520   DX_COND_xml_TRUE='#'
12521   DX_COND_xml_FALSE=
12522 fi
12523
12524     DX_ENV="$DX_ENV GENERATE_XML='NO'"
12525
12526     :
12527 fi
12528
12529
12530 # (Compressed) HTML help generation:
12531
12532
12533
12534     # Check whether --enable-doxygen-chm was given.
12535 if test "${enable_doxygen_chm+set}" = set; then :
12536   enableval=$enable_doxygen_chm;
12537 case "$enableval" in
12538 #(
12539 y|Y|yes|Yes|YES)
12540     DX_FLAG_chm=1
12541
12542
12543 test "$DX_FLAG_doc" = "1" \
12544 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
12545
12546 ;; #(
12547 n|N|no|No|NO)
12548     DX_FLAG_chm=0
12549
12550 ;; #(
12551 *)
12552     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
12553 ;;
12554 esac
12555
12556 else
12557
12558 DX_FLAG_chm=0
12559
12560
12561 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
12562
12563
12564
12565 fi
12566
12567 if test "$DX_FLAG_chm" = 1; then
12568
12569 if test -n "$ac_tool_prefix"; then
12570   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
12571 set dummy ${ac_tool_prefix}hhc; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if test "${ac_cv_path_DX_HHC+set}" = set; then :
12575   $as_echo_n "(cached) " >&6
12576 else
12577   case $DX_HHC in
12578   [\\/]* | ?:[\\/]*)
12579   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
12580   ;;
12581   *)
12582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585   IFS=$as_save_IFS
12586   test -z "$as_dir" && as_dir=.
12587     for ac_exec_ext in '' $ac_executable_extensions; do
12588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591     break 2
12592   fi
12593 done
12594   done
12595 IFS=$as_save_IFS
12596
12597   ;;
12598 esac
12599 fi
12600 DX_HHC=$ac_cv_path_DX_HHC
12601 if test -n "$DX_HHC"; then
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
12603 $as_echo "$DX_HHC" >&6; }
12604 else
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608
12609
12610 fi
12611 if test -z "$ac_cv_path_DX_HHC"; then
12612   ac_pt_DX_HHC=$DX_HHC
12613   # Extract the first word of "hhc", so it can be a program name with args.
12614 set dummy hhc; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
12618   $as_echo_n "(cached) " >&6
12619 else
12620   case $ac_pt_DX_HHC in
12621   [\\/]* | ?:[\\/]*)
12622   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
12623   ;;
12624   *)
12625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12627 do
12628   IFS=$as_save_IFS
12629   test -z "$as_dir" && as_dir=.
12630     for ac_exec_ext in '' $ac_executable_extensions; do
12631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634     break 2
12635   fi
12636 done
12637   done
12638 IFS=$as_save_IFS
12639
12640   ;;
12641 esac
12642 fi
12643 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
12644 if test -n "$ac_pt_DX_HHC"; then
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
12646 $as_echo "$ac_pt_DX_HHC" >&6; }
12647 else
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650 fi
12651
12652   if test "x$ac_pt_DX_HHC" = x; then
12653     DX_HHC=""
12654   else
12655     case $cross_compiling:$ac_tool_warned in
12656 yes:)
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12659 ac_tool_warned=yes ;;
12660 esac
12661     DX_HHC=$ac_pt_DX_HHC
12662   fi
12663 else
12664   DX_HHC="$ac_cv_path_DX_HHC"
12665 fi
12666
12667 if test "$DX_FLAG_chm$DX_HHC" = 1; then
12668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
12669 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
12670     DX_FLAG_chm=0
12671
12672 fi
12673
12674     :
12675 fi
12676 if test "$DX_FLAG_chm" = 1; then
12677      if :; then
12678   DX_COND_chm_TRUE=
12679   DX_COND_chm_FALSE='#'
12680 else
12681   DX_COND_chm_TRUE='#'
12682   DX_COND_chm_FALSE=
12683 fi
12684
12685     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
12686
12687              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12688
12689              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
12690
12691     :
12692 else
12693      if false; then
12694   DX_COND_chm_TRUE=
12695   DX_COND_chm_FALSE='#'
12696 else
12697   DX_COND_chm_TRUE='#'
12698   DX_COND_chm_FALSE=
12699 fi
12700
12701     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
12702
12703     :
12704 fi
12705
12706
12707 # Seperate CHI file generation.
12708
12709
12710
12711     # Check whether --enable-doxygen-chi was given.
12712 if test "${enable_doxygen_chi+set}" = set; then :
12713   enableval=$enable_doxygen_chi;
12714 case "$enableval" in
12715 #(
12716 y|Y|yes|Yes|YES)
12717     DX_FLAG_chi=1
12718
12719
12720 test "$DX_FLAG_chm" = "1" \
12721 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
12722
12723 ;; #(
12724 n|N|no|No|NO)
12725     DX_FLAG_chi=0
12726
12727 ;; #(
12728 *)
12729     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
12730 ;;
12731 esac
12732
12733 else
12734
12735 DX_FLAG_chi=0
12736
12737
12738 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
12739
12740
12741
12742 fi
12743
12744 if test "$DX_FLAG_chi" = 1; then
12745
12746     :
12747 fi
12748 if test "$DX_FLAG_chi" = 1; then
12749      if :; then
12750   DX_COND_chi_TRUE=
12751   DX_COND_chi_FALSE='#'
12752 else
12753   DX_COND_chi_TRUE='#'
12754   DX_COND_chi_FALSE=
12755 fi
12756
12757     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
12758
12759     :
12760 else
12761      if false; then
12762   DX_COND_chi_TRUE=
12763   DX_COND_chi_FALSE='#'
12764 else
12765   DX_COND_chi_TRUE='#'
12766   DX_COND_chi_FALSE=
12767 fi
12768
12769     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12770
12771     :
12772 fi
12773
12774
12775 # Plain HTML pages generation:
12776
12777
12778
12779     # Check whether --enable-doxygen-html was given.
12780 if test "${enable_doxygen_html+set}" = set; then :
12781   enableval=$enable_doxygen_html;
12782 case "$enableval" in
12783 #(
12784 y|Y|yes|Yes|YES)
12785     DX_FLAG_html=1
12786
12787
12788 test "$DX_FLAG_doc" = "1" \
12789 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12790
12791 test "$DX_FLAG_chm" = "0" \
12792 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12793
12794 ;; #(
12795 n|N|no|No|NO)
12796     DX_FLAG_html=0
12797
12798 ;; #(
12799 *)
12800     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12801 ;;
12802 esac
12803
12804 else
12805
12806 DX_FLAG_html=1
12807
12808
12809 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12810
12811
12812 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12813
12814
12815
12816 fi
12817
12818 if test "$DX_FLAG_html" = 1; then
12819
12820     :
12821 fi
12822 if test "$DX_FLAG_html" = 1; then
12823      if :; then
12824   DX_COND_html_TRUE=
12825   DX_COND_html_FALSE='#'
12826 else
12827   DX_COND_html_TRUE='#'
12828   DX_COND_html_FALSE=
12829 fi
12830
12831     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12832
12833     :
12834 else
12835      if false; then
12836   DX_COND_html_TRUE=
12837   DX_COND_html_FALSE='#'
12838 else
12839   DX_COND_html_TRUE='#'
12840   DX_COND_html_FALSE=
12841 fi
12842
12843     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12844
12845     :
12846 fi
12847
12848
12849 # PostScript file generation:
12850
12851
12852
12853     # Check whether --enable-doxygen-ps was given.
12854 if test "${enable_doxygen_ps+set}" = set; then :
12855   enableval=$enable_doxygen_ps;
12856 case "$enableval" in
12857 #(
12858 y|Y|yes|Yes|YES)
12859     DX_FLAG_ps=1
12860
12861
12862 test "$DX_FLAG_doc" = "1" \
12863 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12864
12865 ;; #(
12866 n|N|no|No|NO)
12867     DX_FLAG_ps=0
12868
12869 ;; #(
12870 *)
12871     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12872 ;;
12873 esac
12874
12875 else
12876
12877 DX_FLAG_ps=0
12878
12879
12880 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12881
12882
12883
12884 fi
12885
12886 if test "$DX_FLAG_ps" = 1; then
12887
12888 if test -n "$ac_tool_prefix"; then
12889   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12890 set dummy ${ac_tool_prefix}latex; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12894   $as_echo_n "(cached) " >&6
12895 else
12896   case $DX_LATEX in
12897   [\\/]* | ?:[\\/]*)
12898   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12899   ;;
12900   *)
12901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12903 do
12904   IFS=$as_save_IFS
12905   test -z "$as_dir" && as_dir=.
12906     for ac_exec_ext in '' $ac_executable_extensions; do
12907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910     break 2
12911   fi
12912 done
12913   done
12914 IFS=$as_save_IFS
12915
12916   ;;
12917 esac
12918 fi
12919 DX_LATEX=$ac_cv_path_DX_LATEX
12920 if test -n "$DX_LATEX"; then
12921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12922 $as_echo "$DX_LATEX" >&6; }
12923 else
12924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12926 fi
12927
12928
12929 fi
12930 if test -z "$ac_cv_path_DX_LATEX"; then
12931   ac_pt_DX_LATEX=$DX_LATEX
12932   # Extract the first word of "latex", so it can be a program name with args.
12933 set dummy latex; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939   case $ac_pt_DX_LATEX in
12940   [\\/]* | ?:[\\/]*)
12941   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12942   ;;
12943   *)
12944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12946 do
12947   IFS=$as_save_IFS
12948   test -z "$as_dir" && as_dir=.
12949     for ac_exec_ext in '' $ac_executable_extensions; do
12950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953     break 2
12954   fi
12955 done
12956   done
12957 IFS=$as_save_IFS
12958
12959   ;;
12960 esac
12961 fi
12962 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12963 if test -n "$ac_pt_DX_LATEX"; then
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12965 $as_echo "$ac_pt_DX_LATEX" >&6; }
12966 else
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971   if test "x$ac_pt_DX_LATEX" = x; then
12972     DX_LATEX=""
12973   else
12974     case $cross_compiling:$ac_tool_warned in
12975 yes:)
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12978 ac_tool_warned=yes ;;
12979 esac
12980     DX_LATEX=$ac_pt_DX_LATEX
12981   fi
12982 else
12983   DX_LATEX="$ac_cv_path_DX_LATEX"
12984 fi
12985
12986 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12988 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12989     DX_FLAG_ps=0
12990
12991 fi
12992
12993
12994 if test -n "$ac_tool_prefix"; then
12995   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12996 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
13000   $as_echo_n "(cached) " >&6
13001 else
13002   case $DX_MAKEINDEX in
13003   [\\/]* | ?:[\\/]*)
13004   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13005   ;;
13006   *)
13007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010   IFS=$as_save_IFS
13011   test -z "$as_dir" && as_dir=.
13012     for ac_exec_ext in '' $ac_executable_extensions; do
13013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016     break 2
13017   fi
13018 done
13019   done
13020 IFS=$as_save_IFS
13021
13022   ;;
13023 esac
13024 fi
13025 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13026 if test -n "$DX_MAKEINDEX"; then
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13028 $as_echo "$DX_MAKEINDEX" >&6; }
13029 else
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13032 fi
13033
13034
13035 fi
13036 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13037   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13038   # Extract the first word of "makeindex", so it can be a program name with args.
13039 set dummy makeindex; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045   case $ac_pt_DX_MAKEINDEX in
13046   [\\/]* | ?:[\\/]*)
13047   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13048   ;;
13049   *)
13050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053   IFS=$as_save_IFS
13054   test -z "$as_dir" && as_dir=.
13055     for ac_exec_ext in '' $ac_executable_extensions; do
13056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059     break 2
13060   fi
13061 done
13062   done
13063 IFS=$as_save_IFS
13064
13065   ;;
13066 esac
13067 fi
13068 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13069 if test -n "$ac_pt_DX_MAKEINDEX"; then
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13071 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13072 else
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076
13077   if test "x$ac_pt_DX_MAKEINDEX" = x; then
13078     DX_MAKEINDEX=""
13079   else
13080     case $cross_compiling:$ac_tool_warned in
13081 yes:)
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13084 ac_tool_warned=yes ;;
13085 esac
13086     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13087   fi
13088 else
13089   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13090 fi
13091
13092 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
13093     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
13094 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
13095     DX_FLAG_ps=0
13096
13097 fi
13098
13099
13100 if test -n "$ac_tool_prefix"; then
13101   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
13102 set dummy ${ac_tool_prefix}dvips; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
13106   $as_echo_n "(cached) " >&6
13107 else
13108   case $DX_DVIPS in
13109   [\\/]* | ?:[\\/]*)
13110   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
13111   ;;
13112   *)
13113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116   IFS=$as_save_IFS
13117   test -z "$as_dir" && as_dir=.
13118     for ac_exec_ext in '' $ac_executable_extensions; do
13119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122     break 2
13123   fi
13124 done
13125   done
13126 IFS=$as_save_IFS
13127
13128   ;;
13129 esac
13130 fi
13131 DX_DVIPS=$ac_cv_path_DX_DVIPS
13132 if test -n "$DX_DVIPS"; then
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
13134 $as_echo "$DX_DVIPS" >&6; }
13135 else
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139
13140
13141 fi
13142 if test -z "$ac_cv_path_DX_DVIPS"; then
13143   ac_pt_DX_DVIPS=$DX_DVIPS
13144   # Extract the first word of "dvips", so it can be a program name with args.
13145 set dummy dvips; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151   case $ac_pt_DX_DVIPS in
13152   [\\/]* | ?:[\\/]*)
13153   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
13154   ;;
13155   *)
13156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159   IFS=$as_save_IFS
13160   test -z "$as_dir" && as_dir=.
13161     for ac_exec_ext in '' $ac_executable_extensions; do
13162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13163     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165     break 2
13166   fi
13167 done
13168   done
13169 IFS=$as_save_IFS
13170
13171   ;;
13172 esac
13173 fi
13174 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
13175 if test -n "$ac_pt_DX_DVIPS"; then
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
13177 $as_echo "$ac_pt_DX_DVIPS" >&6; }
13178 else
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182
13183   if test "x$ac_pt_DX_DVIPS" = x; then
13184     DX_DVIPS=""
13185   else
13186     case $cross_compiling:$ac_tool_warned in
13187 yes:)
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13190 ac_tool_warned=yes ;;
13191 esac
13192     DX_DVIPS=$ac_pt_DX_DVIPS
13193   fi
13194 else
13195   DX_DVIPS="$ac_cv_path_DX_DVIPS"
13196 fi
13197
13198 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
13199     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
13200 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
13201     DX_FLAG_ps=0
13202
13203 fi
13204
13205
13206 if test -n "$ac_tool_prefix"; then
13207   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13208 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210 $as_echo_n "checking for $ac_word... " >&6; }
13211 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
13212   $as_echo_n "(cached) " >&6
13213 else
13214   case $DX_EGREP in
13215   [\\/]* | ?:[\\/]*)
13216   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13217   ;;
13218   *)
13219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222   IFS=$as_save_IFS
13223   test -z "$as_dir" && as_dir=.
13224     for ac_exec_ext in '' $ac_executable_extensions; do
13225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228     break 2
13229   fi
13230 done
13231   done
13232 IFS=$as_save_IFS
13233
13234   ;;
13235 esac
13236 fi
13237 DX_EGREP=$ac_cv_path_DX_EGREP
13238 if test -n "$DX_EGREP"; then
13239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13240 $as_echo "$DX_EGREP" >&6; }
13241 else
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244 fi
13245
13246
13247 fi
13248 if test -z "$ac_cv_path_DX_EGREP"; then
13249   ac_pt_DX_EGREP=$DX_EGREP
13250   # Extract the first word of "egrep", so it can be a program name with args.
13251 set dummy egrep; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
13255   $as_echo_n "(cached) " >&6
13256 else
13257   case $ac_pt_DX_EGREP in
13258   [\\/]* | ?:[\\/]*)
13259   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13260   ;;
13261   *)
13262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13264 do
13265   IFS=$as_save_IFS
13266   test -z "$as_dir" && as_dir=.
13267     for ac_exec_ext in '' $ac_executable_extensions; do
13268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271     break 2
13272   fi
13273 done
13274   done
13275 IFS=$as_save_IFS
13276
13277   ;;
13278 esac
13279 fi
13280 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13281 if test -n "$ac_pt_DX_EGREP"; then
13282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13283 $as_echo "$ac_pt_DX_EGREP" >&6; }
13284 else
13285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288
13289   if test "x$ac_pt_DX_EGREP" = x; then
13290     DX_EGREP=""
13291   else
13292     case $cross_compiling:$ac_tool_warned in
13293 yes:)
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296 ac_tool_warned=yes ;;
13297 esac
13298     DX_EGREP=$ac_pt_DX_EGREP
13299   fi
13300 else
13301   DX_EGREP="$ac_cv_path_DX_EGREP"
13302 fi
13303
13304 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
13306 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
13307     DX_FLAG_ps=0
13308
13309 fi
13310
13311     :
13312 fi
13313 if test "$DX_FLAG_ps" = 1; then
13314      if :; then
13315   DX_COND_ps_TRUE=
13316   DX_COND_ps_FALSE='#'
13317 else
13318   DX_COND_ps_TRUE='#'
13319   DX_COND_ps_FALSE=
13320 fi
13321
13322
13323     :
13324 else
13325      if false; then
13326   DX_COND_ps_TRUE=
13327   DX_COND_ps_FALSE='#'
13328 else
13329   DX_COND_ps_TRUE='#'
13330   DX_COND_ps_FALSE=
13331 fi
13332
13333
13334     :
13335 fi
13336
13337
13338 # PDF file generation:
13339
13340
13341
13342     # Check whether --enable-doxygen-pdf was given.
13343 if test "${enable_doxygen_pdf+set}" = set; then :
13344   enableval=$enable_doxygen_pdf;
13345 case "$enableval" in
13346 #(
13347 y|Y|yes|Yes|YES)
13348     DX_FLAG_pdf=1
13349
13350
13351 test "$DX_FLAG_doc" = "1" \
13352 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
13353
13354 ;; #(
13355 n|N|no|No|NO)
13356     DX_FLAG_pdf=0
13357
13358 ;; #(
13359 *)
13360     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
13361 ;;
13362 esac
13363
13364 else
13365
13366 DX_FLAG_pdf=0
13367
13368
13369 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
13370
13371
13372
13373 fi
13374
13375 if test "$DX_FLAG_pdf" = 1; then
13376
13377 if test -n "$ac_tool_prefix"; then
13378   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
13379 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
13383   $as_echo_n "(cached) " >&6
13384 else
13385   case $DX_PDFLATEX in
13386   [\\/]* | ?:[\\/]*)
13387   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
13388   ;;
13389   *)
13390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13392 do
13393   IFS=$as_save_IFS
13394   test -z "$as_dir" && as_dir=.
13395     for ac_exec_ext in '' $ac_executable_extensions; do
13396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399     break 2
13400   fi
13401 done
13402   done
13403 IFS=$as_save_IFS
13404
13405   ;;
13406 esac
13407 fi
13408 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
13409 if test -n "$DX_PDFLATEX"; then
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
13411 $as_echo "$DX_PDFLATEX" >&6; }
13412 else
13413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13415 fi
13416
13417
13418 fi
13419 if test -z "$ac_cv_path_DX_PDFLATEX"; then
13420   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
13421   # Extract the first word of "pdflatex", so it can be a program name with args.
13422 set dummy pdflatex; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
13426   $as_echo_n "(cached) " >&6
13427 else
13428   case $ac_pt_DX_PDFLATEX in
13429   [\\/]* | ?:[\\/]*)
13430   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
13431   ;;
13432   *)
13433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13435 do
13436   IFS=$as_save_IFS
13437   test -z "$as_dir" && as_dir=.
13438     for ac_exec_ext in '' $ac_executable_extensions; do
13439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442     break 2
13443   fi
13444 done
13445   done
13446 IFS=$as_save_IFS
13447
13448   ;;
13449 esac
13450 fi
13451 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
13452 if test -n "$ac_pt_DX_PDFLATEX"; then
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
13454 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
13455 else
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459
13460   if test "x$ac_pt_DX_PDFLATEX" = x; then
13461     DX_PDFLATEX=""
13462   else
13463     case $cross_compiling:$ac_tool_warned in
13464 yes:)
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13467 ac_tool_warned=yes ;;
13468 esac
13469     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
13470   fi
13471 else
13472   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
13473 fi
13474
13475 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
13476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
13477 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
13478     DX_FLAG_pdf=0
13479
13480 fi
13481
13482
13483 if test -n "$ac_tool_prefix"; then
13484   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
13485 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
13489   $as_echo_n "(cached) " >&6
13490 else
13491   case $DX_MAKEINDEX in
13492   [\\/]* | ?:[\\/]*)
13493   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13494   ;;
13495   *)
13496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13498 do
13499   IFS=$as_save_IFS
13500   test -z "$as_dir" && as_dir=.
13501     for ac_exec_ext in '' $ac_executable_extensions; do
13502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13503     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505     break 2
13506   fi
13507 done
13508   done
13509 IFS=$as_save_IFS
13510
13511   ;;
13512 esac
13513 fi
13514 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13515 if test -n "$DX_MAKEINDEX"; then
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13517 $as_echo "$DX_MAKEINDEX" >&6; }
13518 else
13519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13521 fi
13522
13523
13524 fi
13525 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13526   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13527   # Extract the first word of "makeindex", so it can be a program name with args.
13528 set dummy makeindex; ac_word=$2
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530 $as_echo_n "checking for $ac_word... " >&6; }
13531 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
13532   $as_echo_n "(cached) " >&6
13533 else
13534   case $ac_pt_DX_MAKEINDEX in
13535   [\\/]* | ?:[\\/]*)
13536   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13537   ;;
13538   *)
13539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13541 do
13542   IFS=$as_save_IFS
13543   test -z "$as_dir" && as_dir=.
13544     for ac_exec_ext in '' $ac_executable_extensions; do
13545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548     break 2
13549   fi
13550 done
13551   done
13552 IFS=$as_save_IFS
13553
13554   ;;
13555 esac
13556 fi
13557 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13558 if test -n "$ac_pt_DX_MAKEINDEX"; then
13559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13560 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13561 else
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13564 fi
13565
13566   if test "x$ac_pt_DX_MAKEINDEX" = x; then
13567     DX_MAKEINDEX=""
13568   else
13569     case $cross_compiling:$ac_tool_warned in
13570 yes:)
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13573 ac_tool_warned=yes ;;
13574 esac
13575     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13576   fi
13577 else
13578   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13579 fi
13580
13581 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
13582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
13583 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
13584     DX_FLAG_pdf=0
13585
13586 fi
13587
13588
13589 if test -n "$ac_tool_prefix"; then
13590   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13591 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597   case $DX_EGREP in
13598   [\\/]* | ?:[\\/]*)
13599   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13600   ;;
13601   *)
13602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13604 do
13605   IFS=$as_save_IFS
13606   test -z "$as_dir" && as_dir=.
13607     for ac_exec_ext in '' $ac_executable_extensions; do
13608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13609     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611     break 2
13612   fi
13613 done
13614   done
13615 IFS=$as_save_IFS
13616
13617   ;;
13618 esac
13619 fi
13620 DX_EGREP=$ac_cv_path_DX_EGREP
13621 if test -n "$DX_EGREP"; then
13622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13623 $as_echo "$DX_EGREP" >&6; }
13624 else
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628
13629
13630 fi
13631 if test -z "$ac_cv_path_DX_EGREP"; then
13632   ac_pt_DX_EGREP=$DX_EGREP
13633   # Extract the first word of "egrep", so it can be a program name with args.
13634 set dummy egrep; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   case $ac_pt_DX_EGREP in
13641   [\\/]* | ?:[\\/]*)
13642   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13643   ;;
13644   *)
13645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13647 do
13648   IFS=$as_save_IFS
13649   test -z "$as_dir" && as_dir=.
13650     for ac_exec_ext in '' $ac_executable_extensions; do
13651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13652     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654     break 2
13655   fi
13656 done
13657   done
13658 IFS=$as_save_IFS
13659
13660   ;;
13661 esac
13662 fi
13663 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13664 if test -n "$ac_pt_DX_EGREP"; then
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13666 $as_echo "$ac_pt_DX_EGREP" >&6; }
13667 else
13668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13670 fi
13671
13672   if test "x$ac_pt_DX_EGREP" = x; then
13673     DX_EGREP=""
13674   else
13675     case $cross_compiling:$ac_tool_warned in
13676 yes:)
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13679 ac_tool_warned=yes ;;
13680 esac
13681     DX_EGREP=$ac_pt_DX_EGREP
13682   fi
13683 else
13684   DX_EGREP="$ac_cv_path_DX_EGREP"
13685 fi
13686
13687 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
13688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
13689 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
13690     DX_FLAG_pdf=0
13691
13692 fi
13693
13694     :
13695 fi
13696 if test "$DX_FLAG_pdf" = 1; then
13697      if :; then
13698   DX_COND_pdf_TRUE=
13699   DX_COND_pdf_FALSE='#'
13700 else
13701   DX_COND_pdf_TRUE='#'
13702   DX_COND_pdf_FALSE=
13703 fi
13704
13705
13706     :
13707 else
13708      if false; then
13709   DX_COND_pdf_TRUE=
13710   DX_COND_pdf_FALSE='#'
13711 else
13712   DX_COND_pdf_TRUE='#'
13713   DX_COND_pdf_FALSE=
13714 fi
13715
13716
13717     :
13718 fi
13719
13720
13721 # LaTeX generation for PS and/or PDF:
13722 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
13723      if :; then
13724   DX_COND_latex_TRUE=
13725   DX_COND_latex_FALSE='#'
13726 else
13727   DX_COND_latex_TRUE='#'
13728   DX_COND_latex_FALSE=
13729 fi
13730
13731     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
13732
13733 else
13734      if false; then
13735   DX_COND_latex_TRUE=
13736   DX_COND_latex_FALSE='#'
13737 else
13738   DX_COND_latex_TRUE='#'
13739   DX_COND_latex_FALSE=
13740 fi
13741
13742     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
13743
13744 fi
13745
13746 # Paper size for PS and/or PDF:
13747
13748 case "$DOXYGEN_PAPER_SIZE" in
13749 #(
13750 "")
13751     DOXYGEN_PAPER_SIZE=""
13752
13753 ;; #(
13754 a4wide|a4|letter|legal|executive)
13755     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
13756
13757 ;; #(
13758 *)
13759     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
13760 ;;
13761 esac
13762
13763 #For debugging:
13764 #echo DX_FLAG_doc=$DX_FLAG_doc
13765 #echo DX_FLAG_dot=$DX_FLAG_dot
13766 #echo DX_FLAG_man=$DX_FLAG_man
13767 #echo DX_FLAG_html=$DX_FLAG_html
13768 #echo DX_FLAG_chm=$DX_FLAG_chm
13769 #echo DX_FLAG_chi=$DX_FLAG_chi
13770 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13771 #echo DX_FLAG_xml=$DX_FLAG_xml
13772 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13773 #echo DX_FLAG_ps=$DX_FLAG_ps
13774 #echo DX_ENV=$DX_ENV
13775
13776
13777 # Check whether --enable-debug was given.
13778 if test "${enable_debug+set}" = set; then :
13779   enableval=$enable_debug; enable_debug=$enableval
13780 else
13781   enable_debug=no
13782 fi
13783
13784
13785 if test "$enable_debug" = "yes" ; then
13786     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13787     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13788 else
13789     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13790     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13791 fi
13792
13793 ac_config_headers="$ac_config_headers config.h xmltooling/config_pub.h"
13794
13795 ac_config_files="$ac_config_files xmltooling.spec pkginfo Portfile"
13796
13797 ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
13798
13799
13800 ac_ext=c
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13805 if test -n "$ac_tool_prefix"; then
13806   for ac_prog in gcc gcc3 cc
13807   do
13808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if test "${ac_cv_prog_CC+set}" = set; then :
13813   $as_echo_n "(cached) " >&6
13814 else
13815   if test -n "$CC"; then
13816   ac_cv_prog_CC="$CC" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13820 do
13821   IFS=$as_save_IFS
13822   test -z "$as_dir" && as_dir=.
13823     for ac_exec_ext in '' $ac_executable_extensions; do
13824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13825     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827     break 2
13828   fi
13829 done
13830   done
13831 IFS=$as_save_IFS
13832
13833 fi
13834 fi
13835 CC=$ac_cv_prog_CC
13836 if test -n "$CC"; then
13837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13838 $as_echo "$CC" >&6; }
13839 else
13840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13842 fi
13843
13844
13845     test -n "$CC" && break
13846   done
13847 fi
13848 if test -z "$CC"; then
13849   ac_ct_CC=$CC
13850   for ac_prog in gcc gcc3 cc
13851 do
13852   # Extract the first word of "$ac_prog", so it can be a program name with args.
13853 set dummy $ac_prog; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859   if test -n "$ac_ct_CC"; then
13860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13861 else
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13864 do
13865   IFS=$as_save_IFS
13866   test -z "$as_dir" && as_dir=.
13867     for ac_exec_ext in '' $ac_executable_extensions; do
13868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13869     ac_cv_prog_ac_ct_CC="$ac_prog"
13870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871     break 2
13872   fi
13873 done
13874   done
13875 IFS=$as_save_IFS
13876
13877 fi
13878 fi
13879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13880 if test -n "$ac_ct_CC"; then
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13882 $as_echo "$ac_ct_CC" >&6; }
13883 else
13884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13886 fi
13887
13888
13889   test -n "$ac_ct_CC" && break
13890 done
13891
13892   if test "x$ac_ct_CC" = x; then
13893     CC=""
13894   else
13895     case $cross_compiling:$ac_tool_warned in
13896 yes:)
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13899 ac_tool_warned=yes ;;
13900 esac
13901     CC=$ac_ct_CC
13902   fi
13903 fi
13904
13905
13906 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13908 as_fn_error $? "no acceptable C compiler found in \$PATH
13909 See \`config.log' for more details" "$LINENO" 5 ; }
13910
13911 # Provide some information about the compiler.
13912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13913 set X $ac_compile
13914 ac_compiler=$2
13915 for ac_option in --version -v -V -qversion; do
13916   { { ac_try="$ac_compiler $ac_option >&5"
13917 case "(($ac_try" in
13918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919   *) ac_try_echo=$ac_try;;
13920 esac
13921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13922 $as_echo "$ac_try_echo"; } >&5
13923   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13924   ac_status=$?
13925   if test -s conftest.err; then
13926     sed '10a\
13927 ... rest of stderr output deleted ...
13928          10q' conftest.err >conftest.er1
13929     cat conftest.er1 >&5
13930   fi
13931   rm -f conftest.er1 conftest.err
13932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933   test $ac_status = 0; }
13934 done
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13937 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13938 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943
13944 int
13945 main ()
13946 {
13947 #ifndef __GNUC__
13948        choke me
13949 #endif
13950
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 if ac_fn_c_try_compile "$LINENO"; then :
13956   ac_compiler_gnu=yes
13957 else
13958   ac_compiler_gnu=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13962
13963 fi
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13965 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13966 if test $ac_compiler_gnu = yes; then
13967   GCC=yes
13968 else
13969   GCC=
13970 fi
13971 ac_test_CFLAGS=${CFLAGS+set}
13972 ac_save_CFLAGS=$CFLAGS
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13974 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13975 if test "${ac_cv_prog_cc_g+set}" = set; then :
13976   $as_echo_n "(cached) " >&6
13977 else
13978   ac_save_c_werror_flag=$ac_c_werror_flag
13979    ac_c_werror_flag=yes
13980    ac_cv_prog_cc_g=no
13981    CFLAGS="-g"
13982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h.  */
13984
13985 int
13986 main ()
13987 {
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994   ac_cv_prog_cc_g=yes
13995 else
13996   CFLAGS=""
13997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h.  */
13999
14000 int
14001 main ()
14002 {
14003
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009
14010 else
14011   ac_c_werror_flag=$ac_save_c_werror_flag
14012          CFLAGS="-g"
14013          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h.  */
14015
14016 int
14017 main ()
14018 {
14019
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025   ac_cv_prog_cc_g=yes
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032    ac_c_werror_flag=$ac_save_c_werror_flag
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14035 $as_echo "$ac_cv_prog_cc_g" >&6; }
14036 if test "$ac_test_CFLAGS" = set; then
14037   CFLAGS=$ac_save_CFLAGS
14038 elif test $ac_cv_prog_cc_g = yes; then
14039   if test "$GCC" = yes; then
14040     CFLAGS="-g -O2"
14041   else
14042     CFLAGS="-g"
14043   fi
14044 else
14045   if test "$GCC" = yes; then
14046     CFLAGS="-O2"
14047   else
14048     CFLAGS=
14049   fi
14050 fi
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14052 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14053 if test "${ac_cv_prog_cc_c89+set}" = set; then :
14054   $as_echo_n "(cached) " >&6
14055 else
14056   ac_cv_prog_cc_c89=no
14057 ac_save_CC=$CC
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h.  */
14060 #include <stdarg.h>
14061 #include <stdio.h>
14062 #include <sys/types.h>
14063 #include <sys/stat.h>
14064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14065 struct buf { int x; };
14066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14067 static char *e (p, i)
14068      char **p;
14069      int i;
14070 {
14071   return p[i];
14072 }
14073 static char *f (char * (*g) (char **, int), char **p, ...)
14074 {
14075   char *s;
14076   va_list v;
14077   va_start (v,p);
14078   s = g (p, va_arg (v,int));
14079   va_end (v);
14080   return s;
14081 }
14082
14083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14084    function prototypes and stuff, but not '\xHH' hex character constants.
14085    These don't provoke an error unfortunately, instead are silently treated
14086    as 'x'.  The following induces an error, until -std is added to get
14087    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14088    array size at least.  It's necessary to write '\x00'==0 to get something
14089    that's true only with -std.  */
14090 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14091
14092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14093    inside strings and character constants.  */
14094 #define FOO(x) 'x'
14095 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14096
14097 int test (int i, double x);
14098 struct s1 {int (*f) (int a);};
14099 struct s2 {int (*f) (double a);};
14100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14101 int argc;
14102 char **argv;
14103 int
14104 main ()
14105 {
14106 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14112         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14113 do
14114   CC="$ac_save_CC $ac_arg"
14115   if ac_fn_c_try_compile "$LINENO"; then :
14116   ac_cv_prog_cc_c89=$ac_arg
14117 fi
14118 rm -f core conftest.err conftest.$ac_objext
14119   test "x$ac_cv_prog_cc_c89" != "xno" && break
14120 done
14121 rm -f conftest.$ac_ext
14122 CC=$ac_save_CC
14123
14124 fi
14125 # AC_CACHE_VAL
14126 case "x$ac_cv_prog_cc_c89" in
14127   x)
14128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14129 $as_echo "none needed" >&6; } ;;
14130   xno)
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14132 $as_echo "unsupported" >&6; } ;;
14133   *)
14134     CC="$CC $ac_cv_prog_cc_c89"
14135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14137 esac
14138 if test "x$ac_cv_prog_cc_c89" != xno; then :
14139
14140 fi
14141
14142 ac_ext=c
14143 ac_cpp='$CPP $CPPFLAGS'
14144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14147
14148 depcc="$CC"   am_compiler_list=
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14151 $as_echo_n "checking dependency style of $depcc... " >&6; }
14152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14153   $as_echo_n "(cached) " >&6
14154 else
14155   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14156   # We make a subdir and do the tests there.  Otherwise we can end up
14157   # making bogus files that we don't know about and never remove.  For
14158   # instance it was reported that on HP-UX the gcc test will end up
14159   # making a dummy file named `D' -- because `-MD' means `put the output
14160   # in D'.
14161   mkdir conftest.dir
14162   # Copy depcomp to subdir because otherwise we won't find it if we're
14163   # using a relative directory.
14164   cp "$am_depcomp" conftest.dir
14165   cd conftest.dir
14166   # We will build objects and dependencies in a subdirectory because
14167   # it helps to detect inapplicable dependency modes.  For instance
14168   # both Tru64's cc and ICC support -MD to output dependencies as a
14169   # side effect of compilation, but ICC will put the dependencies in
14170   # the current directory while Tru64 will put them in the object
14171   # directory.
14172   mkdir sub
14173
14174   am_cv_CC_dependencies_compiler_type=none
14175   if test "$am_compiler_list" = ""; then
14176      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14177   fi
14178   am__universal=false
14179   case " $depcc " in #(
14180      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14181      esac
14182
14183   for depmode in $am_compiler_list; do
14184     # Setup a source with many dependencies, because some compilers
14185     # like to wrap large dependency lists on column 80 (with \), and
14186     # we should not choose a depcomp mode which is confused by this.
14187     #
14188     # We need to recreate these files for each test, as the compiler may
14189     # overwrite some of them when testing with obscure command lines.
14190     # This happens at least with the AIX C compiler.
14191     : > sub/conftest.c
14192     for i in 1 2 3 4 5 6; do
14193       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14194       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14195       # Solaris 8's {/usr,}/bin/sh.
14196       touch sub/conftst$i.h
14197     done
14198     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14199
14200     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14201     # mode.  It turns out that the SunPro C++ compiler does not properly
14202     # handle `-M -o', and we need to detect this.  Also, some Intel
14203     # versions had trouble with output in subdirs
14204     am__obj=sub/conftest.${OBJEXT-o}
14205     am__minus_obj="-o $am__obj"
14206     case $depmode in
14207     gcc)
14208       # This depmode causes a compiler race in universal mode.
14209       test "$am__universal" = false || continue
14210       ;;
14211     nosideeffect)
14212       # after this tag, mechanisms are not by side-effect, so they'll
14213       # only be used when explicitly requested
14214       if test "x$enable_dependency_tracking" = xyes; then
14215         continue
14216       else
14217         break
14218       fi
14219       ;;
14220     msvisualcpp | msvcmsys)
14221       # This compiler won't grok `-c -o', but also, the minuso test has
14222       # not run yet.  These depmodes are late enough in the game, and
14223       # so weak that their functioning should not be impacted.
14224       am__obj=conftest.${OBJEXT-o}
14225       am__minus_obj=
14226       ;;
14227     none) break ;;
14228     esac
14229     if depmode=$depmode \
14230        source=sub/conftest.c object=$am__obj \
14231        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14232        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14233          >/dev/null 2>conftest.err &&
14234        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14235        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14236        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14237        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14238       # icc doesn't choke on unknown options, it will just issue warnings
14239       # or remarks (even with -Werror).  So we grep stderr for any message
14240       # that says an option was ignored or not supported.
14241       # When given -MP, icc 7.0 and 7.1 complain thusly:
14242       #   icc: Command line warning: ignoring option '-M'; no argument required
14243       # The diagnosis changed in icc 8.0:
14244       #   icc: Command line remark: option '-MP' not supported
14245       if (grep 'ignoring option' conftest.err ||
14246           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14247         am_cv_CC_dependencies_compiler_type=$depmode
14248         break
14249       fi
14250     fi
14251   done
14252
14253   cd ..
14254   rm -rf conftest.dir
14255 else
14256   am_cv_CC_dependencies_compiler_type=none
14257 fi
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14263
14264  if
14265   test "x$enable_dependency_tracking" != xno \
14266   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14267   am__fastdepCC_TRUE=
14268   am__fastdepCC_FALSE='#'
14269 else
14270   am__fastdepCC_TRUE='#'
14271   am__fastdepCC_FALSE=
14272 fi
14273
14274
14275 ac_ext=cpp
14276 ac_cpp='$CXXCPP $CPPFLAGS'
14277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14280 if test -z "$CXX"; then
14281   if test -n "$CCC"; then
14282     CXX=$CCC
14283   else
14284     if test -n "$ac_tool_prefix"; then
14285   for ac_prog in g++ g++3 c++ CC
14286   do
14287     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290 $as_echo_n "checking for $ac_word... " >&6; }
14291 if test "${ac_cv_prog_CXX+set}" = set; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   if test -n "$CXX"; then
14295   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14296 else
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14299 do
14300   IFS=$as_save_IFS
14301   test -z "$as_dir" && as_dir=.
14302     for ac_exec_ext in '' $ac_executable_extensions; do
14303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306     break 2
14307   fi
14308 done
14309   done
14310 IFS=$as_save_IFS
14311
14312 fi
14313 fi
14314 CXX=$ac_cv_prog_CXX
14315 if test -n "$CXX"; then
14316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14317 $as_echo "$CXX" >&6; }
14318 else
14319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321 fi
14322
14323
14324     test -n "$CXX" && break
14325   done
14326 fi
14327 if test -z "$CXX"; then
14328   ac_ct_CXX=$CXX
14329   for ac_prog in g++ g++3 c++ CC
14330 do
14331   # Extract the first word of "$ac_prog", so it can be a program name with args.
14332 set dummy $ac_prog; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14334 $as_echo_n "checking for $ac_word... " >&6; }
14335 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14336   $as_echo_n "(cached) " >&6
14337 else
14338   if test -n "$ac_ct_CXX"; then
14339   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14340 else
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14343 do
14344   IFS=$as_save_IFS
14345   test -z "$as_dir" && as_dir=.
14346     for ac_exec_ext in '' $ac_executable_extensions; do
14347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14348     ac_cv_prog_ac_ct_CXX="$ac_prog"
14349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14350     break 2
14351   fi
14352 done
14353   done
14354 IFS=$as_save_IFS
14355
14356 fi
14357 fi
14358 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14359 if test -n "$ac_ct_CXX"; then
14360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14361 $as_echo "$ac_ct_CXX" >&6; }
14362 else
14363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14365 fi
14366
14367
14368   test -n "$ac_ct_CXX" && break
14369 done
14370
14371   if test "x$ac_ct_CXX" = x; then
14372     CXX="g++"
14373   else
14374     case $cross_compiling:$ac_tool_warned in
14375 yes:)
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14378 ac_tool_warned=yes ;;
14379 esac
14380     CXX=$ac_ct_CXX
14381   fi
14382 fi
14383
14384   fi
14385 fi
14386 # Provide some information about the compiler.
14387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14388 set X $ac_compile
14389 ac_compiler=$2
14390 for ac_option in --version -v -V -qversion; do
14391   { { ac_try="$ac_compiler $ac_option >&5"
14392 case "(($ac_try" in
14393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394   *) ac_try_echo=$ac_try;;
14395 esac
14396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14397 $as_echo "$ac_try_echo"; } >&5
14398   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14399   ac_status=$?
14400   if test -s conftest.err; then
14401     sed '10a\
14402 ... rest of stderr output deleted ...
14403          10q' conftest.err >conftest.er1
14404     cat conftest.er1 >&5
14405   fi
14406   rm -f conftest.er1 conftest.err
14407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14408   test $ac_status = 0; }
14409 done
14410
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14412 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14413 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h.  */
14418
14419 int
14420 main ()
14421 {
14422 #ifndef __GNUC__
14423        choke me
14424 #endif
14425
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 if ac_fn_cxx_try_compile "$LINENO"; then :
14431   ac_compiler_gnu=yes
14432 else
14433   ac_compiler_gnu=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14437
14438 fi
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14440 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14441 if test $ac_compiler_gnu = yes; then
14442   GXX=yes
14443 else
14444   GXX=
14445 fi
14446 ac_test_CXXFLAGS=${CXXFLAGS+set}
14447 ac_save_CXXFLAGS=$CXXFLAGS
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14449 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14450 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14454    ac_cxx_werror_flag=yes
14455    ac_cv_prog_cxx_g=no
14456    CXXFLAGS="-g"
14457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h.  */
14459
14460 int
14461 main ()
14462 {
14463
14464   ;
14465   return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_cxx_try_compile "$LINENO"; then :
14469   ac_cv_prog_cxx_g=yes
14470 else
14471   CXXFLAGS=""
14472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h.  */
14474
14475 int
14476 main ()
14477 {
14478
14479   ;
14480   return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_cxx_try_compile "$LINENO"; then :
14484
14485 else
14486   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14487          CXXFLAGS="-g"
14488          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h.  */
14490
14491 int
14492 main ()
14493 {
14494
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 if ac_fn_cxx_try_compile "$LINENO"; then :
14500   ac_cv_prog_cxx_g=yes
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14510 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14511 if test "$ac_test_CXXFLAGS" = set; then
14512   CXXFLAGS=$ac_save_CXXFLAGS
14513 elif test $ac_cv_prog_cxx_g = yes; then
14514   if test "$GXX" = yes; then
14515     CXXFLAGS="-g -O2"
14516   else
14517     CXXFLAGS="-g"
14518   fi
14519 else
14520   if test "$GXX" = yes; then
14521     CXXFLAGS="-O2"
14522   else
14523     CXXFLAGS=
14524   fi
14525 fi
14526 ac_ext=c
14527 ac_cpp='$CPP $CPPFLAGS'
14528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14531
14532 depcc="$CXX"  am_compiler_list=
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14535 $as_echo_n "checking dependency style of $depcc... " >&6; }
14536 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14537   $as_echo_n "(cached) " >&6
14538 else
14539   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14540   # We make a subdir and do the tests there.  Otherwise we can end up
14541   # making bogus files that we don't know about and never remove.  For
14542   # instance it was reported that on HP-UX the gcc test will end up
14543   # making a dummy file named `D' -- because `-MD' means `put the output
14544   # in D'.
14545   mkdir conftest.dir
14546   # Copy depcomp to subdir because otherwise we won't find it if we're
14547   # using a relative directory.
14548   cp "$am_depcomp" conftest.dir
14549   cd conftest.dir
14550   # We will build objects and dependencies in a subdirectory because
14551   # it helps to detect inapplicable dependency modes.  For instance
14552   # both Tru64's cc and ICC support -MD to output dependencies as a
14553   # side effect of compilation, but ICC will put the dependencies in
14554   # the current directory while Tru64 will put them in the object
14555   # directory.
14556   mkdir sub
14557
14558   am_cv_CXX_dependencies_compiler_type=none
14559   if test "$am_compiler_list" = ""; then
14560      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14561   fi
14562   am__universal=false
14563   case " $depcc " in #(
14564      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14565      esac
14566
14567   for depmode in $am_compiler_list; do
14568     # Setup a source with many dependencies, because some compilers
14569     # like to wrap large dependency lists on column 80 (with \), and
14570     # we should not choose a depcomp mode which is confused by this.
14571     #
14572     # We need to recreate these files for each test, as the compiler may
14573     # overwrite some of them when testing with obscure command lines.
14574     # This happens at least with the AIX C compiler.
14575     : > sub/conftest.c
14576     for i in 1 2 3 4 5 6; do
14577       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14578       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14579       # Solaris 8's {/usr,}/bin/sh.
14580       touch sub/conftst$i.h
14581     done
14582     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14583
14584     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14585     # mode.  It turns out that the SunPro C++ compiler does not properly
14586     # handle `-M -o', and we need to detect this.  Also, some Intel
14587     # versions had trouble with output in subdirs
14588     am__obj=sub/conftest.${OBJEXT-o}
14589     am__minus_obj="-o $am__obj"
14590     case $depmode in
14591     gcc)
14592       # This depmode causes a compiler race in universal mode.
14593       test "$am__universal" = false || continue
14594       ;;
14595     nosideeffect)
14596       # after this tag, mechanisms are not by side-effect, so they'll
14597       # only be used when explicitly requested
14598       if test "x$enable_dependency_tracking" = xyes; then
14599         continue
14600       else
14601         break
14602       fi
14603       ;;
14604     msvisualcpp | msvcmsys)
14605       # This compiler won't grok `-c -o', but also, the minuso test has
14606       # not run yet.  These depmodes are late enough in the game, and
14607       # so weak that their functioning should not be impacted.
14608       am__obj=conftest.${OBJEXT-o}
14609       am__minus_obj=
14610       ;;
14611     none) break ;;
14612     esac
14613     if depmode=$depmode \
14614        source=sub/conftest.c object=$am__obj \
14615        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14616        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14617          >/dev/null 2>conftest.err &&
14618        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14619        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14620        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14621        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14622       # icc doesn't choke on unknown options, it will just issue warnings
14623       # or remarks (even with -Werror).  So we grep stderr for any message
14624       # that says an option was ignored or not supported.
14625       # When given -MP, icc 7.0 and 7.1 complain thusly:
14626       #   icc: Command line warning: ignoring option '-M'; no argument required
14627       # The diagnosis changed in icc 8.0:
14628       #   icc: Command line remark: option '-MP' not supported
14629       if (grep 'ignoring option' conftest.err ||
14630           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14631         am_cv_CXX_dependencies_compiler_type=$depmode
14632         break
14633       fi
14634     fi
14635   done
14636
14637   cd ..
14638   rm -rf conftest.dir
14639 else
14640   am_cv_CXX_dependencies_compiler_type=none
14641 fi
14642
14643 fi
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14645 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14646 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14647
14648  if
14649   test "x$enable_dependency_tracking" != xno \
14650   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14651   am__fastdepCXX_TRUE=
14652   am__fastdepCXX_FALSE='#'
14653 else
14654   am__fastdepCXX_TRUE='#'
14655   am__fastdepCXX_FALSE=
14656 fi
14657
14658
14659
14660
14661 func_stripname_cnf ()
14662 {
14663   case ${2} in
14664   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14665   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14666   esac
14667 } # func_stripname_cnf
14668
14669       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14670     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14671     (test "X$CXX" != "Xg++"))) ; then
14672   ac_ext=cpp
14673 ac_cpp='$CXXCPP $CPPFLAGS'
14674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14678 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14679 if test -z "$CXXCPP"; then
14680   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14681   $as_echo_n "(cached) " >&6
14682 else
14683       # Double quotes because CXXCPP needs to be expanded
14684     for CXXCPP in "$CXX -E" "/lib/cpp"
14685     do
14686       ac_preproc_ok=false
14687 for ac_cxx_preproc_warn_flag in '' yes
14688 do
14689   # Use a header file that comes with gcc, so configuring glibc
14690   # with a fresh cross-compiler works.
14691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692   # <limits.h> exists even on freestanding compilers.
14693   # On the NeXT, cc -E runs the code through the compiler's parser,
14694   # not just through cpp. "Syntax error" is here to catch this case.
14695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h.  */
14697 #ifdef __STDC__
14698 # include <limits.h>
14699 #else
14700 # include <assert.h>
14701 #endif
14702                      Syntax error
14703 _ACEOF
14704 if ac_fn_cxx_try_cpp "$LINENO"; then :
14705
14706 else
14707   # Broken: fails on valid input.
14708 continue
14709 fi
14710 rm -f conftest.err conftest.i conftest.$ac_ext
14711
14712   # OK, works on sane cases.  Now check whether nonexistent headers
14713   # can be detected and how.
14714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h.  */
14716 #include <ac_nonexistent.h>
14717 _ACEOF
14718 if ac_fn_cxx_try_cpp "$LINENO"; then :
14719   # Broken: success on invalid input.
14720 continue
14721 else
14722   # Passes both tests.
14723 ac_preproc_ok=:
14724 break
14725 fi
14726 rm -f conftest.err conftest.i conftest.$ac_ext
14727
14728 done
14729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14730 rm -f conftest.i conftest.err conftest.$ac_ext
14731 if $ac_preproc_ok; then :
14732   break
14733 fi
14734
14735     done
14736     ac_cv_prog_CXXCPP=$CXXCPP
14737
14738 fi
14739   CXXCPP=$ac_cv_prog_CXXCPP
14740 else
14741   ac_cv_prog_CXXCPP=$CXXCPP
14742 fi
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14744 $as_echo "$CXXCPP" >&6; }
14745 ac_preproc_ok=false
14746 for ac_cxx_preproc_warn_flag in '' yes
14747 do
14748   # Use a header file that comes with gcc, so configuring glibc
14749   # with a fresh cross-compiler works.
14750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14751   # <limits.h> exists even on freestanding compilers.
14752   # On the NeXT, cc -E runs the code through the compiler's parser,
14753   # not just through cpp. "Syntax error" is here to catch this case.
14754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h.  */
14756 #ifdef __STDC__
14757 # include <limits.h>
14758 #else
14759 # include <assert.h>
14760 #endif
14761                      Syntax error
14762 _ACEOF
14763 if ac_fn_cxx_try_cpp "$LINENO"; then :
14764
14765 else
14766   # Broken: fails on valid input.
14767 continue
14768 fi
14769 rm -f conftest.err conftest.i conftest.$ac_ext
14770
14771   # OK, works on sane cases.  Now check whether nonexistent headers
14772   # can be detected and how.
14773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h.  */
14775 #include <ac_nonexistent.h>
14776 _ACEOF
14777 if ac_fn_cxx_try_cpp "$LINENO"; then :
14778   # Broken: success on invalid input.
14779 continue
14780 else
14781   # Passes both tests.
14782 ac_preproc_ok=:
14783 break
14784 fi
14785 rm -f conftest.err conftest.i conftest.$ac_ext
14786
14787 done
14788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14789 rm -f conftest.i conftest.err conftest.$ac_ext
14790 if $ac_preproc_ok; then :
14791
14792 else
14793   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14795 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14796 See \`config.log' for more details" "$LINENO" 5 ; }
14797 fi
14798
14799 ac_ext=c
14800 ac_cpp='$CPP $CPPFLAGS'
14801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14804
14805 else
14806   _lt_caught_CXX_error=yes
14807 fi
14808
14809 ac_ext=cpp
14810 ac_cpp='$CXXCPP $CPPFLAGS'
14811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14814
14815 archive_cmds_need_lc_CXX=no
14816 allow_undefined_flag_CXX=
14817 always_export_symbols_CXX=no
14818 archive_expsym_cmds_CXX=
14819 compiler_needs_object_CXX=no
14820 export_dynamic_flag_spec_CXX=
14821 hardcode_direct_CXX=no
14822 hardcode_direct_absolute_CXX=no
14823 hardcode_libdir_flag_spec_CXX=
14824 hardcode_libdir_flag_spec_ld_CXX=
14825 hardcode_libdir_separator_CXX=
14826 hardcode_minus_L_CXX=no
14827 hardcode_shlibpath_var_CXX=unsupported
14828 hardcode_automatic_CXX=no
14829 inherit_rpath_CXX=no
14830 module_cmds_CXX=
14831 module_expsym_cmds_CXX=
14832 link_all_deplibs_CXX=unknown
14833 old_archive_cmds_CXX=$old_archive_cmds
14834 reload_flag_CXX=$reload_flag
14835 reload_cmds_CXX=$reload_cmds
14836 no_undefined_flag_CXX=
14837 whole_archive_flag_spec_CXX=
14838 enable_shared_with_static_runtimes_CXX=no
14839
14840 # Source file extension for C++ test sources.
14841 ac_ext=cpp
14842
14843 # Object file extension for compiled C++ test sources.
14844 objext=o
14845 objext_CXX=$objext
14846
14847 # No sense in running all these tests if we already determined that
14848 # the CXX compiler isn't working.  Some variables (like enable_shared)
14849 # are currently assumed to apply to all compilers on this platform,
14850 # and will be corrupted by setting them based on a non-working compiler.
14851 if test "$_lt_caught_CXX_error" != yes; then
14852   # Code to be used in simple compile tests
14853   lt_simple_compile_test_code="int some_variable = 0;"
14854
14855   # Code to be used in simple link tests
14856   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14857
14858   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14859
14860
14861
14862
14863
14864
14865 # If no C compiler was specified, use CC.
14866 LTCC=${LTCC-"$CC"}
14867
14868 # If no C compiler flags were specified, use CFLAGS.
14869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14870
14871 # Allow CC to be a program name with arguments.
14872 compiler=$CC
14873
14874
14875   # save warnings/boilerplate of simple test code
14876   ac_outfile=conftest.$ac_objext
14877 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14878 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14879 _lt_compiler_boilerplate=`cat conftest.err`
14880 $RM conftest*
14881
14882   ac_outfile=conftest.$ac_objext
14883 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14884 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14885 _lt_linker_boilerplate=`cat conftest.err`
14886 $RM -r conftest*
14887
14888
14889   # Allow CC to be a program name with arguments.
14890   lt_save_CC=$CC
14891   lt_save_CFLAGS=$CFLAGS
14892   lt_save_LD=$LD
14893   lt_save_GCC=$GCC
14894   GCC=$GXX
14895   lt_save_with_gnu_ld=$with_gnu_ld
14896   lt_save_path_LD=$lt_cv_path_LD
14897   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14898     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14899   else
14900     $as_unset lt_cv_prog_gnu_ld
14901   fi
14902   if test -n "${lt_cv_path_LDCXX+set}"; then
14903     lt_cv_path_LD=$lt_cv_path_LDCXX
14904   else
14905     $as_unset lt_cv_path_LD
14906   fi
14907   test -z "${LDCXX+set}" || LD=$LDCXX
14908   CC=${CXX-"c++"}
14909   CFLAGS=$CXXFLAGS
14910   compiler=$CC
14911   compiler_CXX=$CC
14912   for cc_temp in $compiler""; do
14913   case $cc_temp in
14914     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14915     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14916     \-*) ;;
14917     *) break;;
14918   esac
14919 done
14920 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14921
14922
14923   if test -n "$compiler"; then
14924     # We don't want -fno-exception when compiling C++ code, so set the
14925     # no_builtin_flag separately
14926     if test "$GXX" = yes; then
14927       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14928     else
14929       lt_prog_compiler_no_builtin_flag_CXX=
14930     fi
14931
14932     if test "$GXX" = yes; then
14933       # Set up default GNU C++ configuration
14934
14935
14936
14937 # Check whether --with-gnu-ld was given.
14938 if test "${with_gnu_ld+set}" = set; then :
14939   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14940 else
14941   with_gnu_ld=no
14942 fi
14943
14944 ac_prog=ld
14945 if test "$GCC" = yes; then
14946   # Check if gcc -print-prog-name=ld gives a path.
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14948 $as_echo_n "checking for ld used by $CC... " >&6; }
14949   case $host in
14950   *-*-mingw*)
14951     # gcc leaves a trailing carriage return which upsets mingw
14952     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14953   *)
14954     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14955   esac
14956   case $ac_prog in
14957     # Accept absolute paths.
14958     [\\/]* | ?:[\\/]*)
14959       re_direlt='/[^/][^/]*/\.\./'
14960       # Canonicalize the pathname of ld
14961       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14962       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14963         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14964       done
14965       test -z "$LD" && LD="$ac_prog"
14966       ;;
14967   "")
14968     # If it fails, then pretend we aren't using GCC.
14969     ac_prog=ld
14970     ;;
14971   *)
14972     # If it is relative, then search for the first ld in PATH.
14973     with_gnu_ld=unknown
14974     ;;
14975   esac
14976 elif test "$with_gnu_ld" = yes; then
14977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14978 $as_echo_n "checking for GNU ld... " >&6; }
14979 else
14980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14981 $as_echo_n "checking for non-GNU ld... " >&6; }
14982 fi
14983 if test "${lt_cv_path_LD+set}" = set; then :
14984   $as_echo_n "(cached) " >&6
14985 else
14986   if test -z "$LD"; then
14987   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14988   for ac_dir in $PATH; do
14989     IFS="$lt_save_ifs"
14990     test -z "$ac_dir" && ac_dir=.
14991     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14992       lt_cv_path_LD="$ac_dir/$ac_prog"
14993       # Check to see if the program is GNU ld.  I'd rather use --version,
14994       # but apparently some variants of GNU ld only accept -v.
14995       # Break only if it was the GNU/non-GNU ld that we prefer.
14996       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14997       *GNU* | *'with BFD'*)
14998         test "$with_gnu_ld" != no && break
14999         ;;
15000       *)
15001         test "$with_gnu_ld" != yes && break
15002         ;;
15003       esac
15004     fi
15005   done
15006   IFS="$lt_save_ifs"
15007 else
15008   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15009 fi
15010 fi
15011
15012 LD="$lt_cv_path_LD"
15013 if test -n "$LD"; then
15014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15015 $as_echo "$LD" >&6; }
15016 else
15017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018 $as_echo "no" >&6; }
15019 fi
15020 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15022 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15023 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15024   $as_echo_n "(cached) " >&6
15025 else
15026   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15027 case `$LD -v 2>&1 </dev/null` in
15028 *GNU* | *'with BFD'*)
15029   lt_cv_prog_gnu_ld=yes
15030   ;;
15031 *)
15032   lt_cv_prog_gnu_ld=no
15033   ;;
15034 esac
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15037 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15038 with_gnu_ld=$lt_cv_prog_gnu_ld
15039
15040
15041
15042
15043
15044
15045
15046       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15047       # archiving commands below assume that GNU ld is being used.
15048       if test "$with_gnu_ld" = yes; then
15049         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15050         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'
15051
15052         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15053         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15054
15055         # If archive_cmds runs LD, not CC, wlarc should be empty
15056         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15057         #     investigate it a little bit more. (MM)
15058         wlarc='${wl}'
15059
15060         # ancient GNU ld didn't support --whole-archive et. al.
15061         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15062           $GREP 'no-whole-archive' > /dev/null; then
15063           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15064         else
15065           whole_archive_flag_spec_CXX=
15066         fi
15067       else
15068         with_gnu_ld=no
15069         wlarc=
15070
15071         # A generic and very simple default shared library creation
15072         # command for GNU C++ for the case where it uses the native
15073         # linker, instead of GNU ld.  If possible, this setting should
15074         # overridden to take advantage of the native linker features on
15075         # the platform it is being used on.
15076         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15077       fi
15078
15079       # Commands to make compiler produce verbose output that lists
15080       # what "hidden" libraries, object files and flags are used when
15081       # linking a shared library.
15082       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15083
15084     else
15085       GXX=no
15086       with_gnu_ld=no
15087       wlarc=
15088     fi
15089
15090     # PORTME: fill in a description of your system's C++ link characteristics
15091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15093     ld_shlibs_CXX=yes
15094     case $host_os in
15095       aix3*)
15096         # FIXME: insert proper C++ library support
15097         ld_shlibs_CXX=no
15098         ;;
15099       aix[4-9]*)
15100         if test "$host_cpu" = ia64; then
15101           # On IA64, the linker does run time linking by default, so we don't
15102           # have to do anything special.
15103           aix_use_runtimelinking=no
15104           exp_sym_flag='-Bexport'
15105           no_entry_flag=""
15106         else
15107           aix_use_runtimelinking=no
15108
15109           # Test if we are trying to use run time linking or normal
15110           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15111           # need to do runtime linking.
15112           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15113             for ld_flag in $LDFLAGS; do
15114               case $ld_flag in
15115               *-brtl*)
15116                 aix_use_runtimelinking=yes
15117                 break
15118                 ;;
15119               esac
15120             done
15121             ;;
15122           esac
15123
15124           exp_sym_flag='-bexport'
15125           no_entry_flag='-bnoentry'
15126         fi
15127
15128         # When large executables or shared objects are built, AIX ld can
15129         # have problems creating the table of contents.  If linking a library
15130         # or program results in "error TOC overflow" add -mminimal-toc to
15131         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15132         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15133
15134         archive_cmds_CXX=''
15135         hardcode_direct_CXX=yes
15136         hardcode_direct_absolute_CXX=yes
15137         hardcode_libdir_separator_CXX=':'
15138         link_all_deplibs_CXX=yes
15139         file_list_spec_CXX='${wl}-f,'
15140
15141         if test "$GXX" = yes; then
15142           case $host_os in aix4.[012]|aix4.[012].*)
15143           # We only want to do this on AIX 4.2 and lower, the check
15144           # below for broken collect2 doesn't work under 4.3+
15145           collect2name=`${CC} -print-prog-name=collect2`
15146           if test -f "$collect2name" &&
15147              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15148           then
15149             # We have reworked collect2
15150             :
15151           else
15152             # We have old collect2
15153             hardcode_direct_CXX=unsupported
15154             # It fails to find uninstalled libraries when the uninstalled
15155             # path is not listed in the libpath.  Setting hardcode_minus_L
15156             # to unsupported forces relinking
15157             hardcode_minus_L_CXX=yes
15158             hardcode_libdir_flag_spec_CXX='-L$libdir'
15159             hardcode_libdir_separator_CXX=
15160           fi
15161           esac
15162           shared_flag='-shared'
15163           if test "$aix_use_runtimelinking" = yes; then
15164             shared_flag="$shared_flag "'${wl}-G'
15165           fi
15166         else
15167           # not using gcc
15168           if test "$host_cpu" = ia64; then
15169           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170           # chokes on -Wl,-G. The following line is correct:
15171           shared_flag='-G'
15172           else
15173             if test "$aix_use_runtimelinking" = yes; then
15174               shared_flag='${wl}-G'
15175             else
15176               shared_flag='${wl}-bM:SRE'
15177             fi
15178           fi
15179         fi
15180
15181         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15182         # It seems that -bexpall does not export symbols beginning with
15183         # underscore (_), so it is better to generate a list of symbols to
15184         # export.
15185         always_export_symbols_CXX=yes
15186         if test "$aix_use_runtimelinking" = yes; then
15187           # Warning - without using the other runtime loading flags (-brtl),
15188           # -berok will link without error, but may produce a broken library.
15189           allow_undefined_flag_CXX='-berok'
15190           # Determine the default libpath from the value encoded in an empty
15191           # executable.
15192           if test "${lt_cv_aix_libpath+set}" = set; then
15193   aix_libpath=$lt_cv_aix_libpath
15194 else
15195   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
15196   $as_echo_n "(cached) " >&6
15197 else
15198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h.  */
15200
15201 int
15202 main ()
15203 {
15204
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 if ac_fn_cxx_try_link "$LINENO"; then :
15210
15211   lt_aix_libpath_sed='
15212       /Import File Strings/,/^$/ {
15213           /^0/ {
15214               s/^0  *\([^ ]*\) *$/\1/
15215               p
15216           }
15217       }'
15218   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15219   # Check for a 64-bit object if we didn't find anything.
15220   if test -z "$lt_cv_aix_libpath__CXX"; then
15221     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15222   fi
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext \
15225     conftest$ac_exeext conftest.$ac_ext
15226   if test -z "$lt_cv_aix_libpath__CXX"; then
15227     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15228   fi
15229
15230 fi
15231
15232   aix_libpath=$lt_cv_aix_libpath__CXX
15233 fi
15234
15235           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15236
15237           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15238         else
15239           if test "$host_cpu" = ia64; then
15240             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15241             allow_undefined_flag_CXX="-z nodefs"
15242             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"
15243           else
15244             # Determine the default libpath from the value encoded in an
15245             # empty executable.
15246             if test "${lt_cv_aix_libpath+set}" = set; then
15247   aix_libpath=$lt_cv_aix_libpath
15248 else
15249   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
15250   $as_echo_n "(cached) " >&6
15251 else
15252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h.  */
15254
15255 int
15256 main ()
15257 {
15258
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 if ac_fn_cxx_try_link "$LINENO"; then :
15264
15265   lt_aix_libpath_sed='
15266       /Import File Strings/,/^$/ {
15267           /^0/ {
15268               s/^0  *\([^ ]*\) *$/\1/
15269               p
15270           }
15271       }'
15272   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15273   # Check for a 64-bit object if we didn't find anything.
15274   if test -z "$lt_cv_aix_libpath__CXX"; then
15275     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15276   fi
15277 fi
15278 rm -f core conftest.err conftest.$ac_objext \
15279     conftest$ac_exeext conftest.$ac_ext
15280   if test -z "$lt_cv_aix_libpath__CXX"; then
15281     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15282   fi
15283
15284 fi
15285
15286   aix_libpath=$lt_cv_aix_libpath__CXX
15287 fi
15288
15289             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15290             # Warning - without using the other run time loading flags,
15291             # -berok will link without error, but may produce a broken library.
15292             no_undefined_flag_CXX=' ${wl}-bernotok'
15293             allow_undefined_flag_CXX=' ${wl}-berok'
15294             if test "$with_gnu_ld" = yes; then
15295               # We only use this code for GNU lds that support --whole-archive.
15296               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15297             else
15298               # Exported symbols can be pulled into shared objects from archives
15299               whole_archive_flag_spec_CXX='$convenience'
15300             fi
15301             archive_cmds_need_lc_CXX=yes
15302             # This is similar to how AIX traditionally builds its shared
15303             # libraries.
15304             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15305           fi
15306         fi
15307         ;;
15308
15309       beos*)
15310         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15311           allow_undefined_flag_CXX=unsupported
15312           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15313           # support --undefined.  This deserves some investigation.  FIXME
15314           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315         else
15316           ld_shlibs_CXX=no
15317         fi
15318         ;;
15319
15320       chorus*)
15321         case $cc_basename in
15322           *)
15323           # FIXME: insert proper C++ library support
15324           ld_shlibs_CXX=no
15325           ;;
15326         esac
15327         ;;
15328
15329       cygwin* | mingw* | pw32* | cegcc*)
15330         case $GXX,$cc_basename in
15331         ,cl* | no,cl*)
15332           # Native MSVC
15333           # hardcode_libdir_flag_spec is actually meaningless, as there is
15334           # no search path for DLLs.
15335           hardcode_libdir_flag_spec_CXX=' '
15336           allow_undefined_flag_CXX=unsupported
15337           always_export_symbols_CXX=yes
15338           file_list_spec_CXX='@'
15339           # Tell ltmain to make .lib files, not .a files.
15340           libext=lib
15341           # Tell ltmain to make .dll files, not .so files.
15342           shrext_cmds=".dll"
15343           # FIXME: Setting linknames here is a bad hack.
15344           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15345           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15346               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15347             else
15348               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15349             fi~
15350             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15351             linknames='
15352           # The linker will not automatically build a static lib if we build a DLL.
15353           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15354           enable_shared_with_static_runtimes_CXX=yes
15355           # Don't use ranlib
15356           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15357           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15358             lt_tool_outputfile="@TOOL_OUTPUT@"~
15359             case $lt_outputfile in
15360               *.exe|*.EXE) ;;
15361               *)
15362                 lt_outputfile="$lt_outputfile.exe"
15363                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15364                 ;;
15365             esac~
15366             func_to_tool_file "$lt_outputfile"~
15367             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15368               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15369               $RM "$lt_outputfile.manifest";
15370             fi'
15371           ;;
15372         *)
15373           # g++
15374           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15375           # as there is no search path for DLLs.
15376           hardcode_libdir_flag_spec_CXX='-L$libdir'
15377           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15378           allow_undefined_flag_CXX=unsupported
15379           always_export_symbols_CXX=no
15380           enable_shared_with_static_runtimes_CXX=yes
15381
15382           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15383             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'
15384             # If the export-symbols file already is a .def file (1st line
15385             # is EXPORTS), use it as is; otherwise, prepend...
15386             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15387               cp $export_symbols $output_objdir/$soname.def;
15388             else
15389               echo EXPORTS > $output_objdir/$soname.def;
15390               cat $export_symbols >> $output_objdir/$soname.def;
15391             fi~
15392             $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'
15393           else
15394             ld_shlibs_CXX=no
15395           fi
15396           ;;
15397         esac
15398         ;;
15399       darwin* | rhapsody*)
15400
15401
15402   archive_cmds_need_lc_CXX=no
15403   hardcode_direct_CXX=no
15404   hardcode_automatic_CXX=yes
15405   hardcode_shlibpath_var_CXX=unsupported
15406   if test "$lt_cv_ld_force_load" = "yes"; then
15407     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\"`'
15408   else
15409     whole_archive_flag_spec_CXX=''
15410   fi
15411   link_all_deplibs_CXX=yes
15412   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15413   case $cc_basename in
15414      ifort*) _lt_dar_can_shared=yes ;;
15415      *) _lt_dar_can_shared=$GCC ;;
15416   esac
15417   if test "$_lt_dar_can_shared" = "yes"; then
15418     output_verbose_link_cmd=func_echo_all
15419     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}"
15420     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15421     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}"
15422     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}"
15423        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15424       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}"
15425       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}"
15426     fi
15427
15428   else
15429   ld_shlibs_CXX=no
15430   fi
15431
15432         ;;
15433
15434       dgux*)
15435         case $cc_basename in
15436           ec++*)
15437             # FIXME: insert proper C++ library support
15438             ld_shlibs_CXX=no
15439             ;;
15440           ghcx*)
15441             # Green Hills C++ Compiler
15442             # FIXME: insert proper C++ library support
15443             ld_shlibs_CXX=no
15444             ;;
15445           *)
15446             # FIXME: insert proper C++ library support
15447             ld_shlibs_CXX=no
15448             ;;
15449         esac
15450         ;;
15451
15452       freebsd[12]*)
15453         # C++ shared libraries reported to be fairly broken before
15454         # switch to ELF
15455         ld_shlibs_CXX=no
15456         ;;
15457
15458       freebsd-elf*)
15459         archive_cmds_need_lc_CXX=no
15460         ;;
15461
15462       freebsd* | dragonfly*)
15463         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15464         # conventions
15465         ld_shlibs_CXX=yes
15466         ;;
15467
15468       gnu*)
15469         ;;
15470
15471       haiku*)
15472         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473         link_all_deplibs_CXX=yes
15474         ;;
15475
15476       hpux9*)
15477         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15478         hardcode_libdir_separator_CXX=:
15479         export_dynamic_flag_spec_CXX='${wl}-E'
15480         hardcode_direct_CXX=yes
15481         hardcode_minus_L_CXX=yes # Not in the search PATH,
15482                                              # but as the default
15483                                              # location of the library.
15484
15485         case $cc_basename in
15486           CC*)
15487             # FIXME: insert proper C++ library support
15488             ld_shlibs_CXX=no
15489             ;;
15490           aCC*)
15491             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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15492             # Commands to make compiler produce verbose output that lists
15493             # what "hidden" libraries, object files and flags are used when
15494             # linking a shared library.
15495             #
15496             # There doesn't appear to be a way to prevent this compiler from
15497             # explicitly linking system object files so we need to strip them
15498             # from the output so that they don't get included in the library
15499             # dependencies.
15500             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"'
15501             ;;
15502           *)
15503             if test "$GXX" = yes; then
15504               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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15505             else
15506               # FIXME: insert proper C++ library support
15507               ld_shlibs_CXX=no
15508             fi
15509             ;;
15510         esac
15511         ;;
15512
15513       hpux10*|hpux11*)
15514         if test $with_gnu_ld = no; then
15515           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15516           hardcode_libdir_separator_CXX=:
15517
15518           case $host_cpu in
15519             hppa*64*|ia64*)
15520               ;;
15521             *)
15522               export_dynamic_flag_spec_CXX='${wl}-E'
15523               ;;
15524           esac
15525         fi
15526         case $host_cpu in
15527           hppa*64*|ia64*)
15528             hardcode_direct_CXX=no
15529             hardcode_shlibpath_var_CXX=no
15530             ;;
15531           *)
15532             hardcode_direct_CXX=yes
15533             hardcode_direct_absolute_CXX=yes
15534             hardcode_minus_L_CXX=yes # Not in the search PATH,
15535                                                  # but as the default
15536                                                  # location of the library.
15537             ;;
15538         esac
15539
15540         case $cc_basename in
15541           CC*)
15542             # FIXME: insert proper C++ library support
15543             ld_shlibs_CXX=no
15544             ;;
15545           aCC*)
15546             case $host_cpu in
15547               hppa*64*)
15548                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15549                 ;;
15550               ia64*)
15551                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15552                 ;;
15553               *)
15554                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15555                 ;;
15556             esac
15557             # Commands to make compiler produce verbose output that lists
15558             # what "hidden" libraries, object files and flags are used when
15559             # linking a shared library.
15560             #
15561             # There doesn't appear to be a way to prevent this compiler from
15562             # explicitly linking system object files so we need to strip them
15563             # from the output so that they don't get included in the library
15564             # dependencies.
15565             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"'
15566             ;;
15567           *)
15568             if test "$GXX" = yes; then
15569               if test $with_gnu_ld = no; then
15570                 case $host_cpu in
15571                   hppa*64*)
15572                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15573                     ;;
15574                   ia64*)
15575                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15576                     ;;
15577                   *)
15578                     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'
15579                     ;;
15580                 esac
15581               fi
15582             else
15583               # FIXME: insert proper C++ library support
15584               ld_shlibs_CXX=no
15585             fi
15586             ;;
15587         esac
15588         ;;
15589
15590       interix[3-9]*)
15591         hardcode_direct_CXX=no
15592         hardcode_shlibpath_var_CXX=no
15593         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15594         export_dynamic_flag_spec_CXX='${wl}-E'
15595         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15596         # Instead, shared libraries are loaded at an image base (0x10000000 by
15597         # default) and relocated if they conflict, which is a slow very memory
15598         # consuming and fragmenting process.  To avoid this, we pick a random,
15599         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15600         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15601         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'
15602         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'
15603         ;;
15604       irix5* | irix6*)
15605         case $cc_basename in
15606           CC*)
15607             # SGI C++
15608             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'
15609
15610             # Archives containing C++ object files must be created using
15611             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15612             # necessary to make sure instantiated templates are included
15613             # in the archive.
15614             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15615             ;;
15616           *)
15617             if test "$GXX" = yes; then
15618               if test "$with_gnu_ld" = no; then
15619                 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'
15620               else
15621                 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'
15622               fi
15623             fi
15624             link_all_deplibs_CXX=yes
15625             ;;
15626         esac
15627         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15628         hardcode_libdir_separator_CXX=:
15629         inherit_rpath_CXX=yes
15630         ;;
15631
15632       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15633         case $cc_basename in
15634           KCC*)
15635             # Kuck and Associates, Inc. (KAI) C++ Compiler
15636
15637             # KCC will only create a shared library if the output file
15638             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15639             # to its proper name (with version) after linking.
15640             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'
15641             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'
15642             # Commands to make compiler produce verbose output that lists
15643             # what "hidden" libraries, object files and flags are used when
15644             # linking a shared library.
15645             #
15646             # There doesn't appear to be a way to prevent this compiler from
15647             # explicitly linking system object files so we need to strip them
15648             # from the output so that they don't get included in the library
15649             # dependencies.
15650             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"'
15651
15652             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15653             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15654
15655             # Archives containing C++ object files must be created using
15656             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15657             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15658             ;;
15659           icpc* | ecpc* )
15660             # Intel C++
15661             with_gnu_ld=yes
15662             # version 8.0 and above of icpc choke on multiply defined symbols
15663             # if we add $predep_objects and $postdep_objects, however 7.1 and
15664             # earlier do not add the objects themselves.
15665             case `$CC -V 2>&1` in
15666               *"Version 7."*)
15667                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668                 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'
15669                 ;;
15670               *)  # Version 8.0 or newer
15671                 tmp_idyn=
15672                 case $host_cpu in
15673                   ia64*) tmp_idyn=' -i_dynamic';;
15674                 esac
15675                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15676                 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'
15677                 ;;
15678             esac
15679             archive_cmds_need_lc_CXX=no
15680             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15681             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15682             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15683             ;;
15684           pgCC* | pgcpp*)
15685             # Portland Group C++ compiler
15686             case `$CC -V` in
15687             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15688               prelink_cmds_CXX='tpldir=Template.dir~
15689                 rm -rf $tpldir~
15690                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15691                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15692               old_archive_cmds_CXX='tpldir=Template.dir~
15693                 rm -rf $tpldir~
15694                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15695                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15696                 $RANLIB $oldlib'
15697               archive_cmds_CXX='tpldir=Template.dir~
15698                 rm -rf $tpldir~
15699                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15700                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15701               archive_expsym_cmds_CXX='tpldir=Template.dir~
15702                 rm -rf $tpldir~
15703                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15704                 $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'
15705               ;;
15706             *) # Version 6 and above use weak symbols
15707               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15708               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'
15709               ;;
15710             esac
15711
15712             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15713             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15714             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'
15715             ;;
15716           cxx*)
15717             # Compaq C++
15718             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15719             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'
15720
15721             runpath_var=LD_RUN_PATH
15722             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15723             hardcode_libdir_separator_CXX=:
15724
15725             # Commands to make compiler produce verbose output that lists
15726             # what "hidden" libraries, object files and flags are used when
15727             # linking a shared library.
15728             #
15729             # There doesn't appear to be a way to prevent this compiler from
15730             # explicitly linking system object files so we need to strip them
15731             # from the output so that they don't get included in the library
15732             # dependencies.
15733             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'
15734             ;;
15735           xl* | mpixl* | bgxl*)
15736             # IBM XL 8.0 on PPC, with GNU ld
15737             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15738             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15739             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15740             if test "x$supports_anon_versioning" = xyes; then
15741               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15742                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15743                 echo "local: *; };" >> $output_objdir/$libname.ver~
15744                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15745             fi
15746             ;;
15747           *)
15748             case `$CC -V 2>&1 | sed 5q` in
15749             *Sun\ C*)
15750               # Sun C++ 5.9
15751               no_undefined_flag_CXX=' -zdefs'
15752               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15753               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'
15754               hardcode_libdir_flag_spec_CXX='-R$libdir'
15755               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'
15756               compiler_needs_object_CXX=yes
15757
15758               # Not sure whether something based on
15759               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15760               # would be better.
15761               output_verbose_link_cmd='func_echo_all'
15762
15763               # Archives containing C++ object files must be created using
15764               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15765               # necessary to make sure instantiated templates are included
15766               # in the archive.
15767               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15768               ;;
15769             esac
15770             ;;
15771         esac
15772         ;;
15773
15774       lynxos*)
15775         # FIXME: insert proper C++ library support
15776         ld_shlibs_CXX=no
15777         ;;
15778
15779       m88k*)
15780         # FIXME: insert proper C++ library support
15781         ld_shlibs_CXX=no
15782         ;;
15783
15784       mvs*)
15785         case $cc_basename in
15786           cxx*)
15787             # FIXME: insert proper C++ library support
15788             ld_shlibs_CXX=no
15789             ;;
15790           *)
15791             # FIXME: insert proper C++ library support
15792             ld_shlibs_CXX=no
15793             ;;
15794         esac
15795         ;;
15796
15797       netbsd*)
15798         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15799           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15800           wlarc=
15801           hardcode_libdir_flag_spec_CXX='-R$libdir'
15802           hardcode_direct_CXX=yes
15803           hardcode_shlibpath_var_CXX=no
15804         fi
15805         # Workaround some broken pre-1.5 toolchains
15806         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15807         ;;
15808
15809       *nto* | *qnx*)
15810         ld_shlibs_CXX=yes
15811         ;;
15812
15813       openbsd2*)
15814         # C++ shared libraries are fairly broken
15815         ld_shlibs_CXX=no
15816         ;;
15817
15818       openbsd*)
15819         if test -f /usr/libexec/ld.so; then
15820           hardcode_direct_CXX=yes
15821           hardcode_shlibpath_var_CXX=no
15822           hardcode_direct_absolute_CXX=yes
15823           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15824           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15825           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15826             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15827             export_dynamic_flag_spec_CXX='${wl}-E'
15828             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15829           fi
15830           output_verbose_link_cmd=func_echo_all
15831         else
15832           ld_shlibs_CXX=no
15833         fi
15834         ;;
15835
15836       osf3* | osf4* | osf5*)
15837         case $cc_basename in
15838           KCC*)
15839             # Kuck and Associates, Inc. (KAI) C++ Compiler
15840
15841             # KCC will only create a shared library if the output file
15842             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15843             # to its proper name (with version) after linking.
15844             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'
15845
15846             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15847             hardcode_libdir_separator_CXX=:
15848
15849             # Archives containing C++ object files must be created using
15850             # the KAI C++ compiler.
15851             case $host in
15852               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15853               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15854             esac
15855             ;;
15856           RCC*)
15857             # Rational C++ 2.4.1
15858             # FIXME: insert proper C++ library support
15859             ld_shlibs_CXX=no
15860             ;;
15861           cxx*)
15862             case $host in
15863               osf3*)
15864                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865                 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'
15866                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15867                 ;;
15868               *)
15869                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15870                 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'
15871                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15872                   echo "-hidden">> $lib.exp~
15873                   $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~
15874                   $RM $lib.exp'
15875                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15876                 ;;
15877             esac
15878
15879             hardcode_libdir_separator_CXX=:
15880
15881             # Commands to make compiler produce verbose output that lists
15882             # what "hidden" libraries, object files and flags are used when
15883             # linking a shared library.
15884             #
15885             # There doesn't appear to be a way to prevent this compiler from
15886             # explicitly linking system object files so we need to strip them
15887             # from the output so that they don't get included in the library
15888             # dependencies.
15889             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"'
15890             ;;
15891           *)
15892             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15893               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15894               case $host in
15895                 osf3*)
15896                   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'
15897                   ;;
15898                 *)
15899                   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'
15900                   ;;
15901               esac
15902
15903               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15904               hardcode_libdir_separator_CXX=:
15905
15906               # Commands to make compiler produce verbose output that lists
15907               # what "hidden" libraries, object files and flags are used when
15908               # linking a shared library.
15909               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15910
15911             else
15912               # FIXME: insert proper C++ library support
15913               ld_shlibs_CXX=no
15914             fi
15915             ;;
15916         esac
15917         ;;
15918
15919       psos*)
15920         # FIXME: insert proper C++ library support
15921         ld_shlibs_CXX=no
15922         ;;
15923
15924       sunos4*)
15925         case $cc_basename in
15926           CC*)
15927             # Sun C++ 4.x
15928             # FIXME: insert proper C++ library support
15929             ld_shlibs_CXX=no
15930             ;;
15931           lcc*)
15932             # Lucid
15933             # FIXME: insert proper C++ library support
15934             ld_shlibs_CXX=no
15935             ;;
15936           *)
15937             # FIXME: insert proper C++ library support
15938             ld_shlibs_CXX=no
15939             ;;
15940         esac
15941         ;;
15942
15943       solaris*)
15944         case $cc_basename in
15945           CC* | sunCC*)
15946             # Sun C++ 4.2, 5.x and Centerline C++
15947             archive_cmds_need_lc_CXX=yes
15948             no_undefined_flag_CXX=' -zdefs'
15949             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15950             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15951               $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'
15952
15953             hardcode_libdir_flag_spec_CXX='-R$libdir'
15954             hardcode_shlibpath_var_CXX=no
15955             case $host_os in
15956               solaris2.[0-5] | solaris2.[0-5].*) ;;
15957               *)
15958                 # The compiler driver will combine and reorder linker options,
15959                 # but understands `-z linker_flag'.
15960                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15961                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15962                 ;;
15963             esac
15964             link_all_deplibs_CXX=yes
15965
15966             output_verbose_link_cmd='func_echo_all'
15967
15968             # Archives containing C++ object files must be created using
15969             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15970             # necessary to make sure instantiated templates are included
15971             # in the archive.
15972             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15973             ;;
15974           gcx*)
15975             # Green Hills C++ Compiler
15976             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15977
15978             # The C++ compiler must be used to create the archive.
15979             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15980             ;;
15981           *)
15982             # GNU C++ compiler with Solaris linker
15983             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15984               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15985               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15986                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15987                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15988                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15989
15990                 # Commands to make compiler produce verbose output that lists
15991                 # what "hidden" libraries, object files and flags are used when
15992                 # linking a shared library.
15993                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15994               else
15995                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15996                 # platform.
15997                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15998                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15999                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16000
16001                 # Commands to make compiler produce verbose output that lists
16002                 # what "hidden" libraries, object files and flags are used when
16003                 # linking a shared library.
16004                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16005               fi
16006
16007               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16008               case $host_os in
16009                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16010                 *)
16011                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16012                   ;;
16013               esac
16014             fi
16015             ;;
16016         esac
16017         ;;
16018
16019     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16020       no_undefined_flag_CXX='${wl}-z,text'
16021       archive_cmds_need_lc_CXX=no
16022       hardcode_shlibpath_var_CXX=no
16023       runpath_var='LD_RUN_PATH'
16024
16025       case $cc_basename in
16026         CC*)
16027           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16028           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16029           ;;
16030         *)
16031           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16032           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16033           ;;
16034       esac
16035       ;;
16036
16037       sysv5* | sco3.2v5* | sco5v6*)
16038         # Note: We can NOT use -z defs as we might desire, because we do not
16039         # link with -lc, and that would cause any symbols used from libc to
16040         # always be unresolved, which means just about no library would
16041         # ever link correctly.  If we're not using GNU ld we use -z text
16042         # though, which does catch some bad symbols but isn't as heavy-handed
16043         # as -z defs.
16044         no_undefined_flag_CXX='${wl}-z,text'
16045         allow_undefined_flag_CXX='${wl}-z,nodefs'
16046         archive_cmds_need_lc_CXX=no
16047         hardcode_shlibpath_var_CXX=no
16048         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16049         hardcode_libdir_separator_CXX=':'
16050         link_all_deplibs_CXX=yes
16051         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16052         runpath_var='LD_RUN_PATH'
16053
16054         case $cc_basename in
16055           CC*)
16056             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16057             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16058             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16059               '"$old_archive_cmds_CXX"
16060             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16061               '"$reload_cmds_CXX"
16062             ;;
16063           *)
16064             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16065             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16066             ;;
16067         esac
16068       ;;
16069
16070       tandem*)
16071         case $cc_basename in
16072           NCC*)
16073             # NonStop-UX NCC 3.20
16074             # FIXME: insert proper C++ library support
16075             ld_shlibs_CXX=no
16076             ;;
16077           *)
16078             # FIXME: insert proper C++ library support
16079             ld_shlibs_CXX=no
16080             ;;
16081         esac
16082         ;;
16083
16084       vxworks*)
16085         # FIXME: insert proper C++ library support
16086         ld_shlibs_CXX=no
16087         ;;
16088
16089       *)
16090         # FIXME: insert proper C++ library support
16091         ld_shlibs_CXX=no
16092         ;;
16093     esac
16094
16095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16096 $as_echo "$ld_shlibs_CXX" >&6; }
16097     test "$ld_shlibs_CXX" = no && can_build_shared=no
16098
16099     GCC_CXX="$GXX"
16100     LD_CXX="$LD"
16101
16102     ## CAVEAT EMPTOR:
16103     ## There is no encapsulation within the following macros, do not change
16104     ## the running order or otherwise move them around unless you know exactly
16105     ## what you are doing...
16106     # Dependencies to place before and after the object being linked:
16107 predep_objects_CXX=
16108 postdep_objects_CXX=
16109 predeps_CXX=
16110 postdeps_CXX=
16111 compiler_lib_search_path_CXX=
16112
16113 cat > conftest.$ac_ext <<_LT_EOF
16114 class Foo
16115 {
16116 public:
16117   Foo (void) { a = 0; }
16118 private:
16119   int a;
16120 };
16121 _LT_EOF
16122
16123
16124 _lt_libdeps_save_CFLAGS=$CFLAGS
16125 case "$CC $CFLAGS " in #(
16126 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16127 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16128 esac
16129
16130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16131   (eval $ac_compile) 2>&5
16132   ac_status=$?
16133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16134   test $ac_status = 0; }; then
16135   # Parse the compiler output and extract the necessary
16136   # objects, libraries and library flags.
16137
16138   # Sentinel used to keep track of whether or not we are before
16139   # the conftest object file.
16140   pre_test_object_deps_done=no
16141
16142   for p in `eval "$output_verbose_link_cmd"`; do
16143     case ${prev}${p} in
16144
16145     -L* | -R* | -l*)
16146        # Some compilers place space between "-{L,R}" and the path.
16147        # Remove the space.
16148        if test $p = "-L" ||
16149           test $p = "-R"; then
16150          prev=$p
16151          continue
16152        fi
16153
16154        # Expand the sysroot to ease extracting the directories later.
16155        if test -z "$prev"; then
16156          case $p in
16157          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16158          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16159          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16160          esac
16161        fi
16162        case $p in
16163        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16164        esac
16165        if test "$pre_test_object_deps_done" = no; then
16166          case ${prev} in
16167          -L | -R)
16168            # Internal compiler library paths should come after those
16169            # provided the user.  The postdeps already come after the
16170            # user supplied libs so there is no need to process them.
16171            if test -z "$compiler_lib_search_path_CXX"; then
16172              compiler_lib_search_path_CXX="${prev}${p}"
16173            else
16174              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16175            fi
16176            ;;
16177          # The "-l" case would never come before the object being
16178          # linked, so don't bother handling this case.
16179          esac
16180        else
16181          if test -z "$postdeps_CXX"; then
16182            postdeps_CXX="${prev}${p}"
16183          else
16184            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16185          fi
16186        fi
16187        prev=
16188        ;;
16189
16190     *.lto.$objext) ;; # Ignore GCC LTO objects
16191     *.$objext)
16192        # This assumes that the test object file only shows up
16193        # once in the compiler output.
16194        if test "$p" = "conftest.$objext"; then
16195          pre_test_object_deps_done=yes
16196          continue
16197        fi
16198
16199        if test "$pre_test_object_deps_done" = no; then
16200          if test -z "$predep_objects_CXX"; then
16201            predep_objects_CXX="$p"
16202          else
16203            predep_objects_CXX="$predep_objects_CXX $p"
16204          fi
16205        else
16206          if test -z "$postdep_objects_CXX"; then
16207            postdep_objects_CXX="$p"
16208          else
16209            postdep_objects_CXX="$postdep_objects_CXX $p"
16210          fi
16211        fi
16212        ;;
16213
16214     *) ;; # Ignore the rest.
16215
16216     esac
16217   done
16218
16219   # Clean up.
16220   rm -f a.out a.exe
16221 else
16222   echo "libtool.m4: error: problem compiling CXX test program"
16223 fi
16224
16225 $RM -f confest.$objext
16226 CFLAGS=$_lt_libdeps_save_CFLAGS
16227
16228 # PORTME: override above test on systems where it is broken
16229 case $host_os in
16230 interix[3-9]*)
16231   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16232   # hack all around it, let's just trust "g++" to DTRT.
16233   predep_objects_CXX=
16234   postdep_objects_CXX=
16235   postdeps_CXX=
16236   ;;
16237
16238 linux*)
16239   case `$CC -V 2>&1 | sed 5q` in
16240   *Sun\ C*)
16241     # Sun C++ 5.9
16242
16243     # The more standards-conforming stlport4 library is
16244     # incompatible with the Cstd library. Avoid specifying
16245     # it if it's in CXXFLAGS. Ignore libCrun as
16246     # -library=stlport4 depends on it.
16247     case " $CXX $CXXFLAGS " in
16248     *" -library=stlport4 "*)
16249       solaris_use_stlport4=yes
16250       ;;
16251     esac
16252
16253     if test "$solaris_use_stlport4" != yes; then
16254       postdeps_CXX='-library=Cstd -library=Crun'
16255     fi
16256     ;;
16257   esac
16258   ;;
16259
16260 solaris*)
16261   case $cc_basename in
16262   CC* | sunCC*)
16263     # The more standards-conforming stlport4 library is
16264     # incompatible with the Cstd library. Avoid specifying
16265     # it if it's in CXXFLAGS. Ignore libCrun as
16266     # -library=stlport4 depends on it.
16267     case " $CXX $CXXFLAGS " in
16268     *" -library=stlport4 "*)
16269       solaris_use_stlport4=yes
16270       ;;
16271     esac
16272
16273     # Adding this requires a known-good setup of shared libraries for
16274     # Sun compiler versions before 5.6, else PIC objects from an old
16275     # archive will be linked into the output, leading to subtle bugs.
16276     if test "$solaris_use_stlport4" != yes; then
16277       postdeps_CXX='-library=Cstd -library=Crun'
16278     fi
16279     ;;
16280   esac
16281   ;;
16282 esac
16283
16284
16285 case " $postdeps_CXX " in
16286 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16287 esac
16288  compiler_lib_search_dirs_CXX=
16289 if test -n "${compiler_lib_search_path_CXX}"; then
16290  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16291 fi
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323     lt_prog_compiler_wl_CXX=
16324 lt_prog_compiler_pic_CXX=
16325 lt_prog_compiler_static_CXX=
16326
16327
16328   # C++ specific cases for pic, static, wl, etc.
16329   if test "$GXX" = yes; then
16330     lt_prog_compiler_wl_CXX='-Wl,'
16331     lt_prog_compiler_static_CXX='-static'
16332
16333     case $host_os in
16334     aix*)
16335       # All AIX code is PIC.
16336       if test "$host_cpu" = ia64; then
16337         # AIX 5 now supports IA64 processor
16338         lt_prog_compiler_static_CXX='-Bstatic'
16339       fi
16340       ;;
16341
16342     amigaos*)
16343       case $host_cpu in
16344       powerpc)
16345             # see comment about AmigaOS4 .so support
16346             lt_prog_compiler_pic_CXX='-fPIC'
16347         ;;
16348       m68k)
16349             # FIXME: we need at least 68020 code to build shared libraries, but
16350             # adding the `-m68020' flag to GCC prevents building anything better,
16351             # like `-m68040'.
16352             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16353         ;;
16354       esac
16355       ;;
16356
16357     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16358       # PIC is the default for these OSes.
16359       ;;
16360     mingw* | cygwin* | os2* | pw32* | cegcc*)
16361       # This hack is so that the source file can tell whether it is being
16362       # built for inclusion in a dll (and should export symbols for example).
16363       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16364       # (--disable-auto-import) libraries
16365       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16366       ;;
16367     darwin* | rhapsody*)
16368       # PIC is the default on this platform
16369       # Common symbols not allowed in MH_DYLIB files
16370       lt_prog_compiler_pic_CXX='-fno-common'
16371       ;;
16372     *djgpp*)
16373       # DJGPP does not support shared libraries at all
16374       lt_prog_compiler_pic_CXX=
16375       ;;
16376     haiku*)
16377       # PIC is the default for Haiku.
16378       # The "-static" flag exists, but is broken.
16379       lt_prog_compiler_static_CXX=
16380       ;;
16381     interix[3-9]*)
16382       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16383       # Instead, we relocate shared libraries at runtime.
16384       ;;
16385     sysv4*MP*)
16386       if test -d /usr/nec; then
16387         lt_prog_compiler_pic_CXX=-Kconform_pic
16388       fi
16389       ;;
16390     hpux*)
16391       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16392       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16393       # sets the default TLS model and affects inlining.
16394       case $host_cpu in
16395       hppa*64*)
16396         ;;
16397       *)
16398         lt_prog_compiler_pic_CXX='-fPIC'
16399         ;;
16400       esac
16401       ;;
16402     *qnx* | *nto*)
16403       # QNX uses GNU C++, but need to define -shared option too, otherwise
16404       # it will coredump.
16405       lt_prog_compiler_pic_CXX='-fPIC -shared'
16406       ;;
16407     *)
16408       lt_prog_compiler_pic_CXX='-fPIC'
16409       ;;
16410     esac
16411   else
16412     case $host_os in
16413       aix[4-9]*)
16414         # All AIX code is PIC.
16415         if test "$host_cpu" = ia64; then
16416           # AIX 5 now supports IA64 processor
16417           lt_prog_compiler_static_CXX='-Bstatic'
16418         else
16419           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16420         fi
16421         ;;
16422       chorus*)
16423         case $cc_basename in
16424         cxch68*)
16425           # Green Hills C++ Compiler
16426           # _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"
16427           ;;
16428         esac
16429         ;;
16430       mingw* | cygwin* | os2* | pw32* | cegcc*)
16431         # This hack is so that the source file can tell whether it is being
16432         # built for inclusion in a dll (and should export symbols for example).
16433         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16434         ;;
16435       dgux*)
16436         case $cc_basename in
16437           ec++*)
16438             lt_prog_compiler_pic_CXX='-KPIC'
16439             ;;
16440           ghcx*)
16441             # Green Hills C++ Compiler
16442             lt_prog_compiler_pic_CXX='-pic'
16443             ;;
16444           *)
16445             ;;
16446         esac
16447         ;;
16448       freebsd* | dragonfly*)
16449         # FreeBSD uses GNU C++
16450         ;;
16451       hpux9* | hpux10* | hpux11*)
16452         case $cc_basename in
16453           CC*)
16454             lt_prog_compiler_wl_CXX='-Wl,'
16455             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16456             if test "$host_cpu" != ia64; then
16457               lt_prog_compiler_pic_CXX='+Z'
16458             fi
16459             ;;
16460           aCC*)
16461             lt_prog_compiler_wl_CXX='-Wl,'
16462             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16463             case $host_cpu in
16464             hppa*64*|ia64*)
16465               # +Z the default
16466               ;;
16467             *)
16468               lt_prog_compiler_pic_CXX='+Z'
16469               ;;
16470             esac
16471             ;;
16472           *)
16473             ;;
16474         esac
16475         ;;
16476       interix*)
16477         # This is c89, which is MS Visual C++ (no shared libs)
16478         # Anyone wants to do a port?
16479         ;;
16480       irix5* | irix6* | nonstopux*)
16481         case $cc_basename in
16482           CC*)
16483             lt_prog_compiler_wl_CXX='-Wl,'
16484             lt_prog_compiler_static_CXX='-non_shared'
16485             # CC pic flag -KPIC is the default.
16486             ;;
16487           *)
16488             ;;
16489         esac
16490         ;;
16491       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16492         case $cc_basename in
16493           KCC*)
16494             # KAI C++ Compiler
16495             lt_prog_compiler_wl_CXX='--backend -Wl,'
16496             lt_prog_compiler_pic_CXX='-fPIC'
16497             ;;
16498           ecpc* )
16499             # old Intel C++ for x86_64 which still supported -KPIC.
16500             lt_prog_compiler_wl_CXX='-Wl,'
16501             lt_prog_compiler_pic_CXX='-KPIC'
16502             lt_prog_compiler_static_CXX='-static'
16503             ;;
16504           icpc* )
16505             # Intel C++, used to be incompatible with GCC.
16506             # ICC 10 doesn't accept -KPIC any more.
16507             lt_prog_compiler_wl_CXX='-Wl,'
16508             lt_prog_compiler_pic_CXX='-fPIC'
16509             lt_prog_compiler_static_CXX='-static'
16510             ;;
16511           pgCC* | pgcpp*)
16512             # Portland Group C++ compiler
16513             lt_prog_compiler_wl_CXX='-Wl,'
16514             lt_prog_compiler_pic_CXX='-fpic'
16515             lt_prog_compiler_static_CXX='-Bstatic'
16516             ;;
16517           cxx*)
16518             # Compaq C++
16519             # Make sure the PIC flag is empty.  It appears that all Alpha
16520             # Linux and Compaq Tru64 Unix objects are PIC.
16521             lt_prog_compiler_pic_CXX=
16522             lt_prog_compiler_static_CXX='-non_shared'
16523             ;;
16524           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16525             # IBM XL 8.0, 9.0 on PPC and BlueGene
16526             lt_prog_compiler_wl_CXX='-Wl,'
16527             lt_prog_compiler_pic_CXX='-qpic'
16528             lt_prog_compiler_static_CXX='-qstaticlink'
16529             ;;
16530           *)
16531             case `$CC -V 2>&1 | sed 5q` in
16532             *Sun\ C*)
16533               # Sun C++ 5.9
16534               lt_prog_compiler_pic_CXX='-KPIC'
16535               lt_prog_compiler_static_CXX='-Bstatic'
16536               lt_prog_compiler_wl_CXX='-Qoption ld '
16537               ;;
16538             esac
16539             ;;
16540         esac
16541         ;;
16542       lynxos*)
16543         ;;
16544       m88k*)
16545         ;;
16546       mvs*)
16547         case $cc_basename in
16548           cxx*)
16549             lt_prog_compiler_pic_CXX='-W c,exportall'
16550             ;;
16551           *)
16552             ;;
16553         esac
16554         ;;
16555       netbsd*)
16556         ;;
16557       *qnx* | *nto*)
16558         # QNX uses GNU C++, but need to define -shared option too, otherwise
16559         # it will coredump.
16560         lt_prog_compiler_pic_CXX='-fPIC -shared'
16561         ;;
16562       osf3* | osf4* | osf5*)
16563         case $cc_basename in
16564           KCC*)
16565             lt_prog_compiler_wl_CXX='--backend -Wl,'
16566             ;;
16567           RCC*)
16568             # Rational C++ 2.4.1
16569             lt_prog_compiler_pic_CXX='-pic'
16570             ;;
16571           cxx*)
16572             # Digital/Compaq C++
16573             lt_prog_compiler_wl_CXX='-Wl,'
16574             # Make sure the PIC flag is empty.  It appears that all Alpha
16575             # Linux and Compaq Tru64 Unix objects are PIC.
16576             lt_prog_compiler_pic_CXX=
16577             lt_prog_compiler_static_CXX='-non_shared'
16578             ;;
16579           *)
16580             ;;
16581         esac
16582         ;;
16583       psos*)
16584         ;;
16585       solaris*)
16586         case $cc_basename in
16587           CC* | sunCC*)
16588             # Sun C++ 4.2, 5.x and Centerline C++
16589             lt_prog_compiler_pic_CXX='-KPIC'
16590             lt_prog_compiler_static_CXX='-Bstatic'
16591             lt_prog_compiler_wl_CXX='-Qoption ld '
16592             ;;
16593           gcx*)
16594             # Green Hills C++ Compiler
16595             lt_prog_compiler_pic_CXX='-PIC'
16596             ;;
16597           *)
16598             ;;
16599         esac
16600         ;;
16601       sunos4*)
16602         case $cc_basename in
16603           CC*)
16604             # Sun C++ 4.x
16605             lt_prog_compiler_pic_CXX='-pic'
16606             lt_prog_compiler_static_CXX='-Bstatic'
16607             ;;
16608           lcc*)
16609             # Lucid
16610             lt_prog_compiler_pic_CXX='-pic'
16611             ;;
16612           *)
16613             ;;
16614         esac
16615         ;;
16616       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16617         case $cc_basename in
16618           CC*)
16619             lt_prog_compiler_wl_CXX='-Wl,'
16620             lt_prog_compiler_pic_CXX='-KPIC'
16621             lt_prog_compiler_static_CXX='-Bstatic'
16622             ;;
16623         esac
16624         ;;
16625       tandem*)
16626         case $cc_basename in
16627           NCC*)
16628             # NonStop-UX NCC 3.20
16629             lt_prog_compiler_pic_CXX='-KPIC'
16630             ;;
16631           *)
16632             ;;
16633         esac
16634         ;;
16635       vxworks*)
16636         ;;
16637       *)
16638         lt_prog_compiler_can_build_shared_CXX=no
16639         ;;
16640     esac
16641   fi
16642
16643 case $host_os in
16644   # For platforms which do not support PIC, -DPIC is meaningless:
16645   *djgpp*)
16646     lt_prog_compiler_pic_CXX=
16647     ;;
16648   *)
16649     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16650     ;;
16651 esac
16652
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16655 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
16656   $as_echo_n "(cached) " >&6
16657 else
16658   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16661 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16662 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16663
16664 #
16665 # Check to make sure the PIC flag actually works.
16666 #
16667 if test -n "$lt_prog_compiler_pic_CXX"; then
16668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16669 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16670 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16671   $as_echo_n "(cached) " >&6
16672 else
16673   lt_cv_prog_compiler_pic_works_CXX=no
16674    ac_outfile=conftest.$ac_objext
16675    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16676    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16677    # Insert the option either (1) after the last *FLAGS variable, or
16678    # (2) before a word containing "conftest.", or (3) at the end.
16679    # Note that $ac_compile itself does not contain backslashes and begins
16680    # with a dollar sign (not a hyphen), so the echo should work correctly.
16681    # The option is referenced via a variable to avoid confusing sed.
16682    lt_compile=`echo "$ac_compile" | $SED \
16683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16685    -e 's:$: $lt_compiler_flag:'`
16686    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16687    (eval "$lt_compile" 2>conftest.err)
16688    ac_status=$?
16689    cat conftest.err >&5
16690    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691    if (exit $ac_status) && test -s "$ac_outfile"; then
16692      # The compiler can only warn and ignore the option if not recognized
16693      # So say no if there are warnings other than the usual output.
16694      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16695      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16696      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16697        lt_cv_prog_compiler_pic_works_CXX=yes
16698      fi
16699    fi
16700    $RM conftest*
16701
16702 fi
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16704 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16705
16706 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16707     case $lt_prog_compiler_pic_CXX in
16708      "" | " "*) ;;
16709      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16710      esac
16711 else
16712     lt_prog_compiler_pic_CXX=
16713      lt_prog_compiler_can_build_shared_CXX=no
16714 fi
16715
16716 fi
16717
16718
16719
16720
16721
16722 #
16723 # Check to make sure the static flag actually works.
16724 #
16725 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16727 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16728 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16729   $as_echo_n "(cached) " >&6
16730 else
16731   lt_cv_prog_compiler_static_works_CXX=no
16732    save_LDFLAGS="$LDFLAGS"
16733    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16734    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16735    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16736      # The linker can only warn and ignore the option if not recognized
16737      # So say no if there are warnings
16738      if test -s conftest.err; then
16739        # Append any errors to the config.log.
16740        cat conftest.err 1>&5
16741        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16742        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16743        if diff conftest.exp conftest.er2 >/dev/null; then
16744          lt_cv_prog_compiler_static_works_CXX=yes
16745        fi
16746      else
16747        lt_cv_prog_compiler_static_works_CXX=yes
16748      fi
16749    fi
16750    $RM -r conftest*
16751    LDFLAGS="$save_LDFLAGS"
16752
16753 fi
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16755 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16756
16757 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16758     :
16759 else
16760     lt_prog_compiler_static_CXX=
16761 fi
16762
16763
16764
16765
16766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16768 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16769   $as_echo_n "(cached) " >&6
16770 else
16771   lt_cv_prog_compiler_c_o_CXX=no
16772    $RM -r conftest 2>/dev/null
16773    mkdir conftest
16774    cd conftest
16775    mkdir out
16776    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16777
16778    lt_compiler_flag="-o out/conftest2.$ac_objext"
16779    # Insert the option either (1) after the last *FLAGS variable, or
16780    # (2) before a word containing "conftest.", or (3) at the end.
16781    # Note that $ac_compile itself does not contain backslashes and begins
16782    # with a dollar sign (not a hyphen), so the echo should work correctly.
16783    lt_compile=`echo "$ac_compile" | $SED \
16784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16786    -e 's:$: $lt_compiler_flag:'`
16787    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16788    (eval "$lt_compile" 2>out/conftest.err)
16789    ac_status=$?
16790    cat out/conftest.err >&5
16791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16793    then
16794      # The compiler can only warn and ignore the option if not recognized
16795      # So say no if there are warnings
16796      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16797      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16798      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16799        lt_cv_prog_compiler_c_o_CXX=yes
16800      fi
16801    fi
16802    chmod u+w . 2>&5
16803    $RM conftest*
16804    # SGI C++ compiler will create directory out/ii_files/ for
16805    # template instantiation
16806    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16807    $RM out/* && rmdir out
16808    cd ..
16809    $RM -r conftest
16810    $RM conftest*
16811
16812 fi
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16814 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16815
16816
16817
16818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16820 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16821   $as_echo_n "(cached) " >&6
16822 else
16823   lt_cv_prog_compiler_c_o_CXX=no
16824    $RM -r conftest 2>/dev/null
16825    mkdir conftest
16826    cd conftest
16827    mkdir out
16828    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829
16830    lt_compiler_flag="-o out/conftest2.$ac_objext"
16831    # Insert the option either (1) after the last *FLAGS variable, or
16832    # (2) before a word containing "conftest.", or (3) at the end.
16833    # Note that $ac_compile itself does not contain backslashes and begins
16834    # with a dollar sign (not a hyphen), so the echo should work correctly.
16835    lt_compile=`echo "$ac_compile" | $SED \
16836    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838    -e 's:$: $lt_compiler_flag:'`
16839    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16840    (eval "$lt_compile" 2>out/conftest.err)
16841    ac_status=$?
16842    cat out/conftest.err >&5
16843    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16845    then
16846      # The compiler can only warn and ignore the option if not recognized
16847      # So say no if there are warnings
16848      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16849      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16850      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16851        lt_cv_prog_compiler_c_o_CXX=yes
16852      fi
16853    fi
16854    chmod u+w . 2>&5
16855    $RM conftest*
16856    # SGI C++ compiler will create directory out/ii_files/ for
16857    # template instantiation
16858    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16859    $RM out/* && rmdir out
16860    cd ..
16861    $RM -r conftest
16862    $RM conftest*
16863
16864 fi
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16866 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16867
16868
16869
16870
16871 hard_links="nottested"
16872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16873   # do not overwrite the value of need_locks provided by the user
16874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16875 $as_echo_n "checking if we can lock with hard links... " >&6; }
16876   hard_links=yes
16877   $RM conftest*
16878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879   touch conftest.a
16880   ln conftest.a conftest.b 2>&5 || hard_links=no
16881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16883 $as_echo "$hard_links" >&6; }
16884   if test "$hard_links" = no; then
16885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16886 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16887     need_locks=warn
16888   fi
16889 else
16890   need_locks=no
16891 fi
16892
16893
16894
16895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16896 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16897
16898   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16899   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16900   case $host_os in
16901   aix[4-9]*)
16902     # If we're using GNU nm, then we don't want the "-C" option.
16903     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16904     # Also, AIX nm treats weak defined symbols like other global defined
16905     # symbols, whereas GNU nm marks them as "W".
16906     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16907       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16908     else
16909       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16910     fi
16911     ;;
16912   pw32*)
16913     export_symbols_cmds_CXX="$ltdll_cmds"
16914     ;;
16915   cygwin* | mingw* | cegcc*)
16916     case $cc_basename in
16917     cl*) ;;
16918     *)
16919       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'
16920       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16921       ;;
16922     esac
16923     ;;
16924   *)
16925     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16926     ;;
16927   esac
16928
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16930 $as_echo "$ld_shlibs_CXX" >&6; }
16931 test "$ld_shlibs_CXX" = no && can_build_shared=no
16932
16933 with_gnu_ld_CXX=$with_gnu_ld
16934
16935
16936
16937
16938
16939
16940 #
16941 # Do we need to explicitly link libc?
16942 #
16943 case "x$archive_cmds_need_lc_CXX" in
16944 x|xyes)
16945   # Assume -lc should be added
16946   archive_cmds_need_lc_CXX=yes
16947
16948   if test "$enable_shared" = yes && test "$GCC" = yes; then
16949     case $archive_cmds_CXX in
16950     *'~'*)
16951       # FIXME: we may have to deal with multi-command sequences.
16952       ;;
16953     '$CC '*)
16954       # Test whether the compiler implicitly links with -lc since on some
16955       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16956       # to ld, don't add -lc before -lgcc.
16957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16958 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16959 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
16960   $as_echo_n "(cached) " >&6
16961 else
16962   $RM conftest*
16963         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16964
16965         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16966   (eval $ac_compile) 2>&5
16967   ac_status=$?
16968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969   test $ac_status = 0; } 2>conftest.err; then
16970           soname=conftest
16971           lib=conftest
16972           libobjs=conftest.$ac_objext
16973           deplibs=
16974           wl=$lt_prog_compiler_wl_CXX
16975           pic_flag=$lt_prog_compiler_pic_CXX
16976           compiler_flags=-v
16977           linker_flags=-v
16978           verstring=
16979           output_objdir=.
16980           libname=conftest
16981           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16982           allow_undefined_flag_CXX=
16983           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16984   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16985   ac_status=$?
16986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16987   test $ac_status = 0; }
16988           then
16989             lt_cv_archive_cmds_need_lc_CXX=no
16990           else
16991             lt_cv_archive_cmds_need_lc_CXX=yes
16992           fi
16993           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16994         else
16995           cat conftest.err 1>&5
16996         fi
16997         $RM conftest*
16998
16999 fi
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17001 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17002       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17003       ;;
17004     esac
17005   fi
17006   ;;
17007 esac
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17073 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17074
17075 library_names_spec=
17076 libname_spec='lib$name'
17077 soname_spec=
17078 shrext_cmds=".so"
17079 postinstall_cmds=
17080 postuninstall_cmds=
17081 finish_cmds=
17082 finish_eval=
17083 shlibpath_var=
17084 shlibpath_overrides_runpath=unknown
17085 version_type=none
17086 dynamic_linker="$host_os ld.so"
17087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17088 need_lib_prefix=unknown
17089 hardcode_into_libs=no
17090
17091 # when you set need_version to no, make sure it does not cause -set_version
17092 # flags to be left without arguments
17093 need_version=unknown
17094
17095 case $host_os in
17096 aix3*)
17097   version_type=linux
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17099   shlibpath_var=LIBPATH
17100
17101   # AIX 3 has no versioning support, so we append a major version to the name.
17102   soname_spec='${libname}${release}${shared_ext}$major'
17103   ;;
17104
17105 aix[4-9]*)
17106   version_type=linux
17107   need_lib_prefix=no
17108   need_version=no
17109   hardcode_into_libs=yes
17110   if test "$host_cpu" = ia64; then
17111     # AIX 5 supports IA64
17112     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17113     shlibpath_var=LD_LIBRARY_PATH
17114   else
17115     # With GCC up to 2.95.x, collect2 would create an import file
17116     # for dependence libraries.  The import file would start with
17117     # the line `#! .'.  This would cause the generated library to
17118     # depend on `.', always an invalid library.  This was fixed in
17119     # development snapshots of GCC prior to 3.0.
17120     case $host_os in
17121       aix4 | aix4.[01] | aix4.[01].*)
17122       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17123            echo ' yes '
17124            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17125         :
17126       else
17127         can_build_shared=no
17128       fi
17129       ;;
17130     esac
17131     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17132     # soname into executable. Probably we can add versioning support to
17133     # collect2, so additional links can be useful in future.
17134     if test "$aix_use_runtimelinking" = yes; then
17135       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17136       # instead of lib<name>.a to let people know that these are not
17137       # typical AIX shared libraries.
17138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17139     else
17140       # We preserve .a as extension for shared libraries through AIX4.2
17141       # and later when we are not doing run time linking.
17142       library_names_spec='${libname}${release}.a $libname.a'
17143       soname_spec='${libname}${release}${shared_ext}$major'
17144     fi
17145     shlibpath_var=LIBPATH
17146   fi
17147   ;;
17148
17149 amigaos*)
17150   case $host_cpu in
17151   powerpc)
17152     # Since July 2007 AmigaOS4 officially supports .so libraries.
17153     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155     ;;
17156   m68k)
17157     library_names_spec='$libname.ixlibrary $libname.a'
17158     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17159     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17160     ;;
17161   esac
17162   ;;
17163
17164 beos*)
17165   library_names_spec='${libname}${shared_ext}'
17166   dynamic_linker="$host_os ld.so"
17167   shlibpath_var=LIBRARY_PATH
17168   ;;
17169
17170 bsdi[45]*)
17171   version_type=linux
17172   need_version=no
17173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174   soname_spec='${libname}${release}${shared_ext}$major'
17175   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17176   shlibpath_var=LD_LIBRARY_PATH
17177   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17178   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17179   # the default ld.so.conf also contains /usr/contrib/lib and
17180   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17181   # libtool to hard-code these into programs
17182   ;;
17183
17184 cygwin* | mingw* | pw32* | cegcc*)
17185   version_type=windows
17186   shrext_cmds=".dll"
17187   need_version=no
17188   need_lib_prefix=no
17189
17190   case $GCC,$cc_basename in
17191   yes,*)
17192     # gcc
17193     library_names_spec='$libname.dll.a'
17194     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17195     postinstall_cmds='base_file=`basename \${file}`~
17196       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17197       dldir=$destdir/`dirname \$dlpath`~
17198       test -d \$dldir || mkdir -p \$dldir~
17199       $install_prog $dir/$dlname \$dldir/$dlname~
17200       chmod a+x \$dldir/$dlname~
17201       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17202         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17203       fi'
17204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17205       dlpath=$dir/\$dldll~
17206        $RM \$dlpath'
17207     shlibpath_overrides_runpath=yes
17208
17209     case $host_os in
17210     cygwin*)
17211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17213
17214       ;;
17215     mingw* | cegcc*)
17216       # MinGW DLLs use traditional 'lib' prefix
17217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17218       ;;
17219     pw32*)
17220       # pw32 DLLs use 'pw' prefix rather than 'lib'
17221       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17222       ;;
17223     esac
17224     dynamic_linker='Win32 ld.exe'
17225     ;;
17226
17227   *,cl*)
17228     # Native MSVC
17229     libname_spec='$name'
17230     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17231     library_names_spec='${libname}.dll.lib'
17232
17233     case $build_os in
17234     mingw*)
17235       sys_lib_search_path_spec=
17236       lt_save_ifs=$IFS
17237       IFS=';'
17238       for lt_path in $LIB
17239       do
17240         IFS=$lt_save_ifs
17241         # Let DOS variable expansion print the short 8.3 style file name.
17242         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17243         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17244       done
17245       IFS=$lt_save_ifs
17246       # Convert to MSYS style.
17247       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17248       ;;
17249     cygwin*)
17250       # Convert to unix form, then to dos form, then back to unix form
17251       # but this time dos style (no spaces!) so that the unix form looks
17252       # like /cygdrive/c/PROGRA~1:/cygdr...
17253       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17254       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17255       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17256       ;;
17257     *)
17258       sys_lib_search_path_spec="$LIB"
17259       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17260         # It is most probably a Windows format PATH.
17261         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17262       else
17263         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17264       fi
17265       # FIXME: find the short name or the path components, as spaces are
17266       # common. (e.g. "Program Files" -> "PROGRA~1")
17267       ;;
17268     esac
17269
17270     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17271     postinstall_cmds='base_file=`basename \${file}`~
17272       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17273       dldir=$destdir/`dirname \$dlpath`~
17274       test -d \$dldir || mkdir -p \$dldir~
17275       $install_prog $dir/$dlname \$dldir/$dlname'
17276     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17277       dlpath=$dir/\$dldll~
17278        $RM \$dlpath'
17279     shlibpath_overrides_runpath=yes
17280     dynamic_linker='Win32 link.exe'
17281     ;;
17282
17283   *)
17284     # Assume MSVC wrapper
17285     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17286     dynamic_linker='Win32 ld.exe'
17287     ;;
17288   esac
17289   # FIXME: first we should search . and the directory the executable is in
17290   shlibpath_var=PATH
17291   ;;
17292
17293 darwin* | rhapsody*)
17294   dynamic_linker="$host_os dyld"
17295   version_type=darwin
17296   need_lib_prefix=no
17297   need_version=no
17298   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17299   soname_spec='${libname}${release}${major}$shared_ext'
17300   shlibpath_overrides_runpath=yes
17301   shlibpath_var=DYLD_LIBRARY_PATH
17302   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17303
17304   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17305   ;;
17306
17307 dgux*)
17308   version_type=linux
17309   need_lib_prefix=no
17310   need_version=no
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17312   soname_spec='${libname}${release}${shared_ext}$major'
17313   shlibpath_var=LD_LIBRARY_PATH
17314   ;;
17315
17316 freebsd1*)
17317   dynamic_linker=no
17318   ;;
17319
17320 freebsd* | dragonfly*)
17321   # DragonFly does not have aout.  When/if they implement a new
17322   # versioning mechanism, adjust this.
17323   if test -x /usr/bin/objformat; then
17324     objformat=`/usr/bin/objformat`
17325   else
17326     case $host_os in
17327     freebsd[123]*) objformat=aout ;;
17328     *) objformat=elf ;;
17329     esac
17330   fi
17331   version_type=freebsd-$objformat
17332   case $version_type in
17333     freebsd-elf*)
17334       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17335       need_version=no
17336       need_lib_prefix=no
17337       ;;
17338     freebsd-*)
17339       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17340       need_version=yes
17341       ;;
17342   esac
17343   shlibpath_var=LD_LIBRARY_PATH
17344   case $host_os in
17345   freebsd2*)
17346     shlibpath_overrides_runpath=yes
17347     ;;
17348   freebsd3.[01]* | freebsdelf3.[01]*)
17349     shlibpath_overrides_runpath=yes
17350     hardcode_into_libs=yes
17351     ;;
17352   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17353   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17354     shlibpath_overrides_runpath=no
17355     hardcode_into_libs=yes
17356     ;;
17357   *) # from 4.6 on, and DragonFly
17358     shlibpath_overrides_runpath=yes
17359     hardcode_into_libs=yes
17360     ;;
17361   esac
17362   ;;
17363
17364 gnu*)
17365   version_type=linux
17366   need_lib_prefix=no
17367   need_version=no
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   hardcode_into_libs=yes
17372   ;;
17373
17374 haiku*)
17375   version_type=linux
17376   need_lib_prefix=no
17377   need_version=no
17378   dynamic_linker="$host_os runtime_loader"
17379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17380   soname_spec='${libname}${release}${shared_ext}$major'
17381   shlibpath_var=LIBRARY_PATH
17382   shlibpath_overrides_runpath=yes
17383   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17384   hardcode_into_libs=yes
17385   ;;
17386
17387 hpux9* | hpux10* | hpux11*)
17388   # Give a soname corresponding to the major version so that dld.sl refuses to
17389   # link against other versions.
17390   version_type=sunos
17391   need_lib_prefix=no
17392   need_version=no
17393   case $host_cpu in
17394   ia64*)
17395     shrext_cmds='.so'
17396     hardcode_into_libs=yes
17397     dynamic_linker="$host_os dld.so"
17398     shlibpath_var=LD_LIBRARY_PATH
17399     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401     soname_spec='${libname}${release}${shared_ext}$major'
17402     if test "X$HPUX_IA64_MODE" = X32; then
17403       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17404     else
17405       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17406     fi
17407     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17408     ;;
17409   hppa*64*)
17410     shrext_cmds='.sl'
17411     hardcode_into_libs=yes
17412     dynamic_linker="$host_os dld.sl"
17413     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416     soname_spec='${libname}${release}${shared_ext}$major'
17417     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17418     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17419     ;;
17420   *)
17421     shrext_cmds='.sl'
17422     dynamic_linker="$host_os dld.sl"
17423     shlibpath_var=SHLIB_PATH
17424     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426     soname_spec='${libname}${release}${shared_ext}$major'
17427     ;;
17428   esac
17429   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17430   postinstall_cmds='chmod 555 $lib'
17431   # or fails outright, so override atomically:
17432   install_override_mode=555
17433   ;;
17434
17435 interix[3-9]*)
17436   version_type=linux
17437   need_lib_prefix=no
17438   need_version=no
17439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17440   soname_spec='${libname}${release}${shared_ext}$major'
17441   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17442   shlibpath_var=LD_LIBRARY_PATH
17443   shlibpath_overrides_runpath=no
17444   hardcode_into_libs=yes
17445   ;;
17446
17447 irix5* | irix6* | nonstopux*)
17448   case $host_os in
17449     nonstopux*) version_type=nonstopux ;;
17450     *)
17451         if test "$lt_cv_prog_gnu_ld" = yes; then
17452                 version_type=linux
17453         else
17454                 version_type=irix
17455         fi ;;
17456   esac
17457   need_lib_prefix=no
17458   need_version=no
17459   soname_spec='${libname}${release}${shared_ext}$major'
17460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17461   case $host_os in
17462   irix5* | nonstopux*)
17463     libsuff= shlibsuff=
17464     ;;
17465   *)
17466     case $LD in # libtool.m4 will add one of these switches to LD
17467     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17468       libsuff= shlibsuff= libmagic=32-bit;;
17469     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17470       libsuff=32 shlibsuff=N32 libmagic=N32;;
17471     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17472       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17473     *) libsuff= shlibsuff= libmagic=never-match;;
17474     esac
17475     ;;
17476   esac
17477   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17478   shlibpath_overrides_runpath=no
17479   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17480   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17481   hardcode_into_libs=yes
17482   ;;
17483
17484 # No shared lib support for Linux oldld, aout, or coff.
17485 linux*oldld* | linux*aout* | linux*coff*)
17486   dynamic_linker=no
17487   ;;
17488
17489 # This must be Linux ELF.
17490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17491   version_type=linux
17492   need_lib_prefix=no
17493   need_version=no
17494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495   soname_spec='${libname}${release}${shared_ext}$major'
17496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17497   shlibpath_var=LD_LIBRARY_PATH
17498   shlibpath_overrides_runpath=no
17499
17500   # Some binutils ld are patched to set DT_RUNPATH
17501   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17502   $as_echo_n "(cached) " >&6
17503 else
17504   lt_cv_shlibpath_overrides_runpath=no
17505     save_LDFLAGS=$LDFLAGS
17506     save_libdir=$libdir
17507     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17508          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h.  */
17511
17512 int
17513 main ()
17514 {
17515
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 if ac_fn_cxx_try_link "$LINENO"; then :
17521   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17522   lt_cv_shlibpath_overrides_runpath=yes
17523 fi
17524 fi
17525 rm -f core conftest.err conftest.$ac_objext \
17526     conftest$ac_exeext conftest.$ac_ext
17527     LDFLAGS=$save_LDFLAGS
17528     libdir=$save_libdir
17529
17530 fi
17531
17532   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17533
17534   # This implies no fast_install, which is unacceptable.
17535   # Some rework will be needed to allow for fast_install
17536   # before this can be enabled.
17537   hardcode_into_libs=yes
17538
17539   # Append ld.so.conf contents to the search path
17540   if test -f /etc/ld.so.conf; then
17541     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' ' '`
17542     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17543   fi
17544
17545   # We used to test for /lib/ld.so.1 and disable shared libraries on
17546   # powerpc, because MkLinux only supported shared libraries with the
17547   # GNU dynamic linker.  Since this was broken with cross compilers,
17548   # most powerpc-linux boxes support dynamic linking these days and
17549   # people can always --disable-shared, the test was removed, and we
17550   # assume the GNU/Linux dynamic linker is in use.
17551   dynamic_linker='GNU/Linux ld.so'
17552   ;;
17553
17554 netbsd*)
17555   version_type=sunos
17556   need_lib_prefix=no
17557   need_version=no
17558   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17560     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17561     dynamic_linker='NetBSD (a.out) ld.so'
17562   else
17563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17564     soname_spec='${libname}${release}${shared_ext}$major'
17565     dynamic_linker='NetBSD ld.elf_so'
17566   fi
17567   shlibpath_var=LD_LIBRARY_PATH
17568   shlibpath_overrides_runpath=yes
17569   hardcode_into_libs=yes
17570   ;;
17571
17572 newsos6)
17573   version_type=linux
17574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575   shlibpath_var=LD_LIBRARY_PATH
17576   shlibpath_overrides_runpath=yes
17577   ;;
17578
17579 *nto* | *qnx*)
17580   version_type=qnx
17581   need_lib_prefix=no
17582   need_version=no
17583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584   soname_spec='${libname}${release}${shared_ext}$major'
17585   shlibpath_var=LD_LIBRARY_PATH
17586   shlibpath_overrides_runpath=no
17587   hardcode_into_libs=yes
17588   dynamic_linker='ldqnx.so'
17589   ;;
17590
17591 openbsd*)
17592   version_type=sunos
17593   sys_lib_dlsearch_path_spec="/usr/lib"
17594   need_lib_prefix=no
17595   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17596   case $host_os in
17597     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17598     *)                          need_version=no  ;;
17599   esac
17600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17602   shlibpath_var=LD_LIBRARY_PATH
17603   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17604     case $host_os in
17605       openbsd2.[89] | openbsd2.[89].*)
17606         shlibpath_overrides_runpath=no
17607         ;;
17608       *)
17609         shlibpath_overrides_runpath=yes
17610         ;;
17611       esac
17612   else
17613     shlibpath_overrides_runpath=yes
17614   fi
17615   ;;
17616
17617 os2*)
17618   libname_spec='$name'
17619   shrext_cmds=".dll"
17620   need_lib_prefix=no
17621   library_names_spec='$libname${shared_ext} $libname.a'
17622   dynamic_linker='OS/2 ld.exe'
17623   shlibpath_var=LIBPATH
17624   ;;
17625
17626 osf3* | osf4* | osf5*)
17627   version_type=osf
17628   need_lib_prefix=no
17629   need_version=no
17630   soname_spec='${libname}${release}${shared_ext}$major'
17631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632   shlibpath_var=LD_LIBRARY_PATH
17633   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17634   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17635   ;;
17636
17637 rdos*)
17638   dynamic_linker=no
17639   ;;
17640
17641 solaris*)
17642   version_type=linux
17643   need_lib_prefix=no
17644   need_version=no
17645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646   soname_spec='${libname}${release}${shared_ext}$major'
17647   shlibpath_var=LD_LIBRARY_PATH
17648   shlibpath_overrides_runpath=yes
17649   hardcode_into_libs=yes
17650   # ldd complains unless libraries are executable
17651   postinstall_cmds='chmod +x $lib'
17652   ;;
17653
17654 sunos4*)
17655   version_type=sunos
17656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17657   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17658   shlibpath_var=LD_LIBRARY_PATH
17659   shlibpath_overrides_runpath=yes
17660   if test "$with_gnu_ld" = yes; then
17661     need_lib_prefix=no
17662   fi
17663   need_version=yes
17664   ;;
17665
17666 sysv4 | sysv4.3*)
17667   version_type=linux
17668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669   soname_spec='${libname}${release}${shared_ext}$major'
17670   shlibpath_var=LD_LIBRARY_PATH
17671   case $host_vendor in
17672     sni)
17673       shlibpath_overrides_runpath=no
17674       need_lib_prefix=no
17675       runpath_var=LD_RUN_PATH
17676       ;;
17677     siemens)
17678       need_lib_prefix=no
17679       ;;
17680     motorola)
17681       need_lib_prefix=no
17682       need_version=no
17683       shlibpath_overrides_runpath=no
17684       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17685       ;;
17686   esac
17687   ;;
17688
17689 sysv4*MP*)
17690   if test -d /usr/nec ;then
17691     version_type=linux
17692     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17693     soname_spec='$libname${shared_ext}.$major'
17694     shlibpath_var=LD_LIBRARY_PATH
17695   fi
17696   ;;
17697
17698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17699   version_type=freebsd-elf
17700   need_lib_prefix=no
17701   need_version=no
17702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17703   soname_spec='${libname}${release}${shared_ext}$major'
17704   shlibpath_var=LD_LIBRARY_PATH
17705   shlibpath_overrides_runpath=yes
17706   hardcode_into_libs=yes
17707   if test "$with_gnu_ld" = yes; then
17708     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17709   else
17710     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17711     case $host_os in
17712       sco3.2v5*)
17713         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17714         ;;
17715     esac
17716   fi
17717   sys_lib_dlsearch_path_spec='/usr/lib'
17718   ;;
17719
17720 tpf*)
17721   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17722   version_type=linux
17723   need_lib_prefix=no
17724   need_version=no
17725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17726   shlibpath_var=LD_LIBRARY_PATH
17727   shlibpath_overrides_runpath=no
17728   hardcode_into_libs=yes
17729   ;;
17730
17731 uts4*)
17732   version_type=linux
17733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734   soname_spec='${libname}${release}${shared_ext}$major'
17735   shlibpath_var=LD_LIBRARY_PATH
17736   ;;
17737
17738 *)
17739   dynamic_linker=no
17740   ;;
17741 esac
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17743 $as_echo "$dynamic_linker" >&6; }
17744 test "$dynamic_linker" = no && can_build_shared=no
17745
17746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17747 if test "$GCC" = yes; then
17748   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17749 fi
17750
17751 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17752   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17753 fi
17754 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17755   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17756 fi
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17797 hardcode_action_CXX=
17798 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17799    test -n "$runpath_var_CXX" ||
17800    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17801
17802   # We can hardcode non-existent directories.
17803   if test "$hardcode_direct_CXX" != no &&
17804      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17805      # have to relink, otherwise we might link with an installed library
17806      # when we should be linking with a yet-to-be-installed one
17807      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17808      test "$hardcode_minus_L_CXX" != no; then
17809     # Linking always hardcodes the temporary library directory.
17810     hardcode_action_CXX=relink
17811   else
17812     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17813     hardcode_action_CXX=immediate
17814   fi
17815 else
17816   # We cannot hardcode anything, or else we can only hardcode existing
17817   # directories.
17818   hardcode_action_CXX=unsupported
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17821 $as_echo "$hardcode_action_CXX" >&6; }
17822
17823 if test "$hardcode_action_CXX" = relink ||
17824    test "$inherit_rpath_CXX" = yes; then
17825   # Fast installation is not supported
17826   enable_fast_install=no
17827 elif test "$shlibpath_overrides_runpath" = yes ||
17828      test "$enable_shared" = no; then
17829   # Fast installation is not necessary
17830   enable_fast_install=needless
17831 fi
17832
17833
17834
17835
17836
17837
17838
17839   fi # test -n "$compiler"
17840
17841   CC=$lt_save_CC
17842   CFLAGS=$lt_save_CFLAGS
17843   LDCXX=$LD
17844   LD=$lt_save_LD
17845   GCC=$lt_save_GCC
17846   with_gnu_ld=$lt_save_with_gnu_ld
17847   lt_cv_path_LDCXX=$lt_cv_path_LD
17848   lt_cv_path_LD=$lt_save_path_LD
17849   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17850   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17851 fi # test "$_lt_caught_CXX_error" != yes
17852
17853 ac_ext=c
17854 ac_cpp='$CPP $CPPFLAGS'
17855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17858
17859
17860
17861
17862 if test "$GCC" = "yes" ; then
17863 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17864 #        [
17865 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17866 #            [Define to enable class visibility control in gcc.])
17867 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17868 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17869 #        ])
17870     CFLAGS="-Wall $GCC_CFLAGS"
17871     CXXFLAGS="-Wall $GCC_CXXFLAGS"
17872 else
17873 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17874         case "${host_cpu}-${host_os}" in
17875                 *solaris*)
17876                         if test "$CXX" = "CC" ; then
17877                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17878                         fi
17879                 ;;
17880         esac
17881 fi
17882
17883 # Checks for typedefs, structures, and compiler characteristics.
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17885 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17886 if test "${ac_cv_c_const+set}" = set; then :
17887   $as_echo_n "(cached) " >&6
17888 else
17889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h.  */
17891
17892 int
17893 main ()
17894 {
17895 /* FIXME: Include the comments suggested by Paul. */
17896 #ifndef __cplusplus
17897   /* Ultrix mips cc rejects this.  */
17898   typedef int charset[2];
17899   const charset cs;
17900   /* SunOS 4.1.1 cc rejects this.  */
17901   char const *const *pcpcc;
17902   char **ppc;
17903   /* NEC SVR4.0.2 mips cc rejects this.  */
17904   struct point {int x, y;};
17905   static struct point const zero = {0,0};
17906   /* AIX XL C 1.02.0.0 rejects this.
17907      It does not let you subtract one const X* pointer from another in
17908      an arm of an if-expression whose if-part is not a constant
17909      expression */
17910   const char *g = "string";
17911   pcpcc = &g + (g ? g-g : 0);
17912   /* HPUX 7.0 cc rejects these. */
17913   ++pcpcc;
17914   ppc = (char**) pcpcc;
17915   pcpcc = (char const *const *) ppc;
17916   { /* SCO 3.2v4 cc rejects this.  */
17917     char *t;
17918     char const *s = 0 ? (char *) 0 : (char const *) 0;
17919
17920     *t++ = 0;
17921     if (s) return 0;
17922   }
17923   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17924     int x[] = {25, 17};
17925     const int *foo = &x[0];
17926     ++foo;
17927   }
17928   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17929     typedef const int *iptr;
17930     iptr p = 0;
17931     ++p;
17932   }
17933   { /* AIX XL C 1.02.0.0 rejects this saying
17934        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17935     struct s { int j; const int *ap[3]; };
17936     struct s *b; b->j = 5;
17937   }
17938   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17939     const int foo = 10;
17940     if (!foo) return 0;
17941   }
17942   return !cs[0] && !zero.x;
17943 #endif
17944
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 if ac_fn_c_try_compile "$LINENO"; then :
17950   ac_cv_c_const=yes
17951 else
17952   ac_cv_c_const=no
17953 fi
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17957 $as_echo "$ac_cv_c_const" >&6; }
17958 if test $ac_cv_c_const = no; then
17959
17960 $as_echo "#define const /**/" >>confdefs.h
17961
17962 fi
17963
17964 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17965 if test "x$ac_cv_type_size_t" = x""yes; then :
17966
17967 else
17968
17969 cat >>confdefs.h <<_ACEOF
17970 #define size_t unsigned int
17971 _ACEOF
17972
17973 fi
17974
17975 # The cast to long int works around a bug in the HP C Compiler
17976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17978 # This bug is HP SR number 8606223364.
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17980 $as_echo_n "checking size of long... " >&6; }
17981 if test "${ac_cv_sizeof_long+set}" = set; then :
17982   $as_echo_n "(cached) " >&6
17983 else
17984   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17985
17986 else
17987   if test "$ac_cv_type_long" = yes; then
17988      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17990 as_fn_error 77 "cannot compute sizeof (long)
17991 See \`config.log' for more details" "$LINENO" 5 ; }
17992    else
17993      ac_cv_sizeof_long=0
17994    fi
17995 fi
17996
17997 fi
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17999 $as_echo "$ac_cv_sizeof_long" >&6; }
18000
18001
18002
18003 cat >>confdefs.h <<_ACEOF
18004 #define SIZEOF_LONG $ac_cv_sizeof_long
18005 _ACEOF
18006
18007
18008
18009 # Checks for library functions.
18010 for ac_func in strchr strdup strstr timegm strcasecmp
18011 do :
18012   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18015   cat >>confdefs.h <<_ACEOF
18016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18017 _ACEOF
18018
18019 fi
18020 done
18021
18022 for ac_header in dlfcn.h
18023 do :
18024   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
18025 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
18026   cat >>confdefs.h <<_ACEOF
18027 #define HAVE_DLFCN_H 1
18028 _ACEOF
18029
18030 fi
18031
18032 done
18033
18034 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
18035 if test "x$ac_cv_func_dlclose" = x""yes; then :
18036
18037 else
18038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18041   $as_echo_n "(cached) " >&6
18042 else
18043   ac_check_lib_save_LIBS=$LIBS
18044 LIBS="-ldl  $LIBS"
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h.  */
18047
18048 /* Override any GCC internal prototype to avoid an error.
18049    Use char because int might match the return type of a GCC
18050    builtin and then its argument prototype would still apply.  */
18051 #ifdef __cplusplus
18052 extern "C"
18053 #endif
18054 char dlopen ();
18055 int
18056 main ()
18057 {
18058 return dlopen ();
18059   ;
18060   return 0;
18061 }
18062 _ACEOF
18063 if ac_fn_c_try_link "$LINENO"; then :
18064   ac_cv_lib_dl_dlopen=yes
18065 else
18066   ac_cv_lib_dl_dlopen=no
18067 fi
18068 rm -f core conftest.err conftest.$ac_objext \
18069     conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18073 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18074 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18075   cat >>confdefs.h <<_ACEOF
18076 #define HAVE_LIBDL 1
18077 _ACEOF
18078
18079   LIBS="-ldl $LIBS"
18080
18081 fi
18082
18083 fi
18084
18085
18086 # checks for pthreads
18087
18088
18089 ac_ext=c
18090 ac_cpp='$CPP $CPPFLAGS'
18091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18094
18095 acx_pthread_ok=no
18096
18097 # We used to check for pthread.h first, but this fails if pthread.h
18098 # requires special compiler flags (e.g. on True64 or Sequent).
18099 # It gets checked for in the link test anyway.
18100
18101 # First of all, check if the user has set any of the PTHREAD_LIBS,
18102 # etcetera environment variables, and if threads linking works using
18103 # them:
18104 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18105         save_CFLAGS="$CFLAGS"
18106         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18107         save_LIBS="$LIBS"
18108         LIBS="$PTHREAD_LIBS $LIBS"
18109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18110 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18111         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h.  */
18113
18114 /* Override any GCC internal prototype to avoid an error.
18115    Use char because int might match the return type of a GCC
18116    builtin and then its argument prototype would still apply.  */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 char pthread_join ();
18121 int
18122 main ()
18123 {
18124 return pthread_join ();
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 if ac_fn_c_try_link "$LINENO"; then :
18130   acx_pthread_ok=yes
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext \
18133     conftest$ac_exeext conftest.$ac_ext
18134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18135 $as_echo "$acx_pthread_ok" >&6; }
18136         if test x"$acx_pthread_ok" = xno; then
18137                 PTHREAD_LIBS=""
18138                 PTHREAD_CFLAGS=""
18139         fi
18140         LIBS="$save_LIBS"
18141         CFLAGS="$save_CFLAGS"
18142 fi
18143
18144 # We must check for the threads library under a number of different
18145 # names; the ordering is very important because some systems
18146 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18147 # libraries is broken (non-POSIX).
18148
18149 # Create a list of thread flags to try.  Items starting with a "-" are
18150 # C compiler flags, and other items are library names, except for "none"
18151 # which indicates that we try without any flags at all, and "pthread-config"
18152 # which is a program returning the flags for the Pth emulation library.
18153
18154 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18155
18156 # The ordering *is* (sometimes) important.  Some notes on the
18157 # individual items follow:
18158
18159 # pthreads: AIX (must check this before -lpthread)
18160 # none: in case threads are in libc; should be tried before -Kthread and
18161 #       other compiler flags to prevent continual compiler warnings
18162 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18163 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18164 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18165 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18166 # -pthreads: Solaris/gcc
18167 # -mthreads: Mingw32/gcc, Lynx/gcc
18168 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18169 #      doesn't hurt to check since this sometimes defines pthreads too;
18170 #      also defines -D_REENTRANT)
18171 #      ... -mt is also the pthreads flag for HP/aCC
18172 # pthread: Linux, etcetera
18173 # --thread-safe: KAI C++
18174 # pthread-config: use pthread-config program (for GNU Pth library)
18175
18176 case "${host_cpu}-${host_os}" in
18177         *solaris*)
18178
18179         # On Solaris (at least, for some versions), libc contains stubbed
18180         # (non-functional) versions of the pthreads routines, so link-based
18181         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18182         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18183         # a function called by this macro, so we could check for that, but
18184         # who knows whether they'll stub that too in a future libc.)  So,
18185         # we'll just look for -pthreads and -lpthread first:
18186
18187         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18188         ;;
18189 esac
18190
18191 if test x"$acx_pthread_ok" = xno; then
18192 for flag in $acx_pthread_flags; do
18193
18194         case $flag in
18195                 none)
18196                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18197 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18198                 ;;
18199
18200                 -*)
18201                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18202 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18203                 PTHREAD_CFLAGS="$flag"
18204                 ;;
18205
18206                 pthread-config)
18207                 # Extract the first word of "pthread-config", so it can be a program name with args.
18208 set dummy pthread-config; ac_word=$2
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18210 $as_echo_n "checking for $ac_word... " >&6; }
18211 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
18212   $as_echo_n "(cached) " >&6
18213 else
18214   if test -n "$acx_pthread_config"; then
18215   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18216 else
18217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18218 for as_dir in $PATH
18219 do
18220   IFS=$as_save_IFS
18221   test -z "$as_dir" && as_dir=.
18222     for ac_exec_ext in '' $ac_executable_extensions; do
18223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18224     ac_cv_prog_acx_pthread_config="yes"
18225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18226     break 2
18227   fi
18228 done
18229   done
18230 IFS=$as_save_IFS
18231
18232   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18233 fi
18234 fi
18235 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18236 if test -n "$acx_pthread_config"; then
18237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18238 $as_echo "$acx_pthread_config" >&6; }
18239 else
18240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18242 fi
18243
18244
18245                 if test x"$acx_pthread_config" = xno; then continue; fi
18246                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18247                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18248                 ;;
18249
18250                 *)
18251                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18252 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18253                 PTHREAD_LIBS="-l$flag"
18254                 ;;
18255         esac
18256
18257         save_LIBS="$LIBS"
18258         save_CFLAGS="$CFLAGS"
18259         LIBS="$PTHREAD_LIBS $LIBS"
18260         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18261
18262         # Check for various functions.  We must include pthread.h,
18263         # since some functions may be macros.  (On the Sequent, we
18264         # need a special flag -Kthread to make this header compile.)
18265         # We check for pthread_join because it is in -lpthread on IRIX
18266         # while pthread_create is in libc.  We check for pthread_attr_init
18267         # due to DEC craziness with -lpthreads.  We check for
18268         # pthread_cleanup_push because it is one of the few pthread
18269         # functions on Solaris that doesn't have a non-functional libc stub.
18270         # We try pthread_create on general principles.
18271         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h.  */
18273 #include <pthread.h>
18274 int
18275 main ()
18276 {
18277 pthread_t th; pthread_join(th, 0);
18278                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18279                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 if ac_fn_c_try_link "$LINENO"; then :
18285   acx_pthread_ok=yes
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext \
18288     conftest$ac_exeext conftest.$ac_ext
18289
18290         LIBS="$save_LIBS"
18291         CFLAGS="$save_CFLAGS"
18292
18293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18294 $as_echo "$acx_pthread_ok" >&6; }
18295         if test "x$acx_pthread_ok" = xyes; then
18296                 break;
18297         fi
18298
18299         PTHREAD_LIBS=""
18300         PTHREAD_CFLAGS=""
18301 done
18302 fi
18303
18304 # Various other checks:
18305 if test "x$acx_pthread_ok" = xyes; then
18306         save_LIBS="$LIBS"
18307         LIBS="$PTHREAD_LIBS $LIBS"
18308         save_CFLAGS="$CFLAGS"
18309         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18310
18311         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18313 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18314         attr_name=unknown
18315         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18316             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h.  */
18318 #include <pthread.h>
18319 int
18320 main ()
18321 {
18322 int attr=$attr; return attr;
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18328   attr_name=$attr; break
18329 fi
18330 rm -f core conftest.err conftest.$ac_objext \
18331     conftest$ac_exeext conftest.$ac_ext
18332         done
18333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18334 $as_echo "$attr_name" >&6; }
18335         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18336
18337 cat >>confdefs.h <<_ACEOF
18338 #define PTHREAD_CREATE_JOINABLE $attr_name
18339 _ACEOF
18340
18341         fi
18342
18343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18344 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18345         flag=no
18346         case "${host_cpu}-${host_os}" in
18347                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
18348                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
18349                 *solaris*)
18350                 if test "$GCC" = "yes"; then
18351                     flag="-D_REENTRANT"
18352                 else
18353                     flag="-mt -D_REENTRANT"
18354                 fi
18355                 ;;
18356         esac
18357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18358 $as_echo "${flag}" >&6; }
18359         if test "x$flag" != xno; then
18360             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18361         fi
18362
18363         LIBS="$save_LIBS"
18364         CFLAGS="$save_CFLAGS"
18365
18366         # More AIX lossage: must compile with xlc_r or cc_r
18367         if test x"$GCC" != xyes; then
18368           for ac_prog in xlc_r cc_r
18369 do
18370   # Extract the first word of "$ac_prog", so it can be a program name with args.
18371 set dummy $ac_prog; ac_word=$2
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18373 $as_echo_n "checking for $ac_word... " >&6; }
18374 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
18375   $as_echo_n "(cached) " >&6
18376 else
18377   if test -n "$PTHREAD_CC"; then
18378   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18379 else
18380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18381 for as_dir in $PATH
18382 do
18383   IFS=$as_save_IFS
18384   test -z "$as_dir" && as_dir=.
18385     for ac_exec_ext in '' $ac_executable_extensions; do
18386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18387     ac_cv_prog_PTHREAD_CC="$ac_prog"
18388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18389     break 2
18390   fi
18391 done
18392   done
18393 IFS=$as_save_IFS
18394
18395 fi
18396 fi
18397 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18398 if test -n "$PTHREAD_CC"; then
18399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18400 $as_echo "$PTHREAD_CC" >&6; }
18401 else
18402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403 $as_echo "no" >&6; }
18404 fi
18405
18406
18407   test -n "$PTHREAD_CC" && break
18408 done
18409 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18410
18411         else
18412           PTHREAD_CC=$CC
18413         fi
18414 else
18415         PTHREAD_CC="$CC"
18416 fi
18417
18418
18419
18420
18421
18422 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18423 if test x"$acx_pthread_ok" = xyes; then
18424         enable_threads="pthread"
18425         :
18426 else
18427         acx_pthread_ok=no
18428         enable_threads="no"
18429 fi
18430 ac_ext=c
18431 ac_cpp='$CPP $CPPFLAGS'
18432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18435
18436
18437 if test $enable_threads != "pthread"; then
18438     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
18439 else
18440
18441 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18442
18443          if test "$enable_threads" = "pthread"; then
18444   BUILD_PTHREAD_TRUE=
18445   BUILD_PTHREAD_FALSE='#'
18446 else
18447   BUILD_PTHREAD_TRUE='#'
18448   BUILD_PTHREAD_FALSE=
18449 fi
18450
18451     LIBS="$PTHREAD_LIBS $LIBS"
18452     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18453     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
18454 fi
18455
18456 for ac_func in pthread_rwlock_init
18457 do :
18458   ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
18459 if test "x$ac_cv_func_pthread_rwlock_init" = x""yes; then :
18460   cat >>confdefs.h <<_ACEOF
18461 #define HAVE_PTHREAD_RWLOCK_INIT 1
18462 _ACEOF
18463
18464 fi
18465 done
18466
18467
18468 ac_ext=cpp
18469 ac_cpp='$CXXCPP $CPPFLAGS'
18470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18473
18474
18475 # C++ requirements
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
18477 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
18478 if test "${ac_cv_cxx_namespaces+set}" = set; then :
18479   $as_echo_n "(cached) " >&6
18480 else
18481
18482  ac_ext=cpp
18483 ac_cpp='$CXXCPP $CPPFLAGS'
18484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18487
18488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h.  */
18490 namespace Outer { namespace Inner { int i = 0; }}
18491 int
18492 main ()
18493 {
18494 using namespace Outer::Inner; return i;
18495   ;
18496   return 0;
18497 }
18498 _ACEOF
18499 if ac_fn_cxx_try_compile "$LINENO"; then :
18500   ac_cv_cxx_namespaces=yes
18501 else
18502   ac_cv_cxx_namespaces=no
18503 fi
18504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505  ac_ext=cpp
18506 ac_cpp='$CXXCPP $CPPFLAGS'
18507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18510
18511
18512 fi
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
18514 $as_echo "$ac_cv_cxx_namespaces" >&6; }
18515 if test "$ac_cv_cxx_namespaces" = yes; then
18516
18517 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
18518
18519 fi
18520
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
18522 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
18523 if test "${ac_cv_cxx_have_stl+set}" = set; then :
18524   $as_echo_n "(cached) " >&6
18525 else
18526
18527  ac_ext=cpp
18528 ac_cpp='$CXXCPP $CPPFLAGS'
18529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18532
18533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h.  */
18535 #include <list>
18536 #include <deque>
18537 #ifdef HAVE_NAMESPACES
18538 using namespace std;
18539 #endif
18540 int
18541 main ()
18542 {
18543 list<int> x; x.push_back(5);
18544 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
18545   ;
18546   return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_cxx_try_compile "$LINENO"; then :
18550   ac_cv_cxx_have_stl=yes
18551 else
18552   ac_cv_cxx_have_stl=no
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555  ac_ext=cpp
18556 ac_cpp='$CXXCPP $CPPFLAGS'
18557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18560
18561
18562 fi
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
18564 $as_echo "$ac_cv_cxx_have_stl" >&6; }
18565 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
18566   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
18567 fi
18568
18569
18570 # are covariant methods allowed?
18571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h.  */
18573
18574 int
18575 main ()
18576 {
18577
18578         class base { public: virtual base *GetPtr( void ) { return this; } };
18579         class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
18580
18581   ;
18582   return 0;
18583 }
18584 _ACEOF
18585 if ac_fn_cxx_try_link "$LINENO"; then :
18586
18587 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
18588
18589 fi
18590 rm -f core conftest.err conftest.$ac_objext \
18591     conftest$ac_exeext conftest.$ac_ext
18592
18593 # is nullptr supported?
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h.  */
18596
18597 int
18598 main ()
18599 {
18600 const char* ptr = nullptr;
18601   ;
18602   return 0;
18603 }
18604 _ACEOF
18605 if ac_fn_cxx_try_compile "$LINENO"; then :
18606
18607 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
18608
18609 fi
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611
18612 # log4shib settings (favor this version over the log4cpp code)
18613 # Extract the first word of "log4shib-config", so it can be a program name with args.
18614 set dummy log4shib-config; ac_word=$2
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18616 $as_echo_n "checking for $ac_word... " >&6; }
18617 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18618   $as_echo_n "(cached) " >&6
18619 else
18620   case $LOG4SHIB_CONFIG in
18621   [\\/]* | ?:[\\/]*)
18622   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18623   ;;
18624   *)
18625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18626 for as_dir in $PATH
18627 do
18628   IFS=$as_save_IFS
18629   test -z "$as_dir" && as_dir=.
18630     for ac_exec_ext in '' $ac_executable_extensions; do
18631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18632     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18634     break 2
18635   fi
18636 done
18637   done
18638 IFS=$as_save_IFS
18639
18640   ;;
18641 esac
18642 fi
18643 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18644 if test -n "$LOG4SHIB_CONFIG"; then
18645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18646 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18647 else
18648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18650 fi
18651
18652
18653
18654 # Check whether --with-log4shib was given.
18655 if test "${with_log4shib+set}" = set; then :
18656   withval=$with_log4shib;
18657     LOG4SHIB_CONFIG="${with_log4shib}"
18658     if ! test -f "${LOG4SHIB_CONFIG}" ; then
18659         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18660     fi
18661
18662 fi
18663
18664 if test -f "${LOG4SHIB_CONFIG}" ; then
18665     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18666     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18667
18668 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18669 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18670
18671 else
18672   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18673 fi
18674
18675
18676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h.  */
18678 #include <log4shib/Category.hh>
18679 #include <log4shib/CategoryStream.hh>
18680 int
18681 main ()
18682 {
18683 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 if ac_fn_cxx_try_link "$LINENO"; then :
18689
18690 $as_echo "#define XMLTOOLING_LOG4SHIB 1" >>confdefs.h
18691
18692 else
18693   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18694 fi
18695 rm -f core conftest.err conftest.$ac_objext \
18696     conftest$ac_exeext conftest.$ac_ext
18697 else
18698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18699 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18701 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18702
18703     # log4cpp settings
18704     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18705 set dummy log4cpp-config; ac_word=$2
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18707 $as_echo_n "checking for $ac_word... " >&6; }
18708 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18709   $as_echo_n "(cached) " >&6
18710 else
18711   case $LOG4CPP_CONFIG in
18712   [\\/]* | ?:[\\/]*)
18713   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18714   ;;
18715   *)
18716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717 for as_dir in $PATH
18718 do
18719   IFS=$as_save_IFS
18720   test -z "$as_dir" && as_dir=.
18721     for ac_exec_ext in '' $ac_executable_extensions; do
18722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18723     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18725     break 2
18726   fi
18727 done
18728   done
18729 IFS=$as_save_IFS
18730
18731   ;;
18732 esac
18733 fi
18734 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18735 if test -n "$LOG4CPP_CONFIG"; then
18736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18737 $as_echo "$LOG4CPP_CONFIG" >&6; }
18738 else
18739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18741 fi
18742
18743
18744
18745 # Check whether --with-log4cpp was given.
18746 if test "${with_log4cpp+set}" = set; then :
18747   withval=$with_log4cpp;
18748         LOG4CPP_CONFIG="${with_log4cpp}"
18749         if ! test -f "${LOG4CPP_CONFIG}" ; then
18750                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18751         fi
18752
18753 fi
18754
18755     if test -f "${LOG4CPP_CONFIG}"; then
18756         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
18757 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18758         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18759         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18760         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18761 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18762
18763 else
18764   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18765 fi
18766
18767
18768         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h.  */
18770 #include <log4cpp/Category.hh>
18771 #include <log4cpp/CategoryStream.hh>
18772 int
18773 main ()
18774 {
18775 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18776   ;
18777   return 0;
18778 }
18779 _ACEOF
18780 if ac_fn_cxx_try_link "$LINENO"; then :
18781
18782 $as_echo "#define XMLTOOLING_LOG4CPP 1" >>confdefs.h
18783
18784 else
18785   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18786 fi
18787 rm -f core conftest.err conftest.$ac_objext \
18788     conftest$ac_exeext conftest.$ac_ext
18789         else
18790             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18791         fi
18792 fi
18793
18794 # Xerces settings
18795
18796 # Check whether --with-xerces was given.
18797 if test "${with_xerces+set}" = set; then :
18798   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18799         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18800         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18801     fi
18802 fi
18803
18804 LIBS="-lxerces-c $LIBS"
18805 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18806 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18807
18808 else
18809   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18810 fi
18811
18812
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18814 $as_echo_n "checking Xerces version... " >&6; }
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h.  */
18817 #include <xercesc/util/XercesVersion.hpp>
18818 int
18819 main ()
18820 {
18821 #if  _XERCES_VERSION != 20600
18822 int i = 0;
18823 #else
18824 #error cannot use version 2.6.0
18825 #endif
18826   ;
18827   return 0;
18828 }
18829 _ACEOF
18830 if ac_fn_cxx_try_cpp "$LINENO"; then :
18831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18832 $as_echo "OK" >&6; }
18833 else
18834   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18836 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18837 See \`config.log' for more details" "$LINENO" 5 ; }
18838 fi
18839 rm -f conftest.err conftest.i conftest.$ac_ext
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h.  */
18842 #include <xercesc/util/PlatformUtils.hpp>
18843 int
18844 main ()
18845 {
18846 xercesc::XMLPlatformUtils::Initialize()
18847   ;
18848   return 0;
18849 }
18850 _ACEOF
18851 if ac_fn_cxx_try_link "$LINENO"; then :
18852
18853 else
18854   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18855 fi
18856 rm -f core conftest.err conftest.$ac_objext \
18857     conftest$ac_exeext conftest.$ac_ext
18858
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces is 64-bit clean" >&5
18860 $as_echo_n "checking whether Xerces is 64-bit clean... " >&6; }
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h.  */
18863 #include <xercesc/framework/MemBufInputSource.hpp>
18864 int
18865 main ()
18866 {
18867 using namespace XERCES_CPP_NAMESPACE; XMLFilePos testvar;
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 if ac_fn_cxx_try_compile "$LINENO"; then :
18873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18874 $as_echo "yes" >&6; }
18875 $as_echo "#define XMLTOOLING_XERCESC_64BITSAFE 1" >>confdefs.h
18876
18877 else
18878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 $as_echo "no" >&6; }
18880 fi
18881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18882
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces BinInputStream requires getContentType" >&5
18884 $as_echo_n "checking whether Xerces BinInputStream requires getContentType... " >&6; }
18885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h.  */
18887 #include <xercesc/util/BinMemInputStream.hpp>
18888 int
18889 main ()
18890 {
18891 using namespace XERCES_CPP_NAMESPACE; XMLByte buf[1024]; BinMemInputStream in(buf,1024); in.getContentType();
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 if ac_fn_cxx_try_compile "$LINENO"; then :
18897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18898 $as_echo "yes" >&6; }
18899 $as_echo "#define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1" >>confdefs.h
18900
18901 else
18902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903 $as_echo "no" >&6; }
18904 fi
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMLS API is compliant" >&5
18908 $as_echo_n "checking whether Xerces DOMLS API is compliant... " >&6; }
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h.  */
18911 #include <xercesc/dom/DOM.hpp>
18912 int
18913 main ()
18914 {
18915 using namespace XERCES_CPP_NAMESPACE;
18916         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
18917         DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 if ac_fn_cxx_try_compile "$LINENO"; then :
18923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18924 $as_echo "yes" >&6; }
18925 $as_echo "#define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1" >>confdefs.h
18926
18927 else
18928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18930 fi
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
18934 $as_echo_n "checking whether Xerces has setIdAttribute(XMLCh*, bool)... " >&6; }
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h.  */
18937 #include <xercesc/dom/DOM.hpp>
18938 int
18939 main ()
18940 {
18941 using namespace XERCES_CPP_NAMESPACE; DOMElement * elt; elt->setIdAttribute(NULL, false);
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 if ac_fn_cxx_try_compile "$LINENO"; then :
18947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18948 $as_echo "yes" >&6; }
18949 $as_echo "#define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1" >>confdefs.h
18950
18951 else
18952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18956
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18958 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h.  */
18961 #include <xercesc/util/XMLString.hpp>
18962 int
18963 main ()
18964 {
18965 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18966   ;
18967   return 0;
18968 }
18969 _ACEOF
18970 if ac_fn_cxx_try_compile "$LINENO"; then :
18971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18972 $as_echo "yes" >&6; }
18973 $as_echo "#define XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18974
18975 else
18976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 fi
18979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18980
18981 # XML-Security settings
18982
18983 # Check whether --with-xmlsec was given.
18984 if test "${with_xmlsec+set}" = set; then :
18985   withval=$with_xmlsec;
18986 else
18987   with_xmlsec=/usr
18988 fi
18989
18990
18991 if test x_$with_xmlsec != x_no; then
18992
18993     # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
18994
18995 # Check whether --with-openssl was given.
18996 if test "${with_openssl+set}" = set; then :
18997   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
18998             SSLFLAGS="-I${with_openssl}/include"
18999             SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
19000         else
19001             SSLLIBS="-lcrypto -lssl"
19002         fi
19003 fi
19004
19005
19006     if test "x$SSLLIBS" = "x" ; then
19007         # Extract the first word of "pkg-config", so it can be a program name with args.
19008 set dummy pkg-config; ac_word=$2
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19010 $as_echo_n "checking for $ac_word... " >&6; }
19011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19012   $as_echo_n "(cached) " >&6
19013 else
19014   case $PKG_CONFIG in
19015   [\\/]* | ?:[\\/]*)
19016   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19017   ;;
19018   *)
19019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020 for as_dir in $PATH
19021 do
19022   IFS=$as_save_IFS
19023   test -z "$as_dir" && as_dir=.
19024     for ac_exec_ext in '' $ac_executable_extensions; do
19025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19026     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19028     break 2
19029   fi
19030 done
19031   done
19032 IFS=$as_save_IFS
19033
19034   ;;
19035 esac
19036 fi
19037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19038 if test -n "$PKG_CONFIG"; then
19039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19040 $as_echo "$PKG_CONFIG" >&6; }
19041 else
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043 $as_echo "no" >&6; }
19044 fi
19045
19046
19047         if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
19048             if pkg-config openssl ; then
19049                 SSLLIBS="`$PKG_CONFIG --libs openssl`"
19050                 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
19051             else
19052                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
19053 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
19054             fi
19055         fi
19056     fi
19057
19058     if test "x$SSLLIBS" = "x" ; then
19059         SSLLIBS="-lcrypto -lssl"
19060     fi
19061
19062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
19063 $as_echo_n "checking for OpenSSL cflags... " >&6; }
19064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
19065 $as_echo "$SSLFLAGS" >&6; }
19066     CPPFLAGS="$CPPFLAGS $SSLFLAGS"
19067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
19068 $as_echo_n "checking for OpenSSL libraries... " >&6; }
19069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLLIBS" >&5
19070 $as_echo "$SSLLIBS" >&6; }
19071     XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
19072
19073     # save and append master libs
19074     save_LIBS="$LIBS"
19075     LIBS="$XMLSEC_LIBS $LIBS"
19076
19077     ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
19078 if test "x$ac_cv_header_openssl_pem_h" = x""yes; then :
19079
19080 else
19081   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
19082 fi
19083
19084
19085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_CRYPTO_string" >&5
19086 $as_echo_n "checking for ERR_load_CRYPTO_string... " >&6; }
19087     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h.  */
19089
19090 /* Override any GCC internal prototype to avoid an error.
19091    Use char because int might match the return type of a GCC
19092    builtin and then its argument prototype would still apply.  */
19093 #ifdef __cplusplus
19094 extern "C"
19095 #endif
19096 char ERR_load_CRYPTO_strings ();
19097 int
19098 main ()
19099 {
19100 return ERR_load_CRYPTO_strings ();
19101   ;
19102   return 0;
19103 }
19104 _ACEOF
19105 if ac_fn_cxx_try_link "$LINENO"; then :
19106
19107 else
19108   as_fn_error $? "unable to link with openssl libraries" "$LINENO" 5
19109 fi
19110 rm -f core conftest.err conftest.$ac_objext \
19111     conftest$ac_exeext conftest.$ac_ext
19112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19113 $as_echo "yes" >&6; }
19114
19115     ac_fn_cxx_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h>
19116 "
19117 if test "x$ac_cv_have_decl_EVP_sha512" = x""yes; then :
19118
19119 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_SHA2 1" >>confdefs.h
19120
19121 fi
19122
19123     ac_fn_cxx_check_decl "$LINENO" "EVP_PKEY_set1_EC_KEY" "ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" "#include <openssl/evp.h>
19124 "
19125 if test "x$ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" = x""yes; then :
19126
19127 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_EC 1" >>confdefs.h
19128
19129 fi
19130
19131
19132     # restore master libs
19133     LIBS="$save_LIBS"
19134
19135     if test x_$with_xmlsec != x_/usr; then
19136         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
19137         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
19138     fi
19139     XMLSEC_LIBS="$XMLSEC_LIBS -lxml-security-c"
19140
19141     # save and append master libs
19142     save_LIBS="$LIBS"
19143     LIBS="$XMLSEC_LIBS $LIBS"
19144
19145     ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
19146 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
19147
19148 else
19149   as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
19150 fi
19151
19152
19153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
19154 $as_echo_n "checking XML-Security version... " >&6; }
19155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h.  */
19157 #include <xsec/utils/XSECPlatformUtils.hpp>
19158 int
19159 main ()
19160 {
19161 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
19162 int i = 0;
19163 #else
19164 #error need version 1.4.0 or later
19165 #endif
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 if ac_fn_cxx_try_cpp "$LINENO"; then :
19171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
19172 $as_echo "OK" >&6; }
19173 else
19174   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19176 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
19177 See \`config.log' for more details" "$LINENO" 5 ; }
19178 fi
19179 rm -f conftest.err conftest.i conftest.$ac_ext
19180
19181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h.  */
19183 #include <xsec/utils/XSECPlatformUtils.hpp>
19184 int
19185 main ()
19186 {
19187 XSECPlatformUtils::Initialise()
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_cxx_try_link "$LINENO"; then :
19193
19194 else
19195   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext \
19198     conftest$ac_exeext conftest.$ac_ext
19199     ac_fn_cxx_check_type "$LINENO" "xsecsize_t" "ac_cv_type_xsecsize_t" "$ac_includes_default"
19200 if test "x$ac_cv_type_xsecsize_t" = x""yes; then :
19201
19202 $as_echo "#define HAVE_XSECSIZE_T 1" >>confdefs.h
19203
19204 fi
19205
19206
19207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C has multiple CRL support" >&5
19208 $as_echo_n "checking whether XML-Security-C has multiple CRL support... " >&6; }
19209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h.  */
19211 #include <xsec/dsig/DSIGKeyInfoX509.hpp>
19212 int
19213 main ()
19214 {
19215 DSIGKeyInfoX509* klist; klist->getX509CRLListSize();
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 if ac_fn_cxx_try_compile "$LINENO"; then :
19221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19222 $as_echo "yes" >&6; }
19223 $as_echo "#define XMLTOOLING_XMLSEC_MULTIPLECRL 1" >>confdefs.h
19224
19225 else
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230
19231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C exposes the signature algorithm URI" >&5
19232 $as_echo_n "checking whether XML-Security-C exposes the signature algorithm URI... " >&6; }
19233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h.  */
19235 #include <xsec/dsig/DSIGSignature.hpp>
19236 int
19237 main ()
19238 {
19239 DSIGSignature* sig; sig->getAlgorithmURI();
19240   ;
19241   return 0;
19242 }
19243 _ACEOF
19244 if ac_fn_cxx_try_compile "$LINENO"; then :
19245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246 $as_echo "yes" >&6; }
19247 $as_echo "#define XMLTOOLING_XMLSEC_SIGALGORITHM 1" >>confdefs.h
19248
19249 else
19250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19251 $as_echo "no" >&6; }
19252 fi
19253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19254
19255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes ECC support" >&5
19256 $as_echo_n "checking whether XML-Security-C includes ECC support... " >&6; }
19257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h.  */
19259 #include <xsec/dsig/DSIGKeyInfoValue.hpp>
19260 int
19261 main ()
19262 {
19263 DSIGKeyInfoValue* info; info->getECNamedCurve();
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 if ac_fn_cxx_try_compile "$LINENO"; then :
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19271 $as_echo "#define XMLTOOLING_XMLSEC_ECC 1" >>confdefs.h
19272
19273 else
19274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19276 fi
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278
19279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes C14N 1.1 support" >&5
19280 $as_echo_n "checking whether XML-Security-C includes C14N 1.1 support... " >&6; }
19281     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h.  */
19283 #include <xsec/dsig/DSIGConstants.hpp>
19284 int
19285 main ()
19286 {
19287 transformType t = TRANSFORM_C14N11;
19288   ;
19289   return 0;
19290 }
19291 _ACEOF
19292 if ac_fn_cxx_try_compile "$LINENO"; then :
19293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19294 $as_echo "yes" >&6; }
19295 $as_echo "#define XMLTOOLING_XMLSEC_C14N11 1" >>confdefs.h
19296
19297 else
19298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19300 fi
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302
19303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes debug logging support" >&5
19304 $as_echo_n "checking whether XML-Security-C includes debug logging support... " >&6; }
19305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h.  */
19307 #include <xsec/utils/XSECPlatformUtils.hpp>
19308 int
19309 main ()
19310 {
19311 XSECPlatformUtils::SetReferenceLoggingSink(NULL)
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 if ac_fn_cxx_try_compile "$LINENO"; then :
19317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 $as_echo "yes" >&6; }
19319 $as_echo "#define XMLTOOLING_XMLSEC_DEBUGLOGGING 1" >>confdefs.h
19320
19321 else
19322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19323 $as_echo "no" >&6; }
19324 fi
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326
19327     # restore master libs
19328     LIBS="$save_LIBS"
19329
19330     # libcurl settings
19331     # Extract the first word of "curl-config", so it can be a program name with args.
19332 set dummy curl-config; ac_word=$2
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19334 $as_echo_n "checking for $ac_word... " >&6; }
19335 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
19336   $as_echo_n "(cached) " >&6
19337 else
19338   case $CURL_CONFIG in
19339   [\\/]* | ?:[\\/]*)
19340   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
19341   ;;
19342   *)
19343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19344 for as_dir in $PATH
19345 do
19346   IFS=$as_save_IFS
19347   test -z "$as_dir" && as_dir=.
19348     for ac_exec_ext in '' $ac_executable_extensions; do
19349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19350     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19352     break 2
19353   fi
19354 done
19355   done
19356 IFS=$as_save_IFS
19357
19358   ;;
19359 esac
19360 fi
19361 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
19362 if test -n "$CURL_CONFIG"; then
19363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
19364 $as_echo "$CURL_CONFIG" >&6; }
19365 else
19366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19368 fi
19369
19370
19371
19372 # Check whether --with-curl was given.
19373 if test "${with_curl+set}" = set; then :
19374   withval=$with_curl;
19375         CURL_CONFIG="${with_curl}"
19376         if ! test -f "${CURL_CONFIG}" ; then
19377             CURL_CONFIG="${with_curl}/bin/curl-config"
19378         fi
19379
19380 fi
19381
19382     if test -f "${CURL_CONFIG}" ; then
19383         CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
19384         XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
19385     else
19386         as_fn_error $? "curl-config not found, may need to use --with-curl option" "$LINENO" 5
19387     fi
19388
19389     # save and append master libs
19390     save_LIBS="$LIBS"
19391     LIBS="$XMLSEC_LIBS $LIBS"
19392
19393     ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
19394 if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
19395
19396 else
19397   as_fn_error $? "unable to find libcurl header files" "$LINENO" 5
19398 fi
19399
19400
19401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
19402 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
19403 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then :
19404   $as_echo_n "(cached) " >&6
19405 else
19406   ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lcurl  $LIBS"
19408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409 /* end confdefs.h.  */
19410
19411 /* Override any GCC internal prototype to avoid an error.
19412    Use char because int might match the return type of a GCC
19413    builtin and then its argument prototype would still apply.  */
19414 #ifdef __cplusplus
19415 extern "C"
19416 #endif
19417 char curl_global_init ();
19418 int
19419 main ()
19420 {
19421 return curl_global_init ();
19422   ;
19423   return 0;
19424 }
19425 _ACEOF
19426 if ac_fn_cxx_try_link "$LINENO"; then :
19427   ac_cv_lib_curl_curl_global_init=yes
19428 else
19429   ac_cv_lib_curl_curl_global_init=no
19430 fi
19431 rm -f core conftest.err conftest.$ac_objext \
19432     conftest$ac_exeext conftest.$ac_ext
19433 LIBS=$ac_check_lib_save_LIBS
19434 fi
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
19436 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
19437 if test "x$ac_cv_lib_curl_curl_global_init" = x""yes; then :
19438   cat >>confdefs.h <<_ACEOF
19439 #define HAVE_LIBCURL 1
19440 _ACEOF
19441
19442   LIBS="-lcurl $LIBS"
19443
19444 else
19445   as_fn_error $? "unable to link with libcurl" "$LINENO" 5
19446 fi
19447
19448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
19449 $as_echo_n "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... " >&6; }
19450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h.  */
19452 #include <curl/curl.h>
19453
19454 _ACEOF
19455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19456   $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then :
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19458 $as_echo "yes" >&6; }
19459 else
19460   as_fn_error $? "need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" "$LINENO" 5
19461 fi
19462 rm -f conftest*
19463
19464     ac_fn_cxx_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "$ac_includes_default"
19465 if test "x$ac_cv_type_curl_off_t" = x""yes; then :
19466
19467 $as_echo "#define HAVE_CURL_OFF_T 1" >>confdefs.h
19468
19469 fi
19470
19471
19472     # restore master libs
19473     LIBS="$save_LIBS"
19474
19475
19476 else
19477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlsec disabled, building without signature/encryption support" >&5
19478 $as_echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
19479
19480 $as_echo "#define XMLTOOLING_NO_XMLSEC 1" >>confdefs.h
19481
19482 fi
19483  if test x_$with_xmlsec != x_no; then
19484   BUILD_XMLSEC_TRUE=
19485   BUILD_XMLSEC_FALSE='#'
19486 else
19487   BUILD_XMLSEC_TRUE='#'
19488   BUILD_XMLSEC_FALSE=
19489 fi
19490
19491
19492 # Does the STL in use help or screw us?
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495 #include <string>
19496 int
19497 main ()
19498 {
19499 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 if ac_fn_cxx_try_link "$LINENO"; then :
19505
19506 $as_echo "#define HAVE_GOOD_STL 1" >>confdefs.h
19507
19508 fi
19509 rm -f core conftest.err conftest.$ac_objext \
19510     conftest$ac_exeext conftest.$ac_ext
19511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h.  */
19513 #include <vector>
19514 int
19515 main ()
19516 {
19517 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
19518   ;
19519   return 0;
19520 }
19521 _ACEOF
19522 if ac_fn_cxx_try_link "$LINENO"; then :
19523
19524 $as_echo "#define HAVE_ITERATOR_TRAITS 1" >>confdefs.h
19525
19526 fi
19527 rm -f core conftest.err conftest.$ac_objext \
19528     conftest$ac_exeext conftest.$ac_ext
19529
19530 # Check for unit test support
19531 CXXTEST="/usr/bin/cxxtestgen.pl"
19532 CXXTESTFLAGS=""
19533
19534 # Check whether --with-cxxtest was given.
19535 if test "${with_cxxtest+set}" = set; then :
19536   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
19537         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
19538         CXXTESTFLAGS="-I${with_cxxtest}"
19539     fi
19540 fi
19541
19542 if ! test -f "${CXXTEST}"; then
19543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
19544 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
19545 fi
19546
19547
19548
19549  if test -f ${CXXTEST}; then
19550   BUILD_UNITTEST_TRUE=
19551   BUILD_UNITTEST_FALSE='#'
19552 else
19553   BUILD_UNITTEST_TRUE='#'
19554   BUILD_UNITTEST_FALSE=
19555 fi
19556
19557
19558
19559 # we need the expanded forms...
19560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19562
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
19564 $as_echo_n "checking our pkgconfig libname... " >&6; }
19565 test ".$ax_create_pkgconfig_libname" != "." || \
19566 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
19567 test ".$ax_create_pkgconfig_libname" != "." || \
19568 ax_create_pkgconfig_libname="$PACKAGE"
19569 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19570 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
19572 $as_echo "$ax_create_pkgconfig_libname" >&6; }
19573
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
19575 $as_echo_n "checking our pkgconfig version... " >&6; }
19576 test ".$ax_create_pkgconfig_version" != "." || \
19577 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
19578 test ".$ax_create_pkgconfig_version" != "." || \
19579 ax_create_pkgconfig_version="$VERSION"
19580 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19581 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
19583 $as_echo "$ax_create_pkgconfig_version" >&6; }
19584
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
19586 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
19587 test ".$pkgconfig_libdir" = "." && \
19588 pkgconfig_libdir='${libdir}/pkgconfig'
19589 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
19590 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19591 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
19593 $as_echo "$pkgconfig_libdir" >&6; }
19594 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
19596 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
19597
19598
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
19600 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
19601 test ".$pkgconfig_libfile" != "." || \
19602 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
19603 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
19604 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
19606 $as_echo "$pkgconfig_libfile" >&6; }
19607 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
19609 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
19610
19611
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
19613 $as_echo_n "checking our package / suffix... " >&6; }
19614 ax_create_pkgconfig_suffix="$program_suffix"
19615 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
19617 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
19618
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
19620 $as_echo_n "checking our pkgconfig description... " >&6; }
19621 ax_create_pkgconfig_description="OpenSAML XMLTooling-C library"
19622 test ".$ax_create_pkgconfig_description" != "." || \
19623 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
19624 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19625 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
19627 $as_echo "$ax_create_pkgconfig_description" >&6; }
19628
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
19630 $as_echo_n "checking our pkgconfig requires... " >&6; }
19631 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
19632 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19633 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
19635 $as_echo "$ax_create_pkgconfig_requires" >&6; }
19636
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
19638 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
19639 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
19640 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
19641 ax_create_pkgconfig_libs="$XMLSEC_LIBS -lxmltooling"
19642 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19643 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
19645 $as_echo "$ax_create_pkgconfig_libs" >&6; }
19646
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
19648 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
19649 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
19650 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19651 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
19653 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
19654
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
19656 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
19657 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
19658 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19659 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
19661 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
19662
19663 test ".$ax_create_pkgconfig_generate" != "." || \
19664 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
19665 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19666 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19667 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
19669 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
19670
19671 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
19672 ax_create_pkgconfig_src_libdir=`pwd`
19673 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
19674 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19675          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
19676          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
19677          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
19678 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
19679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19680             s//\1/
19681             q
19682           }
19683           /^X\(\/\/\)[^/].*/{
19684             s//\1/
19685             q
19686           }
19687           /^X\(\/\/\)$/{
19688             s//\1/
19689             q
19690           }
19691           /^X\(\/\).*/{
19692             s//\1/
19693             q
19694           }
19695           s/.*/./; q'`
19696 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19697 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19698 case ".$objdir" in
19699 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19701 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19702 fi
19703
19704 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19705 ax_create_pkgconfig_src_headers=`pwd`
19706 v="$ac_top_srcdir" ;
19707 test ".$v" != "." || v="$ax_spec_dir"
19708 test ".$v" != "." || v="$srcdir"
19709 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19710 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19711 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19712          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19713          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19714          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19715 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19717             s//\1/
19718             q
19719           }
19720           /^X\(\/\/\)[^/].*/{
19721             s//\1/
19722             q
19723           }
19724           /^X\(\/\/\)$/{
19725             s//\1/
19726             q
19727           }
19728           /^X\(\/\).*/{
19729             s//\1/
19730             q
19731           }
19732           s/.*/./; q'`
19733 test ! -d $ax_create_pkgconfig_src_headers/include || \
19734 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19736 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19737 fi
19738
19739
19740 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19741
19742
19743 LIBTOOL="$LIBTOOL --silent"
19744
19745 # output packaging and makefiles
19746 cat >confcache <<\_ACEOF
19747 # This file is a shell script that caches the results of configure
19748 # tests run on this system so they can be shared between configure
19749 # scripts and configure runs, see configure's option --config-cache.
19750 # It is not useful on other systems.  If it contains results you don't
19751 # want to keep, you may remove or edit it.
19752 #
19753 # config.status only pays attention to the cache file if you give it
19754 # the --recheck option to rerun configure.
19755 #
19756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19758 # following values.
19759
19760 _ACEOF
19761
19762 # The following way of writing the cache mishandles newlines in values,
19763 # but we know of no workaround that is simple, portable, and efficient.
19764 # So, we kill variables containing newlines.
19765 # Ultrix sh set writes to stderr and can't be redirected directly,
19766 # and sets the high bit in the cache file unless we assign to the vars.
19767 (
19768   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19769     eval ac_val=\$$ac_var
19770     case $ac_val in #(
19771     *${as_nl}*)
19772       case $ac_var in #(
19773       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19775       esac
19776       case $ac_var in #(
19777       _ | IFS | as_nl) ;; #(
19778       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19779       *) { eval $ac_var=; unset $ac_var;} ;;
19780       esac ;;
19781     esac
19782   done
19783
19784   (set) 2>&1 |
19785     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19786     *${as_nl}ac_space=\ *)
19787       # `set' does not quote correctly, so add quotes: double-quote
19788       # substitution turns \\\\ into \\, and sed turns \\ into \.
19789       sed -n \
19790         "s/'/'\\\\''/g;
19791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19792       ;; #(
19793     *)
19794       # `set' quotes correctly as required by POSIX, so do not add quotes.
19795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19796       ;;
19797     esac |
19798     sort
19799 ) |
19800   sed '
19801      /^ac_cv_env_/b end
19802      t clear
19803      :clear
19804      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19805      t end
19806      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19807      :end' >>confcache
19808 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19809   if test -w "$cache_file"; then
19810     test "x$cache_file" != "x/dev/null" &&
19811       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19812 $as_echo "$as_me: updating cache $cache_file" >&6;}
19813     cat confcache >$cache_file
19814   else
19815     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19816 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19817   fi
19818 fi
19819 rm -f confcache
19820
19821 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19822 # Let make expand exec_prefix.
19823 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19824
19825 DEFS=-DHAVE_CONFIG_H
19826
19827 ac_libobjs=
19828 ac_ltlibobjs=
19829 U=
19830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19831   # 1. Remove the extension, and $U if already installed.
19832   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19833   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19834   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19835   #    will be set to the directory where LIBOBJS objects are built.
19836   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19837   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19838 done
19839 LIBOBJS=$ac_libobjs
19840
19841 LTLIBOBJS=$ac_ltlibobjs
19842
19843
19844  if test -n "$EXEEXT"; then
19845   am__EXEEXT_TRUE=
19846   am__EXEEXT_FALSE='#'
19847 else
19848   am__EXEEXT_TRUE='#'
19849   am__EXEEXT_FALSE=
19850 fi
19851
19852 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19853   as_fn_error $? "conditional \"AMDEP\" was never defined.
19854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19855 fi
19856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19857   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19859 fi
19860 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19861   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19863 fi
19864 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19865   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19867 fi
19868 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19869   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19871 fi
19872 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19873   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19875 fi
19876 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19877   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19879 fi
19880 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19881   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19883 fi
19884 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19885   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19887 fi
19888 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19889   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19891 fi
19892 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19893   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19895 fi
19896 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19897   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19899 fi
19900 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19901   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19903 fi
19904 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19905   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19907 fi
19908 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19909   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19911 fi
19912 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19913   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19915 fi
19916 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19917   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19919 fi
19920 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19921   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19923 fi
19924 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19925   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19927 fi
19928 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19929   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19931 fi
19932 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19933   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19935 fi
19936 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19937   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19939 fi
19940 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19941   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19943 fi
19944 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19945   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19947 fi
19948 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19949   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19951 fi
19952 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19953   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19955 fi
19956 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
19957   as_fn_error $? "conditional \"BUILD_PTHREAD\" was never defined.
19958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19959 fi
19960 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
19961   as_fn_error $? "conditional \"BUILD_XMLSEC\" was never defined.
19962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19963 fi
19964 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19965   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19967 fi
19968
19969 : ${CONFIG_STATUS=./config.status}
19970 ac_write_fail=0
19971 ac_clean_files_save=$ac_clean_files
19972 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19974 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19975 as_write_fail=0
19976 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19977 #! $SHELL
19978 # Generated by $as_me.
19979 # Run this file to recreate the current configuration.
19980 # Compiler output produced by configure, useful for debugging
19981 # configure, is in config.log if it exists.
19982
19983 debug=false
19984 ac_cs_recheck=false
19985 ac_cs_silent=false
19986
19987 SHELL=\${CONFIG_SHELL-$SHELL}
19988 export SHELL
19989 _ASEOF
19990 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19991 ## -------------------- ##
19992 ## M4sh Initialization. ##
19993 ## -------------------- ##
19994
19995 # Be more Bourne compatible
19996 DUALCASE=1; export DUALCASE # for MKS sh
19997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19998   emulate sh
19999   NULLCMD=:
20000   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20001   # is contrary to our usage.  Disable this feature.
20002   alias -g '${1+"$@"}'='"$@"'
20003   setopt NO_GLOB_SUBST
20004 else
20005   case `(set -o) 2>/dev/null` in #(
20006   *posix*) :
20007     set -o posix ;; #(
20008   *) :
20009      ;;
20010 esac
20011 fi
20012
20013
20014 as_nl='
20015 '
20016 export as_nl
20017 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20018 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20021 # Prefer a ksh shell builtin over an external printf program on Solaris,
20022 # but without wasting forks for bash or zsh.
20023 if test -z "$BASH_VERSION$ZSH_VERSION" \
20024     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20025   as_echo='print -r --'
20026   as_echo_n='print -rn --'
20027 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20028   as_echo='printf %s\n'
20029   as_echo_n='printf %s'
20030 else
20031   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20032     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20033     as_echo_n='/usr/ucb/echo -n'
20034   else
20035     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20036     as_echo_n_body='eval
20037       arg=$1;
20038       case $arg in #(
20039       *"$as_nl"*)
20040         expr "X$arg" : "X\\(.*\\)$as_nl";
20041         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20042       esac;
20043       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20044     '
20045     export as_echo_n_body
20046     as_echo_n='sh -c $as_echo_n_body as_echo'
20047   fi
20048   export as_echo_body
20049   as_echo='sh -c $as_echo_body as_echo'
20050 fi
20051
20052 # The user is always right.
20053 if test "${PATH_SEPARATOR+set}" != set; then
20054   PATH_SEPARATOR=:
20055   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20056     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20057       PATH_SEPARATOR=';'
20058   }
20059 fi
20060
20061
20062 # IFS
20063 # We need space, tab and new line, in precisely that order.  Quoting is
20064 # there to prevent editors from complaining about space-tab.
20065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20066 # splitting by setting IFS to empty value.)
20067 IFS=" ""        $as_nl"
20068
20069 # Find who we are.  Look in the path if we contain no directory separator.
20070 case $0 in #((
20071   *[\\/]* ) as_myself=$0 ;;
20072   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20074 do
20075   IFS=$as_save_IFS
20076   test -z "$as_dir" && as_dir=.
20077     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20078   done
20079 IFS=$as_save_IFS
20080
20081      ;;
20082 esac
20083 # We did not find ourselves, most probably we were run as `sh COMMAND'
20084 # in which case we are not to be found in the path.
20085 if test "x$as_myself" = x; then
20086   as_myself=$0
20087 fi
20088 if test ! -f "$as_myself"; then
20089   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20090   exit 1
20091 fi
20092
20093 # Unset variables that we do not need and which cause bugs (e.g. in
20094 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20095 # suppresses any "Segmentation fault" message there.  '((' could
20096 # trigger a bug in pdksh 5.2.14.
20097 for as_var in BASH_ENV ENV MAIL MAILPATH
20098 do eval test x\${$as_var+set} = xset \
20099   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20100 done
20101 PS1='$ '
20102 PS2='> '
20103 PS4='+ '
20104
20105 # NLS nuisances.
20106 LC_ALL=C
20107 export LC_ALL
20108 LANGUAGE=C
20109 export LANGUAGE
20110
20111 # CDPATH.
20112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20113
20114
20115 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20116 # ----------------------------------------
20117 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20118 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20119 # script with STATUS, using 1 if that was 0.
20120 as_fn_error ()
20121 {
20122   as_status=$1; test $as_status -eq 0 && as_status=1
20123   if test "$4"; then
20124     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20125     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20126   fi
20127   $as_echo "$as_me: error: $2" >&2
20128   as_fn_exit $as_status
20129 } # as_fn_error
20130
20131
20132 # as_fn_set_status STATUS
20133 # -----------------------
20134 # Set $? to STATUS, without forking.
20135 as_fn_set_status ()
20136 {
20137   return $1
20138 } # as_fn_set_status
20139
20140 # as_fn_exit STATUS
20141 # -----------------
20142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20143 as_fn_exit ()
20144 {
20145   set +e
20146   as_fn_set_status $1
20147   exit $1
20148 } # as_fn_exit
20149
20150 # as_fn_unset VAR
20151 # ---------------
20152 # Portably unset VAR.
20153 as_fn_unset ()
20154 {
20155   { eval $1=; unset $1;}
20156 }
20157 as_unset=as_fn_unset
20158 # as_fn_append VAR VALUE
20159 # ----------------------
20160 # Append the text in VALUE to the end of the definition contained in VAR. Take
20161 # advantage of any shell optimizations that allow amortized linear growth over
20162 # repeated appends, instead of the typical quadratic growth present in naive
20163 # implementations.
20164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20165   eval 'as_fn_append ()
20166   {
20167     eval $1+=\$2
20168   }'
20169 else
20170   as_fn_append ()
20171   {
20172     eval $1=\$$1\$2
20173   }
20174 fi # as_fn_append
20175
20176 # as_fn_arith ARG...
20177 # ------------------
20178 # Perform arithmetic evaluation on the ARGs, and store the result in the
20179 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20180 # must be portable across $(()) and expr.
20181 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20182   eval 'as_fn_arith ()
20183   {
20184     as_val=$(( $* ))
20185   }'
20186 else
20187   as_fn_arith ()
20188   {
20189     as_val=`expr "$@" || test $? -eq 1`
20190   }
20191 fi # as_fn_arith
20192
20193
20194 if expr a : '\(a\)' >/dev/null 2>&1 &&
20195    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20196   as_expr=expr
20197 else
20198   as_expr=false
20199 fi
20200
20201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20202   as_basename=basename
20203 else
20204   as_basename=false
20205 fi
20206
20207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20208   as_dirname=dirname
20209 else
20210   as_dirname=false
20211 fi
20212
20213 as_me=`$as_basename -- "$0" ||
20214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20215          X"$0" : 'X\(//\)$' \| \
20216          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20217 $as_echo X/"$0" |
20218     sed '/^.*\/\([^/][^/]*\)\/*$/{
20219             s//\1/
20220             q
20221           }
20222           /^X\/\(\/\/\)$/{
20223             s//\1/
20224             q
20225           }
20226           /^X\/\(\/\).*/{
20227             s//\1/
20228             q
20229           }
20230           s/.*/./; q'`
20231
20232 # Avoid depending upon Character Ranges.
20233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20236 as_cr_digits='0123456789'
20237 as_cr_alnum=$as_cr_Letters$as_cr_digits
20238
20239 ECHO_C= ECHO_N= ECHO_T=
20240 case `echo -n x` in #(((((
20241 -n*)
20242   case `echo 'xy\c'` in
20243   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20244   xy)  ECHO_C='\c';;
20245   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20246        ECHO_T=' ';;
20247   esac;;
20248 *)
20249   ECHO_N='-n';;
20250 esac
20251
20252 rm -f conf$$ conf$$.exe conf$$.file
20253 if test -d conf$$.dir; then
20254   rm -f conf$$.dir/conf$$.file
20255 else
20256   rm -f conf$$.dir
20257   mkdir conf$$.dir 2>/dev/null
20258 fi
20259 if (echo >conf$$.file) 2>/dev/null; then
20260   if ln -s conf$$.file conf$$ 2>/dev/null; then
20261     as_ln_s='ln -s'
20262     # ... but there are two gotchas:
20263     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20264     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20265     # In both cases, we have to default to `cp -p'.
20266     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20267       as_ln_s='cp -p'
20268   elif ln conf$$.file conf$$ 2>/dev/null; then
20269     as_ln_s=ln
20270   else
20271     as_ln_s='cp -p'
20272   fi
20273 else
20274   as_ln_s='cp -p'
20275 fi
20276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20277 rmdir conf$$.dir 2>/dev/null
20278
20279
20280 # as_fn_mkdir_p
20281 # -------------
20282 # Create "$as_dir" as a directory, including parents if necessary.
20283 as_fn_mkdir_p ()
20284 {
20285
20286   case $as_dir in #(
20287   -*) as_dir=./$as_dir;;
20288   esac
20289   test -d "$as_dir" || eval $as_mkdir_p || {
20290     as_dirs=
20291     while :; do
20292       case $as_dir in #(
20293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20294       *) as_qdir=$as_dir;;
20295       esac
20296       as_dirs="'$as_qdir' $as_dirs"
20297       as_dir=`$as_dirname -- "$as_dir" ||
20298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299          X"$as_dir" : 'X\(//\)[^/]' \| \
20300          X"$as_dir" : 'X\(//\)$' \| \
20301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20302 $as_echo X"$as_dir" |
20303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20304             s//\1/
20305             q
20306           }
20307           /^X\(\/\/\)[^/].*/{
20308             s//\1/
20309             q
20310           }
20311           /^X\(\/\/\)$/{
20312             s//\1/
20313             q
20314           }
20315           /^X\(\/\).*/{
20316             s//\1/
20317             q
20318           }
20319           s/.*/./; q'`
20320       test -d "$as_dir" && break
20321     done
20322     test -z "$as_dirs" || eval "mkdir $as_dirs"
20323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20324
20325
20326 } # as_fn_mkdir_p
20327 if mkdir -p . 2>/dev/null; then
20328   as_mkdir_p='mkdir -p "$as_dir"'
20329 else
20330   test -d ./-p && rmdir ./-p
20331   as_mkdir_p=false
20332 fi
20333
20334 if test -x / >/dev/null 2>&1; then
20335   as_test_x='test -x'
20336 else
20337   if ls -dL / >/dev/null 2>&1; then
20338     as_ls_L_option=L
20339   else
20340     as_ls_L_option=
20341   fi
20342   as_test_x='
20343     eval sh -c '\''
20344       if test -d "$1"; then
20345         test -d "$1/.";
20346       else
20347         case $1 in #(
20348         -*)set "./$1";;
20349         esac;
20350         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20351         ???[sx]*):;;*)false;;esac;fi
20352     '\'' sh
20353   '
20354 fi
20355 as_executable_p=$as_test_x
20356
20357 # Sed expression to map a string onto a valid CPP name.
20358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20359
20360 # Sed expression to map a string onto a valid variable name.
20361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20362
20363
20364 exec 6>&1
20365 ## ----------------------------------- ##
20366 ## Main body of $CONFIG_STATUS script. ##
20367 ## ----------------------------------- ##
20368 _ASEOF
20369 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20370
20371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20372 # Save the log message, to keep $0 and so on meaningful, and to
20373 # report actual input values of CONFIG_FILES etc. instead of their
20374 # values after options handling.
20375 ac_log="
20376 This file was extended by xmltooling $as_me 1.5, which was
20377 generated by GNU Autoconf 2.67.  Invocation command line was
20378
20379   CONFIG_FILES    = $CONFIG_FILES
20380   CONFIG_HEADERS  = $CONFIG_HEADERS
20381   CONFIG_LINKS    = $CONFIG_LINKS
20382   CONFIG_COMMANDS = $CONFIG_COMMANDS
20383   $ $0 $@
20384
20385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20386 "
20387
20388 _ACEOF
20389
20390 case $ac_config_files in *"
20391 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20392 esac
20393
20394 case $ac_config_headers in *"
20395 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20396 esac
20397
20398
20399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20400 # Files that config.status was made for.
20401 config_files="$ac_config_files"
20402 config_headers="$ac_config_headers"
20403 config_commands="$ac_config_commands"
20404
20405 _ACEOF
20406
20407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20408 ac_cs_usage="\
20409 \`$as_me' instantiates files and other configuration actions
20410 from templates according to the current configuration.  Unless the files
20411 and actions are specified as TAGs, all are instantiated by default.
20412
20413 Usage: $0 [OPTION]... [TAG]...
20414
20415   -h, --help       print this help, then exit
20416   -V, --version    print version number and configuration settings, then exit
20417       --config     print configuration, then exit
20418   -q, --quiet, --silent
20419                    do not print progress messages
20420   -d, --debug      don't remove temporary files
20421       --recheck    update $as_me by reconfiguring in the same conditions
20422       --file=FILE[:TEMPLATE]
20423                    instantiate the configuration file FILE
20424       --header=FILE[:TEMPLATE]
20425                    instantiate the configuration header FILE
20426
20427 Configuration files:
20428 $config_files
20429
20430 Configuration headers:
20431 $config_headers
20432
20433 Configuration commands:
20434 $config_commands
20435
20436 Report bugs to <https://bugs.internet2.edu/>."
20437
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20440 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20441 ac_cs_version="\\
20442 xmltooling config.status 1.5
20443 configured by $0, generated by GNU Autoconf 2.67,
20444   with options \\"\$ac_cs_config\\"
20445
20446 Copyright (C) 2010 Free Software Foundation, Inc.
20447 This config.status script is free software; the Free Software Foundation
20448 gives unlimited permission to copy, distribute and modify it."
20449
20450 ac_pwd='$ac_pwd'
20451 srcdir='$srcdir'
20452 INSTALL='$INSTALL'
20453 MKDIR_P='$MKDIR_P'
20454 AWK='$AWK'
20455 test -n "\$AWK" || AWK=awk
20456 _ACEOF
20457
20458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20459 # The default lists apply if the user does not specify any file.
20460 ac_need_defaults=:
20461 while test $# != 0
20462 do
20463   case $1 in
20464   --*=?*)
20465     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20466     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20467     ac_shift=:
20468     ;;
20469   --*=)
20470     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20471     ac_optarg=
20472     ac_shift=:
20473     ;;
20474   *)
20475     ac_option=$1
20476     ac_optarg=$2
20477     ac_shift=shift
20478     ;;
20479   esac
20480
20481   case $ac_option in
20482   # Handling of the options.
20483   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20484     ac_cs_recheck=: ;;
20485   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20486     $as_echo "$ac_cs_version"; exit ;;
20487   --config | --confi | --conf | --con | --co | --c )
20488     $as_echo "$ac_cs_config"; exit ;;
20489   --debug | --debu | --deb | --de | --d | -d )
20490     debug=: ;;
20491   --file | --fil | --fi | --f )
20492     $ac_shift
20493     case $ac_optarg in
20494     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20495     '') as_fn_error $? "missing file argument" ;;
20496     esac
20497     as_fn_append CONFIG_FILES " '$ac_optarg'"
20498     ac_need_defaults=false;;
20499   --header | --heade | --head | --hea )
20500     $ac_shift
20501     case $ac_optarg in
20502     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20503     esac
20504     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20505     ac_need_defaults=false;;
20506   --he | --h)
20507     # Conflict between --help and --header
20508     as_fn_error $? "ambiguous option: \`$1'
20509 Try \`$0 --help' for more information.";;
20510   --help | --hel | -h )
20511     $as_echo "$ac_cs_usage"; exit ;;
20512   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20513   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20514     ac_cs_silent=: ;;
20515
20516   # This is an error.
20517   -*) as_fn_error $? "unrecognized option: \`$1'
20518 Try \`$0 --help' for more information." ;;
20519
20520   *) as_fn_append ac_config_targets " $1"
20521      ac_need_defaults=false ;;
20522
20523   esac
20524   shift
20525 done
20526
20527 ac_configure_extra_args=
20528
20529 if $ac_cs_silent; then
20530   exec 6>/dev/null
20531   ac_configure_extra_args="$ac_configure_extra_args --silent"
20532 fi
20533
20534 _ACEOF
20535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20536 if \$ac_cs_recheck; then
20537   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20538   shift
20539   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20540   CONFIG_SHELL='$SHELL'
20541   export CONFIG_SHELL
20542   exec "\$@"
20543 fi
20544
20545 _ACEOF
20546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20547 exec 5>>config.log
20548 {
20549   echo
20550   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20551 ## Running $as_me. ##
20552 _ASBOX
20553   $as_echo "$ac_log"
20554 } >&5
20555
20556 _ACEOF
20557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20558 #
20559 # INIT-COMMANDS
20560 #
20561 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20562
20563
20564 # The HP-UX ksh and POSIX shell print the target directory to stdout
20565 # if CDPATH is set.
20566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20567
20568 sed_quote_subst='$sed_quote_subst'
20569 double_quote_subst='$double_quote_subst'
20570 delay_variable_subst='$delay_variable_subst'
20571 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20572 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20573 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20574 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20575 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20576 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20577 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20578 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20579 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20580 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20581 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20582 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20583 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20584 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20585 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20586 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20587 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20588 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20589 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20590 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20591 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20592 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20593 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20594 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20595 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20596 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20597 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20598 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20599 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20600 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20601 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20602 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20603 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20604 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20605 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20606 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20607 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20608 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20609 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20610 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20611 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20612 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20613 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20614 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20615 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20616 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20617 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20618 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20619 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20620 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20621 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20622 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20623 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20624 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20625 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20626 lt_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"`'
20627 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20628 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20629 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20630 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20631 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20632 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20633 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20634 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20635 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20636 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20637 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20638 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20639 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20640 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20641 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20642 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20643 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20644 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20645 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20646 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20647 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20648 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20649 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20650 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20651 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20652 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20653 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20654 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20655 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20656 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20657 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20658 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20659 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20660 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20661 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20662 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20663 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20664 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20665 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20666 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20667 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20668 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20669 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20670 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20671 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20672 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20673 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20674 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20675 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20676 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20677 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20678 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20679 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20680 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20681 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20682 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20683 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20684 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20685 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20686 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20687 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20688 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20689 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20690 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20691 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20692 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20693 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20694 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20695 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20696 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20697 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20698 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20699 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20700 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20701 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20702 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20703 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20704 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20705 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20706 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20707 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20708 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20709 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20710 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20711 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20712 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20713 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20714 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20715 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20716 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20717 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20718 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20719 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20720 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20721 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20722 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20723 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20724 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20725 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20726 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20727 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20728 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20729 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20730 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20731 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20732 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20733 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20734 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20735 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20736 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20737 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20738 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20739 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20740 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20741 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20742 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20743 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20744 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20745 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20746 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20747 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20748 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20749 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20750 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20751 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20752 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20753 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20754 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20755 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20756
20757 LTCC='$LTCC'
20758 LTCFLAGS='$LTCFLAGS'
20759 compiler='$compiler_DEFAULT'
20760
20761 # A function that is used when there is no print builtin or printf.
20762 func_fallback_echo ()
20763 {
20764   eval 'cat <<_LTECHO_EOF
20765 \$1
20766 _LTECHO_EOF'
20767 }
20768
20769 # Quote evaled strings.
20770 for var in SHELL \
20771 ECHO \
20772 SED \
20773 GREP \
20774 EGREP \
20775 FGREP \
20776 LD \
20777 NM \
20778 LN_S \
20779 lt_SP2NL \
20780 lt_NL2SP \
20781 reload_flag \
20782 OBJDUMP \
20783 deplibs_check_method \
20784 file_magic_cmd \
20785 file_magic_glob \
20786 want_nocaseglob \
20787 DLLTOOL \
20788 sharedlib_from_linklib_cmd \
20789 AR \
20790 AR_FLAGS \
20791 archiver_list_spec \
20792 STRIP \
20793 RANLIB \
20794 CC \
20795 CFLAGS \
20796 compiler \
20797 lt_cv_sys_global_symbol_pipe \
20798 lt_cv_sys_global_symbol_to_cdecl \
20799 lt_cv_sys_global_symbol_to_c_name_address \
20800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20801 nm_file_list_spec \
20802 lt_prog_compiler_no_builtin_flag \
20803 lt_prog_compiler_pic \
20804 lt_prog_compiler_wl \
20805 lt_prog_compiler_static \
20806 lt_cv_prog_compiler_c_o \
20807 need_locks \
20808 MANIFEST_TOOL \
20809 DSYMUTIL \
20810 NMEDIT \
20811 LIPO \
20812 OTOOL \
20813 OTOOL64 \
20814 shrext_cmds \
20815 export_dynamic_flag_spec \
20816 whole_archive_flag_spec \
20817 compiler_needs_object \
20818 with_gnu_ld \
20819 allow_undefined_flag \
20820 no_undefined_flag \
20821 hardcode_libdir_flag_spec \
20822 hardcode_libdir_flag_spec_ld \
20823 hardcode_libdir_separator \
20824 exclude_expsyms \
20825 include_expsyms \
20826 file_list_spec \
20827 variables_saved_for_relink \
20828 libname_spec \
20829 library_names_spec \
20830 soname_spec \
20831 install_override_mode \
20832 finish_eval \
20833 old_striplib \
20834 striplib \
20835 compiler_lib_search_dirs \
20836 predep_objects \
20837 postdep_objects \
20838 predeps \
20839 postdeps \
20840 compiler_lib_search_path \
20841 LD_CXX \
20842 reload_flag_CXX \
20843 compiler_CXX \
20844 lt_prog_compiler_no_builtin_flag_CXX \
20845 lt_prog_compiler_pic_CXX \
20846 lt_prog_compiler_wl_CXX \
20847 lt_prog_compiler_static_CXX \
20848 lt_cv_prog_compiler_c_o_CXX \
20849 export_dynamic_flag_spec_CXX \
20850 whole_archive_flag_spec_CXX \
20851 compiler_needs_object_CXX \
20852 with_gnu_ld_CXX \
20853 allow_undefined_flag_CXX \
20854 no_undefined_flag_CXX \
20855 hardcode_libdir_flag_spec_CXX \
20856 hardcode_libdir_flag_spec_ld_CXX \
20857 hardcode_libdir_separator_CXX \
20858 exclude_expsyms_CXX \
20859 include_expsyms_CXX \
20860 file_list_spec_CXX \
20861 compiler_lib_search_dirs_CXX \
20862 predep_objects_CXX \
20863 postdep_objects_CXX \
20864 predeps_CXX \
20865 postdeps_CXX \
20866 compiler_lib_search_path_CXX; do
20867     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20868     *[\\\\\\\`\\"\\\$]*)
20869       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20870       ;;
20871     *)
20872       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20873       ;;
20874     esac
20875 done
20876
20877 # Double-quote double-evaled strings.
20878 for var in reload_cmds \
20879 old_postinstall_cmds \
20880 old_postuninstall_cmds \
20881 old_archive_cmds \
20882 extract_expsyms_cmds \
20883 old_archive_from_new_cmds \
20884 old_archive_from_expsyms_cmds \
20885 archive_cmds \
20886 archive_expsym_cmds \
20887 module_cmds \
20888 module_expsym_cmds \
20889 export_symbols_cmds \
20890 prelink_cmds \
20891 postlink_cmds \
20892 postinstall_cmds \
20893 postuninstall_cmds \
20894 finish_cmds \
20895 sys_lib_search_path_spec \
20896 sys_lib_dlsearch_path_spec \
20897 reload_cmds_CXX \
20898 old_archive_cmds_CXX \
20899 old_archive_from_new_cmds_CXX \
20900 old_archive_from_expsyms_cmds_CXX \
20901 archive_cmds_CXX \
20902 archive_expsym_cmds_CXX \
20903 module_cmds_CXX \
20904 module_expsym_cmds_CXX \
20905 export_symbols_cmds_CXX \
20906 prelink_cmds_CXX \
20907 postlink_cmds_CXX; do
20908     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20909     *[\\\\\\\`\\"\\\$]*)
20910       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20911       ;;
20912     *)
20913       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20914       ;;
20915     esac
20916 done
20917
20918 ac_aux_dir='$ac_aux_dir'
20919 xsi_shell='$xsi_shell'
20920 lt_shell_append='$lt_shell_append'
20921
20922 # See if we are running on zsh, and set the options which allow our
20923 # commands through without removal of \ escapes INIT.
20924 if test -n "\${ZSH_VERSION+set}" ; then
20925    setopt NO_GLOB_SUBST
20926 fi
20927
20928
20929     PACKAGE='$PACKAGE'
20930     VERSION='$VERSION'
20931     TIMESTAMP='$TIMESTAMP'
20932     RM='$RM'
20933     ofile='$ofile'
20934
20935
20936
20937
20938
20939
20940 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20941 pkgconfig_prefix='$prefix'
20942 pkgconfig_execprefix='$exec_prefix'
20943 pkgconfig_bindir='$bindir'
20944 pkgconfig_libdir='$libdir'
20945 pkgconfig_includedir='$includedir'
20946 pkgconfig_datarootdir='$datarootdir'
20947 pkgconfig_datadir='$datadir'
20948 pkgconfig_sysconfdir='$sysconfdir'
20949 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20950 pkgconfig_package='$PACKAGE_NAME'
20951 pkgconfig_libname='$ax_create_pkgconfig_libname'
20952 pkgconfig_description='$ax_create_pkgconfig_description'
20953 pkgconfig_version='$ax_create_pkgconfig_version'
20954 pkgconfig_requires='$ax_create_pkgconfig_requires'
20955 pkgconfig_libs='$ax_create_pkgconfig_libs'
20956 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20957 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20958 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20959 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20960
20961
20962 _ACEOF
20963
20964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20965
20966 # Handling of arguments.
20967 for ac_config_target in $ac_config_targets
20968 do
20969   case $ac_config_target in
20970     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20971     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20972     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20973     "xmltooling/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
20974     "xmltooling.spec") CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
20975     "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
20976     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
20977     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20978     "xmltooling/Makefile") CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
20979     "xmltoolingtest/Makefile") CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
20980     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20981     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20982     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
20983
20984   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20985   esac
20986 done
20987
20988
20989 # If the user did not use the arguments to specify the items to instantiate,
20990 # then the envvar interface is used.  Set only those that are not.
20991 # We use the long form for the default assignment because of an extremely
20992 # bizarre bug on SunOS 4.1.3.
20993 if $ac_need_defaults; then
20994   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20995   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20996   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20997 fi
20998
20999 # Have a temporary directory for convenience.  Make it in the build tree
21000 # simply because there is no reason against having it here, and in addition,
21001 # creating and moving files from /tmp can sometimes cause problems.
21002 # Hook for its removal unless debugging.
21003 # Note that there is a small window in which the directory will not be cleaned:
21004 # after its creation but before its name has been assigned to `$tmp'.
21005 $debug ||
21006 {
21007   tmp=
21008   trap 'exit_status=$?
21009   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21010 ' 0
21011   trap 'as_fn_exit 1' 1 2 13 15
21012 }
21013 # Create a (secure) tmp directory for tmp files.
21014
21015 {
21016   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21017   test -n "$tmp" && test -d "$tmp"
21018 }  ||
21019 {
21020   tmp=./conf$$-$RANDOM
21021   (umask 077 && mkdir "$tmp")
21022 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21023
21024 # Set up the scripts for CONFIG_FILES section.
21025 # No need to generate them if there are no CONFIG_FILES.
21026 # This happens for instance with `./config.status config.h'.
21027 if test -n "$CONFIG_FILES"; then
21028
21029
21030 ac_cr=`echo X | tr X '\015'`
21031 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21032 # But we know of no other shell where ac_cr would be empty at this
21033 # point, so we can use a bashism as a fallback.
21034 if test "x$ac_cr" = x; then
21035   eval ac_cr=\$\'\\r\'
21036 fi
21037 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21038 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21039   ac_cs_awk_cr='\\r'
21040 else
21041   ac_cs_awk_cr=$ac_cr
21042 fi
21043
21044 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21045 _ACEOF
21046
21047
21048 {
21049   echo "cat >conf$$subs.awk <<_ACEOF" &&
21050   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21051   echo "_ACEOF"
21052 } >conf$$subs.sh ||
21053   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21054 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21055 ac_delim='%!_!# '
21056 for ac_last_try in false false false false false :; do
21057   . ./conf$$subs.sh ||
21058     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21059
21060   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21061   if test $ac_delim_n = $ac_delim_num; then
21062     break
21063   elif $ac_last_try; then
21064     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21065   else
21066     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21067   fi
21068 done
21069 rm -f conf$$subs.sh
21070
21071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21072 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21073 _ACEOF
21074 sed -n '
21075 h
21076 s/^/S["/; s/!.*/"]=/
21077 p
21078 g
21079 s/^[^!]*!//
21080 :repl
21081 t repl
21082 s/'"$ac_delim"'$//
21083 t delim
21084 :nl
21085 h
21086 s/\(.\{148\}\)..*/\1/
21087 t more1
21088 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21089 p
21090 n
21091 b repl
21092 :more1
21093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21094 p
21095 g
21096 s/.\{148\}//
21097 t nl
21098 :delim
21099 h
21100 s/\(.\{148\}\)..*/\1/
21101 t more2
21102 s/["\\]/\\&/g; s/^/"/; s/$/"/
21103 p
21104 b
21105 :more2
21106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21107 p
21108 g
21109 s/.\{148\}//
21110 t delim
21111 ' <conf$$subs.awk | sed '
21112 /^[^""]/{
21113   N
21114   s/\n//
21115 }
21116 ' >>$CONFIG_STATUS || ac_write_fail=1
21117 rm -f conf$$subs.awk
21118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21119 _ACAWK
21120 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21121   for (key in S) S_is_set[key] = 1
21122   FS = "\a"
21123
21124 }
21125 {
21126   line = $ 0
21127   nfields = split(line, field, "@")
21128   substed = 0
21129   len = length(field[1])
21130   for (i = 2; i < nfields; i++) {
21131     key = field[i]
21132     keylen = length(key)
21133     if (S_is_set[key]) {
21134       value = S[key]
21135       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21136       len += length(value) + length(field[++i])
21137       substed = 1
21138     } else
21139       len += 1 + keylen
21140   }
21141
21142   print line
21143 }
21144
21145 _ACAWK
21146 _ACEOF
21147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21148 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21149   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21150 else
21151   cat
21152 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21153   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21154 _ACEOF
21155
21156 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21157 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21158 # trailing colons and then remove the whole line if VPATH becomes empty
21159 # (actually we leave an empty line to preserve line numbers).
21160 if test "x$srcdir" = x.; then
21161   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21162 h
21163 s///
21164 s/^/:/
21165 s/[      ]*$/:/
21166 s/:\$(srcdir):/:/g
21167 s/:\${srcdir}:/:/g
21168 s/:@srcdir@:/:/g
21169 s/^:*//
21170 s/:*$//
21171 x
21172 s/\(=[   ]*\).*/\1/
21173 G
21174 s/\n//
21175 s/^[^=]*=[       ]*$//
21176 }'
21177 fi
21178
21179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21180 fi # test -n "$CONFIG_FILES"
21181
21182 # Set up the scripts for CONFIG_HEADERS section.
21183 # No need to generate them if there are no CONFIG_HEADERS.
21184 # This happens for instance with `./config.status Makefile'.
21185 if test -n "$CONFIG_HEADERS"; then
21186 cat >"$tmp/defines.awk" <<\_ACAWK ||
21187 BEGIN {
21188 _ACEOF
21189
21190 # Transform confdefs.h into an awk script `defines.awk', embedded as
21191 # here-document in config.status, that substitutes the proper values into
21192 # config.h.in to produce config.h.
21193
21194 # Create a delimiter string that does not exist in confdefs.h, to ease
21195 # handling of long lines.
21196 ac_delim='%!_!# '
21197 for ac_last_try in false false :; do
21198   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21199   if test -z "$ac_t"; then
21200     break
21201   elif $ac_last_try; then
21202     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21203   else
21204     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21205   fi
21206 done
21207
21208 # For the awk script, D is an array of macro values keyed by name,
21209 # likewise P contains macro parameters if any.  Preserve backslash
21210 # newline sequences.
21211
21212 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21213 sed -n '
21214 s/.\{148\}/&'"$ac_delim"'/g
21215 t rset
21216 :rset
21217 s/^[     ]*#[    ]*define[       ][      ]*/ /
21218 t def
21219 d
21220 :def
21221 s/\\$//
21222 t bsnl
21223 s/["\\]/\\&/g
21224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21225 D["\1"]=" \3"/p
21226 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21227 d
21228 :bsnl
21229 s/["\\]/\\&/g
21230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21231 D["\1"]=" \3\\\\\\n"\\/p
21232 t cont
21233 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21234 t cont
21235 d
21236 :cont
21237 n
21238 s/.\{148\}/&'"$ac_delim"'/g
21239 t clear
21240 :clear
21241 s/\\$//
21242 t bsnlc
21243 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21244 d
21245 :bsnlc
21246 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21247 b cont
21248 ' <confdefs.h | sed '
21249 s/'"$ac_delim"'/"\\\
21250 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21251
21252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21253   for (key in D) D_is_set[key] = 1
21254   FS = "\a"
21255 }
21256 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21257   line = \$ 0
21258   split(line, arg, " ")
21259   if (arg[1] == "#") {
21260     defundef = arg[2]
21261     mac1 = arg[3]
21262   } else {
21263     defundef = substr(arg[1], 2)
21264     mac1 = arg[2]
21265   }
21266   split(mac1, mac2, "(") #)
21267   macro = mac2[1]
21268   prefix = substr(line, 1, index(line, defundef) - 1)
21269   if (D_is_set[macro]) {
21270     # Preserve the white space surrounding the "#".
21271     print prefix "define", macro P[macro] D[macro]
21272     next
21273   } else {
21274     # Replace #undef with comments.  This is necessary, for example,
21275     # in the case of _POSIX_SOURCE, which is predefined and required
21276     # on some systems where configure will not decide to define it.
21277     if (defundef == "undef") {
21278       print "/*", prefix defundef, macro, "*/"
21279       next
21280     }
21281   }
21282 }
21283 { print }
21284 _ACAWK
21285 _ACEOF
21286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21287   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21288 fi # test -n "$CONFIG_HEADERS"
21289
21290
21291 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21292 shift
21293 for ac_tag
21294 do
21295   case $ac_tag in
21296   :[FHLC]) ac_mode=$ac_tag; continue;;
21297   esac
21298   case $ac_mode$ac_tag in
21299   :[FHL]*:*);;
21300   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
21301   :[FH]-) ac_tag=-:-;;
21302   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21303   esac
21304   ac_save_IFS=$IFS
21305   IFS=:
21306   set x $ac_tag
21307   IFS=$ac_save_IFS
21308   shift
21309   ac_file=$1
21310   shift
21311
21312   case $ac_mode in
21313   :L) ac_source=$1;;
21314   :[FH])
21315     ac_file_inputs=
21316     for ac_f
21317     do
21318       case $ac_f in
21319       -) ac_f="$tmp/stdin";;
21320       *) # Look for the file first in the build tree, then in the source tree
21321          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21322          # because $ac_f cannot contain `:'.
21323          test -f "$ac_f" ||
21324            case $ac_f in
21325            [\\/$]*) false;;
21326            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21327            esac ||
21328            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
21329       esac
21330       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21331       as_fn_append ac_file_inputs " '$ac_f'"
21332     done
21333
21334     # Let's still pretend it is `configure' which instantiates (i.e., don't
21335     # use $as_me), people would be surprised to read:
21336     #    /* config.h.  Generated by config.status.  */
21337     configure_input='Generated from '`
21338           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21339         `' by configure.'
21340     if test x"$ac_file" != x-; then
21341       configure_input="$ac_file.  $configure_input"
21342       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21343 $as_echo "$as_me: creating $ac_file" >&6;}
21344     fi
21345     # Neutralize special characters interpreted by sed in replacement strings.
21346     case $configure_input in #(
21347     *\&* | *\|* | *\\* )
21348        ac_sed_conf_input=`$as_echo "$configure_input" |
21349        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21350     *) ac_sed_conf_input=$configure_input;;
21351     esac
21352
21353     case $ac_tag in
21354     *:-:* | *:-) cat >"$tmp/stdin" \
21355       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
21356     esac
21357     ;;
21358   esac
21359
21360   ac_dir=`$as_dirname -- "$ac_file" ||
21361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21362          X"$ac_file" : 'X\(//\)[^/]' \| \
21363          X"$ac_file" : 'X\(//\)$' \| \
21364          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21365 $as_echo X"$ac_file" |
21366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21367             s//\1/
21368             q
21369           }
21370           /^X\(\/\/\)[^/].*/{
21371             s//\1/
21372             q
21373           }
21374           /^X\(\/\/\)$/{
21375             s//\1/
21376             q
21377           }
21378           /^X\(\/\).*/{
21379             s//\1/
21380             q
21381           }
21382           s/.*/./; q'`
21383   as_dir="$ac_dir"; as_fn_mkdir_p
21384   ac_builddir=.
21385
21386 case "$ac_dir" in
21387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21388 *)
21389   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21390   # A ".." for each directory in $ac_dir_suffix.
21391   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21392   case $ac_top_builddir_sub in
21393   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21394   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21395   esac ;;
21396 esac
21397 ac_abs_top_builddir=$ac_pwd
21398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21399 # for backward compatibility:
21400 ac_top_builddir=$ac_top_build_prefix
21401
21402 case $srcdir in
21403   .)  # We are building in place.
21404     ac_srcdir=.
21405     ac_top_srcdir=$ac_top_builddir_sub
21406     ac_abs_top_srcdir=$ac_pwd ;;
21407   [\\/]* | ?:[\\/]* )  # Absolute name.
21408     ac_srcdir=$srcdir$ac_dir_suffix;
21409     ac_top_srcdir=$srcdir
21410     ac_abs_top_srcdir=$srcdir ;;
21411   *) # Relative name.
21412     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21413     ac_top_srcdir=$ac_top_build_prefix$srcdir
21414     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21415 esac
21416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21417
21418
21419   case $ac_mode in
21420   :F)
21421   #
21422   # CONFIG_FILE
21423   #
21424
21425   case $INSTALL in
21426   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21427   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21428   esac
21429   ac_MKDIR_P=$MKDIR_P
21430   case $MKDIR_P in
21431   [\\/$]* | ?:[\\/]* ) ;;
21432   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21433   esac
21434 _ACEOF
21435
21436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21437 # If the template does not know about datarootdir, expand it.
21438 # FIXME: This hack should be removed a few years after 2.60.
21439 ac_datarootdir_hack=; ac_datarootdir_seen=
21440 ac_sed_dataroot='
21441 /datarootdir/ {
21442   p
21443   q
21444 }
21445 /@datadir@/p
21446 /@docdir@/p
21447 /@infodir@/p
21448 /@localedir@/p
21449 /@mandir@/p'
21450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21451 *datarootdir*) ac_datarootdir_seen=yes;;
21452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21455 _ACEOF
21456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21457   ac_datarootdir_hack='
21458   s&@datadir@&$datadir&g
21459   s&@docdir@&$docdir&g
21460   s&@infodir@&$infodir&g
21461   s&@localedir@&$localedir&g
21462   s&@mandir@&$mandir&g
21463   s&\\\${datarootdir}&$datarootdir&g' ;;
21464 esac
21465 _ACEOF
21466
21467 # Neutralize VPATH when `$srcdir' = `.'.
21468 # Shell code in configure.ac might set extrasub.
21469 # FIXME: do we really want to maintain this feature?
21470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21471 ac_sed_extra="$ac_vpsub
21472 $extrasub
21473 _ACEOF
21474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21475 :t
21476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21477 s|@configure_input@|$ac_sed_conf_input|;t t
21478 s&@top_builddir@&$ac_top_builddir_sub&;t t
21479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21480 s&@srcdir@&$ac_srcdir&;t t
21481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21482 s&@top_srcdir@&$ac_top_srcdir&;t t
21483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21484 s&@builddir@&$ac_builddir&;t t
21485 s&@abs_builddir@&$ac_abs_builddir&;t t
21486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21487 s&@INSTALL@&$ac_INSTALL&;t t
21488 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21489 $ac_datarootdir_hack
21490 "
21491 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21492   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21493
21494 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21495   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21496   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21497   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21498 which seems to be undefined.  Please make sure it is defined" >&5
21499 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21500 which seems to be undefined.  Please make sure it is defined" >&2;}
21501
21502   rm -f "$tmp/stdin"
21503   case $ac_file in
21504   -) cat "$tmp/out" && rm -f "$tmp/out";;
21505   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21506   esac \
21507   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21508  ;;
21509   :H)
21510   #
21511   # CONFIG_HEADER
21512   #
21513   if test x"$ac_file" != x-; then
21514     {
21515       $as_echo "/* $configure_input  */" \
21516       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21517     } >"$tmp/config.h" \
21518       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21519     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21520       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21521 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21522     else
21523       rm -f "$ac_file"
21524       mv "$tmp/config.h" "$ac_file" \
21525         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21526     fi
21527   else
21528     $as_echo "/* $configure_input  */" \
21529       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21530       || as_fn_error $? "could not create -" "$LINENO" 5
21531   fi
21532 # Compute "$ac_file"'s index in $config_headers.
21533 _am_arg="$ac_file"
21534 _am_stamp_count=1
21535 for _am_header in $config_headers :; do
21536   case $_am_header in
21537     $_am_arg | $_am_arg:* )
21538       break ;;
21539     * )
21540       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21541   esac
21542 done
21543 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21544 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545          X"$_am_arg" : 'X\(//\)[^/]' \| \
21546          X"$_am_arg" : 'X\(//\)$' \| \
21547          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21548 $as_echo X"$_am_arg" |
21549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21550             s//\1/
21551             q
21552           }
21553           /^X\(\/\/\)[^/].*/{
21554             s//\1/
21555             q
21556           }
21557           /^X\(\/\/\)$/{
21558             s//\1/
21559             q
21560           }
21561           /^X\(\/\).*/{
21562             s//\1/
21563             q
21564           }
21565           s/.*/./; q'`/stamp-h$_am_stamp_count
21566  ;;
21567
21568   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21569 $as_echo "$as_me: executing $ac_file commands" >&6;}
21570  ;;
21571   esac
21572
21573
21574   case $ac_file$ac_mode in
21575     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21576   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21577   # are listed without --file.  Let's play safe and only enable the eval
21578   # if we detect the quoting.
21579   case $CONFIG_FILES in
21580   *\'*) eval set x "$CONFIG_FILES" ;;
21581   *)   set x $CONFIG_FILES ;;
21582   esac
21583   shift
21584   for mf
21585   do
21586     # Strip MF so we end up with the name of the file.
21587     mf=`echo "$mf" | sed -e 's/:.*$//'`
21588     # Check whether this is an Automake generated Makefile or not.
21589     # We used to match only the files named `Makefile.in', but
21590     # some people rename them; so instead we look at the file content.
21591     # Grep'ing the first line is not enough: some people post-process
21592     # each Makefile.in and add a new line on top of each file to say so.
21593     # Grep'ing the whole file is not good either: AIX grep has a line
21594     # limit of 2048, but all sed's we know have understand at least 4000.
21595     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21596       dirpart=`$as_dirname -- "$mf" ||
21597 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21598          X"$mf" : 'X\(//\)[^/]' \| \
21599          X"$mf" : 'X\(//\)$' \| \
21600          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21601 $as_echo X"$mf" |
21602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21603             s//\1/
21604             q
21605           }
21606           /^X\(\/\/\)[^/].*/{
21607             s//\1/
21608             q
21609           }
21610           /^X\(\/\/\)$/{
21611             s//\1/
21612             q
21613           }
21614           /^X\(\/\).*/{
21615             s//\1/
21616             q
21617           }
21618           s/.*/./; q'`
21619     else
21620       continue
21621     fi
21622     # Extract the definition of DEPDIR, am__include, and am__quote
21623     # from the Makefile without running `make'.
21624     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21625     test -z "$DEPDIR" && continue
21626     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21627     test -z "am__include" && continue
21628     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21629     # When using ansi2knr, U may be empty or an underscore; expand it
21630     U=`sed -n 's/^U = //p' < "$mf"`
21631     # Find all dependency output files, they are included files with
21632     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21633     # simplest approach to changing $(DEPDIR) to its actual value in the
21634     # expansion.
21635     for file in `sed -n "
21636       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21637          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21638       # Make sure the directory exists.
21639       test -f "$dirpart/$file" && continue
21640       fdir=`$as_dirname -- "$file" ||
21641 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642          X"$file" : 'X\(//\)[^/]' \| \
21643          X"$file" : 'X\(//\)$' \| \
21644          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21645 $as_echo X"$file" |
21646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21647             s//\1/
21648             q
21649           }
21650           /^X\(\/\/\)[^/].*/{
21651             s//\1/
21652             q
21653           }
21654           /^X\(\/\/\)$/{
21655             s//\1/
21656             q
21657           }
21658           /^X\(\/\).*/{
21659             s//\1/
21660             q
21661           }
21662           s/.*/./; q'`
21663       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21664       # echo "creating $dirpart/$file"
21665       echo '# dummy' > "$dirpart/$file"
21666     done
21667   done
21668 }
21669  ;;
21670     "libtool":C)
21671
21672     # See if we are running on zsh, and set the options which allow our
21673     # commands through without removal of \ escapes.
21674     if test -n "${ZSH_VERSION+set}" ; then
21675       setopt NO_GLOB_SUBST
21676     fi
21677
21678     cfgfile="${ofile}T"
21679     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21680     $RM "$cfgfile"
21681
21682     cat <<_LT_EOF >> "$cfgfile"
21683 #! $SHELL
21684
21685 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21686 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21688 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21689 #
21690 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21691 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21692 #                 Inc.
21693 #   Written by Gordon Matzigkeit, 1996
21694 #
21695 #   This file is part of GNU Libtool.
21696 #
21697 # GNU Libtool is free software; you can redistribute it and/or
21698 # modify it under the terms of the GNU General Public License as
21699 # published by the Free Software Foundation; either version 2 of
21700 # the License, or (at your option) any later version.
21701 #
21702 # As a special exception to the GNU General Public License,
21703 # if you distribute this file as part of a program or library that
21704 # is built using GNU Libtool, you may include this file under the
21705 # same distribution terms that you use for the rest of that program.
21706 #
21707 # GNU Libtool is distributed in the hope that it will be useful,
21708 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21709 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21710 # GNU General Public License for more details.
21711 #
21712 # You should have received a copy of the GNU General Public License
21713 # along with GNU Libtool; see the file COPYING.  If not, a copy
21714 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21715 # obtained by writing to the Free Software Foundation, Inc.,
21716 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21717
21718
21719 # The names of the tagged configurations supported by this script.
21720 available_tags="CXX "
21721
21722 # ### BEGIN LIBTOOL CONFIG
21723
21724 # Whether or not to build static libraries.
21725 build_old_libs=$enable_static
21726
21727 # Which release of libtool.m4 was used?
21728 macro_version=$macro_version
21729 macro_revision=$macro_revision
21730
21731 # Whether or not to build shared libraries.
21732 build_libtool_libs=$enable_shared
21733
21734 # What type of objects to build.
21735 pic_mode=$pic_mode
21736
21737 # Whether or not to optimize for fast installation.
21738 fast_install=$enable_fast_install
21739
21740 # Shell to use when invoking shell scripts.
21741 SHELL=$lt_SHELL
21742
21743 # An echo program that protects backslashes.
21744 ECHO=$lt_ECHO
21745
21746 # The host system.
21747 host_alias=$host_alias
21748 host=$host
21749 host_os=$host_os
21750
21751 # The build system.
21752 build_alias=$build_alias
21753 build=$build
21754 build_os=$build_os
21755
21756 # A sed program that does not truncate output.
21757 SED=$lt_SED
21758
21759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21760 Xsed="\$SED -e 1s/^X//"
21761
21762 # A grep program that handles long lines.
21763 GREP=$lt_GREP
21764
21765 # An ERE matcher.
21766 EGREP=$lt_EGREP
21767
21768 # A literal string matcher.
21769 FGREP=$lt_FGREP
21770
21771 # A BSD- or MS-compatible name lister.
21772 NM=$lt_NM
21773
21774 # Whether we need soft or hard links.
21775 LN_S=$lt_LN_S
21776
21777 # What is the maximum length of a command?
21778 max_cmd_len=$max_cmd_len
21779
21780 # Object file suffix (normally "o").
21781 objext=$ac_objext
21782
21783 # Executable file suffix (normally "").
21784 exeext=$exeext
21785
21786 # whether the shell understands "unset".
21787 lt_unset=$lt_unset
21788
21789 # turn spaces into newlines.
21790 SP2NL=$lt_lt_SP2NL
21791
21792 # turn newlines into spaces.
21793 NL2SP=$lt_lt_NL2SP
21794
21795 # convert \$build file names to \$host format.
21796 to_host_file_cmd=$lt_cv_to_host_file_cmd
21797
21798 # convert \$build files to toolchain format.
21799 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21800
21801 # An object symbol dumper.
21802 OBJDUMP=$lt_OBJDUMP
21803
21804 # Method to check whether dependent libraries are shared objects.
21805 deplibs_check_method=$lt_deplibs_check_method
21806
21807 # Command to use when deplibs_check_method = "file_magic".
21808 file_magic_cmd=$lt_file_magic_cmd
21809
21810 # How to find potential files when deplibs_check_method = "file_magic".
21811 file_magic_glob=$lt_file_magic_glob
21812
21813 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21814 want_nocaseglob=$lt_want_nocaseglob
21815
21816 # DLL creation program.
21817 DLLTOOL=$lt_DLLTOOL
21818
21819 # Command to associate shared and link libraries.
21820 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21821
21822 # The archiver.
21823 AR=$lt_AR
21824
21825 # Flags to create an archive.
21826 AR_FLAGS=$lt_AR_FLAGS
21827
21828 # How to feed a file listing to the archiver.
21829 archiver_list_spec=$lt_archiver_list_spec
21830
21831 # A symbol stripping program.
21832 STRIP=$lt_STRIP
21833
21834 # Commands used to install an old-style archive.
21835 RANLIB=$lt_RANLIB
21836 old_postinstall_cmds=$lt_old_postinstall_cmds
21837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21838
21839 # Whether to use a lock for old archive extraction.
21840 lock_old_archive_extraction=$lock_old_archive_extraction
21841
21842 # A C compiler.
21843 LTCC=$lt_CC
21844
21845 # LTCC compiler flags.
21846 LTCFLAGS=$lt_CFLAGS
21847
21848 # Take the output of nm and produce a listing of raw symbols and C names.
21849 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21850
21851 # Transform the output of nm in a proper C declaration.
21852 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21853
21854 # Transform the output of nm in a C name address pair.
21855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21856
21857 # Transform the output of nm in a C name address pair when lib prefix is needed.
21858 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21859
21860 # Specify filename containing input files for \$NM.
21861 nm_file_list_spec=$lt_nm_file_list_spec
21862
21863 # The root where to search for dependent libraries,and in which our libraries should be installed.
21864 lt_sysroot=$lt_sysroot
21865
21866 # The name of the directory that contains temporary libtool files.
21867 objdir=$objdir
21868
21869 # Used to examine libraries when file_magic_cmd begins with "file".
21870 MAGIC_CMD=$MAGIC_CMD
21871
21872 # Must we lock files when doing compilation?
21873 need_locks=$lt_need_locks
21874
21875 # Manifest tool.
21876 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21877
21878 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21879 DSYMUTIL=$lt_DSYMUTIL
21880
21881 # Tool to change global to local symbols on Mac OS X.
21882 NMEDIT=$lt_NMEDIT
21883
21884 # Tool to manipulate fat objects and archives on Mac OS X.
21885 LIPO=$lt_LIPO
21886
21887 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21888 OTOOL=$lt_OTOOL
21889
21890 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21891 OTOOL64=$lt_OTOOL64
21892
21893 # Old archive suffix (normally "a").
21894 libext=$libext
21895
21896 # Shared library suffix (normally ".so").
21897 shrext_cmds=$lt_shrext_cmds
21898
21899 # The commands to extract the exported symbol list from a shared archive.
21900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21901
21902 # Variables whose values should be saved in libtool wrapper scripts and
21903 # restored at link time.
21904 variables_saved_for_relink=$lt_variables_saved_for_relink
21905
21906 # Do we need the "lib" prefix for modules?
21907 need_lib_prefix=$need_lib_prefix
21908
21909 # Do we need a version for libraries?
21910 need_version=$need_version
21911
21912 # Library versioning type.
21913 version_type=$version_type
21914
21915 # Shared library runtime path variable.
21916 runpath_var=$runpath_var
21917
21918 # Shared library path variable.
21919 shlibpath_var=$shlibpath_var
21920
21921 # Is shlibpath searched before the hard-coded library search path?
21922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21923
21924 # Format of library name prefix.
21925 libname_spec=$lt_libname_spec
21926
21927 # List of archive names.  First name is the real one, the rest are links.
21928 # The last name is the one that the linker finds with -lNAME
21929 library_names_spec=$lt_library_names_spec
21930
21931 # The coded name of the library, if different from the real name.
21932 soname_spec=$lt_soname_spec
21933
21934 # Permission mode override for installation of shared libraries.
21935 install_override_mode=$lt_install_override_mode
21936
21937 # Command to use after installation of a shared archive.
21938 postinstall_cmds=$lt_postinstall_cmds
21939
21940 # Command to use after uninstallation of a shared archive.
21941 postuninstall_cmds=$lt_postuninstall_cmds
21942
21943 # Commands used to finish a libtool library installation in a directory.
21944 finish_cmds=$lt_finish_cmds
21945
21946 # As "finish_cmds", except a single script fragment to be evaled but
21947 # not shown.
21948 finish_eval=$lt_finish_eval
21949
21950 # Whether we should hardcode library paths into libraries.
21951 hardcode_into_libs=$hardcode_into_libs
21952
21953 # Compile-time system search path for libraries.
21954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21955
21956 # Run-time system search path for libraries.
21957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21958
21959 # Whether dlopen is supported.
21960 dlopen_support=$enable_dlopen
21961
21962 # Whether dlopen of programs is supported.
21963 dlopen_self=$enable_dlopen_self
21964
21965 # Whether dlopen of statically linked programs is supported.
21966 dlopen_self_static=$enable_dlopen_self_static
21967
21968 # Commands to strip libraries.
21969 old_striplib=$lt_old_striplib
21970 striplib=$lt_striplib
21971
21972
21973 # The linker used to build libraries.
21974 LD=$lt_LD
21975
21976 # How to create reloadable object files.
21977 reload_flag=$lt_reload_flag
21978 reload_cmds=$lt_reload_cmds
21979
21980 # Commands used to build an old-style archive.
21981 old_archive_cmds=$lt_old_archive_cmds
21982
21983 # A language specific compiler.
21984 CC=$lt_compiler
21985
21986 # Is the compiler the GNU compiler?
21987 with_gcc=$GCC
21988
21989 # Compiler flag to turn off builtin functions.
21990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21991
21992 # Additional compiler flags for building library objects.
21993 pic_flag=$lt_lt_prog_compiler_pic
21994
21995 # How to pass a linker flag through the compiler.
21996 wl=$lt_lt_prog_compiler_wl
21997
21998 # Compiler flag to prevent dynamic linking.
21999 link_static_flag=$lt_lt_prog_compiler_static
22000
22001 # Does compiler simultaneously support -c and -o options?
22002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22003
22004 # Whether or not to add -lc for building shared libraries.
22005 build_libtool_need_lc=$archive_cmds_need_lc
22006
22007 # Whether or not to disallow shared libs when runtime libs are static.
22008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22009
22010 # Compiler flag to allow reflexive dlopens.
22011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22012
22013 # Compiler flag to generate shared objects directly from archives.
22014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22015
22016 # Whether the compiler copes with passing no objects directly.
22017 compiler_needs_object=$lt_compiler_needs_object
22018
22019 # Create an old-style archive from a shared archive.
22020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22021
22022 # Create a temporary old-style archive to link instead of a shared archive.
22023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22024
22025 # Commands used to build a shared archive.
22026 archive_cmds=$lt_archive_cmds
22027 archive_expsym_cmds=$lt_archive_expsym_cmds
22028
22029 # Commands used to build a loadable module if different from building
22030 # a shared archive.
22031 module_cmds=$lt_module_cmds
22032 module_expsym_cmds=$lt_module_expsym_cmds
22033
22034 # Whether we are building with GNU ld or not.
22035 with_gnu_ld=$lt_with_gnu_ld
22036
22037 # Flag that allows shared libraries with undefined symbols to be built.
22038 allow_undefined_flag=$lt_allow_undefined_flag
22039
22040 # Flag that enforces no undefined symbols.
22041 no_undefined_flag=$lt_no_undefined_flag
22042
22043 # Flag to hardcode \$libdir into a binary during linking.
22044 # This must work even if \$libdir does not exist
22045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22046
22047 # If ld is used when linking, flag to hardcode \$libdir into a binary
22048 # during linking.  This must work even if \$libdir does not exist.
22049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22050
22051 # Whether we need a single "-rpath" flag with a separated argument.
22052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22053
22054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22055 # DIR into the resulting binary.
22056 hardcode_direct=$hardcode_direct
22057
22058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22059 # DIR into the resulting binary and the resulting library dependency is
22060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22061 # library is relocated.
22062 hardcode_direct_absolute=$hardcode_direct_absolute
22063
22064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22065 # into the resulting binary.
22066 hardcode_minus_L=$hardcode_minus_L
22067
22068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22069 # into the resulting binary.
22070 hardcode_shlibpath_var=$hardcode_shlibpath_var
22071
22072 # Set to "yes" if building a shared library automatically hardcodes DIR
22073 # into the library and all subsequent libraries and executables linked
22074 # against it.
22075 hardcode_automatic=$hardcode_automatic
22076
22077 # Set to yes if linker adds runtime paths of dependent libraries
22078 # to runtime path list.
22079 inherit_rpath=$inherit_rpath
22080
22081 # Whether libtool must link a program against all its dependency libraries.
22082 link_all_deplibs=$link_all_deplibs
22083
22084 # Set to "yes" if exported symbols are required.
22085 always_export_symbols=$always_export_symbols
22086
22087 # The commands to list exported symbols.
22088 export_symbols_cmds=$lt_export_symbols_cmds
22089
22090 # Symbols that should not be listed in the preloaded symbols.
22091 exclude_expsyms=$lt_exclude_expsyms
22092
22093 # Symbols that must always be exported.
22094 include_expsyms=$lt_include_expsyms
22095
22096 # Commands necessary for linking programs (against libraries) with templates.
22097 prelink_cmds=$lt_prelink_cmds
22098
22099 # Commands necessary for finishing linking programs.
22100 postlink_cmds=$lt_postlink_cmds
22101
22102 # Specify filename containing input files.
22103 file_list_spec=$lt_file_list_spec
22104
22105 # How to hardcode a shared library path into an executable.
22106 hardcode_action=$hardcode_action
22107
22108 # The directories searched by this compiler when creating a shared library.
22109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22110
22111 # Dependencies to place before and after the objects being linked to
22112 # create a shared library.
22113 predep_objects=$lt_predep_objects
22114 postdep_objects=$lt_postdep_objects
22115 predeps=$lt_predeps
22116 postdeps=$lt_postdeps
22117
22118 # The library search path used internally by the compiler when linking
22119 # a shared library.
22120 compiler_lib_search_path=$lt_compiler_lib_search_path
22121
22122 # ### END LIBTOOL CONFIG
22123
22124 _LT_EOF
22125
22126   case $host_os in
22127   aix3*)
22128     cat <<\_LT_EOF >> "$cfgfile"
22129 # AIX sometimes has problems with the GCC collect2 program.  For some
22130 # reason, if we set the COLLECT_NAMES environment variable, the problems
22131 # vanish in a puff of smoke.
22132 if test "X${COLLECT_NAMES+set}" != Xset; then
22133   COLLECT_NAMES=
22134   export COLLECT_NAMES
22135 fi
22136 _LT_EOF
22137     ;;
22138   esac
22139
22140
22141 ltmain="$ac_aux_dir/ltmain.sh"
22142
22143
22144   # We use sed instead of cat because bash on DJGPP gets confused if
22145   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22146   # text mode, it properly converts lines to CR/LF.  This bash problem
22147   # is reportedly fixed, but why not run on old versions too?
22148   sed '$q' "$ltmain" >> "$cfgfile" \
22149      || (rm -f "$cfgfile"; exit 1)
22150
22151   if test x"$xsi_shell" = xyes; then
22152   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22153 func_dirname ()\
22154 {\
22155 \    case ${1} in\
22156 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22157 \      *  ) func_dirname_result="${3}" ;;\
22158 \    esac\
22159 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22160   && mv -f "$cfgfile.tmp" "$cfgfile" \
22161     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22162 test 0 -eq $? || _lt_function_replace_fail=:
22163
22164
22165   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22166 func_basename ()\
22167 {\
22168 \    func_basename_result="${1##*/}"\
22169 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22170   && mv -f "$cfgfile.tmp" "$cfgfile" \
22171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22172 test 0 -eq $? || _lt_function_replace_fail=:
22173
22174
22175   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22176 func_dirname_and_basename ()\
22177 {\
22178 \    case ${1} in\
22179 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22180 \      *  ) func_dirname_result="${3}" ;;\
22181 \    esac\
22182 \    func_basename_result="${1##*/}"\
22183 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22184   && mv -f "$cfgfile.tmp" "$cfgfile" \
22185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22186 test 0 -eq $? || _lt_function_replace_fail=:
22187
22188
22189   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22190 func_stripname ()\
22191 {\
22192 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22193 \    # positional parameters, so assign one to ordinary parameter first.\
22194 \    func_stripname_result=${3}\
22195 \    func_stripname_result=${func_stripname_result#"${1}"}\
22196 \    func_stripname_result=${func_stripname_result%"${2}"}\
22197 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22198   && mv -f "$cfgfile.tmp" "$cfgfile" \
22199     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22200 test 0 -eq $? || _lt_function_replace_fail=:
22201
22202
22203   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22204 func_split_long_opt ()\
22205 {\
22206 \    func_split_long_opt_name=${1%%=*}\
22207 \    func_split_long_opt_arg=${1#*=}\
22208 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22209   && mv -f "$cfgfile.tmp" "$cfgfile" \
22210     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22211 test 0 -eq $? || _lt_function_replace_fail=:
22212
22213
22214   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22215 func_split_short_opt ()\
22216 {\
22217 \    func_split_short_opt_arg=${1#??}\
22218 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22219 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22220   && mv -f "$cfgfile.tmp" "$cfgfile" \
22221     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22222 test 0 -eq $? || _lt_function_replace_fail=:
22223
22224
22225   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22226 func_lo2o ()\
22227 {\
22228 \    case ${1} in\
22229 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22230 \      *)    func_lo2o_result=${1} ;;\
22231 \    esac\
22232 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22233   && mv -f "$cfgfile.tmp" "$cfgfile" \
22234     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22235 test 0 -eq $? || _lt_function_replace_fail=:
22236
22237
22238   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22239 func_xform ()\
22240 {\
22241     func_xform_result=${1%.*}.lo\
22242 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22243   && mv -f "$cfgfile.tmp" "$cfgfile" \
22244     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22245 test 0 -eq $? || _lt_function_replace_fail=:
22246
22247
22248   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22249 func_arith ()\
22250 {\
22251     func_arith_result=$(( $* ))\
22252 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22253   && mv -f "$cfgfile.tmp" "$cfgfile" \
22254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22255 test 0 -eq $? || _lt_function_replace_fail=:
22256
22257
22258   sed -e '/^func_len ()$/,/^} # func_len /c\
22259 func_len ()\
22260 {\
22261     func_len_result=${#1}\
22262 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22263   && mv -f "$cfgfile.tmp" "$cfgfile" \
22264     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22265 test 0 -eq $? || _lt_function_replace_fail=:
22266
22267 fi
22268
22269 if test x"$lt_shell_append" = xyes; then
22270   sed -e '/^func_append ()$/,/^} # func_append /c\
22271 func_append ()\
22272 {\
22273     eval "${1}+=\\${2}"\
22274 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22275   && mv -f "$cfgfile.tmp" "$cfgfile" \
22276     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22277 test 0 -eq $? || _lt_function_replace_fail=:
22278
22279
22280   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22281 func_append_quoted ()\
22282 {\
22283 \    func_quote_for_eval "${2}"\
22284 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22285 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22286   && mv -f "$cfgfile.tmp" "$cfgfile" \
22287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22288 test 0 -eq $? || _lt_function_replace_fail=:
22289
22290
22291   # Save a `func_append' function call where possible by direct use of '+='
22292   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22293     && mv -f "$cfgfile.tmp" "$cfgfile" \
22294       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22295   test 0 -eq $? || _lt_function_replace_fail=:
22296 else
22297   # Save a `func_append' function call even when '+=' is not available
22298   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22299     && mv -f "$cfgfile.tmp" "$cfgfile" \
22300       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22301   test 0 -eq $? || _lt_function_replace_fail=:
22302 fi
22303
22304 if test x"$_lt_function_replace_fail" = x":"; then
22305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22306 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22307 fi
22308
22309
22310    mv -f "$cfgfile" "$ofile" ||
22311     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22312   chmod +x "$ofile"
22313
22314
22315     cat <<_LT_EOF >> "$ofile"
22316
22317 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22318
22319 # The linker used to build libraries.
22320 LD=$lt_LD_CXX
22321
22322 # How to create reloadable object files.
22323 reload_flag=$lt_reload_flag_CXX
22324 reload_cmds=$lt_reload_cmds_CXX
22325
22326 # Commands used to build an old-style archive.
22327 old_archive_cmds=$lt_old_archive_cmds_CXX
22328
22329 # A language specific compiler.
22330 CC=$lt_compiler_CXX
22331
22332 # Is the compiler the GNU compiler?
22333 with_gcc=$GCC_CXX
22334
22335 # Compiler flag to turn off builtin functions.
22336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22337
22338 # Additional compiler flags for building library objects.
22339 pic_flag=$lt_lt_prog_compiler_pic_CXX
22340
22341 # How to pass a linker flag through the compiler.
22342 wl=$lt_lt_prog_compiler_wl_CXX
22343
22344 # Compiler flag to prevent dynamic linking.
22345 link_static_flag=$lt_lt_prog_compiler_static_CXX
22346
22347 # Does compiler simultaneously support -c and -o options?
22348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22349
22350 # Whether or not to add -lc for building shared libraries.
22351 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22352
22353 # Whether or not to disallow shared libs when runtime libs are static.
22354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22355
22356 # Compiler flag to allow reflexive dlopens.
22357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22358
22359 # Compiler flag to generate shared objects directly from archives.
22360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22361
22362 # Whether the compiler copes with passing no objects directly.
22363 compiler_needs_object=$lt_compiler_needs_object_CXX
22364
22365 # Create an old-style archive from a shared archive.
22366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22367
22368 # Create a temporary old-style archive to link instead of a shared archive.
22369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22370
22371 # Commands used to build a shared archive.
22372 archive_cmds=$lt_archive_cmds_CXX
22373 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22374
22375 # Commands used to build a loadable module if different from building
22376 # a shared archive.
22377 module_cmds=$lt_module_cmds_CXX
22378 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22379
22380 # Whether we are building with GNU ld or not.
22381 with_gnu_ld=$lt_with_gnu_ld_CXX
22382
22383 # Flag that allows shared libraries with undefined symbols to be built.
22384 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22385
22386 # Flag that enforces no undefined symbols.
22387 no_undefined_flag=$lt_no_undefined_flag_CXX
22388
22389 # Flag to hardcode \$libdir into a binary during linking.
22390 # This must work even if \$libdir does not exist
22391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22392
22393 # If ld is used when linking, flag to hardcode \$libdir into a binary
22394 # during linking.  This must work even if \$libdir does not exist.
22395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22396
22397 # Whether we need a single "-rpath" flag with a separated argument.
22398 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22399
22400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22401 # DIR into the resulting binary.
22402 hardcode_direct=$hardcode_direct_CXX
22403
22404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22405 # DIR into the resulting binary and the resulting library dependency is
22406 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22407 # library is relocated.
22408 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22409
22410 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22411 # into the resulting binary.
22412 hardcode_minus_L=$hardcode_minus_L_CXX
22413
22414 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22415 # into the resulting binary.
22416 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22417
22418 # Set to "yes" if building a shared library automatically hardcodes DIR
22419 # into the library and all subsequent libraries and executables linked
22420 # against it.
22421 hardcode_automatic=$hardcode_automatic_CXX
22422
22423 # Set to yes if linker adds runtime paths of dependent libraries
22424 # to runtime path list.
22425 inherit_rpath=$inherit_rpath_CXX
22426
22427 # Whether libtool must link a program against all its dependency libraries.
22428 link_all_deplibs=$link_all_deplibs_CXX
22429
22430 # Set to "yes" if exported symbols are required.
22431 always_export_symbols=$always_export_symbols_CXX
22432
22433 # The commands to list exported symbols.
22434 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22435
22436 # Symbols that should not be listed in the preloaded symbols.
22437 exclude_expsyms=$lt_exclude_expsyms_CXX
22438
22439 # Symbols that must always be exported.
22440 include_expsyms=$lt_include_expsyms_CXX
22441
22442 # Commands necessary for linking programs (against libraries) with templates.
22443 prelink_cmds=$lt_prelink_cmds_CXX
22444
22445 # Commands necessary for finishing linking programs.
22446 postlink_cmds=$lt_postlink_cmds_CXX
22447
22448 # Specify filename containing input files.
22449 file_list_spec=$lt_file_list_spec_CXX
22450
22451 # How to hardcode a shared library path into an executable.
22452 hardcode_action=$hardcode_action_CXX
22453
22454 # The directories searched by this compiler when creating a shared library.
22455 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22456
22457 # Dependencies to place before and after the objects being linked to
22458 # create a shared library.
22459 predep_objects=$lt_predep_objects_CXX
22460 postdep_objects=$lt_postdep_objects_CXX
22461 predeps=$lt_predeps_CXX
22462 postdeps=$lt_postdeps_CXX
22463
22464 # The library search path used internally by the compiler when linking
22465 # a shared library.
22466 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22467
22468 # ### END LIBTOOL TAG CONFIG: CXX
22469 _LT_EOF
22470
22471  ;;
22472     "$ax_create_pkgconfig_generate":C)
22473 pkgconfig_generate="$ax_create_pkgconfig_generate"
22474 if test ! -f "$pkgconfig_generate.in"
22475 then generate="true"
22476 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
22477 then generate="true"
22478 else generate="false";
22479 fi
22480 if $generate ; then
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
22482 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
22483 cat > $pkgconfig_generate.in <<AXEOF
22484 # generated by configure / remove this line to disable regeneration
22485 prefix=@prefix@
22486 exec_prefix=@exec_prefix@
22487 bindir=@bindir@
22488 libdir=@libdir@
22489 datarootdir=@datarootdir@
22490 datadir=@datadir@
22491 sysconfdir=@sysconfdir@
22492 includedir=@includedir@
22493 package=@PACKAGE@
22494 suffix=@suffix@
22495
22496 Name: @PACKAGE_NAME@
22497 Description: @PACKAGE_DESCRIPTION@
22498 Version: @PACKAGE_VERSION@
22499 Requires: @PACKAGE_REQUIRES@
22500 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
22501 Cflags: -I\${includedir} @CPPFLAGS@
22502 AXEOF
22503 fi # DONE generate $pkgconfig_generate.in
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
22505 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
22506 cat >conftest.sed <<AXEOF
22507 s|@prefix@|${pkgconfig_prefix}|
22508 s|@exec_prefix@|${pkgconfig_execprefix}|
22509 s|@bindir@|${pkgconfig_bindir}|
22510 s|@libdir@|${pkgconfig_libdir}|
22511 s|@datarootdir@|${pkgconfig_datarootdir}|
22512 s|@datadir@|${pkgconfig_datadir}|
22513 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22514 s|@includedir@|${pkgconfig_includedir}|
22515 s|@suffix@|${pkgconfig_suffix}|
22516 s|@PACKAGE@|${pkgconfig_package}|
22517 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22518 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22519 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22520 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22521 s|@LIBS@|${pkgconfig_libs}|
22522 s|@LDFLAGS@|${pkgconfig_ldflags}|
22523 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22524 AXEOF
22525 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
22526 if test ! -s $pkgconfig_generate ; then
22527     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
22528 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
22529 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22531 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22532 cat >conftest.sed <<AXEOF
22533 s|@prefix@|${pkgconfig_prefix}|
22534 s|@exec_prefix@|${pkgconfig_execprefix}|
22535 s|@bindir@|${pkgconfig_bindir}|
22536 s|@libdir@|${pkgconfig_src_libdir}|
22537 s|@datarootdir@|${pkgconfig_datarootdir}|
22538 s|@datadir@|${pkgconfig_datadir}|
22539 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22540 s|@includedir@|${pkgconfig_src_headers}|
22541 s|@suffix@|${pkgconfig_suffix}|
22542 s|@PACKAGE@|${pkgconfig_package}|
22543 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22544 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22545 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22546 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22547 s|@LIBS@|${pkgconfig_libs}|
22548 s|@LDFLAGS@|${pkgconfig_ldflags}|
22549 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22550 AXEOF
22551 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
22552 if test ! -s $pkgconfig_uninstalled ; then
22553     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22554 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22555            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
22556 if test ".$pkgconfig_requires_add" != "." ; then
22557            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
22558     else   pkgconfig_requires_add=":" ; fi
22559 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22561 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22562 cat >conftest.sed <<AXEOF
22563 s|@prefix@|\"${pkgconfig_prefix}\"|
22564 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
22565 s|@bindir@|\"${pkgconfig_bindir}\"|
22566 s|@libdir@|\"${pkgconfig_src_libdir}\"|
22567 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
22568 s|@datadir@|\"${pkgconfig_datadir}\"|
22569 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
22570 s|@includedir@|\"${pkgconfig_src_headers}\"|
22571 s|@suffix@|\"${pkgconfig_suffix}\"|
22572 s|@PACKAGE@|\"${pkgconfig_package}\"|
22573 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
22574 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
22575 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
22576 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
22577 s|@LIBS@|\"${pkgconfig_libs}\"|
22578 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
22579 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
22580 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
22581 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
22582 s>Version: *>\\;\\; --modversion|--version) echo >
22583 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
22584 s>Libs: *>\\;\\; --libs) echo >
22585 s>Cflags: *>\\;\\; --cflags) echo >
22586 /--libs)/a\\
22587        $pkgconfig_requires_add
22588 /--cflags)/a\\
22589        $pkgconfig_requires_add\\
22590 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
22591 ;; --uninstalled) exit 0 \\
22592 ;; *) ;; esac done
22593 AXEOF
22594 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
22595 if test ! -s $pkgconfig_uninstalled ; then
22596     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22597 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22598  ;;
22599
22600   esac
22601 done # for ac_tag
22602
22603
22604 as_fn_exit 0
22605 _ACEOF
22606 ac_clean_files=$ac_clean_files_save
22607
22608 test $ac_write_fail = 0 ||
22609   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22610
22611
22612 # configure is writing to config.log, and then calls config.status.
22613 # config.status does its own redirection, appending to config.log.
22614 # Unfortunately, on DOS this fails, as config.log is still kept open
22615 # by configure, so config.status won't be able to write to it; its
22616 # output is simply discarded.  So we exec the FD to /dev/null,
22617 # effectively closing config.log, so it can be properly (re)opened and
22618 # appended to by config.status.  When coming back to configure, we
22619 # need to make the FD available again.
22620 if test "$no_create" != yes; then
22621   ac_cs_success=:
22622   ac_config_status_args=
22623   test "$silent" = yes &&
22624     ac_config_status_args="$ac_config_status_args --quiet"
22625   exec 5>/dev/null
22626   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22627   exec 5>>config.log
22628   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22629   # would make configure fail if this is the last instruction.
22630   $ac_cs_success || as_fn_exit 1
22631 fi
22632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22633   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22635 fi
22636