autoreconf
[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.1.
4 #
5 # Report bugs to <https://issues.shibboleth.net/>.
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 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: https://issues.shibboleth.net/ about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='xmltooling'
703 PACKAGE_TARNAME='xmltooling'
704 PACKAGE_VERSION='1.5.1'
705 PACKAGE_STRING='xmltooling 1.5.1'
706 PACKAGE_BUGREPORT='https://issues.shibboleth.net/'
707 PACKAGE_URL=''
708
709 ac_unique_file="xmltooling"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 pkgconfig_libfile
751 pkgconfig_libdir
752 BUILD_UNITTEST_FALSE
753 BUILD_UNITTEST_TRUE
754 CXXTESTFLAGS
755 CXXTEST
756 BUILD_XMLSEC_FALSE
757 BUILD_XMLSEC_TRUE
758 XMLSEC_LIBS
759 CURL_CONFIG
760 PKG_CONFIG
761 LOG4CPP_CONFIG
762 LOG4SHIB_CONFIG
763 BOOST_CPPFLAGS
764 DISTCHECK_CONFIGURE_FLAGS
765 BOOST_ROOT
766 BUILD_PTHREAD_FALSE
767 BUILD_PTHREAD_TRUE
768 PTHREAD_CFLAGS
769 PTHREAD_LIBS
770 PTHREAD_CC
771 acx_pthread_config
772 CXXCPP
773 am__fastdepCXX_FALSE
774 am__fastdepCXX_TRUE
775 CXXDEPMODE
776 ac_ct_CXX
777 CXXFLAGS
778 CXX
779 DOXYGEN_PAPER_SIZE
780 DX_COND_latex_FALSE
781 DX_COND_latex_TRUE
782 DX_COND_pdf_FALSE
783 DX_COND_pdf_TRUE
784 DX_PDFLATEX
785 DX_FLAG_pdf
786 DX_COND_ps_FALSE
787 DX_COND_ps_TRUE
788 DX_EGREP
789 DX_DVIPS
790 DX_MAKEINDEX
791 DX_LATEX
792 DX_FLAG_ps
793 DX_COND_html_FALSE
794 DX_COND_html_TRUE
795 DX_FLAG_html
796 DX_COND_chi_FALSE
797 DX_COND_chi_TRUE
798 DX_FLAG_chi
799 DX_COND_chm_FALSE
800 DX_COND_chm_TRUE
801 DX_HHC
802 DX_FLAG_chm
803 DX_COND_xml_FALSE
804 DX_COND_xml_TRUE
805 DX_FLAG_xml
806 DX_COND_rtf_FALSE
807 DX_COND_rtf_TRUE
808 DX_FLAG_rtf
809 DX_COND_man_FALSE
810 DX_COND_man_TRUE
811 DX_FLAG_man
812 DX_COND_dot_FALSE
813 DX_COND_dot_TRUE
814 DX_DOT
815 DX_FLAG_dot
816 DX_COND_doc_FALSE
817 DX_COND_doc_TRUE
818 DX_PERL
819 DX_DOXYGEN
820 DX_FLAG_doc
821 DX_ENV
822 DX_DOCDIR
823 DX_CONFIG
824 DX_PROJECT
825 CPP
826 OTOOL64
827 OTOOL
828 LIPO
829 NMEDIT
830 DSYMUTIL
831 lt_ECHO
832 RANLIB
833 AR
834 OBJDUMP
835 LN_S
836 NM
837 ac_ct_DUMPBIN
838 DUMPBIN
839 LD
840 FGREP
841 EGREP
842 GREP
843 SED
844 am__fastdepCC_FALSE
845 am__fastdepCC_TRUE
846 CCDEPMODE
847 AMDEPBACKSLASH
848 AMDEP_FALSE
849 AMDEP_TRUE
850 am__quote
851 am__include
852 DEPDIR
853 OBJEXT
854 EXEEXT
855 ac_ct_CC
856 CPPFLAGS
857 LDFLAGS
858 CFLAGS
859 CC
860 host_os
861 host_vendor
862 host_cpu
863 host
864 build_os
865 build_vendor
866 build_cpu
867 build
868 LIBTOOL
869 am__untar
870 am__tar
871 AMTAR
872 am__leading_dot
873 SET_MAKE
874 AWK
875 mkdir_p
876 MKDIR_P
877 INSTALL_STRIP_PROGRAM
878 STRIP
879 install_sh
880 MAKEINFO
881 AUTOHEADER
882 AUTOMAKE
883 AUTOCONF
884 ACLOCAL
885 VERSION
886 PACKAGE
887 CYGPATH_W
888 am__isrc
889 INSTALL_DATA
890 INSTALL_SCRIPT
891 INSTALL_PROGRAM
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 localstatedir
912 sharedstatedir
913 sysconfdir
914 datadir
915 datarootdir
916 libexecdir
917 sbindir
918 bindir
919 program_transform_name
920 prefix
921 exec_prefix
922 PACKAGE_URL
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_static
934 enable_shared
935 with_pic
936 enable_fast_install
937 enable_dependency_tracking
938 with_gnu_ld
939 enable_libtool_lock
940 enable_doxygen_doc
941 enable_doxygen_dot
942 enable_doxygen_man
943 enable_doxygen_rtf
944 enable_doxygen_xml
945 enable_doxygen_chm
946 enable_doxygen_chi
947 enable_doxygen_html
948 enable_doxygen_ps
949 enable_doxygen_pdf
950 enable_debug
951 with_boost
952 with_log4shib
953 with_log4cpp
954 with_xerces
955 with_xmlsec
956 with_openssl
957 with_curl
958 with_cxxtest
959 '
960       ac_precious_vars='build_alias
961 host_alias
962 target_alias
963 CC
964 CFLAGS
965 LDFLAGS
966 LIBS
967 CPPFLAGS
968 CPP
969 DOXYGEN_PAPER_SIZE
970 CXX
971 CXXFLAGS
972 CCC
973 CXXCPP
974 BOOST_ROOT'
975
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029   # If the previous option needs an argument, assign it.
1030   if test -n "$ac_prev"; then
1031     eval $ac_prev=\$ac_option
1032     ac_prev=
1033     continue
1034   fi
1035
1036   case $ac_option in
1037   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038   *=)   ac_optarg= ;;
1039   *)    ac_optarg=yes ;;
1040   esac
1041
1042   # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044   case $ac_dashdash$ac_option in
1045   --)
1046     ac_dashdash=yes ;;
1047
1048   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049     ac_prev=bindir ;;
1050   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051     bindir=$ac_optarg ;;
1052
1053   -build | --build | --buil | --bui | --bu)
1054     ac_prev=build_alias ;;
1055   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056     build_alias=$ac_optarg ;;
1057
1058   -cache-file | --cache-file | --cache-fil | --cache-fi \
1059   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060     ac_prev=cache_file ;;
1061   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063     cache_file=$ac_optarg ;;
1064
1065   --config-cache | -C)
1066     cache_file=config.cache ;;
1067
1068   -datadir | --datadir | --datadi | --datad)
1069     ac_prev=datadir ;;
1070   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071     datadir=$ac_optarg ;;
1072
1073   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074   | --dataroo | --dataro | --datar)
1075     ac_prev=datarootdir ;;
1076   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078     datarootdir=$ac_optarg ;;
1079
1080   -disable-* | --disable-*)
1081     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084       as_fn_error $? "invalid feature name: $ac_useropt"
1085     ac_useropt_orig=$ac_useropt
1086     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087     case $ac_user_opts in
1088       *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092          ac_unrecognized_sep=', ';;
1093     esac
1094     eval enable_$ac_useropt=no ;;
1095
1096   -docdir | --docdir | --docdi | --doc | --do)
1097     ac_prev=docdir ;;
1098   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099     docdir=$ac_optarg ;;
1100
1101   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102     ac_prev=dvidir ;;
1103   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104     dvidir=$ac_optarg ;;
1105
1106   -enable-* | --enable-*)
1107     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110       as_fn_error $? "invalid feature name: $ac_useropt"
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval enable_$ac_useropt=\$ac_optarg ;;
1121
1122   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124   | --exec | --exe | --ex)
1125     ac_prev=exec_prefix ;;
1126   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128   | --exec=* | --exe=* | --ex=*)
1129     exec_prefix=$ac_optarg ;;
1130
1131   -gas | --gas | --ga | --g)
1132     # Obsolete; use --with-gas.
1133     with_gas=yes ;;
1134
1135   -help | --help | --hel | --he | -h)
1136     ac_init_help=long ;;
1137   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138     ac_init_help=recursive ;;
1139   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140     ac_init_help=short ;;
1141
1142   -host | --host | --hos | --ho)
1143     ac_prev=host_alias ;;
1144   -host=* | --host=* | --hos=* | --ho=*)
1145     host_alias=$ac_optarg ;;
1146
1147   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148     ac_prev=htmldir ;;
1149   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150   | --ht=*)
1151     htmldir=$ac_optarg ;;
1152
1153   -includedir | --includedir | --includedi | --included | --include \
1154   | --includ | --inclu | --incl | --inc)
1155     ac_prev=includedir ;;
1156   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157   | --includ=* | --inclu=* | --incl=* | --inc=*)
1158     includedir=$ac_optarg ;;
1159
1160   -infodir | --infodir | --infodi | --infod | --info | --inf)
1161     ac_prev=infodir ;;
1162   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163     infodir=$ac_optarg ;;
1164
1165   -libdir | --libdir | --libdi | --libd)
1166     ac_prev=libdir ;;
1167   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168     libdir=$ac_optarg ;;
1169
1170   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171   | --libexe | --libex | --libe)
1172     ac_prev=libexecdir ;;
1173   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174   | --libexe=* | --libex=* | --libe=*)
1175     libexecdir=$ac_optarg ;;
1176
1177   -localedir | --localedir | --localedi | --localed | --locale)
1178     ac_prev=localedir ;;
1179   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180     localedir=$ac_optarg ;;
1181
1182   -localstatedir | --localstatedir | --localstatedi | --localstated \
1183   | --localstate | --localstat | --localsta | --localst | --locals)
1184     ac_prev=localstatedir ;;
1185   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187     localstatedir=$ac_optarg ;;
1188
1189   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190     ac_prev=mandir ;;
1191   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192     mandir=$ac_optarg ;;
1193
1194   -nfp | --nfp | --nf)
1195     # Obsolete; use --without-fp.
1196     with_fp=no ;;
1197
1198   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199   | --no-cr | --no-c | -n)
1200     no_create=yes ;;
1201
1202   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204     no_recursion=yes ;;
1205
1206   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208   | --oldin | --oldi | --old | --ol | --o)
1209     ac_prev=oldincludedir ;;
1210   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213     oldincludedir=$ac_optarg ;;
1214
1215   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216     ac_prev=prefix ;;
1217   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218     prefix=$ac_optarg ;;
1219
1220   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221   | --program-pre | --program-pr | --program-p)
1222     ac_prev=program_prefix ;;
1223   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225     program_prefix=$ac_optarg ;;
1226
1227   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228   | --program-suf | --program-su | --program-s)
1229     ac_prev=program_suffix ;;
1230   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232     program_suffix=$ac_optarg ;;
1233
1234   -program-transform-name | --program-transform-name \
1235   | --program-transform-nam | --program-transform-na \
1236   | --program-transform-n | --program-transform- \
1237   | --program-transform | --program-transfor \
1238   | --program-transfo | --program-transf \
1239   | --program-trans | --program-tran \
1240   | --progr-tra | --program-tr | --program-t)
1241     ac_prev=program_transform_name ;;
1242   -program-transform-name=* | --program-transform-name=* \
1243   | --program-transform-nam=* | --program-transform-na=* \
1244   | --program-transform-n=* | --program-transform-=* \
1245   | --program-transform=* | --program-transfor=* \
1246   | --program-transfo=* | --program-transf=* \
1247   | --program-trans=* | --program-tran=* \
1248   | --progr-tra=* | --program-tr=* | --program-t=*)
1249     program_transform_name=$ac_optarg ;;
1250
1251   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252     ac_prev=pdfdir ;;
1253   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254     pdfdir=$ac_optarg ;;
1255
1256   -psdir | --psdir | --psdi | --psd | --ps)
1257     ac_prev=psdir ;;
1258   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259     psdir=$ac_optarg ;;
1260
1261   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262   | -silent | --silent | --silen | --sile | --sil)
1263     silent=yes ;;
1264
1265   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266     ac_prev=sbindir ;;
1267   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268   | --sbi=* | --sb=*)
1269     sbindir=$ac_optarg ;;
1270
1271   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273   | --sharedst | --shareds | --shared | --share | --shar \
1274   | --sha | --sh)
1275     ac_prev=sharedstatedir ;;
1276   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279   | --sha=* | --sh=*)
1280     sharedstatedir=$ac_optarg ;;
1281
1282   -site | --site | --sit)
1283     ac_prev=site ;;
1284   -site=* | --site=* | --sit=*)
1285     site=$ac_optarg ;;
1286
1287   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288     ac_prev=srcdir ;;
1289   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290     srcdir=$ac_optarg ;;
1291
1292   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293   | --syscon | --sysco | --sysc | --sys | --sy)
1294     ac_prev=sysconfdir ;;
1295   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297     sysconfdir=$ac_optarg ;;
1298
1299   -target | --target | --targe | --targ | --tar | --ta | --t)
1300     ac_prev=target_alias ;;
1301   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302     target_alias=$ac_optarg ;;
1303
1304   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305     verbose=yes ;;
1306
1307   -version | --version | --versio | --versi | --vers | -V)
1308     ac_init_version=: ;;
1309
1310   -with-* | --with-*)
1311     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312     # Reject names that are not valid shell variable names.
1313     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314       as_fn_error $? "invalid package name: $ac_useropt"
1315     ac_useropt_orig=$ac_useropt
1316     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317     case $ac_user_opts in
1318       *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322          ac_unrecognized_sep=', ';;
1323     esac
1324     eval with_$ac_useropt=\$ac_optarg ;;
1325
1326   -without-* | --without-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       as_fn_error $? "invalid package name: $ac_useropt"
1331     ac_useropt_orig=$ac_useropt
1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333     case $ac_user_opts in
1334       *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338          ac_unrecognized_sep=', ';;
1339     esac
1340     eval with_$ac_useropt=no ;;
1341
1342   --x)
1343     # Obsolete; use --with-x.
1344     with_x=yes ;;
1345
1346   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347   | --x-incl | --x-inc | --x-in | --x-i)
1348     ac_prev=x_includes ;;
1349   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351     x_includes=$ac_optarg ;;
1352
1353   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355     ac_prev=x_libraries ;;
1356   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358     x_libraries=$ac_optarg ;;
1359
1360   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information"
1362     ;;
1363
1364   *=*)
1365     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366     # Reject names that are not valid shell variable names.
1367     case $ac_envvar in #(
1368       '' | [0-9]* | *[!_$as_cr_alnum]* )
1369       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1370     esac
1371     eval $ac_envvar=\$ac_optarg
1372     export $ac_envvar ;;
1373
1374   *)
1375     # FIXME: should be removed in autoconf 3.0.
1376     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380     ;;
1381
1382   esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387   as_fn_error $? "missing argument to $ac_option"
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391   case $enable_option_checking in
1392     no) ;;
1393     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1394     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395   esac
1396 fi
1397
1398 # Check all directory arguments for consistency.
1399 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400                 datadir sysconfdir sharedstatedir localstatedir includedir \
1401                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402                 libdir localedir mandir
1403 do
1404   eval ac_val=\$$ac_var
1405   # Remove trailing slashes.
1406   case $ac_val in
1407     */ )
1408       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409       eval $ac_var=\$ac_val;;
1410   esac
1411   # Be sure to have absolute directory names.
1412   case $ac_val in
1413     [\\/$]* | ?:[\\/]* )  continue;;
1414     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415   esac
1416   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1418
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1425
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428   if test "x$build_alias" = x; then
1429     cross_compiling=maybe
1430     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1431     If a cross compiler is detected then cross compile mode will be used" >&2
1432   elif test "x$build_alias" != "x$host_alias"; then
1433     cross_compiling=yes
1434   fi
1435 fi
1436
1437 ac_tool_prefix=
1438 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439
1440 test "$silent" = yes && exec 6>/dev/null
1441
1442
1443 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1444 ac_ls_di=`ls -di .` &&
1445 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1446   as_fn_error $? "working directory cannot be determined"
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448   as_fn_error $? "pwd does not report name of working directory"
1449
1450
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453   ac_srcdir_defaulted=yes
1454   # Try the directory containing this script, then the parent directory.
1455   ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457          X"$as_myself" : 'X\(//\)[^/]' \| \
1458          X"$as_myself" : 'X\(//\)$' \| \
1459          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\/\)[^/].*/{
1466             s//\1/
1467             q
1468           }
1469           /^X\(\/\/\)$/{
1470             s//\1/
1471             q
1472           }
1473           /^X\(\/\).*/{
1474             s//\1/
1475             q
1476           }
1477           s/.*/./; q'`
1478   srcdir=$ac_confdir
1479   if test ! -r "$srcdir/$ac_unique_file"; then
1480     srcdir=..
1481   fi
1482 else
1483   ac_srcdir_defaulted=no
1484 fi
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1488 fi
1489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 ac_abs_confdir=`(
1491         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1492         pwd)`
1493 # When building in place, set srcdir=.
1494 if test "$ac_abs_confdir" = "$ac_pwd"; then
1495   srcdir=.
1496 fi
1497 # Remove unnecessary trailing slashes from srcdir.
1498 # Double slashes in file names in object file debugging info
1499 # mess up M-x gdb in Emacs.
1500 case $srcdir in
1501 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 esac
1503 for ac_var in $ac_precious_vars; do
1504   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1505   eval ac_env_${ac_var}_value=\$${ac_var}
1506   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1507   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 done
1509
1510 #
1511 # Report the --help message.
1512 #
1513 if test "$ac_init_help" = "long"; then
1514   # Omit some internal or obsolete options to make the list less imposing.
1515   # This message is too long to be a string in the A/UX 3.1 sh.
1516   cat <<_ACEOF
1517 \`configure' configures xmltooling 1.5.1 to adapt to many kinds of systems.
1518
1519 Usage: $0 [OPTION]... [VAR=VALUE]...
1520
1521 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1522 VAR=VALUE.  See below for descriptions of some of the useful variables.
1523
1524 Defaults for the options are specified in brackets.
1525
1526 Configuration:
1527   -h, --help              display this help and exit
1528       --help=short        display options specific to this package
1529       --help=recursive    display the short help of all the included packages
1530   -V, --version           display version information and exit
1531   -q, --quiet, --silent   do not print \`checking ...' messages
1532       --cache-file=FILE   cache test results in FILE [disabled]
1533   -C, --config-cache      alias for \`--cache-file=config.cache'
1534   -n, --no-create         do not create output files
1535       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1536
1537 Installation directories:
1538   --prefix=PREFIX         install architecture-independent files in PREFIX
1539                           [$ac_default_prefix]
1540   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1541                           [PREFIX]
1542
1543 By default, \`make install' will install all the files in
1544 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1545 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1546 for instance \`--prefix=\$HOME'.
1547
1548 For better control, use the options below.
1549
1550 Fine tuning of the installation directories:
1551   --bindir=DIR            user executables [EPREFIX/bin]
1552   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1553   --libexecdir=DIR        program executables [EPREFIX/libexec]
1554   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1555   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1556   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1557   --libdir=DIR            object code libraries [EPREFIX/lib]
1558   --includedir=DIR        C header files [PREFIX/include]
1559   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1560   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1561   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1562   --infodir=DIR           info documentation [DATAROOTDIR/info]
1563   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1564   --mandir=DIR            man documentation [DATAROOTDIR/man]
1565   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmltooling]
1566   --htmldir=DIR           html documentation [DOCDIR]
1567   --dvidir=DIR            dvi documentation [DOCDIR]
1568   --pdfdir=DIR            pdf documentation [DOCDIR]
1569   --psdir=DIR             ps documentation [DOCDIR]
1570 _ACEOF
1571
1572   cat <<\_ACEOF
1573
1574 Program names:
1575   --program-prefix=PREFIX            prepend PREFIX to installed program names
1576   --program-suffix=SUFFIX            append SUFFIX to installed program names
1577   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1578
1579 System types:
1580   --build=BUILD     configure for building on BUILD [guessed]
1581   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1582 _ACEOF
1583 fi
1584
1585 if test -n "$ac_init_help"; then
1586   case $ac_init_help in
1587      short | recursive ) echo "Configuration of xmltooling 1.5.1:";;
1588    esac
1589   cat <<\_ACEOF
1590
1591 Optional Features:
1592   --disable-option-checking  ignore unrecognized --enable/--with options
1593   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1594   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1595   --enable-static[=PKGS]  build static libraries [default=no]
1596   --enable-shared[=PKGS]  build shared libraries [default=yes]
1597   --enable-fast-install[=PKGS]
1598                           optimize for fast installation [default=yes]
1599   --disable-dependency-tracking  speeds up one-time build
1600   --enable-dependency-tracking   do not reject slow dependency extractors
1601   --disable-libtool-lock  avoid locking (might break parallel builds)
1602   --disable-doxygen-doc   don't generate any doxygen documentation
1603   --enable-doxygen-dot    generate graphics for doxygen documentation
1604   --enable-doxygen-man    generate doxygen manual pages
1605   --enable-doxygen-rtf    generate doxygen RTF documentation
1606   --enable-doxygen-xml    generate doxygen XML documentation
1607   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1608   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1609                           file
1610   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1611   --enable-doxygen-ps     generate doxygen PostScript documentation
1612   --enable-doxygen-pdf    generate doxygen PDF documentation
1613   --enable-debug          Have GCC compile with symbols (Default = no)
1614
1615 Optional Packages:
1616   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1617   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1618   --with-pic              try to use only PIC/non-PIC objects [default=use
1619                           both]
1620   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1621   --with-boost=DIR        prefix of Boost [guess]
1622   --with-log4shib=PATH    where log4shib-config is installed
1623   --with-log4cpp=PATH     where log4cpp-config is installed
1624   --with-xerces=PATH      where xerces-c is installed
1625   --with-xmlsec=PATH      where xmlsec is installed
1626   --with-openssl=PATH     where openssl is installed
1627   --with-curl=PATH        where curl-config is installed
1628   --with-cxxtest=PATH     where cxxtest is installed
1629
1630 Some influential environment variables:
1631   CC          C compiler command
1632   CFLAGS      C compiler flags
1633   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1634               nonstandard directory <lib dir>
1635   LIBS        libraries to pass to the linker, e.g. -l<library>
1636   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1637               you have headers in a nonstandard directory <include dir>
1638   CPP         C preprocessor
1639   DOXYGEN_PAPER_SIZE
1640               a4wide (default), a4, letter, legal or executive
1641   CXX         C++ compiler command
1642   CXXFLAGS    C++ compiler flags
1643   CXXCPP      C++ preprocessor
1644   BOOST_ROOT  Location of Boost installation
1645
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1648
1649 Report bugs to <https://issues.shibboleth.net/>.
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655   # If there are subdirs, report their specific --help.
1656   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657     test -d "$ac_dir" ||
1658       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659       continue
1660     ac_builddir=.
1661
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *)
1665   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666   # A ".." for each directory in $ac_dir_suffix.
1667   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668   case $ac_top_builddir_sub in
1669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671   esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1677
1678 case $srcdir in
1679   .)  # We are building in place.
1680     ac_srcdir=.
1681     ac_top_srcdir=$ac_top_builddir_sub
1682     ac_abs_top_srcdir=$ac_pwd ;;
1683   [\\/]* | ?:[\\/]* )  # Absolute name.
1684     ac_srcdir=$srcdir$ac_dir_suffix;
1685     ac_top_srcdir=$srcdir
1686     ac_abs_top_srcdir=$srcdir ;;
1687   *) # Relative name.
1688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689     ac_top_srcdir=$ac_top_build_prefix$srcdir
1690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693
1694     cd "$ac_dir" || { ac_status=$?; continue; }
1695     # Check for guested configure.
1696     if test -f "$ac_srcdir/configure.gnu"; then
1697       echo &&
1698       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699     elif test -f "$ac_srcdir/configure"; then
1700       echo &&
1701       $SHELL "$ac_srcdir/configure" --help=recursive
1702     else
1703       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704     fi || ac_status=$?
1705     cd "$ac_pwd" || { ac_status=$?; break; }
1706   done
1707 fi
1708
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711   cat <<\_ACEOF
1712 xmltooling configure 1.5.1
1713 generated by GNU Autoconf 2.67
1714
1715 Copyright (C) 2010 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718 _ACEOF
1719   exit
1720 fi
1721
1722 ## ------------------------ ##
1723 ## Autoconf initialization. ##
1724 ## ------------------------ ##
1725
1726 # ac_fn_c_try_compile LINENO
1727 # --------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_compile ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   rm -f conftest.$ac_objext
1733   if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_compile") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && {
1749          test -z "$ac_c_werror_flag" ||
1750          test ! -s conftest.err
1751        } && test -s conftest.$ac_objext; then :
1752   ac_retval=0
1753 else
1754   $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757         ac_retval=1
1758 fi
1759   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_compile
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   rm -f conftest.$ac_objext conftest$ac_exeext
1771   if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_link") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && {
1787          test -z "$ac_c_werror_flag" ||
1788          test ! -s conftest.err
1789        } && test -s conftest$ac_exeext && {
1790          test "$cross_compiling" = yes ||
1791          $as_test_x conftest$ac_exeext
1792        }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798         ac_retval=1
1799 fi
1800   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802   # interfere with the next link command; also delete a directory that is
1803   # left behind by Apple's compiler.  We do this before executing the actions.
1804   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806   as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_link
1809
1810 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists and can be compiled using the include files in
1813 # INCLUDES, setting the cache variable VAR accordingly.
1814 ac_fn_c_check_header_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval "test \"\${$3+set}\"" = set; then :
1820   $as_echo_n "(cached) " >&6
1821 else
1822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828   eval "$3=yes"
1829 else
1830   eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839 } # ac_fn_c_check_header_compile
1840
1841 # ac_fn_c_try_cpp LINENO
1842 # ----------------------
1843 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_cpp ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } > conftest.i && {
1863          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1864          test ! -s conftest.err
1865        }; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871     ac_retval=1
1872 fi
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874   as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_cpp
1877
1878 # ac_fn_c_try_run LINENO
1879 # ----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881 # that executables *can* be run.
1882 ac_fn_c_try_run ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_link") 2>&5
1893   ac_status=$?
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896   { { case "(($ac_try" in
1897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898   *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902   (eval "$ac_try") 2>&5
1903   ac_status=$?
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; }; }; then :
1906   ac_retval=0
1907 else
1908   $as_echo "$as_me: program exited with status $ac_status" >&5
1909        $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912        ac_retval=$ac_status
1913 fi
1914   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916   as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_run
1919
1920 # ac_fn_c_check_func LINENO FUNC VAR
1921 # ----------------------------------
1922 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1923 ac_fn_c_check_func ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval "test \"\${$3+set}\"" = set; then :
1929   $as_echo_n "(cached) " >&6
1930 else
1931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1935 #define $2 innocuous_$2
1936
1937 /* System header to define __stub macros and hopefully few prototypes,
1938     which can conflict with char $2 (); below.
1939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1940     <limits.h> exists even on freestanding compilers.  */
1941
1942 #ifdef __STDC__
1943 # include <limits.h>
1944 #else
1945 # include <assert.h>
1946 #endif
1947
1948 #undef $2
1949
1950 /* Override any GCC internal prototype to avoid an error.
1951    Use char because int might match the return type of a GCC
1952    builtin and then its argument prototype would still apply.  */
1953 #ifdef __cplusplus
1954 extern "C"
1955 #endif
1956 char $2 ();
1957 /* The GNU C library defines this for functions which it implements
1958     to always fail with ENOSYS.  Some functions are actually named
1959     something starting with __ and the normal name is an alias.  */
1960 #if defined __stub_$2 || defined __stub___$2
1961 choke me
1962 #endif
1963
1964 int
1965 main ()
1966 {
1967 return $2 ();
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_link "$LINENO"; then :
1973   eval "$3=yes"
1974 else
1975   eval "$3=no"
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext \
1978     conftest$ac_exeext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985 } # ac_fn_c_check_func
1986
1987 # ac_fn_cxx_try_compile LINENO
1988 # ----------------------------
1989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_compile ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   rm -f conftest.$ac_objext
1994   if { { ac_try="$ac_compile"
1995 case "(($ac_try" in
1996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997   *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001   (eval "$ac_compile") 2>conftest.err
2002   ac_status=$?
2003   if test -s conftest.err; then
2004     grep -v '^ *+' conftest.err >conftest.er1
2005     cat conftest.er1 >&5
2006     mv -f conftest.er1 conftest.err
2007   fi
2008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009   test $ac_status = 0; } && {
2010          test -z "$ac_cxx_werror_flag" ||
2011          test ! -s conftest.err
2012        } && test -s conftest.$ac_objext; then :
2013   ac_retval=0
2014 else
2015   $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018         ac_retval=1
2019 fi
2020   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021   as_fn_set_status $ac_retval
2022
2023 } # ac_fn_cxx_try_compile
2024
2025 # ac_fn_cxx_try_cpp LINENO
2026 # ------------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_cpp ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   if { { ac_try="$ac_cpp conftest.$ac_ext"
2032 case "(($ac_try" in
2033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034   *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039   ac_status=$?
2040   if test -s conftest.err; then
2041     grep -v '^ *+' conftest.err >conftest.er1
2042     cat conftest.er1 >&5
2043     mv -f conftest.er1 conftest.err
2044   fi
2045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046   test $ac_status = 0; } > conftest.i && {
2047          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2048          test ! -s conftest.err
2049        }; then :
2050   ac_retval=0
2051 else
2052   $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055     ac_retval=1
2056 fi
2057   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058   as_fn_set_status $ac_retval
2059
2060 } # ac_fn_cxx_try_cpp
2061
2062 # ac_fn_cxx_try_link LINENO
2063 # -------------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2065 ac_fn_cxx_try_link ()
2066 {
2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068   rm -f conftest.$ac_objext conftest$ac_exeext
2069   if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076   (eval "$ac_link") 2>conftest.err
2077   ac_status=$?
2078   if test -s conftest.err; then
2079     grep -v '^ *+' conftest.err >conftest.er1
2080     cat conftest.er1 >&5
2081     mv -f conftest.er1 conftest.err
2082   fi
2083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084   test $ac_status = 0; } && {
2085          test -z "$ac_cxx_werror_flag" ||
2086          test ! -s conftest.err
2087        } && test -s conftest$ac_exeext && {
2088          test "$cross_compiling" = yes ||
2089          $as_test_x conftest$ac_exeext
2090        }; then :
2091   ac_retval=0
2092 else
2093   $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096         ac_retval=1
2097 fi
2098   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100   # interfere with the next link command; also delete a directory that is
2101   # left behind by Apple's compiler.  We do this before executing the actions.
2102   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104   as_fn_set_status $ac_retval
2105
2106 } # ac_fn_cxx_try_link
2107
2108 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2109 # -------------------------------------------
2110 # Tests whether TYPE exists after having included INCLUDES, setting cache
2111 # variable VAR accordingly.
2112 ac_fn_c_check_type ()
2113 {
2114   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval "test \"\${$3+set}\"" = set; then :
2118   $as_echo_n "(cached) " >&6
2119 else
2120   eval "$3=no"
2121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 if (sizeof ($2))
2128          return 0;
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 int
2138 main ()
2139 {
2140 if (sizeof (($2)))
2141             return 0;
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147
2148 else
2149   eval "$3=yes"
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 eval ac_res=\$$3
2156                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159
2160 } # ac_fn_c_check_type
2161
2162 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2163 # --------------------------------------------
2164 # Tries to find the compile-time value of EXPR in a program that includes
2165 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2166 # computed
2167 ac_fn_c_compute_int ()
2168 {
2169   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170   if test "$cross_compiling" = yes; then
2171     # Depending upon the size, compute the lo and hi bounds.
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) >= 0)];
2179 test_array [0] = 0
2180
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186   ac_lo=0 ac_mid=0
2187   while :; do
2188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $4
2191 int
2192 main ()
2193 {
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 test_array [0] = 0
2196
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202   ac_hi=$ac_mid; break
2203 else
2204   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2205                         if test $ac_lo -le $ac_mid; then
2206                           ac_lo= ac_hi=
2207                           break
2208                         fi
2209                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212   done
2213 else
2214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) < 0)];
2221 test_array [0] = 0
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228   ac_hi=-1 ac_mid=-1
2229   while :; do
2230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 test_array [0] = 0
2238
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   ac_lo=$ac_mid; break
2245 else
2246   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2247                         if test $ac_mid -le $ac_hi; then
2248                           ac_lo= ac_hi=
2249                           break
2250                         fi
2251                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254   done
2255 else
2256   ac_lo= ac_hi=
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 # Binary search between lo and hi bounds.
2262 while test "x$ac_lo" != "x$ac_hi"; do
2263   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main ()
2269 {
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 test_array [0] = 0
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278   ac_hi=$ac_mid
2279 else
2280   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 done
2284 case $ac_lo in #((
2285 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2286 '') ac_retval=1 ;;
2287 esac
2288   else
2289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 static long int longval () { return $2; }
2293 static unsigned long int ulongval () { return $2; }
2294 #include <stdio.h>
2295 #include <stdlib.h>
2296 int
2297 main ()
2298 {
2299
2300   FILE *f = fopen ("conftest.val", "w");
2301   if (! f)
2302     return 1;
2303   if (($2) < 0)
2304     {
2305       long int i = longval ();
2306       if (i != ($2))
2307         return 1;
2308       fprintf (f, "%ld", i);
2309     }
2310   else
2311     {
2312       unsigned long int i = ulongval ();
2313       if (i != ($2))
2314         return 1;
2315       fprintf (f, "%lu", i);
2316     }
2317   /* Do not output a trailing newline, as this causes \r\n confusion
2318      on some platforms.  */
2319   return ferror (f) || fclose (f) != 0;
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_run "$LINENO"; then :
2326   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2327 else
2328   ac_retval=1
2329 fi
2330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2331   conftest.$ac_objext conftest.beam conftest.$ac_ext
2332 rm -f conftest.val
2333
2334   fi
2335   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2336   as_fn_set_status $ac_retval
2337
2338 } # ac_fn_c_compute_int
2339
2340 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2341 # -------------------------------------------------------
2342 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2343 # the include files in INCLUDES and setting the cache variable VAR
2344 # accordingly.
2345 ac_fn_c_check_header_mongrel ()
2346 {
2347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348   if eval "test \"\${$3+set}\"" = set; then :
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if eval "test \"\${$3+set}\"" = set; then :
2352   $as_echo_n "(cached) " >&6
2353 fi
2354 eval ac_res=\$$3
2355                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 else
2358   # Is the header compilable?
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2360 $as_echo_n "checking $2 usability... " >&6; }
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 #include <$2>
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367   ac_header_compiler=yes
2368 else
2369   ac_header_compiler=no
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2373 $as_echo "$ac_header_compiler" >&6; }
2374
2375 # Is the header present?
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2377 $as_echo_n "checking $2 presence... " >&6; }
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h.  */
2380 #include <$2>
2381 _ACEOF
2382 if ac_fn_c_try_cpp "$LINENO"; then :
2383   ac_header_preproc=yes
2384 else
2385   ac_header_preproc=no
2386 fi
2387 rm -f conftest.err conftest.i conftest.$ac_ext
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2389 $as_echo "$ac_header_preproc" >&6; }
2390
2391 # So?  What about this header?
2392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2393   yes:no: )
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2395 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2397 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2398     ;;
2399   no:yes:* )
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2401 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2403 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2404     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2405 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2407 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410 ( $as_echo "## --------------------------------------------- ##
2411 ## Report this to https://issues.shibboleth.net/ ##
2412 ## --------------------------------------------- ##"
2413      ) | sed "s/^/$as_me: WARNING:     /" >&2
2414     ;;
2415 esac
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if eval "test \"\${$3+set}\"" = set; then :
2419   $as_echo_n "(cached) " >&6
2420 else
2421   eval "$3=\$ac_header_compiler"
2422 fi
2423 eval ac_res=\$$3
2424                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2425 $as_echo "$ac_res" >&6; }
2426 fi
2427   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2428
2429 } # ac_fn_c_check_header_mongrel
2430
2431 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2432 # ---------------------------------------------------------
2433 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2434 # the include files in INCLUDES and setting the cache variable VAR
2435 # accordingly.
2436 ac_fn_cxx_check_header_mongrel ()
2437 {
2438   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439   if eval "test \"\${$3+set}\"" = set; then :
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2441 $as_echo_n "checking for $2... " >&6; }
2442 if eval "test \"\${$3+set}\"" = set; then :
2443   $as_echo_n "(cached) " >&6
2444 fi
2445 eval ac_res=\$$3
2446                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 else
2449   # Is the header compilable?
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2451 $as_echo_n "checking $2 usability... " >&6; }
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 $4
2455 #include <$2>
2456 _ACEOF
2457 if ac_fn_cxx_try_compile "$LINENO"; then :
2458   ac_header_compiler=yes
2459 else
2460   ac_header_compiler=no
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2464 $as_echo "$ac_header_compiler" >&6; }
2465
2466 # Is the header present?
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2468 $as_echo_n "checking $2 presence... " >&6; }
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h.  */
2471 #include <$2>
2472 _ACEOF
2473 if ac_fn_cxx_try_cpp "$LINENO"; then :
2474   ac_header_preproc=yes
2475 else
2476   ac_header_preproc=no
2477 fi
2478 rm -f conftest.err conftest.i conftest.$ac_ext
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2480 $as_echo "$ac_header_preproc" >&6; }
2481
2482 # So?  What about this header?
2483 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2484   yes:no: )
2485     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2486 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2488 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2489     ;;
2490   no:yes:* )
2491     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2492 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2493     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2494 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2495     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2496 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2497     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2498 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2499     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2500 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2501 ( $as_echo "## --------------------------------------------- ##
2502 ## Report this to https://issues.shibboleth.net/ ##
2503 ## --------------------------------------------- ##"
2504      ) | sed "s/^/$as_me: WARNING:     /" >&2
2505     ;;
2506 esac
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 $as_echo_n "checking for $2... " >&6; }
2509 if eval "test \"\${$3+set}\"" = set; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   eval "$3=\$ac_header_compiler"
2513 fi
2514 eval ac_res=\$$3
2515                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 fi
2518   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519
2520 } # ac_fn_cxx_check_header_mongrel
2521
2522 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2523 # -----------------------------------------------
2524 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2525 # accordingly.
2526 ac_fn_cxx_check_decl ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   as_decl_name=`echo $2|sed 's/ *(.*//'`
2530   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2532 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2533 if eval "test \"\${$3+set}\"" = set; then :
2534   $as_echo_n "(cached) " >&6
2535 else
2536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h.  */
2538 $4
2539 int
2540 main ()
2541 {
2542 #ifndef $as_decl_name
2543 #ifdef __cplusplus
2544   (void) $as_decl_use;
2545 #else
2546   (void) $as_decl_name;
2547 #endif
2548 #endif
2549
2550   ;
2551   return 0;
2552 }
2553 _ACEOF
2554 if ac_fn_cxx_try_compile "$LINENO"; then :
2555   eval "$3=yes"
2556 else
2557   eval "$3=no"
2558 fi
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 fi
2561 eval ac_res=\$$3
2562                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565
2566 } # ac_fn_cxx_check_decl
2567
2568 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2569 # ---------------------------------------------
2570 # Tests whether TYPE exists after having included INCLUDES, setting cache
2571 # variable VAR accordingly.
2572 ac_fn_cxx_check_type ()
2573 {
2574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if eval "test \"\${$3+set}\"" = set; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   eval "$3=no"
2581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h.  */
2583 $4
2584 int
2585 main ()
2586 {
2587 if (sizeof ($2))
2588          return 0;
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h.  */
2596 $4
2597 int
2598 main ()
2599 {
2600 if (sizeof (($2)))
2601             return 0;
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_cxx_try_compile "$LINENO"; then :
2607
2608 else
2609   eval "$3=yes"
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 eval ac_res=\$$3
2616                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2619
2620 } # ac_fn_cxx_check_type
2621 cat >config.log <<_ACEOF
2622 This file contains any messages produced by compilers while
2623 running configure, to aid debugging if configure makes a mistake.
2624
2625 It was created by xmltooling $as_me 1.5.1, which was
2626 generated by GNU Autoconf 2.67.  Invocation command line was
2627
2628   $ $0 $@
2629
2630 _ACEOF
2631 exec 5>>config.log
2632 {
2633 cat <<_ASUNAME
2634 ## --------- ##
2635 ## Platform. ##
2636 ## --------- ##
2637
2638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2643
2644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2645 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2646
2647 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2648 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2650 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2651 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2652 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2653 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2654
2655 _ASUNAME
2656
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662     $as_echo "PATH: $as_dir"
2663   done
2664 IFS=$as_save_IFS
2665
2666 } >&5
2667
2668 cat >&5 <<_ACEOF
2669
2670
2671 ## ----------- ##
2672 ## Core tests. ##
2673 ## ----------- ##
2674
2675 _ACEOF
2676
2677
2678 # Keep a trace of the command line.
2679 # Strip out --no-create and --no-recursion so they do not pile up.
2680 # Strip out --silent because we don't want to record it for future runs.
2681 # Also quote any args containing shell meta-characters.
2682 # Make two passes to allow for proper duplicate-argument suppression.
2683 ac_configure_args=
2684 ac_configure_args0=
2685 ac_configure_args1=
2686 ac_must_keep_next=false
2687 for ac_pass in 1 2
2688 do
2689   for ac_arg
2690   do
2691     case $ac_arg in
2692     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2693     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2694     | -silent | --silent | --silen | --sile | --sil)
2695       continue ;;
2696     *\'*)
2697       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2698     esac
2699     case $ac_pass in
2700     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2701     2)
2702       as_fn_append ac_configure_args1 " '$ac_arg'"
2703       if test $ac_must_keep_next = true; then
2704         ac_must_keep_next=false # Got value, back to normal.
2705       else
2706         case $ac_arg in
2707           *=* | --config-cache | -C | -disable-* | --disable-* \
2708           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2709           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2710           | -with-* | --with-* | -without-* | --without-* | --x)
2711             case "$ac_configure_args0 " in
2712               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2713             esac
2714             ;;
2715           -* ) ac_must_keep_next=true ;;
2716         esac
2717       fi
2718       as_fn_append ac_configure_args " '$ac_arg'"
2719       ;;
2720     esac
2721   done
2722 done
2723 { ac_configure_args0=; unset ac_configure_args0;}
2724 { ac_configure_args1=; unset ac_configure_args1;}
2725
2726 # When interrupted or exit'd, cleanup temporary files, and complete
2727 # config.log.  We remove comments because anyway the quotes in there
2728 # would cause problems or look ugly.
2729 # WARNING: Use '\'' to represent an apostrophe within the trap.
2730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2731 trap 'exit_status=$?
2732   # Save into config.log some information that might help in debugging.
2733   {
2734     echo
2735
2736     $as_echo "## ---------------- ##
2737 ## Cache variables. ##
2738 ## ---------------- ##"
2739     echo
2740     # The following way of writing the cache mishandles newlines in values,
2741 (
2742   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2743     eval ac_val=\$$ac_var
2744     case $ac_val in #(
2745     *${as_nl}*)
2746       case $ac_var in #(
2747       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2749       esac
2750       case $ac_var in #(
2751       _ | IFS | as_nl) ;; #(
2752       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2753       *) { eval $ac_var=; unset $ac_var;} ;;
2754       esac ;;
2755     esac
2756   done
2757   (set) 2>&1 |
2758     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2759     *${as_nl}ac_space=\ *)
2760       sed -n \
2761         "s/'\''/'\''\\\\'\'''\''/g;
2762           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2763       ;; #(
2764     *)
2765       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766       ;;
2767     esac |
2768     sort
2769 )
2770     echo
2771
2772     $as_echo "## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##"
2775     echo
2776     for ac_var in $ac_subst_vars
2777     do
2778       eval ac_val=\$$ac_var
2779       case $ac_val in
2780       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781       esac
2782       $as_echo "$ac_var='\''$ac_val'\''"
2783     done | sort
2784     echo
2785
2786     if test -n "$ac_subst_files"; then
2787       $as_echo "## ------------------- ##
2788 ## File substitutions. ##
2789 ## ------------------- ##"
2790       echo
2791       for ac_var in $ac_subst_files
2792       do
2793         eval ac_val=\$$ac_var
2794         case $ac_val in
2795         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796         esac
2797         $as_echo "$ac_var='\''$ac_val'\''"
2798       done | sort
2799       echo
2800     fi
2801
2802     if test -s confdefs.h; then
2803       $as_echo "## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##"
2806       echo
2807       cat confdefs.h
2808       echo
2809     fi
2810     test "$ac_signal" != 0 &&
2811       $as_echo "$as_me: caught signal $ac_signal"
2812     $as_echo "$as_me: exit $exit_status"
2813   } >&5
2814   rm -f core *.core core.conftest.* &&
2815     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2816     exit $exit_status
2817 ' 0
2818 for ac_signal in 1 2 13 15; do
2819   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 done
2821 ac_signal=0
2822
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2825
2826 $as_echo "/* confdefs.h */" > confdefs.h
2827
2828 # Predefined preprocessor variables.
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2844 _ACEOF
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2848 _ACEOF
2849
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2852 _ACEOF
2853
2854
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 ac_site_file1=NONE
2858 ac_site_file2=NONE
2859 if test -n "$CONFIG_SITE"; then
2860   # We do not want a PATH search for config.site.
2861   case $CONFIG_SITE in #((
2862     -*)  ac_site_file1=./$CONFIG_SITE;;
2863     */*) ac_site_file1=$CONFIG_SITE;;
2864     *)   ac_site_file1=./$CONFIG_SITE;;
2865   esac
2866 elif test "x$prefix" != xNONE; then
2867   ac_site_file1=$prefix/share/config.site
2868   ac_site_file2=$prefix/etc/config.site
2869 else
2870   ac_site_file1=$ac_default_prefix/share/config.site
2871   ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875   test "x$ac_site_file" = xNONE && continue
2876   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879     sed 's/^/| /' "$ac_site_file" >&5
2880     . "$ac_site_file" \
2881       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 as_fn_error $? "failed to load site script $ac_site_file
2884 See \`config.log' for more details" "$LINENO" 5 ; }
2885   fi
2886 done
2887
2888 if test -r "$cache_file"; then
2889   # Some versions of bash will fail to source /dev/null (special files
2890   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2891   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2892     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2893 $as_echo "$as_me: loading cache $cache_file" >&6;}
2894     case $cache_file in
2895       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2896       *)                      . "./$cache_file";;
2897     esac
2898   fi
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2901 $as_echo "$as_me: creating cache $cache_file" >&6;}
2902   >$cache_file
2903 fi
2904
2905 # Check that the precious variables saved in the cache have kept the same
2906 # value.
2907 ac_cache_corrupted=false
2908 for ac_var in $ac_precious_vars; do
2909   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2910   eval ac_new_set=\$ac_env_${ac_var}_set
2911   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2912   eval ac_new_val=\$ac_env_${ac_var}_value
2913   case $ac_old_set,$ac_new_set in
2914     set,)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,set)
2919       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2920 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2921       ac_cache_corrupted=: ;;
2922     ,);;
2923     *)
2924       if test "x$ac_old_val" != "x$ac_new_val"; then
2925         # differences in whitespace do not lead to failure.
2926         ac_old_val_w=`echo x $ac_old_val`
2927         ac_new_val_w=`echo x $ac_new_val`
2928         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2930 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2931           ac_cache_corrupted=:
2932         else
2933           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2934 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2935           eval $ac_var=\$ac_old_val
2936         fi
2937         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2938 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2939         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2940 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2941       fi;;
2942   esac
2943   # Pass precious variables to config.status.
2944   if test "$ac_new_set" = set; then
2945     case $ac_new_val in
2946     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2947     *) ac_arg=$ac_var=$ac_new_val ;;
2948     esac
2949     case " $ac_configure_args " in
2950       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2951       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2952     esac
2953   fi
2954 done
2955 if $ac_cache_corrupted; then
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2959 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2960   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2961 fi
2962 ## -------------------- ##
2963 ## Main body of script. ##
2964 ## -------------------- ##
2965
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971
2972
2973
2974 ac_aux_dir=
2975 for ac_dir in build-aux "$srcdir"/build-aux; do
2976   if test -f "$ac_dir/install-sh"; then
2977     ac_aux_dir=$ac_dir
2978     ac_install_sh="$ac_aux_dir/install-sh -c"
2979     break
2980   elif test -f "$ac_dir/install.sh"; then
2981     ac_aux_dir=$ac_dir
2982     ac_install_sh="$ac_aux_dir/install.sh -c"
2983     break
2984   elif test -f "$ac_dir/shtool"; then
2985     ac_aux_dir=$ac_dir
2986     ac_install_sh="$ac_aux_dir/shtool install -c"
2987     break
2988   fi
2989 done
2990 if test -z "$ac_aux_dir"; then
2991   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2992 fi
2993
2994 # These three variables are undocumented and unsupported,
2995 # and are intended to be withdrawn in a future Autoconf release.
2996 # They can cause serious problems if a builder's source tree is in a directory
2997 # whose full name contains unusual characters.
2998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3001
3002
3003
3004 am__api_version='1.11'
3005
3006 # Find a good install program.  We prefer a C program (faster),
3007 # so one script is as good as another.  But avoid the broken or
3008 # incompatible versions:
3009 # SysV /etc/install, /usr/sbin/install
3010 # SunOS /usr/etc/install
3011 # IRIX /sbin/install
3012 # AIX /bin/install
3013 # AmigaOS /C/install, which installs bootblocks on floppy discs
3014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3017 # OS/2's system install, which has a completely different semantic
3018 # ./install, which can be erroneously created by make from ./install.sh.
3019 # Reject install programs that cannot install multiple files.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3021 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3022 if test -z "$INSTALL"; then
3023 if test "${ac_cv_path_install+set}" = set; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     # Account for people who put trailing slashes in PATH elements.
3032 case $as_dir/ in #((
3033   ./ | .// | /[cC]/* | \
3034   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3035   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3036   /usr/ucb/* ) ;;
3037   *)
3038     # OSF1 and SCO ODT 3.0 have their own names for install.
3039     # Don't use installbsd from OSF since it installs stuff as root
3040     # by default.
3041     for ac_prog in ginstall scoinst install; do
3042       for ac_exec_ext in '' $ac_executable_extensions; do
3043         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3044           if test $ac_prog = install &&
3045             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3046             # AIX install.  It has an incompatible calling convention.
3047             :
3048           elif test $ac_prog = install &&
3049             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3050             # program-specific install script used by HP pwplus--don't use.
3051             :
3052           else
3053             rm -rf conftest.one conftest.two conftest.dir
3054             echo one > conftest.one
3055             echo two > conftest.two
3056             mkdir conftest.dir
3057             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3058               test -s conftest.one && test -s conftest.two &&
3059               test -s conftest.dir/conftest.one &&
3060               test -s conftest.dir/conftest.two
3061             then
3062               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3063               break 3
3064             fi
3065           fi
3066         fi
3067       done
3068     done
3069     ;;
3070 esac
3071
3072   done
3073 IFS=$as_save_IFS
3074
3075 rm -rf conftest.one conftest.two conftest.dir
3076
3077 fi
3078   if test "${ac_cv_path_install+set}" = set; then
3079     INSTALL=$ac_cv_path_install
3080   else
3081     # As a last resort, use the slow shell script.  Don't cache a
3082     # value for INSTALL within a source directory, because that will
3083     # break other packages using the cache if that directory is
3084     # removed, or if the value is a relative name.
3085     INSTALL=$ac_install_sh
3086   fi
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3089 $as_echo "$INSTALL" >&6; }
3090
3091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3092 # It thinks the first close brace ends the variable substitution.
3093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3094
3095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3096
3097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3098
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3100 $as_echo_n "checking whether build environment is sane... " >&6; }
3101 # Just in case
3102 sleep 1
3103 echo timestamp > conftest.file
3104 # Reject unsafe characters in $srcdir or the absolute working directory
3105 # name.  Accept space and tab only in the latter.
3106 am_lf='
3107 '
3108 case `pwd` in
3109   *[\\\"\#\$\&\'\`$am_lf]*)
3110     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3111 esac
3112 case $srcdir in
3113   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3114     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3115 esac
3116
3117 # Do `set' in a subshell so we don't clobber the current shell's
3118 # arguments.  Must try -L first in case configure is actually a
3119 # symlink; some systems play weird games with the mod time of symlinks
3120 # (eg FreeBSD returns the mod time of the symlink's containing
3121 # directory).
3122 if (
3123    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3124    if test "$*" = "X"; then
3125       # -L didn't work.
3126       set X `ls -t "$srcdir/configure" conftest.file`
3127    fi
3128    rm -f conftest.file
3129    if test "$*" != "X $srcdir/configure conftest.file" \
3130       && test "$*" != "X conftest.file $srcdir/configure"; then
3131
3132       # If neither matched, then we have a broken ls.  This can happen
3133       # if, for instance, CONFIG_SHELL is bash and it inherits a
3134       # broken ls alias from the environment.  This has actually
3135       # happened.  Such a system could not be considered "sane".
3136       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3137 alias in your environment" "$LINENO" 5
3138    fi
3139
3140    test "$2" = conftest.file
3141    )
3142 then
3143    # Ok.
3144    :
3145 else
3146    as_fn_error $? "newly created file is older than distributed files!
3147 Check your system clock" "$LINENO" 5
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151 test "$program_prefix" != NONE &&
3152   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3153 # Use a double $ so make ignores it.
3154 test "$program_suffix" != NONE &&
3155   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3156 # Double any \ or $.
3157 # By default was `s,x,x', remove it if useless.
3158 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3159 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3160
3161 # expand $ac_aux_dir to an absolute path
3162 am_aux_dir=`cd $ac_aux_dir && pwd`
3163
3164 if test x"${MISSING+set}" != xset; then
3165   case $am_aux_dir in
3166   *\ * | *\     *)
3167     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3168   *)
3169     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3170   esac
3171 fi
3172 # Use eval to expand $SHELL
3173 if eval "$MISSING --run true"; then
3174   am_missing_run="$MISSING --run "
3175 else
3176   am_missing_run=
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3178 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3179 fi
3180
3181 if test x"${install_sh}" != xset; then
3182   case $am_aux_dir in
3183   *\ * | *\     *)
3184     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3185   *)
3186     install_sh="\${SHELL} $am_aux_dir/install-sh"
3187   esac
3188 fi
3189
3190 # Installed binaries are usually stripped using `strip' when the user
3191 # run `make install-strip'.  However `strip' might not be the right
3192 # tool to use in cross-compilation environments, therefore Automake
3193 # will honor the `STRIP' environment variable to overrule this program.
3194 if test "$cross_compiling" != no; then
3195   if test -n "$ac_tool_prefix"; then
3196   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}strip; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_STRIP+set}" = set; then :
3201   $as_echo_n "(cached) " >&6
3202 else
3203   if test -n "$STRIP"; then
3204   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211     for ac_exec_ext in '' $ac_executable_extensions; do
3212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218   done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 STRIP=$ac_cv_prog_STRIP
3224 if test -n "$STRIP"; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3226 $as_echo "$STRIP" >&6; }
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 fi
3234 if test -z "$ac_cv_prog_STRIP"; then
3235   ac_ct_STRIP=$STRIP
3236   # Extract the first word of "strip", so it can be a program name with args.
3237 set dummy strip; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   if test -n "$ac_ct_STRIP"; then
3244   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251     for ac_exec_ext in '' $ac_executable_extensions; do
3252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253     ac_cv_prog_ac_ct_STRIP="strip"
3254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258   done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3264 if test -n "$ac_ct_STRIP"; then
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3266 $as_echo "$ac_ct_STRIP" >&6; }
3267 else
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272   if test "x$ac_ct_STRIP" = x; then
3273     STRIP=":"
3274   else
3275     case $cross_compiling:$ac_tool_warned in
3276 yes:)
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3280 esac
3281     STRIP=$ac_ct_STRIP
3282   fi
3283 else
3284   STRIP="$ac_cv_prog_STRIP"
3285 fi
3286
3287 fi
3288 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3289
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3291 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3292 if test -z "$MKDIR_P"; then
3293   if test "${ac_cv_path_mkdir+set}" = set; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301     for ac_prog in mkdir gmkdir; do
3302          for ac_exec_ext in '' $ac_executable_extensions; do
3303            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3304            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3305              'mkdir (GNU coreutils) '* | \
3306              'mkdir (coreutils) '* | \
3307              'mkdir (fileutils) '4.1*)
3308                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3309                break 3;;
3310            esac
3311          done
3312        done
3313   done
3314 IFS=$as_save_IFS
3315
3316 fi
3317
3318   test -d ./--version && rmdir ./--version
3319   if test "${ac_cv_path_mkdir+set}" = set; then
3320     MKDIR_P="$ac_cv_path_mkdir -p"
3321   else
3322     # As a last resort, use the slow shell script.  Don't cache a
3323     # value for MKDIR_P within a source directory, because that will
3324     # break other packages using the cache if that directory is
3325     # removed, or if the value is a relative name.
3326     MKDIR_P="$ac_install_sh -d"
3327   fi
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3330 $as_echo "$MKDIR_P" >&6; }
3331
3332 mkdir_p="$MKDIR_P"
3333 case $mkdir_p in
3334   [\\/$]* | ?:[\\/]*) ;;
3335   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3336 esac
3337
3338 for ac_prog in gawk mawk nawk awk
3339 do
3340   # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_AWK+set}" = set; then :
3345   $as_echo_n "(cached) " >&6
3346 else
3347   if test -n "$AWK"; then
3348   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355     for ac_exec_ext in '' $ac_executable_extensions; do
3356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357     ac_cv_prog_AWK="$ac_prog"
3358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362   done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 AWK=$ac_cv_prog_AWK
3368 if test -n "$AWK"; then
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3370 $as_echo "$AWK" >&6; }
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377   test -n "$AWK" && break
3378 done
3379
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3381 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3382 set x ${MAKE-make}
3383 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3384 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   cat >conftest.make <<\_ACEOF
3388 SHELL = /bin/sh
3389 all:
3390         @echo '@@@%%%=$(MAKE)=@@@%%%'
3391 _ACEOF
3392 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3393 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3394   *@@@%%%=?*=@@@%%%*)
3395     eval ac_cv_prog_make_${ac_make}_set=yes;;
3396   *)
3397     eval ac_cv_prog_make_${ac_make}_set=no;;
3398 esac
3399 rm -f conftest.make
3400 fi
3401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 $as_echo "yes" >&6; }
3404   SET_MAKE=
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408   SET_MAKE="MAKE=${MAKE-make}"
3409 fi
3410
3411 rm -rf .tst 2>/dev/null
3412 mkdir .tst 2>/dev/null
3413 if test -d .tst; then
3414   am__leading_dot=.
3415 else
3416   am__leading_dot=_
3417 fi
3418 rmdir .tst 2>/dev/null
3419
3420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3421   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3422   # is not polluted with repeated "-I."
3423   am__isrc=' -I$(srcdir)'
3424   # test to see if srcdir already configured
3425   if test -f $srcdir/config.status; then
3426     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3427   fi
3428 fi
3429
3430 # test whether we have cygpath
3431 if test -z "$CYGPATH_W"; then
3432   if (cygpath --version) >/dev/null 2>/dev/null; then
3433     CYGPATH_W='cygpath -w'
3434   else
3435     CYGPATH_W=echo
3436   fi
3437 fi
3438
3439
3440 # Define the identity of the package.
3441  PACKAGE='xmltooling'
3442  VERSION='1.5.1'
3443
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define PACKAGE "$PACKAGE"
3447 _ACEOF
3448
3449
3450 cat >>confdefs.h <<_ACEOF
3451 #define VERSION "$VERSION"
3452 _ACEOF
3453
3454 # Some tools Automake needs.
3455
3456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3457
3458
3459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3460
3461
3462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3463
3464
3465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3466
3467
3468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3469
3470 # We need awk for the "check" target.  The system "awk" is bad on
3471 # some platforms.
3472 # Always define AMTAR for backward compatibility.
3473
3474 AMTAR=${AMTAR-"${am_missing_run}tar"}
3475
3476 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3477
3478
3479
3480
3481
3482 # Check whether --enable-static was given.
3483 if test "${enable_static+set}" = set; then :
3484   enableval=$enable_static; p=${PACKAGE-default}
3485     case $enableval in
3486     yes) enable_static=yes ;;
3487     no) enable_static=no ;;
3488     *)
3489      enable_static=no
3490       # Look at the argument we got.  We use all the common list separators.
3491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3492       for pkg in $enableval; do
3493         IFS="$lt_save_ifs"
3494         if test "X$pkg" = "X$p"; then
3495           enable_static=yes
3496         fi
3497       done
3498       IFS="$lt_save_ifs"
3499       ;;
3500     esac
3501 else
3502   enable_static=no
3503 fi
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513 case `pwd` in
3514   *\ * | *\     *)
3515     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3516 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3517 esac
3518
3519
3520
3521 macro_version='2.2.6b'
3522 macro_revision='1.3017'
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536 ltmain="$ac_aux_dir/ltmain.sh"
3537
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3541
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3543 $as_echo_n "checking build system type... " >&6; }
3544 if test "${ac_cv_build+set}" = set; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_build_alias=$build_alias
3548 test "x$ac_build_alias" = x &&
3549   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3550 test "x$ac_build_alias" = x &&
3551   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3554
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3557 $as_echo "$ac_cv_build" >&6; }
3558 case $ac_cv_build in
3559 *-*-*) ;;
3560 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3561 esac
3562 build=$ac_cv_build
3563 ac_save_IFS=$IFS; IFS='-'
3564 set x $ac_cv_build
3565 shift
3566 build_cpu=$1
3567 build_vendor=$2
3568 shift; shift
3569 # Remember, the first character of IFS is used to create $*,
3570 # except with old shells:
3571 build_os=$*
3572 IFS=$ac_save_IFS
3573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3574
3575
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3577 $as_echo_n "checking host system type... " >&6; }
3578 if test "${ac_cv_host+set}" = set; then :
3579   $as_echo_n "(cached) " >&6
3580 else
3581   if test "x$host_alias" = x; then
3582   ac_cv_host=$ac_cv_build
3583 else
3584   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3585     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3586 fi
3587
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3590 $as_echo "$ac_cv_host" >&6; }
3591 case $ac_cv_host in
3592 *-*-*) ;;
3593 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3594 esac
3595 host=$ac_cv_host
3596 ac_save_IFS=$IFS; IFS='-'
3597 set x $ac_cv_host
3598 shift
3599 host_cpu=$1
3600 host_vendor=$2
3601 shift; shift
3602 # Remember, the first character of IFS is used to create $*,
3603 # except with old shells:
3604 host_os=$*
3605 IFS=$ac_save_IFS
3606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3607
3608
3609 DEPDIR="${am__leading_dot}deps"
3610
3611 ac_config_commands="$ac_config_commands depfiles"
3612
3613
3614 am_make=${MAKE-make}
3615 cat > confinc << 'END'
3616 am__doit:
3617         @echo this is the am__doit target
3618 .PHONY: am__doit
3619 END
3620 # If we don't find an include directive, just comment out the code.
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3622 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3623 am__include="#"
3624 am__quote=
3625 _am_result=none
3626 # First try GNU make style include.
3627 echo "include confinc" > confmf
3628 # Ignore all kinds of additional output from `make'.
3629 case `$am_make -s -f confmf 2> /dev/null` in #(
3630 *the\ am__doit\ target*)
3631   am__include=include
3632   am__quote=
3633   _am_result=GNU
3634   ;;
3635 esac
3636 # Now try BSD make style include.
3637 if test "$am__include" = "#"; then
3638    echo '.include "confinc"' > confmf
3639    case `$am_make -s -f confmf 2> /dev/null` in #(
3640    *the\ am__doit\ target*)
3641      am__include=.include
3642      am__quote="\""
3643      _am_result=BSD
3644      ;;
3645    esac
3646 fi
3647
3648
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3650 $as_echo "$_am_result" >&6; }
3651 rm -f confinc confmf
3652
3653 # Check whether --enable-dependency-tracking was given.
3654 if test "${enable_dependency_tracking+set}" = set; then :
3655   enableval=$enable_dependency_tracking;
3656 fi
3657
3658 if test "x$enable_dependency_tracking" != xno; then
3659   am_depcomp="$ac_aux_dir/depcomp"
3660   AMDEPBACKSLASH='\'
3661 fi
3662  if test "x$enable_dependency_tracking" != xno; then
3663   AMDEP_TRUE=
3664   AMDEP_FALSE='#'
3665 else
3666   AMDEP_TRUE='#'
3667   AMDEP_FALSE=
3668 fi
3669
3670
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 if test -n "$ac_tool_prefix"; then
3677   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_CC+set}" = set; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   if test -n "$CC"; then
3685   ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690   IFS=$as_save_IFS
3691   test -z "$as_dir" && as_dir=.
3692     for ac_exec_ext in '' $ac_executable_extensions; do
3693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696     break 2
3697   fi
3698 done
3699   done
3700 IFS=$as_save_IFS
3701
3702 fi
3703 fi
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3708 else
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3712
3713
3714 fi
3715 if test -z "$ac_cv_prog_CC"; then
3716   ac_ct_CC=$CC
3717   # Extract the first word of "gcc", so it can be a program name with args.
3718 set dummy gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$ac_ct_CC"; then
3725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734     ac_cv_prog_ac_ct_CC="gcc"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3745 if test -n "$ac_ct_CC"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3747 $as_echo "$ac_ct_CC" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753   if test "x$ac_ct_CC" = x; then
3754     CC=""
3755   else
3756     case $cross_compiling:$ac_tool_warned in
3757 yes:)
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762     CC=$ac_ct_CC
3763   fi
3764 else
3765   CC="$ac_cv_prog_CC"
3766 fi
3767
3768 if test -z "$CC"; then
3769           if test -n "$ac_tool_prefix"; then
3770     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}cc; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_CC+set}" = set; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   if test -n "$CC"; then
3778   ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785     for ac_exec_ext in '' $ac_executable_extensions; do
3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787     ac_cv_prog_CC="${ac_tool_prefix}cc"
3788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792   done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3805
3806
3807   fi
3808 fi
3809 if test -z "$CC"; then
3810   # Extract the first word of "cc", so it can be a program name with args.
3811 set dummy cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820   ac_prog_rejected=no
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826     for ac_exec_ext in '' $ac_executable_extensions; do
3827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829        ac_prog_rejected=yes
3830        continue
3831      fi
3832     ac_cv_prog_CC="cc"
3833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834     break 2
3835   fi
3836 done
3837   done
3838 IFS=$as_save_IFS
3839
3840 if test $ac_prog_rejected = yes; then
3841   # We found a bogon in the path, so make sure we never use it.
3842   set dummy $ac_cv_prog_CC
3843   shift
3844   if test $# != 0; then
3845     # We chose a different compiler from the bogus one.
3846     # However, it has the same basename, so the bogon will be chosen
3847     # first if we set CC to just the basename; use the full file name.
3848     shift
3849     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3850   fi
3851 fi
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$CC"; then
3866   if test -n "$ac_tool_prefix"; then
3867   for ac_prog in cl.exe
3868   do
3869     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_CC+set}" = set; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   if test -n "$CC"; then
3877   ac_cv_prog_CC="$CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882   IFS=$as_save_IFS
3883   test -z "$as_dir" && as_dir=.
3884     for ac_exec_ext in '' $ac_executable_extensions; do
3885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888     break 2
3889   fi
3890 done
3891   done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905
3906     test -n "$CC" && break
3907   done
3908 fi
3909 if test -z "$CC"; then
3910   ac_ct_CC=$CC
3911   for ac_prog in cl.exe
3912 do
3913   # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -n "$ac_ct_CC"; then
3921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928     for ac_exec_ext in '' $ac_executable_extensions; do
3929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930     ac_cv_prog_ac_ct_CC="$ac_prog"
3931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935   done
3936 IFS=$as_save_IFS
3937
3938 fi
3939 fi
3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941 if test -n "$ac_ct_CC"; then
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3943 $as_echo "$ac_ct_CC" >&6; }
3944 else
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3948
3949
3950   test -n "$ac_ct_CC" && break
3951 done
3952
3953   if test "x$ac_ct_CC" = x; then
3954     CC=""
3955   else
3956     case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962     CC=$ac_ct_CC
3963   fi
3964 fi
3965
3966 fi
3967
3968
3969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $? "no acceptable C compiler found in \$PATH
3972 See \`config.log' for more details" "$LINENO" 5 ; }
3973
3974 # Provide some information about the compiler.
3975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3976 set X $ac_compile
3977 ac_compiler=$2
3978 for ac_option in --version -v -V -qversion; do
3979   { { ac_try="$ac_compiler $ac_option >&5"
3980 case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987   ac_status=$?
3988   if test -s conftest.err; then
3989     sed '10a\
3990 ... rest of stderr output deleted ...
3991          10q' conftest.err >conftest.er1
3992     cat conftest.er1 >&5
3993   fi
3994   rm -f conftest.er1 conftest.err
3995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996   test $ac_status = 0; }
3997 done
3998
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h.  */
4001
4002 int
4003 main ()
4004 {
4005
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 ac_clean_files_save=$ac_clean_files
4011 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4012 # Try to create an executable without -o first, disregard a.out.
4013 # It will help us diagnose broken compilers, and finding out an intuition
4014 # of exeext.
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4016 $as_echo_n "checking whether the C compiler works... " >&6; }
4017 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4018
4019 # The possible output files:
4020 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4021
4022 ac_rmfiles=
4023 for ac_file in $ac_files
4024 do
4025   case $ac_file in
4026     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4027     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4028   esac
4029 done
4030 rm -f $ac_rmfiles
4031
4032 if { { ac_try="$ac_link_default"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039   (eval "$ac_link_default") 2>&5
4040   ac_status=$?
4041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042   test $ac_status = 0; }; then :
4043   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4045 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4046 # so that the user can short-circuit this test for compilers unknown to
4047 # Autoconf.
4048 for ac_file in $ac_files ''
4049 do
4050   test -f "$ac_file" || continue
4051   case $ac_file in
4052     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4053         ;;
4054     [ab].out )
4055         # We found the default executable, but exeext='' is most
4056         # certainly right.
4057         break;;
4058     *.* )
4059         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4060         then :; else
4061            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062         fi
4063         # We set ac_cv_exeext here because the later test for it is not
4064         # safe: cross compilers may not add the suffix if given an `-o'
4065         # argument, so we may need to know it at that point already.
4066         # Even if this section looks crufty: it has the advantage of
4067         # actually working.
4068         break;;
4069     * )
4070         break;;
4071   esac
4072 done
4073 test "$ac_cv_exeext" = no && ac_cv_exeext=
4074
4075 else
4076   ac_file=''
4077 fi
4078 if test -z "$ac_file"; then :
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 $as_echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error 77 "C compiler cannot create executables
4087 See \`config.log' for more details" "$LINENO" 5 ; }
4088 else
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4095 $as_echo "$ac_file" >&6; }
4096 ac_exeext=$ac_cv_exeext
4097
4098 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4099 ac_clean_files=$ac_clean_files_save
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4101 $as_echo_n "checking for suffix of executables... " >&6; }
4102 if { { ac_try="$ac_link"
4103 case "(($ac_try" in
4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105   *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109   (eval "$ac_link") 2>&5
4110   ac_status=$?
4111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112   test $ac_status = 0; }; then :
4113   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4114 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4115 # work properly (i.e., refer to `conftest.exe'), while it won't with
4116 # `rm'.
4117 for ac_file in conftest.exe conftest conftest.*; do
4118   test -f "$ac_file" || continue
4119   case $ac_file in
4120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4121     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122           break;;
4123     * ) break;;
4124   esac
4125 done
4126 else
4127   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4130 See \`config.log' for more details" "$LINENO" 5 ; }
4131 fi
4132 rm -f conftest conftest$ac_cv_exeext
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4134 $as_echo "$ac_cv_exeext" >&6; }
4135
4136 rm -f conftest.$ac_ext
4137 EXEEXT=$ac_cv_exeext
4138 ac_exeext=$EXEEXT
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h.  */
4141 #include <stdio.h>
4142 int
4143 main ()
4144 {
4145 FILE *f = fopen ("conftest.out", "w");
4146  return ferror (f) || fclose (f) != 0;
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 ac_clean_files="$ac_clean_files conftest.out"
4153 # Check that the compiler produces executables we can run.  If not, either
4154 # the compiler is broken, or we cross compile.
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4156 $as_echo_n "checking whether we are cross compiling... " >&6; }
4157 if test "$cross_compiling" != yes; then
4158   { { ac_try="$ac_link"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164 $as_echo "$ac_try_echo"; } >&5
4165   (eval "$ac_link") 2>&5
4166   ac_status=$?
4167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168   test $ac_status = 0; }
4169   if { ac_try='./conftest$ac_cv_exeext'
4170   { { case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176   (eval "$ac_try") 2>&5
4177   ac_status=$?
4178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179   test $ac_status = 0; }; }; then
4180     cross_compiling=no
4181   else
4182     if test "$cross_compiling" = maybe; then
4183         cross_compiling=yes
4184     else
4185         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 as_fn_error $? "cannot run C compiled programs.
4188 If you meant to cross compile, use \`--host'.
4189 See \`config.log' for more details" "$LINENO" 5 ; }
4190     fi
4191   fi
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4194 $as_echo "$cross_compiling" >&6; }
4195
4196 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4197 ac_clean_files=$ac_clean_files_save
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4199 $as_echo_n "checking for suffix of object files... " >&6; }
4200 if test "${ac_cv_objext+set}" = set; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205
4206 int
4207 main ()
4208 {
4209
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.o conftest.obj
4215 if { { ac_try="$ac_compile"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 $as_echo "$ac_try_echo"; } >&5
4222   (eval "$ac_compile") 2>&5
4223   ac_status=$?
4224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225   test $ac_status = 0; }; then :
4226   for ac_file in conftest.o conftest.obj conftest.*; do
4227   test -f "$ac_file" || continue;
4228   case $ac_file in
4229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4230     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4231        break;;
4232   esac
4233 done
4234 else
4235   $as_echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error $? "cannot compute suffix of object files: cannot compile
4241 See \`config.log' for more details" "$LINENO" 5 ; }
4242 fi
4243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4246 $as_echo "$ac_cv_objext" >&6; }
4247 OBJEXT=$ac_cv_objext
4248 ac_objext=$OBJEXT
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4250 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4251 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256
4257 int
4258 main ()
4259 {
4260 #ifndef __GNUC__
4261        choke me
4262 #endif
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269   ac_compiler_gnu=yes
4270 else
4271   ac_compiler_gnu=no
4272 fi
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4275
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4278 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4279 if test $ac_compiler_gnu = yes; then
4280   GCC=yes
4281 else
4282   GCC=
4283 fi
4284 ac_test_CFLAGS=${CFLAGS+set}
4285 ac_save_CFLAGS=$CFLAGS
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4287 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4288 if test "${ac_cv_prog_cc_g+set}" = set; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   ac_save_c_werror_flag=$ac_c_werror_flag
4292    ac_c_werror_flag=yes
4293    ac_cv_prog_cc_g=no
4294    CFLAGS="-g"
4295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297
4298 int
4299 main ()
4300 {
4301
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307   ac_cv_prog_cc_g=yes
4308 else
4309   CFLAGS=""
4310       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322
4323 else
4324   ac_c_werror_flag=$ac_save_c_werror_flag
4325          CFLAGS="-g"
4326          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h.  */
4328
4329 int
4330 main ()
4331 {
4332
4333   ;
4334   return 0;
4335 }
4336 _ACEOF
4337 if ac_fn_c_try_compile "$LINENO"; then :
4338   ac_cv_prog_cc_g=yes
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345    ac_c_werror_flag=$ac_save_c_werror_flag
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4348 $as_echo "$ac_cv_prog_cc_g" >&6; }
4349 if test "$ac_test_CFLAGS" = set; then
4350   CFLAGS=$ac_save_CFLAGS
4351 elif test $ac_cv_prog_cc_g = yes; then
4352   if test "$GCC" = yes; then
4353     CFLAGS="-g -O2"
4354   else
4355     CFLAGS="-g"
4356   fi
4357 else
4358   if test "$GCC" = yes; then
4359     CFLAGS="-O2"
4360   else
4361     CFLAGS=
4362   fi
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4366 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   ac_cv_prog_cc_c89=no
4370 ac_save_CC=$CC
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373 #include <stdarg.h>
4374 #include <stdio.h>
4375 #include <sys/types.h>
4376 #include <sys/stat.h>
4377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4378 struct buf { int x; };
4379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4380 static char *e (p, i)
4381      char **p;
4382      int i;
4383 {
4384   return p[i];
4385 }
4386 static char *f (char * (*g) (char **, int), char **p, ...)
4387 {
4388   char *s;
4389   va_list v;
4390   va_start (v,p);
4391   s = g (p, va_arg (v,int));
4392   va_end (v);
4393   return s;
4394 }
4395
4396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4397    function prototypes and stuff, but not '\xHH' hex character constants.
4398    These don't provoke an error unfortunately, instead are silently treated
4399    as 'x'.  The following induces an error, until -std is added to get
4400    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4401    array size at least.  It's necessary to write '\x00'==0 to get something
4402    that's true only with -std.  */
4403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4404
4405 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4406    inside strings and character constants.  */
4407 #define FOO(x) 'x'
4408 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4409
4410 int test (int i, double x);
4411 struct s1 {int (*f) (int a);};
4412 struct s2 {int (*f) (double a);};
4413 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4414 int argc;
4415 char **argv;
4416 int
4417 main ()
4418 {
4419 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4425         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4426 do
4427   CC="$ac_save_CC $ac_arg"
4428   if ac_fn_c_try_compile "$LINENO"; then :
4429   ac_cv_prog_cc_c89=$ac_arg
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext
4432   test "x$ac_cv_prog_cc_c89" != "xno" && break
4433 done
4434 rm -f conftest.$ac_ext
4435 CC=$ac_save_CC
4436
4437 fi
4438 # AC_CACHE_VAL
4439 case "x$ac_cv_prog_cc_c89" in
4440   x)
4441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442 $as_echo "none needed" >&6; } ;;
4443   xno)
4444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4445 $as_echo "unsupported" >&6; } ;;
4446   *)
4447     CC="$CC $ac_cv_prog_cc_c89"
4448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4449 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4450 esac
4451 if test "x$ac_cv_prog_cc_c89" != xno; then :
4452
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461 depcc="$CC"   am_compiler_list=
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4464 $as_echo_n "checking dependency style of $depcc... " >&6; }
4465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4469   # We make a subdir and do the tests there.  Otherwise we can end up
4470   # making bogus files that we don't know about and never remove.  For
4471   # instance it was reported that on HP-UX the gcc test will end up
4472   # making a dummy file named `D' -- because `-MD' means `put the output
4473   # in D'.
4474   mkdir conftest.dir
4475   # Copy depcomp to subdir because otherwise we won't find it if we're
4476   # using a relative directory.
4477   cp "$am_depcomp" conftest.dir
4478   cd conftest.dir
4479   # We will build objects and dependencies in a subdirectory because
4480   # it helps to detect inapplicable dependency modes.  For instance
4481   # both Tru64's cc and ICC support -MD to output dependencies as a
4482   # side effect of compilation, but ICC will put the dependencies in
4483   # the current directory while Tru64 will put them in the object
4484   # directory.
4485   mkdir sub
4486
4487   am_cv_CC_dependencies_compiler_type=none
4488   if test "$am_compiler_list" = ""; then
4489      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4490   fi
4491   am__universal=false
4492   case " $depcc " in #(
4493      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4494      esac
4495
4496   for depmode in $am_compiler_list; do
4497     # Setup a source with many dependencies, because some compilers
4498     # like to wrap large dependency lists on column 80 (with \), and
4499     # we should not choose a depcomp mode which is confused by this.
4500     #
4501     # We need to recreate these files for each test, as the compiler may
4502     # overwrite some of them when testing with obscure command lines.
4503     # This happens at least with the AIX C compiler.
4504     : > sub/conftest.c
4505     for i in 1 2 3 4 5 6; do
4506       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4507       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4508       # Solaris 8's {/usr,}/bin/sh.
4509       touch sub/conftst$i.h
4510     done
4511     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4512
4513     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4514     # mode.  It turns out that the SunPro C++ compiler does not properly
4515     # handle `-M -o', and we need to detect this.  Also, some Intel
4516     # versions had trouble with output in subdirs
4517     am__obj=sub/conftest.${OBJEXT-o}
4518     am__minus_obj="-o $am__obj"
4519     case $depmode in
4520     gcc)
4521       # This depmode causes a compiler race in universal mode.
4522       test "$am__universal" = false || continue
4523       ;;
4524     nosideeffect)
4525       # after this tag, mechanisms are not by side-effect, so they'll
4526       # only be used when explicitly requested
4527       if test "x$enable_dependency_tracking" = xyes; then
4528         continue
4529       else
4530         break
4531       fi
4532       ;;
4533     msvisualcpp | msvcmsys)
4534       # This compiler won't grok `-c -o', but also, the minuso test has
4535       # not run yet.  These depmodes are late enough in the game, and
4536       # so weak that their functioning should not be impacted.
4537       am__obj=conftest.${OBJEXT-o}
4538       am__minus_obj=
4539       ;;
4540     none) break ;;
4541     esac
4542     if depmode=$depmode \
4543        source=sub/conftest.c object=$am__obj \
4544        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4545        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4546          >/dev/null 2>conftest.err &&
4547        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4548        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4549        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4550        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4551       # icc doesn't choke on unknown options, it will just issue warnings
4552       # or remarks (even with -Werror).  So we grep stderr for any message
4553       # that says an option was ignored or not supported.
4554       # When given -MP, icc 7.0 and 7.1 complain thusly:
4555       #   icc: Command line warning: ignoring option '-M'; no argument required
4556       # The diagnosis changed in icc 8.0:
4557       #   icc: Command line remark: option '-MP' not supported
4558       if (grep 'ignoring option' conftest.err ||
4559           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4560         am_cv_CC_dependencies_compiler_type=$depmode
4561         break
4562       fi
4563     fi
4564   done
4565
4566   cd ..
4567   rm -rf conftest.dir
4568 else
4569   am_cv_CC_dependencies_compiler_type=none
4570 fi
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4574 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4575 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4576
4577  if
4578   test "x$enable_dependency_tracking" != xno \
4579   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4580   am__fastdepCC_TRUE=
4581   am__fastdepCC_FALSE='#'
4582 else
4583   am__fastdepCC_TRUE='#'
4584   am__fastdepCC_FALSE=
4585 fi
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4589 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4590 if test "${ac_cv_path_SED+set}" = set; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4594      for ac_i in 1 2 3 4 5 6 7; do
4595        ac_script="$ac_script$as_nl$ac_script"
4596      done
4597      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4598      { ac_script=; unset ac_script;}
4599      if test -z "$SED"; then
4600   ac_path_SED_found=false
4601   # Loop through the user's path and test for each of PROGNAME-LIST
4602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607     for ac_prog in sed gsed; do
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4610       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4611 # Check for GNU ac_path_SED and select it if it is found.
4612   # Check for GNU $ac_path_SED
4613 case `"$ac_path_SED" --version 2>&1` in
4614 *GNU*)
4615   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4616 *)
4617   ac_count=0
4618   $as_echo_n 0123456789 >"conftest.in"
4619   while :
4620   do
4621     cat "conftest.in" "conftest.in" >"conftest.tmp"
4622     mv "conftest.tmp" "conftest.in"
4623     cp "conftest.in" "conftest.nl"
4624     $as_echo '' >> "conftest.nl"
4625     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627     as_fn_arith $ac_count + 1 && ac_count=$as_val
4628     if test $ac_count -gt ${ac_path_SED_max-0}; then
4629       # Best one so far, save it but keep looking for a better one
4630       ac_cv_path_SED="$ac_path_SED"
4631       ac_path_SED_max=$ac_count
4632     fi
4633     # 10*(2^10) chars as input seems more than enough
4634     test $ac_count -gt 10 && break
4635   done
4636   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637 esac
4638
4639       $ac_path_SED_found && break 3
4640     done
4641   done
4642   done
4643 IFS=$as_save_IFS
4644   if test -z "$ac_cv_path_SED"; then
4645     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4646   fi
4647 else
4648   ac_cv_path_SED=$SED
4649 fi
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4653 $as_echo "$ac_cv_path_SED" >&6; }
4654  SED="$ac_cv_path_SED"
4655   rm -f conftest.sed
4656
4657 test -z "$SED" && SED=sed
4658 Xsed="$SED -e 1s/^X//"
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672 if test "${ac_cv_path_GREP+set}" = set; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if test -z "$GREP"; then
4676   ac_path_GREP_found=false
4677   # Loop through the user's path and test for each of PROGNAME-LIST
4678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_prog in grep ggrep; do
4684     for ac_exec_ext in '' $ac_executable_extensions; do
4685       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4687 # Check for GNU ac_path_GREP and select it if it is found.
4688   # Check for GNU $ac_path_GREP
4689 case `"$ac_path_GREP" --version 2>&1` in
4690 *GNU*)
4691   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4692 *)
4693   ac_count=0
4694   $as_echo_n 0123456789 >"conftest.in"
4695   while :
4696   do
4697     cat "conftest.in" "conftest.in" >"conftest.tmp"
4698     mv "conftest.tmp" "conftest.in"
4699     cp "conftest.in" "conftest.nl"
4700     $as_echo 'GREP' >> "conftest.nl"
4701     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703     as_fn_arith $ac_count + 1 && ac_count=$as_val
4704     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705       # Best one so far, save it but keep looking for a better one
4706       ac_cv_path_GREP="$ac_path_GREP"
4707       ac_path_GREP_max=$ac_count
4708     fi
4709     # 10*(2^10) chars as input seems more than enough
4710     test $ac_count -gt 10 && break
4711   done
4712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715       $ac_path_GREP_found && break 3
4716     done
4717   done
4718   done
4719 IFS=$as_save_IFS
4720   if test -z "$ac_cv_path_GREP"; then
4721     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722   fi
4723 else
4724   ac_cv_path_GREP=$GREP
4725 fi
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729 $as_echo "$ac_cv_path_GREP" >&6; }
4730  GREP="$ac_cv_path_GREP"
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734 $as_echo_n "checking for egrep... " >&6; }
4735 if test "${ac_cv_path_EGREP+set}" = set; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739    then ac_cv_path_EGREP="$GREP -E"
4740    else
4741      if test -z "$EGREP"; then
4742   ac_path_EGREP_found=false
4743   # Loop through the user's path and test for each of PROGNAME-LIST
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_prog in egrep; do
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4753 # Check for GNU ac_path_EGREP and select it if it is found.
4754   # Check for GNU $ac_path_EGREP
4755 case `"$ac_path_EGREP" --version 2>&1` in
4756 *GNU*)
4757   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4758 *)
4759   ac_count=0
4760   $as_echo_n 0123456789 >"conftest.in"
4761   while :
4762   do
4763     cat "conftest.in" "conftest.in" >"conftest.tmp"
4764     mv "conftest.tmp" "conftest.in"
4765     cp "conftest.in" "conftest.nl"
4766     $as_echo 'EGREP' >> "conftest.nl"
4767     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769     as_fn_arith $ac_count + 1 && ac_count=$as_val
4770     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771       # Best one so far, save it but keep looking for a better one
4772       ac_cv_path_EGREP="$ac_path_EGREP"
4773       ac_path_EGREP_max=$ac_count
4774     fi
4775     # 10*(2^10) chars as input seems more than enough
4776     test $ac_count -gt 10 && break
4777   done
4778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4780
4781       $ac_path_EGREP_found && break 3
4782     done
4783   done
4784   done
4785 IFS=$as_save_IFS
4786   if test -z "$ac_cv_path_EGREP"; then
4787     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788   fi
4789 else
4790   ac_cv_path_EGREP=$EGREP
4791 fi
4792
4793    fi
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796 $as_echo "$ac_cv_path_EGREP" >&6; }
4797  EGREP="$ac_cv_path_EGREP"
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4801 $as_echo_n "checking for fgrep... " >&6; }
4802 if test "${ac_cv_path_FGREP+set}" = set; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4806    then ac_cv_path_FGREP="$GREP -F"
4807    else
4808      if test -z "$FGREP"; then
4809   ac_path_FGREP_found=false
4810   # Loop through the user's path and test for each of PROGNAME-LIST
4811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_prog in fgrep; do
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4819       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4820 # Check for GNU ac_path_FGREP and select it if it is found.
4821   # Check for GNU $ac_path_FGREP
4822 case `"$ac_path_FGREP" --version 2>&1` in
4823 *GNU*)
4824   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4825 *)
4826   ac_count=0
4827   $as_echo_n 0123456789 >"conftest.in"
4828   while :
4829   do
4830     cat "conftest.in" "conftest.in" >"conftest.tmp"
4831     mv "conftest.tmp" "conftest.in"
4832     cp "conftest.in" "conftest.nl"
4833     $as_echo 'FGREP' >> "conftest.nl"
4834     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836     as_fn_arith $ac_count + 1 && ac_count=$as_val
4837     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4838       # Best one so far, save it but keep looking for a better one
4839       ac_cv_path_FGREP="$ac_path_FGREP"
4840       ac_path_FGREP_max=$ac_count
4841     fi
4842     # 10*(2^10) chars as input seems more than enough
4843     test $ac_count -gt 10 && break
4844   done
4845   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 esac
4847
4848       $ac_path_FGREP_found && break 3
4849     done
4850   done
4851   done
4852 IFS=$as_save_IFS
4853   if test -z "$ac_cv_path_FGREP"; then
4854     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855   fi
4856 else
4857   ac_cv_path_FGREP=$FGREP
4858 fi
4859
4860    fi
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4863 $as_echo "$ac_cv_path_FGREP" >&6; }
4864  FGREP="$ac_cv_path_FGREP"
4865
4866
4867 test -z "$GREP" && GREP=grep
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 # Check whether --with-gnu-ld was given.
4888 if test "${with_gnu_ld+set}" = set; then :
4889   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4890 else
4891   with_gnu_ld=no
4892 fi
4893
4894 ac_prog=ld
4895 if test "$GCC" = yes; then
4896   # Check if gcc -print-prog-name=ld gives a path.
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4898 $as_echo_n "checking for ld used by $CC... " >&6; }
4899   case $host in
4900   *-*-mingw*)
4901     # gcc leaves a trailing carriage return which upsets mingw
4902     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4903   *)
4904     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4905   esac
4906   case $ac_prog in
4907     # Accept absolute paths.
4908     [\\/]* | ?:[\\/]*)
4909       re_direlt='/[^/][^/]*/\.\./'
4910       # Canonicalize the pathname of ld
4911       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4912       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4913         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4914       done
4915       test -z "$LD" && LD="$ac_prog"
4916       ;;
4917   "")
4918     # If it fails, then pretend we aren't using GCC.
4919     ac_prog=ld
4920     ;;
4921   *)
4922     # If it is relative, then search for the first ld in PATH.
4923     with_gnu_ld=unknown
4924     ;;
4925   esac
4926 elif test "$with_gnu_ld" = yes; then
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4928 $as_echo_n "checking for GNU ld... " >&6; }
4929 else
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4931 $as_echo_n "checking for non-GNU ld... " >&6; }
4932 fi
4933 if test "${lt_cv_path_LD+set}" = set; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   if test -z "$LD"; then
4937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938   for ac_dir in $PATH; do
4939     IFS="$lt_save_ifs"
4940     test -z "$ac_dir" && ac_dir=.
4941     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4942       lt_cv_path_LD="$ac_dir/$ac_prog"
4943       # Check to see if the program is GNU ld.  I'd rather use --version,
4944       # but apparently some variants of GNU ld only accept -v.
4945       # Break only if it was the GNU/non-GNU ld that we prefer.
4946       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4947       *GNU* | *'with BFD'*)
4948         test "$with_gnu_ld" != no && break
4949         ;;
4950       *)
4951         test "$with_gnu_ld" != yes && break
4952         ;;
4953       esac
4954     fi
4955   done
4956   IFS="$lt_save_ifs"
4957 else
4958   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4959 fi
4960 fi
4961
4962 LD="$lt_cv_path_LD"
4963 if test -n "$LD"; then
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4965 $as_echo "$LD" >&6; }
4966 else
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4973 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4977 case `$LD -v 2>&1 </dev/null` in
4978 *GNU* | *'with BFD'*)
4979   lt_cv_prog_gnu_ld=yes
4980   ;;
4981 *)
4982   lt_cv_prog_gnu_ld=no
4983   ;;
4984 esac
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4987 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4988 with_gnu_ld=$lt_cv_prog_gnu_ld
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4999 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5000 if test "${lt_cv_path_NM+set}" = set; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003   if test -n "$NM"; then
5004   # Let the user override the test.
5005   lt_cv_path_NM="$NM"
5006 else
5007   lt_nm_to_check="${ac_tool_prefix}nm"
5008   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5009     lt_nm_to_check="$lt_nm_to_check nm"
5010   fi
5011   for lt_tmp_nm in $lt_nm_to_check; do
5012     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5013     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5014       IFS="$lt_save_ifs"
5015       test -z "$ac_dir" && ac_dir=.
5016       tmp_nm="$ac_dir/$lt_tmp_nm"
5017       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5018         # Check to see if the nm accepts a BSD-compat flag.
5019         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5020         #   nm: unknown option "B" ignored
5021         # Tru64's nm complains that /dev/null is an invalid object file
5022         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5023         */dev/null* | *'Invalid file or object type'*)
5024           lt_cv_path_NM="$tmp_nm -B"
5025           break
5026           ;;
5027         *)
5028           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5029           */dev/null*)
5030             lt_cv_path_NM="$tmp_nm -p"
5031             break
5032             ;;
5033           *)
5034             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5035             continue # so that we can try to find one that supports BSD flags
5036             ;;
5037           esac
5038           ;;
5039         esac
5040       fi
5041     done
5042     IFS="$lt_save_ifs"
5043   done
5044   : ${lt_cv_path_NM=no}
5045 fi
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5048 $as_echo "$lt_cv_path_NM" >&6; }
5049 if test "$lt_cv_path_NM" != "no"; then
5050   NM="$lt_cv_path_NM"
5051 else
5052   # Didn't find any BSD compatible name lister, look for dumpbin.
5053   if test -n "$ac_tool_prefix"; then
5054   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5055   do
5056     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   if test -n "$DUMPBIN"; then
5064   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078   done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 DUMPBIN=$ac_cv_prog_DUMPBIN
5084 if test -n "$DUMPBIN"; then
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5086 $as_echo "$DUMPBIN" >&6; }
5087 else
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091
5092
5093     test -n "$DUMPBIN" && break
5094   done
5095 fi
5096 if test -z "$DUMPBIN"; then
5097   ac_ct_DUMPBIN=$DUMPBIN
5098   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5099 do
5100   # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107   if test -n "$ac_ct_DUMPBIN"; then
5108   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115     for ac_exec_ext in '' $ac_executable_extensions; do
5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122   done
5123 IFS=$as_save_IFS
5124
5125 fi
5126 fi
5127 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5128 if test -n "$ac_ct_DUMPBIN"; then
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5130 $as_echo "$ac_ct_DUMPBIN" >&6; }
5131 else
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137   test -n "$ac_ct_DUMPBIN" && break
5138 done
5139
5140   if test "x$ac_ct_DUMPBIN" = x; then
5141     DUMPBIN=":"
5142   else
5143     case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149     DUMPBIN=$ac_ct_DUMPBIN
5150   fi
5151 fi
5152
5153
5154   if test "$DUMPBIN" != ":"; then
5155     NM="$DUMPBIN"
5156   fi
5157 fi
5158 test -z "$NM" && NM=nm
5159
5160
5161
5162
5163
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5166 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5167 if test "${lt_cv_nm_interface+set}" = set; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   lt_cv_nm_interface="BSD nm"
5171   echo "int some_variable = 0;" > conftest.$ac_ext
5172   (eval echo "\"\$as_me:5172: $ac_compile\"" >&5)
5173   (eval "$ac_compile" 2>conftest.err)
5174   cat conftest.err >&5
5175   (eval echo "\"\$as_me:5175: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5176   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5177   cat conftest.err >&5
5178   (eval echo "\"\$as_me:5178: output\"" >&5)
5179   cat conftest.out >&5
5180   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5181     lt_cv_nm_interface="MS dumpbin"
5182   fi
5183   rm -f conftest*
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5186 $as_echo "$lt_cv_nm_interface" >&6; }
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5189 $as_echo_n "checking whether ln -s works... " >&6; }
5190 LN_S=$as_ln_s
5191 if test "$LN_S" = "ln -s"; then
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5194 else
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5196 $as_echo "no, using $LN_S" >&6; }
5197 fi
5198
5199 # find the maximum length of command line arguments
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5201 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205     i=0
5206   teststring="ABCD"
5207
5208   case $build_os in
5209   msdosdjgpp*)
5210     # On DJGPP, this test can blow up pretty badly due to problems in libc
5211     # (any single argument exceeding 2000 bytes causes a buffer overrun
5212     # during glob expansion).  Even if it were fixed, the result of this
5213     # check would be larger than it should be.
5214     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5215     ;;
5216
5217   gnu*)
5218     # Under GNU Hurd, this test is not required because there is
5219     # no limit to the length of command line arguments.
5220     # Libtool will interpret -1 as no limit whatsoever
5221     lt_cv_sys_max_cmd_len=-1;
5222     ;;
5223
5224   cygwin* | mingw* | cegcc*)
5225     # On Win9x/ME, this test blows up -- it succeeds, but takes
5226     # about 5 minutes as the teststring grows exponentially.
5227     # Worse, since 9x/ME are not pre-emptively multitasking,
5228     # you end up with a "frozen" computer, even though with patience
5229     # the test eventually succeeds (with a max line length of 256k).
5230     # Instead, let's just punt: use the minimum linelength reported by
5231     # all of the supported platforms: 8192 (on NT/2K/XP).
5232     lt_cv_sys_max_cmd_len=8192;
5233     ;;
5234
5235   amigaos*)
5236     # On AmigaOS with pdksh, this test takes hours, literally.
5237     # So we just punt and use a minimum line length of 8192.
5238     lt_cv_sys_max_cmd_len=8192;
5239     ;;
5240
5241   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5242     # This has been around since 386BSD, at least.  Likely further.
5243     if test -x /sbin/sysctl; then
5244       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5245     elif test -x /usr/sbin/sysctl; then
5246       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5247     else
5248       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5249     fi
5250     # And add a safety zone
5251     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5252     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5253     ;;
5254
5255   interix*)
5256     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5257     lt_cv_sys_max_cmd_len=196608
5258     ;;
5259
5260   osf*)
5261     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5262     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5263     # nice to cause kernel panics so lets avoid the loop below.
5264     # First set a reasonable default.
5265     lt_cv_sys_max_cmd_len=16384
5266     #
5267     if test -x /sbin/sysconfig; then
5268       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5269         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5270       esac
5271     fi
5272     ;;
5273   sco3.2v5*)
5274     lt_cv_sys_max_cmd_len=102400
5275     ;;
5276   sysv5* | sco5v6* | sysv4.2uw2*)
5277     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5278     if test -n "$kargmax"; then
5279       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5280     else
5281       lt_cv_sys_max_cmd_len=32768
5282     fi
5283     ;;
5284   *)
5285     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5286     if test -n "$lt_cv_sys_max_cmd_len"; then
5287       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5288       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5289     else
5290       # Make teststring a little bigger before we do anything with it.
5291       # a 1K string should be a reasonable start.
5292       for i in 1 2 3 4 5 6 7 8 ; do
5293         teststring=$teststring$teststring
5294       done
5295       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5296       # If test is not a shell built-in, we'll probably end up computing a
5297       # maximum length that is only half of the actual maximum length, but
5298       # we can't tell.
5299       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5300                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5301               test $i != 17 # 1/2 MB should be enough
5302       do
5303         i=`expr $i + 1`
5304         teststring=$teststring$teststring
5305       done
5306       # Only check the string length outside the loop.
5307       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5308       teststring=
5309       # Add a significant safety factor because C++ compilers can tack on
5310       # massive amounts of additional arguments before passing them to the
5311       # linker.  It appears as though 1/2 is a usable value.
5312       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5313     fi
5314     ;;
5315   esac
5316
5317 fi
5318
5319 if test -n $lt_cv_sys_max_cmd_len ; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5321 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5324 $as_echo "none" >&6; }
5325 fi
5326 max_cmd_len=$lt_cv_sys_max_cmd_len
5327
5328
5329
5330
5331
5332
5333 : ${CP="cp -f"}
5334 : ${MV="mv -f"}
5335 : ${RM="rm -f"}
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5338 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5339 # Try some XSI features
5340 xsi_shell=no
5341 ( _lt_dummy="a/b/c"
5342   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5343       = c,a/b,, \
5344     && eval 'test $(( 1 + 1 )) -eq 2 \
5345     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5346   && xsi_shell=yes
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5348 $as_echo "$xsi_shell" >&6; }
5349
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5352 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5353 lt_shell_append=no
5354 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5355     >/dev/null 2>&1 \
5356   && lt_shell_append=yes
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5358 $as_echo "$lt_shell_append" >&6; }
5359
5360
5361 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5362   lt_unset=unset
5363 else
5364   lt_unset=false
5365 fi
5366
5367
5368
5369
5370
5371 # test EBCDIC or ASCII
5372 case `echo X|tr X '\101'` in
5373  A) # ASCII based system
5374     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5375   lt_SP2NL='tr \040 \012'
5376   lt_NL2SP='tr \015\012 \040\040'
5377   ;;
5378  *) # EBCDIC based system
5379   lt_SP2NL='tr \100 \n'
5380   lt_NL2SP='tr \r\n \100\100'
5381   ;;
5382 esac
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5393 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5394 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   lt_cv_ld_reload_flag='-r'
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5400 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5401 reload_flag=$lt_cv_ld_reload_flag
5402 case $reload_flag in
5403 "" | " "*) ;;
5404 *) reload_flag=" $reload_flag" ;;
5405 esac
5406 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5407 case $host_os in
5408   darwin*)
5409     if test "$GCC" = yes; then
5410       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5411     else
5412       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5413     fi
5414     ;;
5415 esac
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 if test -n "$ac_tool_prefix"; then
5426   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if test -n "$OBJDUMP"; then
5434   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 OBJDUMP=$ac_cv_prog_OBJDUMP
5454 if test -n "$OBJDUMP"; then
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5456 $as_echo "$OBJDUMP" >&6; }
5457 else
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462
5463 fi
5464 if test -z "$ac_cv_prog_OBJDUMP"; then
5465   ac_ct_OBJDUMP=$OBJDUMP
5466   # Extract the first word of "objdump", so it can be a program name with args.
5467 set dummy objdump; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   if test -n "$ac_ct_OBJDUMP"; then
5474   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488   done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5494 if test -n "$ac_ct_OBJDUMP"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5496 $as_echo "$ac_ct_OBJDUMP" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502   if test "x$ac_ct_OBJDUMP" = x; then
5503     OBJDUMP="false"
5504   else
5505     case $cross_compiling:$ac_tool_warned in
5506 yes:)
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509 ac_tool_warned=yes ;;
5510 esac
5511     OBJDUMP=$ac_ct_OBJDUMP
5512   fi
5513 else
5514   OBJDUMP="$ac_cv_prog_OBJDUMP"
5515 fi
5516
5517 test -z "$OBJDUMP" && OBJDUMP=objdump
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5528 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5529 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   lt_cv_file_magic_cmd='$MAGIC_CMD'
5533 lt_cv_file_magic_test_file=
5534 lt_cv_deplibs_check_method='unknown'
5535 # Need to set the preceding variable on all platforms that support
5536 # interlibrary dependencies.
5537 # 'none' -- dependencies not supported.
5538 # `unknown' -- same as none, but documents that we really don't know.
5539 # 'pass_all' -- all dependencies passed with no checks.
5540 # 'test_compile' -- check by making test program.
5541 # 'file_magic [[regex]]' -- check by looking for files in library path
5542 # which responds to the $file_magic_cmd with a given extended regex.
5543 # If you have `file' or equivalent on your system and you're not sure
5544 # whether `pass_all' will *always* work, you probably want this one.
5545
5546 case $host_os in
5547 aix[4-9]*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 beos*)
5552   lt_cv_deplibs_check_method=pass_all
5553   ;;
5554
5555 bsdi[45]*)
5556   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5557   lt_cv_file_magic_cmd='/usr/bin/file -L'
5558   lt_cv_file_magic_test_file=/shlib/libc.so
5559   ;;
5560
5561 cygwin*)
5562   # func_win32_libid is a shell function defined in ltmain.sh
5563   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564   lt_cv_file_magic_cmd='func_win32_libid'
5565   ;;
5566
5567 mingw* | pw32*)
5568   # Base MSYS/MinGW do not provide the 'file' command needed by
5569   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5570   # unless we find 'file', for example because we are cross-compiling.
5571   if ( file / ) >/dev/null 2>&1; then
5572     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5573     lt_cv_file_magic_cmd='func_win32_libid'
5574   else
5575     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5576     lt_cv_file_magic_cmd='$OBJDUMP -f'
5577   fi
5578   ;;
5579
5580 cegcc)
5581   # use the weaker test based on 'objdump'. See mingw*.
5582   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5583   lt_cv_file_magic_cmd='$OBJDUMP -f'
5584   ;;
5585
5586 darwin* | rhapsody*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 freebsd* | dragonfly*)
5591   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5592     case $host_cpu in
5593     i*86 )
5594       # Not sure whether the presence of OpenBSD here was a mistake.
5595       # Let's accept both of them until this is cleared up.
5596       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5597       lt_cv_file_magic_cmd=/usr/bin/file
5598       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5599       ;;
5600     esac
5601   else
5602     lt_cv_deplibs_check_method=pass_all
5603   fi
5604   ;;
5605
5606 gnu*)
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 hpux10.20* | hpux11*)
5611   lt_cv_file_magic_cmd=/usr/bin/file
5612   case $host_cpu in
5613   ia64*)
5614     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5615     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5616     ;;
5617   hppa*64*)
5618     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5619     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5620     ;;
5621   *)
5622     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5623     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5624     ;;
5625   esac
5626   ;;
5627
5628 interix[3-9]*)
5629   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5630   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5631   ;;
5632
5633 irix5* | irix6* | nonstopux*)
5634   case $LD in
5635   *-32|*"-32 ") libmagic=32-bit;;
5636   *-n32|*"-n32 ") libmagic=N32;;
5637   *-64|*"-64 ") libmagic=64-bit;;
5638   *) libmagic=never-match;;
5639   esac
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 # This must be Linux ELF.
5644 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5645   lt_cv_deplibs_check_method=pass_all
5646   ;;
5647
5648 netbsd* | netbsdelf*-gnu)
5649   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651   else
5652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5653   fi
5654   ;;
5655
5656 newos6*)
5657   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5658   lt_cv_file_magic_cmd=/usr/bin/file
5659   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5660   ;;
5661
5662 *nto* | *qnx*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 openbsd*)
5667   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5668     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5669   else
5670     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5671   fi
5672   ;;
5673
5674 osf3* | osf4* | osf5*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677
5678 rdos*)
5679   lt_cv_deplibs_check_method=pass_all
5680   ;;
5681
5682 solaris*)
5683   lt_cv_deplibs_check_method=pass_all
5684   ;;
5685
5686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689
5690 sysv4 | sysv4.3*)
5691   case $host_vendor in
5692   motorola)
5693     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]'
5694     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5695     ;;
5696   ncr)
5697     lt_cv_deplibs_check_method=pass_all
5698     ;;
5699   sequent)
5700     lt_cv_file_magic_cmd='/bin/file'
5701     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5702     ;;
5703   sni)
5704     lt_cv_file_magic_cmd='/bin/file'
5705     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5706     lt_cv_file_magic_test_file=/lib/libc.so
5707     ;;
5708   siemens)
5709     lt_cv_deplibs_check_method=pass_all
5710     ;;
5711   pc)
5712     lt_cv_deplibs_check_method=pass_all
5713     ;;
5714   esac
5715   ;;
5716
5717 tpf*)
5718   lt_cv_deplibs_check_method=pass_all
5719   ;;
5720 esac
5721
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5724 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5725 file_magic_cmd=$lt_cv_file_magic_cmd
5726 deplibs_check_method=$lt_cv_deplibs_check_method
5727 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 if test -n "$ac_tool_prefix"; then
5741   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}ar; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if test "${ac_cv_prog_AR+set}" = set; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$AR"; then
5749   ac_cv_prog_AR="$AR" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758     ac_cv_prog_AR="${ac_tool_prefix}ar"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 AR=$ac_cv_prog_AR
5769 if test -n "$AR"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5771 $as_echo "$AR" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778 fi
5779 if test -z "$ac_cv_prog_AR"; then
5780   ac_ct_AR=$AR
5781   # Extract the first word of "ar", so it can be a program name with args.
5782 set dummy ar; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   if test -n "$ac_ct_AR"; then
5789   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796     for ac_exec_ext in '' $ac_executable_extensions; do
5797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798     ac_cv_prog_ac_ct_AR="ar"
5799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803   done
5804 IFS=$as_save_IFS
5805
5806 fi
5807 fi
5808 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5809 if test -n "$ac_ct_AR"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5811 $as_echo "$ac_ct_AR" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817   if test "x$ac_ct_AR" = x; then
5818     AR="false"
5819   else
5820     case $cross_compiling:$ac_tool_warned in
5821 yes:)
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5825 esac
5826     AR=$ac_ct_AR
5827   fi
5828 else
5829   AR="$ac_cv_prog_AR"
5830 fi
5831
5832 test -z "$AR" && AR=ar
5833 test -z "$AR_FLAGS" && AR_FLAGS=cru
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 if test -n "$ac_tool_prefix"; then
5846   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}strip; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_STRIP+set}" = set; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   if test -n "$STRIP"; then
5854   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861     for ac_exec_ext in '' $ac_executable_extensions; do
5862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868   done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 STRIP=$ac_cv_prog_STRIP
5874 if test -n "$STRIP"; then
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5876 $as_echo "$STRIP" >&6; }
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_STRIP"; then
5885   ac_ct_STRIP=$STRIP
5886   # Extract the first word of "strip", so it can be a program name with args.
5887 set dummy strip; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -n "$ac_ct_STRIP"; then
5894   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901     for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_prog_ac_ct_STRIP="strip"
5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908   done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5914 if test -n "$ac_ct_STRIP"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5916 $as_echo "$ac_ct_STRIP" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922   if test "x$ac_ct_STRIP" = x; then
5923     STRIP=":"
5924   else
5925     case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931     STRIP=$ac_ct_STRIP
5932   fi
5933 else
5934   STRIP="$ac_cv_prog_STRIP"
5935 fi
5936
5937 test -z "$STRIP" && STRIP=:
5938
5939
5940
5941
5942
5943
5944 if test -n "$ac_tool_prefix"; then
5945   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if test -n "$RANLIB"; then
5953   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960     for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967   done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 RANLIB=$ac_cv_prog_RANLIB
5973 if test -n "$RANLIB"; then
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5975 $as_echo "$RANLIB" >&6; }
5976 else
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981
5982 fi
5983 if test -z "$ac_cv_prog_RANLIB"; then
5984   ac_ct_RANLIB=$RANLIB
5985   # Extract the first word of "ranlib", so it can be a program name with args.
5986 set dummy ranlib; ac_word=$2
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5990   $as_echo_n "(cached) " >&6
5991 else
5992   if test -n "$ac_ct_RANLIB"; then
5993   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000     for ac_exec_ext in '' $ac_executable_extensions; do
6001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002     ac_cv_prog_ac_ct_RANLIB="ranlib"
6003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007   done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6013 if test -n "$ac_ct_RANLIB"; then
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6015 $as_echo "$ac_ct_RANLIB" >&6; }
6016 else
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020
6021   if test "x$ac_ct_RANLIB" = x; then
6022     RANLIB=":"
6023   else
6024     case $cross_compiling:$ac_tool_warned in
6025 yes:)
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028 ac_tool_warned=yes ;;
6029 esac
6030     RANLIB=$ac_ct_RANLIB
6031   fi
6032 else
6033   RANLIB="$ac_cv_prog_RANLIB"
6034 fi
6035
6036 test -z "$RANLIB" && RANLIB=:
6037
6038
6039
6040
6041
6042
6043 # Determine commands to create old-style static archives.
6044 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6045 old_postinstall_cmds='chmod 644 $oldlib'
6046 old_postuninstall_cmds=
6047
6048 if test -n "$RANLIB"; then
6049   case $host_os in
6050   openbsd*)
6051     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6052     ;;
6053   *)
6054     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6055     ;;
6056   esac
6057   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6058 fi
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 # If no C compiler was specified, use CC.
6094 LTCC=${LTCC-"$CC"}
6095
6096 # If no C compiler flags were specified, use CFLAGS.
6097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6098
6099 # Allow CC to be a program name with arguments.
6100 compiler=$CC
6101
6102
6103 # Check for command to grab the raw symbol name followed by C symbol from nm.
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6105 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6106 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6107   $as_echo_n "(cached) " >&6
6108 else
6109
6110 # These are sane defaults that work on at least a few old systems.
6111 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6112
6113 # Character class describing NM global symbol codes.
6114 symcode='[BCDEGRST]'
6115
6116 # Regexp to match symbols that can be accessed directly from C.
6117 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6118
6119 # Define system-specific variables.
6120 case $host_os in
6121 aix*)
6122   symcode='[BCDT]'
6123   ;;
6124 cygwin* | mingw* | pw32* | cegcc*)
6125   symcode='[ABCDGISTW]'
6126   ;;
6127 hpux*)
6128   if test "$host_cpu" = ia64; then
6129     symcode='[ABCDEGRST]'
6130   fi
6131   ;;
6132 irix* | nonstopux*)
6133   symcode='[BCDEGRST]'
6134   ;;
6135 osf*)
6136   symcode='[BCDEGQRST]'
6137   ;;
6138 solaris*)
6139   symcode='[BDRT]'
6140   ;;
6141 sco3.2v5*)
6142   symcode='[DT]'
6143   ;;
6144 sysv4.2uw2*)
6145   symcode='[DT]'
6146   ;;
6147 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6148   symcode='[ABDT]'
6149   ;;
6150 sysv4)
6151   symcode='[DFNSTU]'
6152   ;;
6153 esac
6154
6155 # If we're using GNU nm, then use its standard symbol codes.
6156 case `$NM -V 2>&1` in
6157 *GNU* | *'with BFD'*)
6158   symcode='[ABCDGIRSTW]' ;;
6159 esac
6160
6161 # Transform an extracted symbol line into a proper C declaration.
6162 # Some systems (esp. on ia64) link data and code symbols differently,
6163 # so use this general approach.
6164 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6165
6166 # Transform an extracted symbol line into symbol name and symbol address
6167 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6168 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'"
6169
6170 # Handle CRLF in mingw tool chain
6171 opt_cr=
6172 case $build_os in
6173 mingw*)
6174   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6175   ;;
6176 esac
6177
6178 # Try without a prefix underscore, then with it.
6179 for ac_symprfx in "" "_"; do
6180
6181   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6182   symxfrm="\\1 $ac_symprfx\\2 \\2"
6183
6184   # Write the raw and C identifiers.
6185   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6186     # Fake it for dumpbin and say T for any non-static function
6187     # and D for any global variable.
6188     # Also find C++ and __fastcall symbols from MSVC++,
6189     # which start with @ or ?.
6190     lt_cv_sys_global_symbol_pipe="$AWK '"\
6191 "     {last_section=section; section=\$ 3};"\
6192 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6193 "     \$ 0!~/External *\|/{next};"\
6194 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6195 "     {if(hide[section]) next};"\
6196 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6197 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6198 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6199 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6200 "     ' prfx=^$ac_symprfx"
6201   else
6202     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6203   fi
6204
6205   # Check to see that the pipe works correctly.
6206   pipe_works=no
6207
6208   rm -f conftest*
6209   cat > conftest.$ac_ext <<_LT_EOF
6210 #ifdef __cplusplus
6211 extern "C" {
6212 #endif
6213 char nm_test_var;
6214 void nm_test_func(void);
6215 void nm_test_func(void){}
6216 #ifdef __cplusplus
6217 }
6218 #endif
6219 int main(){nm_test_var='a';nm_test_func();return(0);}
6220 _LT_EOF
6221
6222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223   (eval $ac_compile) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; }; then
6227     # Now try to grab the symbols.
6228     nlist=conftest.nm
6229     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6230   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6231   ac_status=$?
6232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233   test $ac_status = 0; } && test -s "$nlist"; then
6234       # Try sorting and uniquifying the output.
6235       if sort "$nlist" | uniq > "$nlist"T; then
6236         mv -f "$nlist"T "$nlist"
6237       else
6238         rm -f "$nlist"T
6239       fi
6240
6241       # Make sure that we snagged all the symbols we need.
6242       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6243         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6244           cat <<_LT_EOF > conftest.$ac_ext
6245 #ifdef __cplusplus
6246 extern "C" {
6247 #endif
6248
6249 _LT_EOF
6250           # Now generate the symbol file.
6251           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6252
6253           cat <<_LT_EOF >> conftest.$ac_ext
6254
6255 /* The mapping between symbol names and symbols.  */
6256 const struct {
6257   const char *name;
6258   void       *address;
6259 }
6260 lt__PROGRAM__LTX_preloaded_symbols[] =
6261 {
6262   { "@PROGRAM@", (void *) 0 },
6263 _LT_EOF
6264           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6265           cat <<\_LT_EOF >> conftest.$ac_ext
6266   {0, (void *) 0}
6267 };
6268
6269 /* This works around a problem in FreeBSD linker */
6270 #ifdef FREEBSD_WORKAROUND
6271 static const void *lt_preloaded_setup() {
6272   return lt__PROGRAM__LTX_preloaded_symbols;
6273 }
6274 #endif
6275
6276 #ifdef __cplusplus
6277 }
6278 #endif
6279 _LT_EOF
6280           # Now try linking the two files.
6281           mv conftest.$ac_objext conftstm.$ac_objext
6282           lt_save_LIBS="$LIBS"
6283           lt_save_CFLAGS="$CFLAGS"
6284           LIBS="conftstm.$ac_objext"
6285           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6286           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6287   (eval $ac_link) 2>&5
6288   ac_status=$?
6289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6291             pipe_works=yes
6292           fi
6293           LIBS="$lt_save_LIBS"
6294           CFLAGS="$lt_save_CFLAGS"
6295         else
6296           echo "cannot find nm_test_func in $nlist" >&5
6297         fi
6298       else
6299         echo "cannot find nm_test_var in $nlist" >&5
6300       fi
6301     else
6302       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6303     fi
6304   else
6305     echo "$progname: failed program was:" >&5
6306     cat conftest.$ac_ext >&5
6307   fi
6308   rm -rf conftest* conftst*
6309
6310   # Do not use the global_symbol_pipe unless it works.
6311   if test "$pipe_works" = yes; then
6312     break
6313   else
6314     lt_cv_sys_global_symbol_pipe=
6315   fi
6316 done
6317
6318 fi
6319
6320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6321   lt_cv_sys_global_symbol_to_cdecl=
6322 fi
6323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6325 $as_echo "failed" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6328 $as_echo "ok" >&6; }
6329 fi
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 # Check whether --enable-libtool-lock was given.
6354 if test "${enable_libtool_lock+set}" = set; then :
6355   enableval=$enable_libtool_lock;
6356 fi
6357
6358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6359
6360 # Some flags need to be propagated to the compiler or linker for good
6361 # libtool support.
6362 case $host in
6363 ia64-*-hpux*)
6364   # Find out which ABI we are using.
6365   echo 'int i;' > conftest.$ac_ext
6366   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6367   (eval $ac_compile) 2>&5
6368   ac_status=$?
6369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370   test $ac_status = 0; }; then
6371     case `/usr/bin/file conftest.$ac_objext` in
6372       *ELF-32*)
6373         HPUX_IA64_MODE="32"
6374         ;;
6375       *ELF-64*)
6376         HPUX_IA64_MODE="64"
6377         ;;
6378     esac
6379   fi
6380   rm -rf conftest*
6381   ;;
6382 *-*-irix6*)
6383   # Find out which ABI we are using.
6384   echo '#line 6384 "configure"' > conftest.$ac_ext
6385   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386   (eval $ac_compile) 2>&5
6387   ac_status=$?
6388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389   test $ac_status = 0; }; then
6390     if test "$lt_cv_prog_gnu_ld" = yes; then
6391       case `/usr/bin/file conftest.$ac_objext` in
6392         *32-bit*)
6393           LD="${LD-ld} -melf32bsmip"
6394           ;;
6395         *N32*)
6396           LD="${LD-ld} -melf32bmipn32"
6397           ;;
6398         *64-bit*)
6399           LD="${LD-ld} -melf64bmip"
6400         ;;
6401       esac
6402     else
6403       case `/usr/bin/file conftest.$ac_objext` in
6404         *32-bit*)
6405           LD="${LD-ld} -32"
6406           ;;
6407         *N32*)
6408           LD="${LD-ld} -n32"
6409           ;;
6410         *64-bit*)
6411           LD="${LD-ld} -64"
6412           ;;
6413       esac
6414     fi
6415   fi
6416   rm -rf conftest*
6417   ;;
6418
6419 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6420 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6421   # Find out which ABI we are using.
6422   echo 'int i;' > conftest.$ac_ext
6423   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6424   (eval $ac_compile) 2>&5
6425   ac_status=$?
6426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427   test $ac_status = 0; }; then
6428     case `/usr/bin/file conftest.o` in
6429       *32-bit*)
6430         case $host in
6431           x86_64-*kfreebsd*-gnu)
6432             LD="${LD-ld} -m elf_i386_fbsd"
6433             ;;
6434           x86_64-*linux*)
6435             LD="${LD-ld} -m elf_i386"
6436             ;;
6437           ppc64-*linux*|powerpc64-*linux*)
6438             LD="${LD-ld} -m elf32ppclinux"
6439             ;;
6440           s390x-*linux*)
6441             LD="${LD-ld} -m elf_s390"
6442             ;;
6443           sparc64-*linux*)
6444             LD="${LD-ld} -m elf32_sparc"
6445             ;;
6446         esac
6447         ;;
6448       *64-bit*)
6449         case $host in
6450           x86_64-*kfreebsd*-gnu)
6451             LD="${LD-ld} -m elf_x86_64_fbsd"
6452             ;;
6453           x86_64-*linux*)
6454             LD="${LD-ld} -m elf_x86_64"
6455             ;;
6456           ppc*-*linux*|powerpc*-*linux*)
6457             LD="${LD-ld} -m elf64ppc"
6458             ;;
6459           s390*-*linux*|s390*-*tpf*)
6460             LD="${LD-ld} -m elf64_s390"
6461             ;;
6462           sparc*-*linux*)
6463             LD="${LD-ld} -m elf64_sparc"
6464             ;;
6465         esac
6466         ;;
6467     esac
6468   fi
6469   rm -rf conftest*
6470   ;;
6471
6472 *-*-sco3.2v5*)
6473   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6474   SAVE_CFLAGS="$CFLAGS"
6475   CFLAGS="$CFLAGS -belf"
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6477 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6478 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   ac_ext=c
6482 ac_cpp='$CPP $CPPFLAGS'
6483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6486
6487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h.  */
6489
6490 int
6491 main ()
6492 {
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 if ac_fn_c_try_link "$LINENO"; then :
6499   lt_cv_cc_needs_belf=yes
6500 else
6501   lt_cv_cc_needs_belf=no
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext \
6504     conftest$ac_exeext conftest.$ac_ext
6505      ac_ext=c
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510
6511 fi
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6513 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6514   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6515     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6516     CFLAGS="$SAVE_CFLAGS"
6517   fi
6518   ;;
6519 sparc*-*solaris*)
6520   # Find out which ABI we are using.
6521   echo 'int i;' > conftest.$ac_ext
6522   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523   (eval $ac_compile) 2>&5
6524   ac_status=$?
6525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526   test $ac_status = 0; }; then
6527     case `/usr/bin/file conftest.o` in
6528     *64-bit*)
6529       case $lt_cv_prog_gnu_ld in
6530       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6531       *)
6532         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6533           LD="${LD-ld} -64"
6534         fi
6535         ;;
6536       esac
6537       ;;
6538     esac
6539   fi
6540   rm -rf conftest*
6541   ;;
6542 esac
6543
6544 need_locks="$enable_libtool_lock"
6545
6546
6547   case $host_os in
6548     rhapsody* | darwin*)
6549     if test -n "$ac_tool_prefix"; then
6550   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$DSYMUTIL"; then
6558   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6578 if test -n "$DSYMUTIL"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6580 $as_echo "$DSYMUTIL" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_DSYMUTIL"; then
6589   ac_ct_DSYMUTIL=$DSYMUTIL
6590   # Extract the first word of "dsymutil", so it can be a program name with args.
6591 set dummy dsymutil; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$ac_ct_DSYMUTIL"; then
6598   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605     for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612   done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6618 if test -n "$ac_ct_DSYMUTIL"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6620 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626   if test "x$ac_ct_DSYMUTIL" = x; then
6627     DSYMUTIL=":"
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635     DSYMUTIL=$ac_ct_DSYMUTIL
6636   fi
6637 else
6638   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6639 fi
6640
6641     if test -n "$ac_tool_prefix"; then
6642   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$NMEDIT"; then
6650   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 NMEDIT=$ac_cv_prog_NMEDIT
6670 if test -n "$NMEDIT"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6672 $as_echo "$NMEDIT" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678
6679 fi
6680 if test -z "$ac_cv_prog_NMEDIT"; then
6681   ac_ct_NMEDIT=$NMEDIT
6682   # Extract the first word of "nmedit", so it can be a program name with args.
6683 set dummy nmedit; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   if test -n "$ac_ct_NMEDIT"; then
6690   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697     for ac_exec_ext in '' $ac_executable_extensions; do
6698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704   done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6710 if test -n "$ac_ct_NMEDIT"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6712 $as_echo "$ac_ct_NMEDIT" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718   if test "x$ac_ct_NMEDIT" = x; then
6719     NMEDIT=":"
6720   else
6721     case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6726 esac
6727     NMEDIT=$ac_ct_NMEDIT
6728   fi
6729 else
6730   NMEDIT="$ac_cv_prog_NMEDIT"
6731 fi
6732
6733     if test -n "$ac_tool_prefix"; then
6734   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_prog_LIPO+set}" = set; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$LIPO"; then
6742   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749     for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756   done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 LIPO=$ac_cv_prog_LIPO
6762 if test -n "$LIPO"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6764 $as_echo "$LIPO" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_LIPO"; then
6773   ac_ct_LIPO=$LIPO
6774   # Extract the first word of "lipo", so it can be a program name with args.
6775 set dummy lipo; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$ac_ct_LIPO"; then
6782   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_ac_ct_LIPO="lipo"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6802 if test -n "$ac_ct_LIPO"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6804 $as_echo "$ac_ct_LIPO" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810   if test "x$ac_ct_LIPO" = x; then
6811     LIPO=":"
6812   else
6813     case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819     LIPO=$ac_ct_LIPO
6820   fi
6821 else
6822   LIPO="$ac_cv_prog_LIPO"
6823 fi
6824
6825     if test -n "$ac_tool_prefix"; then
6826   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}otool; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   if test -n "$OTOOL"; then
6834   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841     for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848   done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 OTOOL=$ac_cv_prog_OTOOL
6854 if test -n "$OTOOL"; then
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6856 $as_echo "$OTOOL" >&6; }
6857 else
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862
6863 fi
6864 if test -z "$ac_cv_prog_OTOOL"; then
6865   ac_ct_OTOOL=$OTOOL
6866   # Extract the first word of "otool", so it can be a program name with args.
6867 set dummy otool; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6871   $as_echo_n "(cached) " >&6
6872 else
6873   if test -n "$ac_ct_OTOOL"; then
6874   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_prog_ac_ct_OTOOL="otool"
6884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888   done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6894 if test -n "$ac_ct_OTOOL"; then
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6896 $as_echo "$ac_ct_OTOOL" >&6; }
6897 else
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902   if test "x$ac_ct_OTOOL" = x; then
6903     OTOOL=":"
6904   else
6905     case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911     OTOOL=$ac_ct_OTOOL
6912   fi
6913 else
6914   OTOOL="$ac_cv_prog_OTOOL"
6915 fi
6916
6917     if test -n "$ac_tool_prefix"; then
6918   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$OTOOL64"; then
6926   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 OTOOL64=$ac_cv_prog_OTOOL64
6946 if test -n "$OTOOL64"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6948 $as_echo "$OTOOL64" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955 fi
6956 if test -z "$ac_cv_prog_OTOOL64"; then
6957   ac_ct_OTOOL64=$OTOOL64
6958   # Extract the first word of "otool64", so it can be a program name with args.
6959 set dummy otool64; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   if test -n "$ac_ct_OTOOL64"; then
6966   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973     for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_prog_ac_ct_OTOOL64="otool64"
6976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980   done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6986 if test -n "$ac_ct_OTOOL64"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6988 $as_echo "$ac_ct_OTOOL64" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994   if test "x$ac_ct_OTOOL64" = x; then
6995     OTOOL64=":"
6996   else
6997     case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003     OTOOL64=$ac_ct_OTOOL64
7004   fi
7005 else
7006   OTOOL64="$ac_cv_prog_OTOOL64"
7007 fi
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7036 $as_echo_n "checking for -single_module linker flag... " >&6; }
7037 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7038   $as_echo_n "(cached) " >&6
7039 else
7040   lt_cv_apple_cc_single_mod=no
7041       if test -z "${LT_MULTI_MODULE}"; then
7042         # By default we will add the -single_module flag. You can override
7043         # by either setting the environment variable LT_MULTI_MODULE
7044         # non-empty at configure time, or by adding -multi_module to the
7045         # link flags.
7046         rm -rf libconftest.dylib*
7047         echo "int foo(void){return 1;}" > conftest.c
7048         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7049 -dynamiclib -Wl,-single_module conftest.c" >&5
7050         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7051           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7052         _lt_result=$?
7053         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7054           lt_cv_apple_cc_single_mod=yes
7055         else
7056           cat conftest.err >&5
7057         fi
7058         rm -rf libconftest.dylib*
7059         rm -f conftest.*
7060       fi
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7063 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7065 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7066 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   lt_cv_ld_exported_symbols_list=no
7070       save_LDFLAGS=$LDFLAGS
7071       echo "_main" > conftest.sym
7072       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h.  */
7075
7076 int
7077 main ()
7078 {
7079
7080   ;
7081   return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_link "$LINENO"; then :
7085   lt_cv_ld_exported_symbols_list=yes
7086 else
7087   lt_cv_ld_exported_symbols_list=no
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext \
7090     conftest$ac_exeext conftest.$ac_ext
7091         LDFLAGS="$save_LDFLAGS"
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7095 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7096     case $host_os in
7097     rhapsody* | darwin1.[012])
7098       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7099     darwin1.*)
7100       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7101     darwin*) # darwin 5.x on
7102       # if running on 10.5 or later, the deployment target defaults
7103       # to the OS version, if on x86, and 10.4, the deployment
7104       # target defaults to 10.4. Don't you love it?
7105       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7106         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7107           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7108         10.[012]*)
7109           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7110         10.*)
7111           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7112       esac
7113     ;;
7114   esac
7115     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7116       _lt_dar_single_mod='$single_module'
7117     fi
7118     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7119       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7120     else
7121       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7122     fi
7123     if test "$DSYMUTIL" != ":"; then
7124       _lt_dsymutil='~$DSYMUTIL $lib || :'
7125     else
7126       _lt_dsymutil=
7127     fi
7128     ;;
7129   esac
7130
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7138 # On Suns, sometimes $CPP names a directory.
7139 if test -n "$CPP" && test -d "$CPP"; then
7140   CPP=
7141 fi
7142 if test -z "$CPP"; then
7143   if test "${ac_cv_prog_CPP+set}" = set; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146       # Double quotes because CPP needs to be expanded
7147     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7148     do
7149       ac_preproc_ok=false
7150 for ac_c_preproc_warn_flag in '' yes
7151 do
7152   # Use a header file that comes with gcc, so configuring glibc
7153   # with a fresh cross-compiler works.
7154   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155   # <limits.h> exists even on freestanding compilers.
7156   # On the NeXT, cc -E runs the code through the compiler's parser,
7157   # not just through cpp. "Syntax error" is here to catch this case.
7158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160 #ifdef __STDC__
7161 # include <limits.h>
7162 #else
7163 # include <assert.h>
7164 #endif
7165                      Syntax error
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168
7169 else
7170   # Broken: fails on valid input.
7171 continue
7172 fi
7173 rm -f conftest.err conftest.i conftest.$ac_ext
7174
7175   # OK, works on sane cases.  Now check whether nonexistent headers
7176   # can be detected and how.
7177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h.  */
7179 #include <ac_nonexistent.h>
7180 _ACEOF
7181 if ac_fn_c_try_cpp "$LINENO"; then :
7182   # Broken: success on invalid input.
7183 continue
7184 else
7185   # Passes both tests.
7186 ac_preproc_ok=:
7187 break
7188 fi
7189 rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191 done
7192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7193 rm -f conftest.i conftest.err conftest.$ac_ext
7194 if $ac_preproc_ok; then :
7195   break
7196 fi
7197
7198     done
7199     ac_cv_prog_CPP=$CPP
7200
7201 fi
7202   CPP=$ac_cv_prog_CPP
7203 else
7204   ac_cv_prog_CPP=$CPP
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7207 $as_echo "$CPP" >&6; }
7208 ac_preproc_ok=false
7209 for ac_c_preproc_warn_flag in '' yes
7210 do
7211   # Use a header file that comes with gcc, so configuring glibc
7212   # with a fresh cross-compiler works.
7213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214   # <limits.h> exists even on freestanding compilers.
7215   # On the NeXT, cc -E runs the code through the compiler's parser,
7216   # not just through cpp. "Syntax error" is here to catch this case.
7217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219 #ifdef __STDC__
7220 # include <limits.h>
7221 #else
7222 # include <assert.h>
7223 #endif
7224                      Syntax error
7225 _ACEOF
7226 if ac_fn_c_try_cpp "$LINENO"; then :
7227
7228 else
7229   # Broken: fails on valid input.
7230 continue
7231 fi
7232 rm -f conftest.err conftest.i conftest.$ac_ext
7233
7234   # OK, works on sane cases.  Now check whether nonexistent headers
7235   # can be detected and how.
7236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h.  */
7238 #include <ac_nonexistent.h>
7239 _ACEOF
7240 if ac_fn_c_try_cpp "$LINENO"; then :
7241   # Broken: success on invalid input.
7242 continue
7243 else
7244   # Passes both tests.
7245 ac_preproc_ok=:
7246 break
7247 fi
7248 rm -f conftest.err conftest.i conftest.$ac_ext
7249
7250 done
7251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7252 rm -f conftest.i conftest.err conftest.$ac_ext
7253 if $ac_preproc_ok; then :
7254
7255 else
7256   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7259 See \`config.log' for more details" "$LINENO" 5 ; }
7260 fi
7261
7262 ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7270 $as_echo_n "checking for ANSI C header files... " >&6; }
7271 if test "${ac_cv_header_stdc+set}" = set; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h.  */
7276 #include <stdlib.h>
7277 #include <stdarg.h>
7278 #include <string.h>
7279 #include <float.h>
7280
7281 int
7282 main ()
7283 {
7284
7285   ;
7286   return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290   ac_cv_header_stdc=yes
7291 else
7292   ac_cv_header_stdc=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295
7296 if test $ac_cv_header_stdc = yes; then
7297   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h.  */
7300 #include <string.h>
7301
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304   $EGREP "memchr" >/dev/null 2>&1; then :
7305
7306 else
7307   ac_cv_header_stdc=no
7308 fi
7309 rm -f conftest*
7310
7311 fi
7312
7313 if test $ac_cv_header_stdc = yes; then
7314   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h.  */
7317 #include <stdlib.h>
7318
7319 _ACEOF
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321   $EGREP "free" >/dev/null 2>&1; then :
7322
7323 else
7324   ac_cv_header_stdc=no
7325 fi
7326 rm -f conftest*
7327
7328 fi
7329
7330 if test $ac_cv_header_stdc = yes; then
7331   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7332   if test "$cross_compiling" = yes; then :
7333   :
7334 else
7335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h.  */
7337 #include <ctype.h>
7338 #include <stdlib.h>
7339 #if ((' ' & 0x0FF) == 0x020)
7340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7342 #else
7343 # define ISLOWER(c) \
7344                    (('a' <= (c) && (c) <= 'i') \
7345                      || ('j' <= (c) && (c) <= 'r') \
7346                      || ('s' <= (c) && (c) <= 'z'))
7347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7348 #endif
7349
7350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7351 int
7352 main ()
7353 {
7354   int i;
7355   for (i = 0; i < 256; i++)
7356     if (XOR (islower (i), ISLOWER (i))
7357         || toupper (i) != TOUPPER (i))
7358       return 2;
7359   return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_run "$LINENO"; then :
7363
7364 else
7365   ac_cv_header_stdc=no
7366 fi
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7368   conftest.$ac_objext conftest.beam conftest.$ac_ext
7369 fi
7370
7371 fi
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7374 $as_echo "$ac_cv_header_stdc" >&6; }
7375 if test $ac_cv_header_stdc = yes; then
7376
7377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7378
7379 fi
7380
7381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7383                   inttypes.h stdint.h unistd.h
7384 do :
7385   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7387 "
7388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7389   cat >>confdefs.h <<_ACEOF
7390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7392
7393 fi
7394
7395 done
7396
7397
7398 for ac_header in dlfcn.h
7399 do :
7400   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7401 "
7402 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7403   cat >>confdefs.h <<_ACEOF
7404 #define HAVE_DLFCN_H 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412
7413 # Set options
7414
7415
7416
7417         enable_dlopen=no
7418
7419
7420   enable_win32_dll=no
7421
7422
7423             # Check whether --enable-shared was given.
7424 if test "${enable_shared+set}" = set; then :
7425   enableval=$enable_shared; p=${PACKAGE-default}
7426     case $enableval in
7427     yes) enable_shared=yes ;;
7428     no) enable_shared=no ;;
7429     *)
7430       enable_shared=no
7431       # Look at the argument we got.  We use all the common list separators.
7432       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7433       for pkg in $enableval; do
7434         IFS="$lt_save_ifs"
7435         if test "X$pkg" = "X$p"; then
7436           enable_shared=yes
7437         fi
7438       done
7439       IFS="$lt_save_ifs"
7440       ;;
7441     esac
7442 else
7443   enable_shared=yes
7444 fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 # Check whether --with-pic was given.
7457 if test "${with_pic+set}" = set; then :
7458   withval=$with_pic; pic_mode="$withval"
7459 else
7460   pic_mode=default
7461 fi
7462
7463
7464 test -z "$pic_mode" && pic_mode=default
7465
7466
7467
7468
7469
7470
7471
7472   # Check whether --enable-fast-install was given.
7473 if test "${enable_fast_install+set}" = set; then :
7474   enableval=$enable_fast_install; p=${PACKAGE-default}
7475     case $enableval in
7476     yes) enable_fast_install=yes ;;
7477     no) enable_fast_install=no ;;
7478     *)
7479       enable_fast_install=no
7480       # Look at the argument we got.  We use all the common list separators.
7481       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7482       for pkg in $enableval; do
7483         IFS="$lt_save_ifs"
7484         if test "X$pkg" = "X$p"; then
7485           enable_fast_install=yes
7486         fi
7487       done
7488       IFS="$lt_save_ifs"
7489       ;;
7490     esac
7491 else
7492   enable_fast_install=yes
7493 fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 # This can be used to rebuild libtool when needed
7506 LIBTOOL_DEPS="$ltmain"
7507
7508 # Always use our own libtool.
7509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 test -z "$LN_S" && LN_S="ln -s"
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550 if test -n "${ZSH_VERSION+set}" ; then
7551    setopt NO_GLOB_SUBST
7552 fi
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7555 $as_echo_n "checking for objdir... " >&6; }
7556 if test "${lt_cv_objdir+set}" = set; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   rm -f .libs 2>/dev/null
7560 mkdir .libs 2>/dev/null
7561 if test -d .libs; then
7562   lt_cv_objdir=.libs
7563 else
7564   # MS-DOS does not allow filenames that begin with a dot.
7565   lt_cv_objdir=_libs
7566 fi
7567 rmdir .libs 2>/dev/null
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7570 $as_echo "$lt_cv_objdir" >&6; }
7571 objdir=$lt_cv_objdir
7572
7573
7574
7575
7576
7577 cat >>confdefs.h <<_ACEOF
7578 #define LT_OBJDIR "$lt_cv_objdir/"
7579 _ACEOF
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597 case $host_os in
7598 aix3*)
7599   # AIX sometimes has problems with the GCC collect2 program.  For some
7600   # reason, if we set the COLLECT_NAMES environment variable, the problems
7601   # vanish in a puff of smoke.
7602   if test "X${COLLECT_NAMES+set}" != Xset; then
7603     COLLECT_NAMES=
7604     export COLLECT_NAMES
7605   fi
7606   ;;
7607 esac
7608
7609 # Sed substitution that helps us do robust quoting.  It backslashifies
7610 # metacharacters that are still active within double-quoted strings.
7611 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7612
7613 # Same as above, but do not quote variable references.
7614 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7615
7616 # Sed substitution to delay expansion of an escaped shell variable in a
7617 # double_quote_subst'ed string.
7618 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7619
7620 # Sed substitution to delay expansion of an escaped single quote.
7621 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7622
7623 # Sed substitution to avoid accidental globbing in evaled expressions
7624 no_glob_subst='s/\*/\\\*/g'
7625
7626 # Global variables:
7627 ofile=libtool
7628 can_build_shared=yes
7629
7630 # All known linkers require a `.a' archive for static linking (except MSVC,
7631 # which needs '.lib').
7632 libext=a
7633
7634 with_gnu_ld="$lt_cv_prog_gnu_ld"
7635
7636 old_CC="$CC"
7637 old_CFLAGS="$CFLAGS"
7638
7639 # Set sane defaults for various variables
7640 test -z "$CC" && CC=cc
7641 test -z "$LTCC" && LTCC=$CC
7642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7643 test -z "$LD" && LD=ld
7644 test -z "$ac_objext" && ac_objext=o
7645
7646 for cc_temp in $compiler""; do
7647   case $cc_temp in
7648     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7649     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7650     \-*) ;;
7651     *) break;;
7652   esac
7653 done
7654 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7655
7656
7657 # Only perform the check for file, if the check method requires it
7658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7659 case $deplibs_check_method in
7660 file_magic*)
7661   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7664 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   case $MAGIC_CMD in
7668 [\\/*] |  ?:[\\/]*)
7669   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670   ;;
7671 *)
7672   lt_save_MAGIC_CMD="$MAGIC_CMD"
7673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675   for ac_dir in $ac_dummy; do
7676     IFS="$lt_save_ifs"
7677     test -z "$ac_dir" && ac_dir=.
7678     if test -f $ac_dir/${ac_tool_prefix}file; then
7679       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7680       if test -n "$file_magic_test_file"; then
7681         case $deplibs_check_method in
7682         "file_magic "*)
7683           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686             $EGREP "$file_magic_regex" > /dev/null; then
7687             :
7688           else
7689             cat <<_LT_EOF 1>&2
7690
7691 *** Warning: the command libtool uses to detect shared libraries,
7692 *** $file_magic_cmd, produces output that libtool cannot recognize.
7693 *** The result is that libtool may fail to recognize shared libraries
7694 *** as such.  This will affect the creation of libtool libraries that
7695 *** depend on shared libraries, but programs linked with such libtool
7696 *** libraries will work regardless of this problem.  Nevertheless, you
7697 *** may want to report the problem to your system manager and/or to
7698 *** bug-libtool@gnu.org
7699
7700 _LT_EOF
7701           fi ;;
7702         esac
7703       fi
7704       break
7705     fi
7706   done
7707   IFS="$lt_save_ifs"
7708   MAGIC_CMD="$lt_save_MAGIC_CMD"
7709   ;;
7710 esac
7711 fi
7712
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if test -n "$MAGIC_CMD"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7716 $as_echo "$MAGIC_CMD" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723
7724
7725
7726 if test -z "$lt_cv_path_MAGIC_CMD"; then
7727   if test -n "$ac_tool_prefix"; then
7728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7729 $as_echo_n "checking for file... " >&6; }
7730 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   case $MAGIC_CMD in
7734 [\\/*] |  ?:[\\/]*)
7735   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7736   ;;
7737 *)
7738   lt_save_MAGIC_CMD="$MAGIC_CMD"
7739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7740   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7741   for ac_dir in $ac_dummy; do
7742     IFS="$lt_save_ifs"
7743     test -z "$ac_dir" && ac_dir=.
7744     if test -f $ac_dir/file; then
7745       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7746       if test -n "$file_magic_test_file"; then
7747         case $deplibs_check_method in
7748         "file_magic "*)
7749           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7750           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7752             $EGREP "$file_magic_regex" > /dev/null; then
7753             :
7754           else
7755             cat <<_LT_EOF 1>&2
7756
7757 *** Warning: the command libtool uses to detect shared libraries,
7758 *** $file_magic_cmd, produces output that libtool cannot recognize.
7759 *** The result is that libtool may fail to recognize shared libraries
7760 *** as such.  This will affect the creation of libtool libraries that
7761 *** depend on shared libraries, but programs linked with such libtool
7762 *** libraries will work regardless of this problem.  Nevertheless, you
7763 *** may want to report the problem to your system manager and/or to
7764 *** bug-libtool@gnu.org
7765
7766 _LT_EOF
7767           fi ;;
7768         esac
7769       fi
7770       break
7771     fi
7772   done
7773   IFS="$lt_save_ifs"
7774   MAGIC_CMD="$lt_save_MAGIC_CMD"
7775   ;;
7776 esac
7777 fi
7778
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if test -n "$MAGIC_CMD"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7782 $as_echo "$MAGIC_CMD" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789   else
7790     MAGIC_CMD=:
7791   fi
7792 fi
7793
7794   fi
7795   ;;
7796 esac
7797
7798 # Use C for the default configuration in the libtool script
7799
7800 lt_save_CC="$CC"
7801 ac_ext=c
7802 ac_cpp='$CPP $CPPFLAGS'
7803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806
7807
7808 # Source file extension for C test sources.
7809 ac_ext=c
7810
7811 # Object file extension for compiled C test sources.
7812 objext=o
7813 objext=$objext
7814
7815 # Code to be used in simple compile tests
7816 lt_simple_compile_test_code="int some_variable = 0;"
7817
7818 # Code to be used in simple link tests
7819 lt_simple_link_test_code='int main(){return(0);}'
7820
7821
7822
7823
7824
7825
7826
7827 # If no C compiler was specified, use CC.
7828 LTCC=${LTCC-"$CC"}
7829
7830 # If no C compiler flags were specified, use CFLAGS.
7831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7832
7833 # Allow CC to be a program name with arguments.
7834 compiler=$CC
7835
7836 # Save the default compiler, since it gets overwritten when the other
7837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7838 compiler_DEFAULT=$CC
7839
7840 # save warnings/boilerplate of simple test code
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7844 _lt_compiler_boilerplate=`cat conftest.err`
7845 $RM conftest*
7846
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850 _lt_linker_boilerplate=`cat conftest.err`
7851 $RM -r conftest*
7852
7853
7854 ## CAVEAT EMPTOR:
7855 ## There is no encapsulation within the following macros, do not change
7856 ## the running order or otherwise move them around unless you know exactly
7857 ## what you are doing...
7858 if test -n "$compiler"; then
7859
7860 lt_prog_compiler_no_builtin_flag=
7861
7862 if test "$GCC" = yes; then
7863   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7864
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7866 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7867 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   lt_cv_prog_compiler_rtti_exceptions=no
7871    ac_outfile=conftest.$ac_objext
7872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7873    lt_compiler_flag="-fno-rtti -fno-exceptions"
7874    # Insert the option either (1) after the last *FLAGS variable, or
7875    # (2) before a word containing "conftest.", or (3) at the end.
7876    # Note that $ac_compile itself does not contain backslashes and begins
7877    # with a dollar sign (not a hyphen), so the echo should work correctly.
7878    # The option is referenced via a variable to avoid confusing sed.
7879    lt_compile=`echo "$ac_compile" | $SED \
7880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7882    -e 's:$: $lt_compiler_flag:'`
7883    (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
7884    (eval "$lt_compile" 2>conftest.err)
7885    ac_status=$?
7886    cat conftest.err >&5
7887    echo "$as_me:7887: \$? = $ac_status" >&5
7888    if (exit $ac_status) && test -s "$ac_outfile"; then
7889      # The compiler can only warn and ignore the option if not recognized
7890      # So say no if there are warnings other than the usual output.
7891      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7892      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7893      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7894        lt_cv_prog_compiler_rtti_exceptions=yes
7895      fi
7896    fi
7897    $RM conftest*
7898
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7901 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7902
7903 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7904     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7905 else
7906     :
7907 fi
7908
7909 fi
7910
7911
7912
7913
7914
7915
7916   lt_prog_compiler_wl=
7917 lt_prog_compiler_pic=
7918 lt_prog_compiler_static=
7919
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7921 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7922
7923   if test "$GCC" = yes; then
7924     lt_prog_compiler_wl='-Wl,'
7925     lt_prog_compiler_static='-static'
7926
7927     case $host_os in
7928       aix*)
7929       # All AIX code is PIC.
7930       if test "$host_cpu" = ia64; then
7931         # AIX 5 now supports IA64 processor
7932         lt_prog_compiler_static='-Bstatic'
7933       fi
7934       ;;
7935
7936     amigaos*)
7937       case $host_cpu in
7938       powerpc)
7939             # see comment about AmigaOS4 .so support
7940             lt_prog_compiler_pic='-fPIC'
7941         ;;
7942       m68k)
7943             # FIXME: we need at least 68020 code to build shared libraries, but
7944             # adding the `-m68020' flag to GCC prevents building anything better,
7945             # like `-m68040'.
7946             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7947         ;;
7948       esac
7949       ;;
7950
7951     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7952       # PIC is the default for these OSes.
7953       ;;
7954
7955     mingw* | cygwin* | pw32* | os2* | cegcc*)
7956       # This hack is so that the source file can tell whether it is being
7957       # built for inclusion in a dll (and should export symbols for example).
7958       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7959       # (--disable-auto-import) libraries
7960       lt_prog_compiler_pic='-DDLL_EXPORT'
7961       ;;
7962
7963     darwin* | rhapsody*)
7964       # PIC is the default on this platform
7965       # Common symbols not allowed in MH_DYLIB files
7966       lt_prog_compiler_pic='-fno-common'
7967       ;;
7968
7969     hpux*)
7970       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7971       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7972       # sets the default TLS model and affects inlining.
7973       case $host_cpu in
7974       hppa*64*)
7975         # +Z the default
7976         ;;
7977       *)
7978         lt_prog_compiler_pic='-fPIC'
7979         ;;
7980       esac
7981       ;;
7982
7983     interix[3-9]*)
7984       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7985       # Instead, we relocate shared libraries at runtime.
7986       ;;
7987
7988     msdosdjgpp*)
7989       # Just because we use GCC doesn't mean we suddenly get shared libraries
7990       # on systems that don't support them.
7991       lt_prog_compiler_can_build_shared=no
7992       enable_shared=no
7993       ;;
7994
7995     *nto* | *qnx*)
7996       # QNX uses GNU C++, but need to define -shared option too, otherwise
7997       # it will coredump.
7998       lt_prog_compiler_pic='-fPIC -shared'
7999       ;;
8000
8001     sysv4*MP*)
8002       if test -d /usr/nec; then
8003         lt_prog_compiler_pic=-Kconform_pic
8004       fi
8005       ;;
8006
8007     *)
8008       lt_prog_compiler_pic='-fPIC'
8009       ;;
8010     esac
8011   else
8012     # PORTME Check for flag to pass linker flags through the system compiler.
8013     case $host_os in
8014     aix*)
8015       lt_prog_compiler_wl='-Wl,'
8016       if test "$host_cpu" = ia64; then
8017         # AIX 5 now supports IA64 processor
8018         lt_prog_compiler_static='-Bstatic'
8019       else
8020         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8021       fi
8022       ;;
8023
8024     mingw* | cygwin* | pw32* | os2* | cegcc*)
8025       # This hack is so that the source file can tell whether it is being
8026       # built for inclusion in a dll (and should export symbols for example).
8027       lt_prog_compiler_pic='-DDLL_EXPORT'
8028       ;;
8029
8030     hpux9* | hpux10* | hpux11*)
8031       lt_prog_compiler_wl='-Wl,'
8032       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8033       # not for PA HP-UX.
8034       case $host_cpu in
8035       hppa*64*|ia64*)
8036         # +Z the default
8037         ;;
8038       *)
8039         lt_prog_compiler_pic='+Z'
8040         ;;
8041       esac
8042       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8043       lt_prog_compiler_static='${wl}-a ${wl}archive'
8044       ;;
8045
8046     irix5* | irix6* | nonstopux*)
8047       lt_prog_compiler_wl='-Wl,'
8048       # PIC (with -KPIC) is the default.
8049       lt_prog_compiler_static='-non_shared'
8050       ;;
8051
8052     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8053       case $cc_basename in
8054       # old Intel for x86_64 which still supported -KPIC.
8055       ecc*)
8056         lt_prog_compiler_wl='-Wl,'
8057         lt_prog_compiler_pic='-KPIC'
8058         lt_prog_compiler_static='-static'
8059         ;;
8060       # icc used to be incompatible with GCC.
8061       # ICC 10 doesn't accept -KPIC any more.
8062       icc* | ifort*)
8063         lt_prog_compiler_wl='-Wl,'
8064         lt_prog_compiler_pic='-fPIC'
8065         lt_prog_compiler_static='-static'
8066         ;;
8067       # Lahey Fortran 8.1.
8068       lf95*)
8069         lt_prog_compiler_wl='-Wl,'
8070         lt_prog_compiler_pic='--shared'
8071         lt_prog_compiler_static='--static'
8072         ;;
8073       pgcc* | pgf77* | pgf90* | pgf95*)
8074         # Portland Group compilers (*not* the Pentium gcc compiler,
8075         # which looks to be a dead project)
8076         lt_prog_compiler_wl='-Wl,'
8077         lt_prog_compiler_pic='-fpic'
8078         lt_prog_compiler_static='-Bstatic'
8079         ;;
8080       ccc*)
8081         lt_prog_compiler_wl='-Wl,'
8082         # All Alpha code is PIC.
8083         lt_prog_compiler_static='-non_shared'
8084         ;;
8085       xl*)
8086         # IBM XL C 8.0/Fortran 10.1 on PPC
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='-qpic'
8089         lt_prog_compiler_static='-qstaticlink'
8090         ;;
8091       *)
8092         case `$CC -V 2>&1 | sed 5q` in
8093         *Sun\ C*)
8094           # Sun C 5.9
8095           lt_prog_compiler_pic='-KPIC'
8096           lt_prog_compiler_static='-Bstatic'
8097           lt_prog_compiler_wl='-Wl,'
8098           ;;
8099         *Sun\ F*)
8100           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8101           lt_prog_compiler_pic='-KPIC'
8102           lt_prog_compiler_static='-Bstatic'
8103           lt_prog_compiler_wl=''
8104           ;;
8105         esac
8106         ;;
8107       esac
8108       ;;
8109
8110     newsos6)
8111       lt_prog_compiler_pic='-KPIC'
8112       lt_prog_compiler_static='-Bstatic'
8113       ;;
8114
8115     *nto* | *qnx*)
8116       # QNX uses GNU C++, but need to define -shared option too, otherwise
8117       # it will coredump.
8118       lt_prog_compiler_pic='-fPIC -shared'
8119       ;;
8120
8121     osf3* | osf4* | osf5*)
8122       lt_prog_compiler_wl='-Wl,'
8123       # All OSF/1 code is PIC.
8124       lt_prog_compiler_static='-non_shared'
8125       ;;
8126
8127     rdos*)
8128       lt_prog_compiler_static='-non_shared'
8129       ;;
8130
8131     solaris*)
8132       lt_prog_compiler_pic='-KPIC'
8133       lt_prog_compiler_static='-Bstatic'
8134       case $cc_basename in
8135       f77* | f90* | f95*)
8136         lt_prog_compiler_wl='-Qoption ld ';;
8137       *)
8138         lt_prog_compiler_wl='-Wl,';;
8139       esac
8140       ;;
8141
8142     sunos4*)
8143       lt_prog_compiler_wl='-Qoption ld '
8144       lt_prog_compiler_pic='-PIC'
8145       lt_prog_compiler_static='-Bstatic'
8146       ;;
8147
8148     sysv4 | sysv4.2uw2* | sysv4.3*)
8149       lt_prog_compiler_wl='-Wl,'
8150       lt_prog_compiler_pic='-KPIC'
8151       lt_prog_compiler_static='-Bstatic'
8152       ;;
8153
8154     sysv4*MP*)
8155       if test -d /usr/nec ;then
8156         lt_prog_compiler_pic='-Kconform_pic'
8157         lt_prog_compiler_static='-Bstatic'
8158       fi
8159       ;;
8160
8161     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8162       lt_prog_compiler_wl='-Wl,'
8163       lt_prog_compiler_pic='-KPIC'
8164       lt_prog_compiler_static='-Bstatic'
8165       ;;
8166
8167     unicos*)
8168       lt_prog_compiler_wl='-Wl,'
8169       lt_prog_compiler_can_build_shared=no
8170       ;;
8171
8172     uts4*)
8173       lt_prog_compiler_pic='-pic'
8174       lt_prog_compiler_static='-Bstatic'
8175       ;;
8176
8177     *)
8178       lt_prog_compiler_can_build_shared=no
8179       ;;
8180     esac
8181   fi
8182
8183 case $host_os in
8184   # For platforms which do not support PIC, -DPIC is meaningless:
8185   *djgpp*)
8186     lt_prog_compiler_pic=
8187     ;;
8188   *)
8189     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8190     ;;
8191 esac
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8193 $as_echo "$lt_prog_compiler_pic" >&6; }
8194
8195
8196
8197
8198
8199
8200 #
8201 # Check to make sure the PIC flag actually works.
8202 #
8203 if test -n "$lt_prog_compiler_pic"; then
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8205 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8206 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   lt_cv_prog_compiler_pic_works=no
8210    ac_outfile=conftest.$ac_objext
8211    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8212    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8213    # Insert the option either (1) after the last *FLAGS variable, or
8214    # (2) before a word containing "conftest.", or (3) at the end.
8215    # Note that $ac_compile itself does not contain backslashes and begins
8216    # with a dollar sign (not a hyphen), so the echo should work correctly.
8217    # The option is referenced via a variable to avoid confusing sed.
8218    lt_compile=`echo "$ac_compile" | $SED \
8219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8221    -e 's:$: $lt_compiler_flag:'`
8222    (eval echo "\"\$as_me:8222: $lt_compile\"" >&5)
8223    (eval "$lt_compile" 2>conftest.err)
8224    ac_status=$?
8225    cat conftest.err >&5
8226    echo "$as_me:8226: \$? = $ac_status" >&5
8227    if (exit $ac_status) && test -s "$ac_outfile"; then
8228      # The compiler can only warn and ignore the option if not recognized
8229      # So say no if there are warnings other than the usual output.
8230      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8231      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8233        lt_cv_prog_compiler_pic_works=yes
8234      fi
8235    fi
8236    $RM conftest*
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8240 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8241
8242 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8243     case $lt_prog_compiler_pic in
8244      "" | " "*) ;;
8245      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8246      esac
8247 else
8248     lt_prog_compiler_pic=
8249      lt_prog_compiler_can_build_shared=no
8250 fi
8251
8252 fi
8253
8254
8255
8256
8257
8258
8259 #
8260 # Check to make sure the static flag actually works.
8261 #
8262 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8264 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8265 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   lt_cv_prog_compiler_static_works=no
8269    save_LDFLAGS="$LDFLAGS"
8270    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8271    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8272    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8273      # The linker can only warn and ignore the option if not recognized
8274      # So say no if there are warnings
8275      if test -s conftest.err; then
8276        # Append any errors to the config.log.
8277        cat conftest.err 1>&5
8278        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8279        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8280        if diff conftest.exp conftest.er2 >/dev/null; then
8281          lt_cv_prog_compiler_static_works=yes
8282        fi
8283      else
8284        lt_cv_prog_compiler_static_works=yes
8285      fi
8286    fi
8287    $RM -r conftest*
8288    LDFLAGS="$save_LDFLAGS"
8289
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8292 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8293
8294 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8295     :
8296 else
8297     lt_prog_compiler_static=
8298 fi
8299
8300
8301
8302
8303
8304
8305
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8308 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   lt_cv_prog_compiler_c_o=no
8312    $RM -r conftest 2>/dev/null
8313    mkdir conftest
8314    cd conftest
8315    mkdir out
8316    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317
8318    lt_compiler_flag="-o out/conftest2.$ac_objext"
8319    # Insert the option either (1) after the last *FLAGS variable, or
8320    # (2) before a word containing "conftest.", or (3) at the end.
8321    # Note that $ac_compile itself does not contain backslashes and begins
8322    # with a dollar sign (not a hyphen), so the echo should work correctly.
8323    lt_compile=`echo "$ac_compile" | $SED \
8324    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326    -e 's:$: $lt_compiler_flag:'`
8327    (eval echo "\"\$as_me:8327: $lt_compile\"" >&5)
8328    (eval "$lt_compile" 2>out/conftest.err)
8329    ac_status=$?
8330    cat out/conftest.err >&5
8331    echo "$as_me:8331: \$? = $ac_status" >&5
8332    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333    then
8334      # The compiler can only warn and ignore the option if not recognized
8335      # So say no if there are warnings
8336      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8337      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8338      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8339        lt_cv_prog_compiler_c_o=yes
8340      fi
8341    fi
8342    chmod u+w . 2>&5
8343    $RM conftest*
8344    # SGI C++ compiler will create directory out/ii_files/ for
8345    # template instantiation
8346    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8347    $RM out/* && rmdir out
8348    cd ..
8349    $RM -r conftest
8350    $RM conftest*
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8355
8356
8357
8358
8359
8360
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8362 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8363 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   lt_cv_prog_compiler_c_o=no
8367    $RM -r conftest 2>/dev/null
8368    mkdir conftest
8369    cd conftest
8370    mkdir out
8371    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372
8373    lt_compiler_flag="-o out/conftest2.$ac_objext"
8374    # Insert the option either (1) after the last *FLAGS variable, or
8375    # (2) before a word containing "conftest.", or (3) at the end.
8376    # Note that $ac_compile itself does not contain backslashes and begins
8377    # with a dollar sign (not a hyphen), so the echo should work correctly.
8378    lt_compile=`echo "$ac_compile" | $SED \
8379    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8381    -e 's:$: $lt_compiler_flag:'`
8382    (eval echo "\"\$as_me:8382: $lt_compile\"" >&5)
8383    (eval "$lt_compile" 2>out/conftest.err)
8384    ac_status=$?
8385    cat out/conftest.err >&5
8386    echo "$as_me:8386: \$? = $ac_status" >&5
8387    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8388    then
8389      # The compiler can only warn and ignore the option if not recognized
8390      # So say no if there are warnings
8391      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8392      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8393      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8394        lt_cv_prog_compiler_c_o=yes
8395      fi
8396    fi
8397    chmod u+w . 2>&5
8398    $RM conftest*
8399    # SGI C++ compiler will create directory out/ii_files/ for
8400    # template instantiation
8401    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8402    $RM out/* && rmdir out
8403    cd ..
8404    $RM -r conftest
8405    $RM conftest*
8406
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8409 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8410
8411
8412
8413
8414 hard_links="nottested"
8415 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8416   # do not overwrite the value of need_locks provided by the user
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8418 $as_echo_n "checking if we can lock with hard links... " >&6; }
8419   hard_links=yes
8420   $RM conftest*
8421   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8422   touch conftest.a
8423   ln conftest.a conftest.b 2>&5 || hard_links=no
8424   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8426 $as_echo "$hard_links" >&6; }
8427   if test "$hard_links" = no; then
8428     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8429 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8430     need_locks=warn
8431   fi
8432 else
8433   need_locks=no
8434 fi
8435
8436
8437
8438
8439
8440
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8443
8444   runpath_var=
8445   allow_undefined_flag=
8446   always_export_symbols=no
8447   archive_cmds=
8448   archive_expsym_cmds=
8449   compiler_needs_object=no
8450   enable_shared_with_static_runtimes=no
8451   export_dynamic_flag_spec=
8452   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8453   hardcode_automatic=no
8454   hardcode_direct=no
8455   hardcode_direct_absolute=no
8456   hardcode_libdir_flag_spec=
8457   hardcode_libdir_flag_spec_ld=
8458   hardcode_libdir_separator=
8459   hardcode_minus_L=no
8460   hardcode_shlibpath_var=unsupported
8461   inherit_rpath=no
8462   link_all_deplibs=unknown
8463   module_cmds=
8464   module_expsym_cmds=
8465   old_archive_from_new_cmds=
8466   old_archive_from_expsyms_cmds=
8467   thread_safe_flag_spec=
8468   whole_archive_flag_spec=
8469   # include_expsyms should be a list of space-separated symbols to be *always*
8470   # included in the symbol list
8471   include_expsyms=
8472   # exclude_expsyms can be an extended regexp of symbols to exclude
8473   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8474   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8475   # as well as any symbol that contains `d'.
8476   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8477   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8478   # platforms (ab)use it in PIC code, but their linkers get confused if
8479   # the symbol is explicitly referenced.  Since portable code cannot
8480   # rely on this symbol name, it's probably fine to never include it in
8481   # preloaded symbol tables.
8482   # Exclude shared library initialization/finalization symbols.
8483   extract_expsyms_cmds=
8484
8485   case $host_os in
8486   cygwin* | mingw* | pw32* | cegcc*)
8487     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8488     # When not using gcc, we currently assume that we are using
8489     # Microsoft Visual C++.
8490     if test "$GCC" != yes; then
8491       with_gnu_ld=no
8492     fi
8493     ;;
8494   interix*)
8495     # we just hope/assume this is gcc and not c89 (= MSVC++)
8496     with_gnu_ld=yes
8497     ;;
8498   openbsd*)
8499     with_gnu_ld=no
8500     ;;
8501   linux* | k*bsd*-gnu)
8502     link_all_deplibs=no
8503     ;;
8504   esac
8505
8506   ld_shlibs=yes
8507   if test "$with_gnu_ld" = yes; then
8508     # If archive_cmds runs LD, not CC, wlarc should be empty
8509     wlarc='${wl}'
8510
8511     # Set some defaults for GNU ld with shared library support. These
8512     # are reset later if shared libraries are not supported. Putting them
8513     # here allows them to be overridden if necessary.
8514     runpath_var=LD_RUN_PATH
8515     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8516     export_dynamic_flag_spec='${wl}--export-dynamic'
8517     # ancient GNU ld didn't support --whole-archive et. al.
8518     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8519       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8520     else
8521       whole_archive_flag_spec=
8522     fi
8523     supports_anon_versioning=no
8524     case `$LD -v 2>&1` in
8525       *GNU\ gold*) supports_anon_versioning=yes ;;
8526       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8527       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8528       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8529       *\ 2.11.*) ;; # other 2.11 versions
8530       *) supports_anon_versioning=yes ;;
8531     esac
8532
8533     # See if GNU ld supports shared libraries.
8534     case $host_os in
8535     aix[3-9]*)
8536       # On AIX/PPC, the GNU linker is very broken
8537       if test "$host_cpu" != ia64; then
8538         ld_shlibs=no
8539         cat <<_LT_EOF 1>&2
8540
8541 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8542 *** to be unable to reliably create shared libraries on AIX.
8543 *** Therefore, libtool is disabling shared libraries support.  If you
8544 *** really care for shared libraries, you may want to modify your PATH
8545 *** so that a non-GNU linker is found, and then restart.
8546
8547 _LT_EOF
8548       fi
8549       ;;
8550
8551     amigaos*)
8552       case $host_cpu in
8553       powerpc)
8554             # see comment about AmigaOS4 .so support
8555             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8556             archive_expsym_cmds=''
8557         ;;
8558       m68k)
8559             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)'
8560             hardcode_libdir_flag_spec='-L$libdir'
8561             hardcode_minus_L=yes
8562         ;;
8563       esac
8564       ;;
8565
8566     beos*)
8567       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8568         allow_undefined_flag=unsupported
8569         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8570         # support --undefined.  This deserves some investigation.  FIXME
8571         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572       else
8573         ld_shlibs=no
8574       fi
8575       ;;
8576
8577     cygwin* | mingw* | pw32* | cegcc*)
8578       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8579       # as there is no search path for DLLs.
8580       hardcode_libdir_flag_spec='-L$libdir'
8581       allow_undefined_flag=unsupported
8582       always_export_symbols=no
8583       enable_shared_with_static_runtimes=yes
8584       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8585
8586       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8587         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588         # If the export-symbols file already is a .def file (1st line
8589         # is EXPORTS), use it as is; otherwise, prepend...
8590         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8591           cp $export_symbols $output_objdir/$soname.def;
8592         else
8593           echo EXPORTS > $output_objdir/$soname.def;
8594           cat $export_symbols >> $output_objdir/$soname.def;
8595         fi~
8596         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8597       else
8598         ld_shlibs=no
8599       fi
8600       ;;
8601
8602     interix[3-9]*)
8603       hardcode_direct=no
8604       hardcode_shlibpath_var=no
8605       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606       export_dynamic_flag_spec='${wl}-E'
8607       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8608       # Instead, shared libraries are loaded at an image base (0x10000000 by
8609       # default) and relocated if they conflict, which is a slow very memory
8610       # consuming and fragmenting process.  To avoid this, we pick a random,
8611       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8612       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8613       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8614       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'
8615       ;;
8616
8617     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8618       tmp_diet=no
8619       if test "$host_os" = linux-dietlibc; then
8620         case $cc_basename in
8621           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8622         esac
8623       fi
8624       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8625          && test "$tmp_diet" = no
8626       then
8627         tmp_addflag=
8628         tmp_sharedflag='-shared'
8629         case $cc_basename,$host_cpu in
8630         pgcc*)                          # Portland Group C compiler
8631           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8632           tmp_addflag=' $pic_flag'
8633           ;;
8634         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8635           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8636           tmp_addflag=' $pic_flag -Mnomain' ;;
8637         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8638           tmp_addflag=' -i_dynamic' ;;
8639         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8640           tmp_addflag=' -i_dynamic -nofor_main' ;;
8641         ifc* | ifort*)                  # Intel Fortran compiler
8642           tmp_addflag=' -nofor_main' ;;
8643         lf95*)                          # Lahey Fortran 8.1
8644           whole_archive_flag_spec=
8645           tmp_sharedflag='--shared' ;;
8646         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8647           tmp_sharedflag='-qmkshrobj'
8648           tmp_addflag= ;;
8649         esac
8650         case `$CC -V 2>&1 | sed 5q` in
8651         *Sun\ C*)                       # Sun C 5.9
8652           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8653           compiler_needs_object=yes
8654           tmp_sharedflag='-G' ;;
8655         *Sun\ F*)                       # Sun Fortran 8.3
8656           tmp_sharedflag='-G' ;;
8657         esac
8658         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659
8660         if test "x$supports_anon_versioning" = xyes; then
8661           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8662             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8663             echo "local: *; };" >> $output_objdir/$libname.ver~
8664             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8665         fi
8666
8667         case $cc_basename in
8668         xlf*)
8669           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8670           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8671           hardcode_libdir_flag_spec=
8672           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8673           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8674           if test "x$supports_anon_versioning" = xyes; then
8675             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8676               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8677               echo "local: *; };" >> $output_objdir/$libname.ver~
8678               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8679           fi
8680           ;;
8681         esac
8682       else
8683         ld_shlibs=no
8684       fi
8685       ;;
8686
8687     netbsd* | netbsdelf*-gnu)
8688       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8689         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8690         wlarc=
8691       else
8692         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8694       fi
8695       ;;
8696
8697     solaris*)
8698       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8699         ld_shlibs=no
8700         cat <<_LT_EOF 1>&2
8701
8702 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8703 *** create shared libraries on Solaris systems.  Therefore, libtool
8704 *** is disabling shared libraries support.  We urge you to upgrade GNU
8705 *** binutils to release 2.9.1 or newer.  Another option is to modify
8706 *** your PATH or compiler configuration so that the native linker is
8707 *** used, and then restart.
8708
8709 _LT_EOF
8710       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713       else
8714         ld_shlibs=no
8715       fi
8716       ;;
8717
8718     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8719       case `$LD -v 2>&1` in
8720         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8721         ld_shlibs=no
8722         cat <<_LT_EOF 1>&2
8723
8724 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8725 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8726 *** is disabling shared libraries support.  We urge you to upgrade GNU
8727 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8728 *** your PATH or compiler configuration so that the native linker is
8729 *** used, and then restart.
8730
8731 _LT_EOF
8732         ;;
8733         *)
8734           # For security reasons, it is highly recommended that you always
8735           # use absolute paths for naming shared libraries, and exclude the
8736           # DT_RUNPATH tag from executables and libraries.  But doing so
8737           # requires that you compile everything twice, which is a pain.
8738           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742           else
8743             ld_shlibs=no
8744           fi
8745         ;;
8746       esac
8747       ;;
8748
8749     sunos4*)
8750       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751       wlarc=
8752       hardcode_direct=yes
8753       hardcode_shlibpath_var=no
8754       ;;
8755
8756     *)
8757       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760       else
8761         ld_shlibs=no
8762       fi
8763       ;;
8764     esac
8765
8766     if test "$ld_shlibs" = no; then
8767       runpath_var=
8768       hardcode_libdir_flag_spec=
8769       export_dynamic_flag_spec=
8770       whole_archive_flag_spec=
8771     fi
8772   else
8773     # PORTME fill in a description of your system's linker (not GNU ld)
8774     case $host_os in
8775     aix3*)
8776       allow_undefined_flag=unsupported
8777       always_export_symbols=yes
8778       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'
8779       # Note: this linker hardcodes the directories in LIBPATH if there
8780       # are no directories specified by -L.
8781       hardcode_minus_L=yes
8782       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8783         # Neither direct hardcoding nor static linking is supported with a
8784         # broken collect2.
8785         hardcode_direct=unsupported
8786       fi
8787       ;;
8788
8789     aix[4-9]*)
8790       if test "$host_cpu" = ia64; then
8791         # On IA64, the linker does run time linking by default, so we don't
8792         # have to do anything special.
8793         aix_use_runtimelinking=no
8794         exp_sym_flag='-Bexport'
8795         no_entry_flag=""
8796       else
8797         # If we're using GNU nm, then we don't want the "-C" option.
8798         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8799         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8800           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8801         else
8802           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'
8803         fi
8804         aix_use_runtimelinking=no
8805
8806         # Test if we are trying to use run time linking or normal
8807         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8808         # need to do runtime linking.
8809         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8810           for ld_flag in $LDFLAGS; do
8811           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8812             aix_use_runtimelinking=yes
8813             break
8814           fi
8815           done
8816           ;;
8817         esac
8818
8819         exp_sym_flag='-bexport'
8820         no_entry_flag='-bnoentry'
8821       fi
8822
8823       # When large executables or shared objects are built, AIX ld can
8824       # have problems creating the table of contents.  If linking a library
8825       # or program results in "error TOC overflow" add -mminimal-toc to
8826       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8827       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8828
8829       archive_cmds=''
8830       hardcode_direct=yes
8831       hardcode_direct_absolute=yes
8832       hardcode_libdir_separator=':'
8833       link_all_deplibs=yes
8834       file_list_spec='${wl}-f,'
8835
8836       if test "$GCC" = yes; then
8837         case $host_os in aix4.[012]|aix4.[012].*)
8838         # We only want to do this on AIX 4.2 and lower, the check
8839         # below for broken collect2 doesn't work under 4.3+
8840           collect2name=`${CC} -print-prog-name=collect2`
8841           if test -f "$collect2name" &&
8842            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8843           then
8844           # We have reworked collect2
8845           :
8846           else
8847           # We have old collect2
8848           hardcode_direct=unsupported
8849           # It fails to find uninstalled libraries when the uninstalled
8850           # path is not listed in the libpath.  Setting hardcode_minus_L
8851           # to unsupported forces relinking
8852           hardcode_minus_L=yes
8853           hardcode_libdir_flag_spec='-L$libdir'
8854           hardcode_libdir_separator=
8855           fi
8856           ;;
8857         esac
8858         shared_flag='-shared'
8859         if test "$aix_use_runtimelinking" = yes; then
8860           shared_flag="$shared_flag "'${wl}-G'
8861         fi
8862         link_all_deplibs=no
8863       else
8864         # not using gcc
8865         if test "$host_cpu" = ia64; then
8866         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8867         # chokes on -Wl,-G. The following line is correct:
8868           shared_flag='-G'
8869         else
8870           if test "$aix_use_runtimelinking" = yes; then
8871             shared_flag='${wl}-G'
8872           else
8873             shared_flag='${wl}-bM:SRE'
8874           fi
8875         fi
8876       fi
8877
8878       export_dynamic_flag_spec='${wl}-bexpall'
8879       # It seems that -bexpall does not export symbols beginning with
8880       # underscore (_), so it is better to generate a list of symbols to export.
8881       always_export_symbols=yes
8882       if test "$aix_use_runtimelinking" = yes; then
8883         # Warning - without using the other runtime loading flags (-brtl),
8884         # -berok will link without error, but may produce a broken library.
8885         allow_undefined_flag='-berok'
8886         # Determine the default libpath from the value encoded in an
8887         # empty executable.
8888         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h.  */
8890
8891 int
8892 main ()
8893 {
8894
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 if ac_fn_c_try_link "$LINENO"; then :
8900
8901 lt_aix_libpath_sed='
8902     /Import File Strings/,/^$/ {
8903         /^0/ {
8904             s/^0  *\(.*\)$/\1/
8905             p
8906         }
8907     }'
8908 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8909 # Check for a 64-bit object if we didn't find anything.
8910 if test -z "$aix_libpath"; then
8911   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8912 fi
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext \
8915     conftest$ac_exeext conftest.$ac_ext
8916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8917
8918         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8919         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8920       else
8921         if test "$host_cpu" = ia64; then
8922           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8923           allow_undefined_flag="-z nodefs"
8924           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"
8925         else
8926          # Determine the default libpath from the value encoded in an
8927          # empty executable.
8928          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930
8931 int
8932 main ()
8933 {
8934
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_link "$LINENO"; then :
8940
8941 lt_aix_libpath_sed='
8942     /Import File Strings/,/^$/ {
8943         /^0/ {
8944             s/^0  *\(.*\)$/\1/
8945             p
8946         }
8947     }'
8948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949 # Check for a 64-bit object if we didn't find anything.
8950 if test -z "$aix_libpath"; then
8951   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8952 fi
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext \
8955     conftest$ac_exeext conftest.$ac_ext
8956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8957
8958          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8959           # Warning - without using the other run time loading flags,
8960           # -berok will link without error, but may produce a broken library.
8961           no_undefined_flag=' ${wl}-bernotok'
8962           allow_undefined_flag=' ${wl}-berok'
8963           # Exported symbols can be pulled into shared objects from archives
8964           whole_archive_flag_spec='$convenience'
8965           archive_cmds_need_lc=yes
8966           # This is similar to how AIX traditionally builds its shared libraries.
8967           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'
8968         fi
8969       fi
8970       ;;
8971
8972     amigaos*)
8973       case $host_cpu in
8974       powerpc)
8975             # see comment about AmigaOS4 .so support
8976             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977             archive_expsym_cmds=''
8978         ;;
8979       m68k)
8980             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)'
8981             hardcode_libdir_flag_spec='-L$libdir'
8982             hardcode_minus_L=yes
8983         ;;
8984       esac
8985       ;;
8986
8987     bsdi[45]*)
8988       export_dynamic_flag_spec=-rdynamic
8989       ;;
8990
8991     cygwin* | mingw* | pw32* | cegcc*)
8992       # When not using gcc, we currently assume that we are using
8993       # Microsoft Visual C++.
8994       # hardcode_libdir_flag_spec is actually meaningless, as there is
8995       # no search path for DLLs.
8996       hardcode_libdir_flag_spec=' '
8997       allow_undefined_flag=unsupported
8998       # Tell ltmain to make .lib files, not .a files.
8999       libext=lib
9000       # Tell ltmain to make .dll files, not .so files.
9001       shrext_cmds=".dll"
9002       # FIXME: Setting linknames here is a bad hack.
9003       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9004       # The linker will automatically build a .lib file if we build a DLL.
9005       old_archive_from_new_cmds='true'
9006       # FIXME: Should let the user specify the lib program.
9007       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9008       fix_srcfile_path='`cygpath -w "$srcfile"`'
9009       enable_shared_with_static_runtimes=yes
9010       ;;
9011
9012     darwin* | rhapsody*)
9013
9014
9015   archive_cmds_need_lc=no
9016   hardcode_direct=no
9017   hardcode_automatic=yes
9018   hardcode_shlibpath_var=unsupported
9019   whole_archive_flag_spec=''
9020   link_all_deplibs=yes
9021   allow_undefined_flag="$_lt_dar_allow_undefined"
9022   case $cc_basename in
9023      ifort*) _lt_dar_can_shared=yes ;;
9024      *) _lt_dar_can_shared=$GCC ;;
9025   esac
9026   if test "$_lt_dar_can_shared" = "yes"; then
9027     output_verbose_link_cmd=echo
9028     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9029     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9030     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}"
9031     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}"
9032
9033   else
9034   ld_shlibs=no
9035   fi
9036
9037       ;;
9038
9039     dgux*)
9040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041       hardcode_libdir_flag_spec='-L$libdir'
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     freebsd1*)
9046       ld_shlibs=no
9047       ;;
9048
9049     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9050     # support.  Future versions do this automatically, but an explicit c++rt0.o
9051     # does not break anything, and helps significantly (at the cost of a little
9052     # extra space).
9053     freebsd2.2*)
9054       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9055       hardcode_libdir_flag_spec='-R$libdir'
9056       hardcode_direct=yes
9057       hardcode_shlibpath_var=no
9058       ;;
9059
9060     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9061     freebsd2*)
9062       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063       hardcode_direct=yes
9064       hardcode_minus_L=yes
9065       hardcode_shlibpath_var=no
9066       ;;
9067
9068     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9069     freebsd* | dragonfly*)
9070       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9071       hardcode_libdir_flag_spec='-R$libdir'
9072       hardcode_direct=yes
9073       hardcode_shlibpath_var=no
9074       ;;
9075
9076     hpux9*)
9077       if test "$GCC" = yes; then
9078         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9079       else
9080         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'
9081       fi
9082       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083       hardcode_libdir_separator=:
9084       hardcode_direct=yes
9085
9086       # hardcode_minus_L: Not really in the search PATH,
9087       # but as the default location of the library.
9088       hardcode_minus_L=yes
9089       export_dynamic_flag_spec='${wl}-E'
9090       ;;
9091
9092     hpux10*)
9093       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9094         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095       else
9096         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9097       fi
9098       if test "$with_gnu_ld" = no; then
9099         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9100         hardcode_libdir_flag_spec_ld='+b $libdir'
9101         hardcode_libdir_separator=:
9102         hardcode_direct=yes
9103         hardcode_direct_absolute=yes
9104         export_dynamic_flag_spec='${wl}-E'
9105         # hardcode_minus_L: Not really in the search PATH,
9106         # but as the default location of the library.
9107         hardcode_minus_L=yes
9108       fi
9109       ;;
9110
9111     hpux11*)
9112       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9113         case $host_cpu in
9114         hppa*64*)
9115           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9116           ;;
9117         ia64*)
9118           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9119           ;;
9120         *)
9121           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122           ;;
9123         esac
9124       else
9125         case $host_cpu in
9126         hppa*64*)
9127           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9128           ;;
9129         ia64*)
9130           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9131           ;;
9132         *)
9133           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134           ;;
9135         esac
9136       fi
9137       if test "$with_gnu_ld" = no; then
9138         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9139         hardcode_libdir_separator=:
9140
9141         case $host_cpu in
9142         hppa*64*|ia64*)
9143           hardcode_direct=no
9144           hardcode_shlibpath_var=no
9145           ;;
9146         *)
9147           hardcode_direct=yes
9148           hardcode_direct_absolute=yes
9149           export_dynamic_flag_spec='${wl}-E'
9150
9151           # hardcode_minus_L: Not really in the search PATH,
9152           # but as the default location of the library.
9153           hardcode_minus_L=yes
9154           ;;
9155         esac
9156       fi
9157       ;;
9158
9159     irix5* | irix6* | nonstopux*)
9160       if test "$GCC" = yes; then
9161         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9162         # Try to use the -exported_symbol ld option, if it does not
9163         # work, assume that -exports_file does not work either and
9164         # implicitly export all symbols.
9165         save_LDFLAGS="$LDFLAGS"
9166         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9167         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h.  */
9169 int foo(void) {}
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"; then :
9172   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9173
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext \
9176     conftest$ac_exeext conftest.$ac_ext
9177         LDFLAGS="$save_LDFLAGS"
9178       else
9179         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9180         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9181       fi
9182       archive_cmds_need_lc='no'
9183       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9184       hardcode_libdir_separator=:
9185       inherit_rpath=yes
9186       link_all_deplibs=yes
9187       ;;
9188
9189     netbsd* | netbsdelf*-gnu)
9190       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9191         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9192       else
9193         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9194       fi
9195       hardcode_libdir_flag_spec='-R$libdir'
9196       hardcode_direct=yes
9197       hardcode_shlibpath_var=no
9198       ;;
9199
9200     newsos6)
9201       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9202       hardcode_direct=yes
9203       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204       hardcode_libdir_separator=:
9205       hardcode_shlibpath_var=no
9206       ;;
9207
9208     *nto* | *qnx*)
9209       ;;
9210
9211     openbsd*)
9212       if test -f /usr/libexec/ld.so; then
9213         hardcode_direct=yes
9214         hardcode_shlibpath_var=no
9215         hardcode_direct_absolute=yes
9216         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9217           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9218           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9219           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9220           export_dynamic_flag_spec='${wl}-E'
9221         else
9222           case $host_os in
9223            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9224              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9225              hardcode_libdir_flag_spec='-R$libdir'
9226              ;;
9227            *)
9228              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9229              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9230              ;;
9231           esac
9232         fi
9233       else
9234         ld_shlibs=no
9235       fi
9236       ;;
9237
9238     os2*)
9239       hardcode_libdir_flag_spec='-L$libdir'
9240       hardcode_minus_L=yes
9241       allow_undefined_flag=unsupported
9242       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'
9243       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9244       ;;
9245
9246     osf3*)
9247       if test "$GCC" = yes; then
9248         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9249         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9250       else
9251         allow_undefined_flag=' -expect_unresolved \*'
9252         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9253       fi
9254       archive_cmds_need_lc='no'
9255       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256       hardcode_libdir_separator=:
9257       ;;
9258
9259     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9260       if test "$GCC" = yes; then
9261         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9262         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9263         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264       else
9265         allow_undefined_flag=' -expect_unresolved \*'
9266         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9267         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~
9268         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9269
9270         # Both c and cxx compiler support -rpath directly
9271         hardcode_libdir_flag_spec='-rpath $libdir'
9272       fi
9273       archive_cmds_need_lc='no'
9274       hardcode_libdir_separator=:
9275       ;;
9276
9277     solaris*)
9278       no_undefined_flag=' -z defs'
9279       if test "$GCC" = yes; then
9280         wlarc='${wl}'
9281         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9282         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284       else
9285         case `$CC -V 2>&1` in
9286         *"Compilers 5.0"*)
9287           wlarc=''
9288           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9291           ;;
9292         *)
9293           wlarc='${wl}'
9294           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9295           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9296           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9297           ;;
9298         esac
9299       fi
9300       hardcode_libdir_flag_spec='-R$libdir'
9301       hardcode_shlibpath_var=no
9302       case $host_os in
9303       solaris2.[0-5] | solaris2.[0-5].*) ;;
9304       *)
9305         # The compiler driver will combine and reorder linker options,
9306         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9307         # but is careful enough not to reorder.
9308         # Supported since Solaris 2.6 (maybe 2.5.1?)
9309         if test "$GCC" = yes; then
9310           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9311         else
9312           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9313         fi
9314         ;;
9315       esac
9316       link_all_deplibs=yes
9317       ;;
9318
9319     sunos4*)
9320       if test "x$host_vendor" = xsequent; then
9321         # Use $CC to link under sequent, because it throws in some extra .o
9322         # files that make .init and .fini sections work.
9323         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9324       else
9325         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9326       fi
9327       hardcode_libdir_flag_spec='-L$libdir'
9328       hardcode_direct=yes
9329       hardcode_minus_L=yes
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     sysv4)
9334       case $host_vendor in
9335         sni)
9336           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337           hardcode_direct=yes # is this really true???
9338         ;;
9339         siemens)
9340           ## LD is ld it makes a PLAMLIB
9341           ## CC just makes a GrossModule.
9342           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9343           reload_cmds='$CC -r -o $output$reload_objs'
9344           hardcode_direct=no
9345         ;;
9346         motorola)
9347           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9349         ;;
9350       esac
9351       runpath_var='LD_RUN_PATH'
9352       hardcode_shlibpath_var=no
9353       ;;
9354
9355     sysv4.3*)
9356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357       hardcode_shlibpath_var=no
9358       export_dynamic_flag_spec='-Bexport'
9359       ;;
9360
9361     sysv4*MP*)
9362       if test -d /usr/nec; then
9363         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364         hardcode_shlibpath_var=no
9365         runpath_var=LD_RUN_PATH
9366         hardcode_runpath_var=yes
9367         ld_shlibs=yes
9368       fi
9369       ;;
9370
9371     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9372       no_undefined_flag='${wl}-z,text'
9373       archive_cmds_need_lc=no
9374       hardcode_shlibpath_var=no
9375       runpath_var='LD_RUN_PATH'
9376
9377       if test "$GCC" = yes; then
9378         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380       else
9381         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383       fi
9384       ;;
9385
9386     sysv5* | sco3.2v5* | sco5v6*)
9387       # Note: We can NOT use -z defs as we might desire, because we do not
9388       # link with -lc, and that would cause any symbols used from libc to
9389       # always be unresolved, which means just about no library would
9390       # ever link correctly.  If we're not using GNU ld we use -z text
9391       # though, which does catch some bad symbols but isn't as heavy-handed
9392       # as -z defs.
9393       no_undefined_flag='${wl}-z,text'
9394       allow_undefined_flag='${wl}-z,nodefs'
9395       archive_cmds_need_lc=no
9396       hardcode_shlibpath_var=no
9397       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9398       hardcode_libdir_separator=':'
9399       link_all_deplibs=yes
9400       export_dynamic_flag_spec='${wl}-Bexport'
9401       runpath_var='LD_RUN_PATH'
9402
9403       if test "$GCC" = yes; then
9404         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406       else
9407         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409       fi
9410       ;;
9411
9412     uts4*)
9413       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414       hardcode_libdir_flag_spec='-L$libdir'
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     *)
9419       ld_shlibs=no
9420       ;;
9421     esac
9422
9423     if test x$host_vendor = xsni; then
9424       case $host in
9425       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9426         export_dynamic_flag_spec='${wl}-Blargedynsym'
9427         ;;
9428       esac
9429     fi
9430   fi
9431
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9433 $as_echo "$ld_shlibs" >&6; }
9434 test "$ld_shlibs" = no && can_build_shared=no
9435
9436 with_gnu_ld=$with_gnu_ld
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452 #
9453 # Do we need to explicitly link libc?
9454 #
9455 case "x$archive_cmds_need_lc" in
9456 x|xyes)
9457   # Assume -lc should be added
9458   archive_cmds_need_lc=yes
9459
9460   if test "$enable_shared" = yes && test "$GCC" = yes; then
9461     case $archive_cmds in
9462     *'~'*)
9463       # FIXME: we may have to deal with multi-command sequences.
9464       ;;
9465     '$CC '*)
9466       # Test whether the compiler implicitly links with -lc since on some
9467       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9468       # to ld, don't add -lc before -lgcc.
9469       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9470 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9471       $RM conftest*
9472       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9473
9474       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9475   (eval $ac_compile) 2>&5
9476   ac_status=$?
9477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478   test $ac_status = 0; } 2>conftest.err; then
9479         soname=conftest
9480         lib=conftest
9481         libobjs=conftest.$ac_objext
9482         deplibs=
9483         wl=$lt_prog_compiler_wl
9484         pic_flag=$lt_prog_compiler_pic
9485         compiler_flags=-v
9486         linker_flags=-v
9487         verstring=
9488         output_objdir=.
9489         libname=conftest
9490         lt_save_allow_undefined_flag=$allow_undefined_flag
9491         allow_undefined_flag=
9492         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9493   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9494   ac_status=$?
9495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9496   test $ac_status = 0; }
9497         then
9498           archive_cmds_need_lc=no
9499         else
9500           archive_cmds_need_lc=yes
9501         fi
9502         allow_undefined_flag=$lt_save_allow_undefined_flag
9503       else
9504         cat conftest.err 1>&5
9505       fi
9506       $RM conftest*
9507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9508 $as_echo "$archive_cmds_need_lc" >&6; }
9509       ;;
9510     esac
9511   fi
9512   ;;
9513 esac
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9673
9674 if test "$GCC" = yes; then
9675   case $host_os in
9676     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9677     *) lt_awk_arg="/^libraries:/" ;;
9678   esac
9679   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9680   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9681     # if the path contains ";" then we assume it to be the separator
9682     # otherwise default to the standard path separator (i.e. ":") - it is
9683     # assumed that no part of a normal pathname contains ";" but that should
9684     # okay in the real world where ";" in dirpaths is itself problematic.
9685     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9686   else
9687     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9688   fi
9689   # Ok, now we have the path, separated by spaces, we can step through it
9690   # and add multilib dir if necessary.
9691   lt_tmp_lt_search_path_spec=
9692   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9693   for lt_sys_path in $lt_search_path_spec; do
9694     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9695       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9696     else
9697       test -d "$lt_sys_path" && \
9698         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9699     fi
9700   done
9701   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9702 BEGIN {RS=" "; FS="/|\n";} {
9703   lt_foo="";
9704   lt_count=0;
9705   for (lt_i = NF; lt_i > 0; lt_i--) {
9706     if ($lt_i != "" && $lt_i != ".") {
9707       if ($lt_i == "..") {
9708         lt_count++;
9709       } else {
9710         if (lt_count == 0) {
9711           lt_foo="/" $lt_i lt_foo;
9712         } else {
9713           lt_count--;
9714         }
9715       }
9716     }
9717   }
9718   if (lt_foo != "") { lt_freq[lt_foo]++; }
9719   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9720 }'`
9721   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9722 else
9723   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724 fi
9725 library_names_spec=
9726 libname_spec='lib$name'
9727 soname_spec=
9728 shrext_cmds=".so"
9729 postinstall_cmds=
9730 postuninstall_cmds=
9731 finish_cmds=
9732 finish_eval=
9733 shlibpath_var=
9734 shlibpath_overrides_runpath=unknown
9735 version_type=none
9736 dynamic_linker="$host_os ld.so"
9737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9738 need_lib_prefix=unknown
9739 hardcode_into_libs=no
9740
9741 # when you set need_version to no, make sure it does not cause -set_version
9742 # flags to be left without arguments
9743 need_version=unknown
9744
9745 case $host_os in
9746 aix3*)
9747   version_type=linux
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9749   shlibpath_var=LIBPATH
9750
9751   # AIX 3 has no versioning support, so we append a major version to the name.
9752   soname_spec='${libname}${release}${shared_ext}$major'
9753   ;;
9754
9755 aix[4-9]*)
9756   version_type=linux
9757   need_lib_prefix=no
9758   need_version=no
9759   hardcode_into_libs=yes
9760   if test "$host_cpu" = ia64; then
9761     # AIX 5 supports IA64
9762     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9763     shlibpath_var=LD_LIBRARY_PATH
9764   else
9765     # With GCC up to 2.95.x, collect2 would create an import file
9766     # for dependence libraries.  The import file would start with
9767     # the line `#! .'.  This would cause the generated library to
9768     # depend on `.', always an invalid library.  This was fixed in
9769     # development snapshots of GCC prior to 3.0.
9770     case $host_os in
9771       aix4 | aix4.[01] | aix4.[01].*)
9772       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9773            echo ' yes '
9774            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9775         :
9776       else
9777         can_build_shared=no
9778       fi
9779       ;;
9780     esac
9781     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9782     # soname into executable. Probably we can add versioning support to
9783     # collect2, so additional links can be useful in future.
9784     if test "$aix_use_runtimelinking" = yes; then
9785       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9786       # instead of lib<name>.a to let people know that these are not
9787       # typical AIX shared libraries.
9788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789     else
9790       # We preserve .a as extension for shared libraries through AIX4.2
9791       # and later when we are not doing run time linking.
9792       library_names_spec='${libname}${release}.a $libname.a'
9793       soname_spec='${libname}${release}${shared_ext}$major'
9794     fi
9795     shlibpath_var=LIBPATH
9796   fi
9797   ;;
9798
9799 amigaos*)
9800   case $host_cpu in
9801   powerpc)
9802     # Since July 2007 AmigaOS4 officially supports .so libraries.
9803     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805     ;;
9806   m68k)
9807     library_names_spec='$libname.ixlibrary $libname.a'
9808     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9809     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9810     ;;
9811   esac
9812   ;;
9813
9814 beos*)
9815   library_names_spec='${libname}${shared_ext}'
9816   dynamic_linker="$host_os ld.so"
9817   shlibpath_var=LIBRARY_PATH
9818   ;;
9819
9820 bsdi[45]*)
9821   version_type=linux
9822   need_version=no
9823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824   soname_spec='${libname}${release}${shared_ext}$major'
9825   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9826   shlibpath_var=LD_LIBRARY_PATH
9827   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9828   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9829   # the default ld.so.conf also contains /usr/contrib/lib and
9830   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9831   # libtool to hard-code these into programs
9832   ;;
9833
9834 cygwin* | mingw* | pw32* | cegcc*)
9835   version_type=windows
9836   shrext_cmds=".dll"
9837   need_version=no
9838   need_lib_prefix=no
9839
9840   case $GCC,$host_os in
9841   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9842     library_names_spec='$libname.dll.a'
9843     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9844     postinstall_cmds='base_file=`basename \${file}`~
9845       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9846       dldir=$destdir/`dirname \$dlpath`~
9847       test -d \$dldir || mkdir -p \$dldir~
9848       $install_prog $dir/$dlname \$dldir/$dlname~
9849       chmod a+x \$dldir/$dlname~
9850       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9851         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9852       fi'
9853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9854       dlpath=$dir/\$dldll~
9855        $RM \$dlpath'
9856     shlibpath_overrides_runpath=yes
9857
9858     case $host_os in
9859     cygwin*)
9860       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9861       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9862       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9863       ;;
9864     mingw* | cegcc*)
9865       # MinGW DLLs use traditional 'lib' prefix
9866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9867       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9868       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9869         # It is most probably a Windows format PATH printed by
9870         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9871         # path with ; separators, and with drive letters. We can handle the
9872         # drive letters (cygwin fileutils understands them), so leave them,
9873         # especially as we might pass files found there to a mingw objdump,
9874         # which wouldn't understand a cygwinified path. Ahh.
9875         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9876       else
9877         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9878       fi
9879       ;;
9880     pw32*)
9881       # pw32 DLLs use 'pw' prefix rather than 'lib'
9882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883       ;;
9884     esac
9885     ;;
9886
9887   *)
9888     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9889     ;;
9890   esac
9891   dynamic_linker='Win32 ld.exe'
9892   # FIXME: first we should search . and the directory the executable is in
9893   shlibpath_var=PATH
9894   ;;
9895
9896 darwin* | rhapsody*)
9897   dynamic_linker="$host_os dyld"
9898   version_type=darwin
9899   need_lib_prefix=no
9900   need_version=no
9901   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9902   soname_spec='${libname}${release}${major}$shared_ext'
9903   shlibpath_overrides_runpath=yes
9904   shlibpath_var=DYLD_LIBRARY_PATH
9905   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9906
9907   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9908   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9909   ;;
9910
9911 dgux*)
9912   version_type=linux
9913   need_lib_prefix=no
9914   need_version=no
9915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   shlibpath_var=LD_LIBRARY_PATH
9918   ;;
9919
9920 freebsd1*)
9921   dynamic_linker=no
9922   ;;
9923
9924 freebsd* | dragonfly*)
9925   # DragonFly does not have aout.  When/if they implement a new
9926   # versioning mechanism, adjust this.
9927   if test -x /usr/bin/objformat; then
9928     objformat=`/usr/bin/objformat`
9929   else
9930     case $host_os in
9931     freebsd[123]*) objformat=aout ;;
9932     *) objformat=elf ;;
9933     esac
9934   fi
9935   version_type=freebsd-$objformat
9936   case $version_type in
9937     freebsd-elf*)
9938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9939       need_version=no
9940       need_lib_prefix=no
9941       ;;
9942     freebsd-*)
9943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9944       need_version=yes
9945       ;;
9946   esac
9947   shlibpath_var=LD_LIBRARY_PATH
9948   case $host_os in
9949   freebsd2*)
9950     shlibpath_overrides_runpath=yes
9951     ;;
9952   freebsd3.[01]* | freebsdelf3.[01]*)
9953     shlibpath_overrides_runpath=yes
9954     hardcode_into_libs=yes
9955     ;;
9956   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9957   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9958     shlibpath_overrides_runpath=no
9959     hardcode_into_libs=yes
9960     ;;
9961   *) # from 4.6 on, and DragonFly
9962     shlibpath_overrides_runpath=yes
9963     hardcode_into_libs=yes
9964     ;;
9965   esac
9966   ;;
9967
9968 gnu*)
9969   version_type=linux
9970   need_lib_prefix=no
9971   need_version=no
9972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9973   soname_spec='${libname}${release}${shared_ext}$major'
9974   shlibpath_var=LD_LIBRARY_PATH
9975   hardcode_into_libs=yes
9976   ;;
9977
9978 hpux9* | hpux10* | hpux11*)
9979   # Give a soname corresponding to the major version so that dld.sl refuses to
9980   # link against other versions.
9981   version_type=sunos
9982   need_lib_prefix=no
9983   need_version=no
9984   case $host_cpu in
9985   ia64*)
9986     shrext_cmds='.so'
9987     hardcode_into_libs=yes
9988     dynamic_linker="$host_os dld.so"
9989     shlibpath_var=LD_LIBRARY_PATH
9990     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992     soname_spec='${libname}${release}${shared_ext}$major'
9993     if test "X$HPUX_IA64_MODE" = X32; then
9994       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9995     else
9996       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9997     fi
9998     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9999     ;;
10000   hppa*64*)
10001     shrext_cmds='.sl'
10002     hardcode_into_libs=yes
10003     dynamic_linker="$host_os dld.sl"
10004     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10005     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007     soname_spec='${libname}${release}${shared_ext}$major'
10008     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10010     ;;
10011   *)
10012     shrext_cmds='.sl'
10013     dynamic_linker="$host_os dld.sl"
10014     shlibpath_var=SHLIB_PATH
10015     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017     soname_spec='${libname}${release}${shared_ext}$major'
10018     ;;
10019   esac
10020   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10021   postinstall_cmds='chmod 555 $lib'
10022   ;;
10023
10024 interix[3-9]*)
10025   version_type=linux
10026   need_lib_prefix=no
10027   need_version=no
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10031   shlibpath_var=LD_LIBRARY_PATH
10032   shlibpath_overrides_runpath=no
10033   hardcode_into_libs=yes
10034   ;;
10035
10036 irix5* | irix6* | nonstopux*)
10037   case $host_os in
10038     nonstopux*) version_type=nonstopux ;;
10039     *)
10040         if test "$lt_cv_prog_gnu_ld" = yes; then
10041                 version_type=linux
10042         else
10043                 version_type=irix
10044         fi ;;
10045   esac
10046   need_lib_prefix=no
10047   need_version=no
10048   soname_spec='${libname}${release}${shared_ext}$major'
10049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10050   case $host_os in
10051   irix5* | nonstopux*)
10052     libsuff= shlibsuff=
10053     ;;
10054   *)
10055     case $LD in # libtool.m4 will add one of these switches to LD
10056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10057       libsuff= shlibsuff= libmagic=32-bit;;
10058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10059       libsuff=32 shlibsuff=N32 libmagic=N32;;
10060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10062     *) libsuff= shlibsuff= libmagic=never-match;;
10063     esac
10064     ;;
10065   esac
10066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10067   shlibpath_overrides_runpath=no
10068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10070   hardcode_into_libs=yes
10071   ;;
10072
10073 # No shared lib support for Linux oldld, aout, or coff.
10074 linux*oldld* | linux*aout* | linux*coff*)
10075   dynamic_linker=no
10076   ;;
10077
10078 # This must be Linux ELF.
10079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10080   version_type=linux
10081   need_lib_prefix=no
10082   need_version=no
10083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084   soname_spec='${libname}${release}${shared_ext}$major'
10085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   shlibpath_overrides_runpath=no
10088   # Some binutils ld are patched to set DT_RUNPATH
10089   save_LDFLAGS=$LDFLAGS
10090   save_libdir=$libdir
10091   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10092        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h.  */
10095
10096 int
10097 main ()
10098 {
10099
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 if ac_fn_c_try_link "$LINENO"; then :
10105   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10106   shlibpath_overrides_runpath=yes
10107 fi
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext \
10110     conftest$ac_exeext conftest.$ac_ext
10111   LDFLAGS=$save_LDFLAGS
10112   libdir=$save_libdir
10113
10114   # This implies no fast_install, which is unacceptable.
10115   # Some rework will be needed to allow for fast_install
10116   # before this can be enabled.
10117   hardcode_into_libs=yes
10118
10119   # Append ld.so.conf contents to the search path
10120   if test -f /etc/ld.so.conf; then
10121     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;/^$/d' | tr '\n' ' '`
10122     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10123   fi
10124
10125   # We used to test for /lib/ld.so.1 and disable shared libraries on
10126   # powerpc, because MkLinux only supported shared libraries with the
10127   # GNU dynamic linker.  Since this was broken with cross compilers,
10128   # most powerpc-linux boxes support dynamic linking these days and
10129   # people can always --disable-shared, the test was removed, and we
10130   # assume the GNU/Linux dynamic linker is in use.
10131   dynamic_linker='GNU/Linux ld.so'
10132   ;;
10133
10134 netbsdelf*-gnu)
10135   version_type=linux
10136   need_lib_prefix=no
10137   need_version=no
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10139   soname_spec='${libname}${release}${shared_ext}$major'
10140   shlibpath_var=LD_LIBRARY_PATH
10141   shlibpath_overrides_runpath=no
10142   hardcode_into_libs=yes
10143   dynamic_linker='NetBSD ld.elf_so'
10144   ;;
10145
10146 netbsd*)
10147   version_type=sunos
10148   need_lib_prefix=no
10149   need_version=no
10150   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10152     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10153     dynamic_linker='NetBSD (a.out) ld.so'
10154   else
10155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10156     soname_spec='${libname}${release}${shared_ext}$major'
10157     dynamic_linker='NetBSD ld.elf_so'
10158   fi
10159   shlibpath_var=LD_LIBRARY_PATH
10160   shlibpath_overrides_runpath=yes
10161   hardcode_into_libs=yes
10162   ;;
10163
10164 newsos6)
10165   version_type=linux
10166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167   shlibpath_var=LD_LIBRARY_PATH
10168   shlibpath_overrides_runpath=yes
10169   ;;
10170
10171 *nto* | *qnx*)
10172   version_type=qnx
10173   need_lib_prefix=no
10174   need_version=no
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176   soname_spec='${libname}${release}${shared_ext}$major'
10177   shlibpath_var=LD_LIBRARY_PATH
10178   shlibpath_overrides_runpath=no
10179   hardcode_into_libs=yes
10180   dynamic_linker='ldqnx.so'
10181   ;;
10182
10183 openbsd*)
10184   version_type=sunos
10185   sys_lib_dlsearch_path_spec="/usr/lib"
10186   need_lib_prefix=no
10187   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10188   case $host_os in
10189     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10190     *)                          need_version=no  ;;
10191   esac
10192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10194   shlibpath_var=LD_LIBRARY_PATH
10195   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10196     case $host_os in
10197       openbsd2.[89] | openbsd2.[89].*)
10198         shlibpath_overrides_runpath=no
10199         ;;
10200       *)
10201         shlibpath_overrides_runpath=yes
10202         ;;
10203       esac
10204   else
10205     shlibpath_overrides_runpath=yes
10206   fi
10207   ;;
10208
10209 os2*)
10210   libname_spec='$name'
10211   shrext_cmds=".dll"
10212   need_lib_prefix=no
10213   library_names_spec='$libname${shared_ext} $libname.a'
10214   dynamic_linker='OS/2 ld.exe'
10215   shlibpath_var=LIBPATH
10216   ;;
10217
10218 osf3* | osf4* | osf5*)
10219   version_type=osf
10220   need_lib_prefix=no
10221   need_version=no
10222   soname_spec='${libname}${release}${shared_ext}$major'
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224   shlibpath_var=LD_LIBRARY_PATH
10225   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10226   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10227   ;;
10228
10229 rdos*)
10230   dynamic_linker=no
10231   ;;
10232
10233 solaris*)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=yes
10241   hardcode_into_libs=yes
10242   # ldd complains unless libraries are executable
10243   postinstall_cmds='chmod +x $lib'
10244   ;;
10245
10246 sunos4*)
10247   version_type=sunos
10248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10249   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10250   shlibpath_var=LD_LIBRARY_PATH
10251   shlibpath_overrides_runpath=yes
10252   if test "$with_gnu_ld" = yes; then
10253     need_lib_prefix=no
10254   fi
10255   need_version=yes
10256   ;;
10257
10258 sysv4 | sysv4.3*)
10259   version_type=linux
10260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261   soname_spec='${libname}${release}${shared_ext}$major'
10262   shlibpath_var=LD_LIBRARY_PATH
10263   case $host_vendor in
10264     sni)
10265       shlibpath_overrides_runpath=no
10266       need_lib_prefix=no
10267       runpath_var=LD_RUN_PATH
10268       ;;
10269     siemens)
10270       need_lib_prefix=no
10271       ;;
10272     motorola)
10273       need_lib_prefix=no
10274       need_version=no
10275       shlibpath_overrides_runpath=no
10276       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10277       ;;
10278   esac
10279   ;;
10280
10281 sysv4*MP*)
10282   if test -d /usr/nec ;then
10283     version_type=linux
10284     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10285     soname_spec='$libname${shared_ext}.$major'
10286     shlibpath_var=LD_LIBRARY_PATH
10287   fi
10288   ;;
10289
10290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10291   version_type=freebsd-elf
10292   need_lib_prefix=no
10293   need_version=no
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295   soname_spec='${libname}${release}${shared_ext}$major'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   shlibpath_overrides_runpath=yes
10298   hardcode_into_libs=yes
10299   if test "$with_gnu_ld" = yes; then
10300     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10301   else
10302     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10303     case $host_os in
10304       sco3.2v5*)
10305         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10306         ;;
10307     esac
10308   fi
10309   sys_lib_dlsearch_path_spec='/usr/lib'
10310   ;;
10311
10312 tpf*)
10313   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10314   version_type=linux
10315   need_lib_prefix=no
10316   need_version=no
10317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   shlibpath_overrides_runpath=no
10320   hardcode_into_libs=yes
10321   ;;
10322
10323 uts4*)
10324   version_type=linux
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   ;;
10329
10330 *)
10331   dynamic_linker=no
10332   ;;
10333 esac
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10335 $as_echo "$dynamic_linker" >&6; }
10336 test "$dynamic_linker" = no && can_build_shared=no
10337
10338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10339 if test "$GCC" = yes; then
10340   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10341 fi
10342
10343 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10344   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10345 fi
10346 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10347   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10348 fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10437 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10438 hardcode_action=
10439 if test -n "$hardcode_libdir_flag_spec" ||
10440    test -n "$runpath_var" ||
10441    test "X$hardcode_automatic" = "Xyes" ; then
10442
10443   # We can hardcode non-existent directories.
10444   if test "$hardcode_direct" != no &&
10445      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10446      # have to relink, otherwise we might link with an installed library
10447      # when we should be linking with a yet-to-be-installed one
10448      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10449      test "$hardcode_minus_L" != no; then
10450     # Linking always hardcodes the temporary library directory.
10451     hardcode_action=relink
10452   else
10453     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10454     hardcode_action=immediate
10455   fi
10456 else
10457   # We cannot hardcode anything, or else we can only hardcode existing
10458   # directories.
10459   hardcode_action=unsupported
10460 fi
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10462 $as_echo "$hardcode_action" >&6; }
10463
10464 if test "$hardcode_action" = relink ||
10465    test "$inherit_rpath" = yes; then
10466   # Fast installation is not supported
10467   enable_fast_install=no
10468 elif test "$shlibpath_overrides_runpath" = yes ||
10469      test "$enable_shared" = no; then
10470   # Fast installation is not necessary
10471   enable_fast_install=needless
10472 fi
10473
10474
10475
10476
10477
10478
10479   if test "x$enable_dlopen" != xyes; then
10480   enable_dlopen=unknown
10481   enable_dlopen_self=unknown
10482   enable_dlopen_self_static=unknown
10483 else
10484   lt_cv_dlopen=no
10485   lt_cv_dlopen_libs=
10486
10487   case $host_os in
10488   beos*)
10489     lt_cv_dlopen="load_add_on"
10490     lt_cv_dlopen_libs=
10491     lt_cv_dlopen_self=yes
10492     ;;
10493
10494   mingw* | pw32* | cegcc*)
10495     lt_cv_dlopen="LoadLibrary"
10496     lt_cv_dlopen_libs=
10497     ;;
10498
10499   cygwin*)
10500     lt_cv_dlopen="dlopen"
10501     lt_cv_dlopen_libs=
10502     ;;
10503
10504   darwin*)
10505   # if libdl is installed we need to link against it
10506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10507 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10509   $as_echo_n "(cached) " >&6
10510 else
10511   ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-ldl  $LIBS"
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h.  */
10515
10516 /* Override any GCC internal prototype to avoid an error.
10517    Use char because int might match the return type of a GCC
10518    builtin and then its argument prototype would still apply.  */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char dlopen ();
10523 int
10524 main ()
10525 {
10526 return dlopen ();
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 if ac_fn_c_try_link "$LINENO"; then :
10532   ac_cv_lib_dl_dlopen=yes
10533 else
10534   ac_cv_lib_dl_dlopen=no
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext \
10537     conftest$ac_exeext conftest.$ac_ext
10538 LIBS=$ac_check_lib_save_LIBS
10539 fi
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10541 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10542 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10543   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10544 else
10545
10546     lt_cv_dlopen="dyld"
10547     lt_cv_dlopen_libs=
10548     lt_cv_dlopen_self=yes
10549
10550 fi
10551
10552     ;;
10553
10554   *)
10555     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10556 if test "x$ac_cv_func_shl_load" = x""yes; then :
10557   lt_cv_dlopen="shl_load"
10558 else
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10561 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-ldld  $LIBS"
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h.  */
10568
10569 /* Override any GCC internal prototype to avoid an error.
10570    Use char because int might match the return type of a GCC
10571    builtin and then its argument prototype would still apply.  */
10572 #ifdef __cplusplus
10573 extern "C"
10574 #endif
10575 char shl_load ();
10576 int
10577 main ()
10578 {
10579 return shl_load ();
10580   ;
10581   return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585   ac_cv_lib_dld_shl_load=yes
10586 else
10587   ac_cv_lib_dld_shl_load=no
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext \
10590     conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10594 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10595 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10596   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10597 else
10598   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10599 if test "x$ac_cv_func_dlopen" = x""yes; then :
10600   lt_cv_dlopen="dlopen"
10601 else
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-ldl  $LIBS"
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h.  */
10611
10612 /* Override any GCC internal prototype to avoid an error.
10613    Use char because int might match the return type of a GCC
10614    builtin and then its argument prototype would still apply.  */
10615 #ifdef __cplusplus
10616 extern "C"
10617 #endif
10618 char dlopen ();
10619 int
10620 main ()
10621 {
10622 return dlopen ();
10623   ;
10624   return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_c_try_link "$LINENO"; then :
10628   ac_cv_lib_dl_dlopen=yes
10629 else
10630   ac_cv_lib_dl_dlopen=no
10631 fi
10632 rm -f core conftest.err conftest.$ac_objext \
10633     conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10638 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10642 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lsvld  $LIBS"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h.  */
10650
10651 /* Override any GCC internal prototype to avoid an error.
10652    Use char because int might match the return type of a GCC
10653    builtin and then its argument prototype would still apply.  */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char dlopen ();
10658 int
10659 main ()
10660 {
10661 return dlopen ();
10662   ;
10663   return 0;
10664 }
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"; then :
10667   ac_cv_lib_svld_dlopen=yes
10668 else
10669   ac_cv_lib_svld_dlopen=no
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext \
10672     conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10676 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10677 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10678   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10679 else
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10681 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10682 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10683   $as_echo_n "(cached) " >&6
10684 else
10685   ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-ldld  $LIBS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h.  */
10689
10690 /* Override any GCC internal prototype to avoid an error.
10691    Use char because int might match the return type of a GCC
10692    builtin and then its argument prototype would still apply.  */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char dld_link ();
10697 int
10698 main ()
10699 {
10700 return dld_link ();
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706   ac_cv_lib_dld_dld_link=yes
10707 else
10708   ac_cv_lib_dld_dld_link=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711     conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10715 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10716 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10717   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10718 fi
10719
10720
10721 fi
10722
10723
10724 fi
10725
10726
10727 fi
10728
10729
10730 fi
10731
10732
10733 fi
10734
10735     ;;
10736   esac
10737
10738   if test "x$lt_cv_dlopen" != xno; then
10739     enable_dlopen=yes
10740   else
10741     enable_dlopen=no
10742   fi
10743
10744   case $lt_cv_dlopen in
10745   dlopen)
10746     save_CPPFLAGS="$CPPFLAGS"
10747     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10748
10749     save_LDFLAGS="$LDFLAGS"
10750     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10751
10752     save_LIBS="$LIBS"
10753     LIBS="$lt_cv_dlopen_libs $LIBS"
10754
10755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10756 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10757 if test "${lt_cv_dlopen_self+set}" = set; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760           if test "$cross_compiling" = yes; then :
10761   lt_cv_dlopen_self=cross
10762 else
10763   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10764   lt_status=$lt_dlunknown
10765   cat > conftest.$ac_ext <<_LT_EOF
10766 #line 10766 "configure"
10767 #include "confdefs.h"
10768
10769 #if HAVE_DLFCN_H
10770 #include <dlfcn.h>
10771 #endif
10772
10773 #include <stdio.h>
10774
10775 #ifdef RTLD_GLOBAL
10776 #  define LT_DLGLOBAL           RTLD_GLOBAL
10777 #else
10778 #  ifdef DL_GLOBAL
10779 #    define LT_DLGLOBAL         DL_GLOBAL
10780 #  else
10781 #    define LT_DLGLOBAL         0
10782 #  endif
10783 #endif
10784
10785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10786    find out it does not work in some platform. */
10787 #ifndef LT_DLLAZY_OR_NOW
10788 #  ifdef RTLD_LAZY
10789 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10790 #  else
10791 #    ifdef DL_LAZY
10792 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10793 #    else
10794 #      ifdef RTLD_NOW
10795 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10796 #      else
10797 #        ifdef DL_NOW
10798 #          define LT_DLLAZY_OR_NOW      DL_NOW
10799 #        else
10800 #          define LT_DLLAZY_OR_NOW      0
10801 #        endif
10802 #      endif
10803 #    endif
10804 #  endif
10805 #endif
10806
10807 void fnord() { int i=42;}
10808 int main ()
10809 {
10810   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10811   int status = $lt_dlunknown;
10812
10813   if (self)
10814     {
10815       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10816       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10817       /* dlclose (self); */
10818     }
10819   else
10820     puts (dlerror ());
10821
10822   return status;
10823 }
10824 _LT_EOF
10825   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10826   (eval $ac_link) 2>&5
10827   ac_status=$?
10828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10830     (./conftest; exit; ) >&5 2>/dev/null
10831     lt_status=$?
10832     case x$lt_status in
10833       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10834       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10835       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10836     esac
10837   else :
10838     # compilation failed
10839     lt_cv_dlopen_self=no
10840   fi
10841 fi
10842 rm -fr conftest*
10843
10844
10845 fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10847 $as_echo "$lt_cv_dlopen_self" >&6; }
10848
10849     if test "x$lt_cv_dlopen_self" = xyes; then
10850       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10852 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10853 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856           if test "$cross_compiling" = yes; then :
10857   lt_cv_dlopen_self_static=cross
10858 else
10859   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10860   lt_status=$lt_dlunknown
10861   cat > conftest.$ac_ext <<_LT_EOF
10862 #line 10862 "configure"
10863 #include "confdefs.h"
10864
10865 #if HAVE_DLFCN_H
10866 #include <dlfcn.h>
10867 #endif
10868
10869 #include <stdio.h>
10870
10871 #ifdef RTLD_GLOBAL
10872 #  define LT_DLGLOBAL           RTLD_GLOBAL
10873 #else
10874 #  ifdef DL_GLOBAL
10875 #    define LT_DLGLOBAL         DL_GLOBAL
10876 #  else
10877 #    define LT_DLGLOBAL         0
10878 #  endif
10879 #endif
10880
10881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10882    find out it does not work in some platform. */
10883 #ifndef LT_DLLAZY_OR_NOW
10884 #  ifdef RTLD_LAZY
10885 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10886 #  else
10887 #    ifdef DL_LAZY
10888 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10889 #    else
10890 #      ifdef RTLD_NOW
10891 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10892 #      else
10893 #        ifdef DL_NOW
10894 #          define LT_DLLAZY_OR_NOW      DL_NOW
10895 #        else
10896 #          define LT_DLLAZY_OR_NOW      0
10897 #        endif
10898 #      endif
10899 #    endif
10900 #  endif
10901 #endif
10902
10903 void fnord() { int i=42;}
10904 int main ()
10905 {
10906   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10907   int status = $lt_dlunknown;
10908
10909   if (self)
10910     {
10911       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10912       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10913       /* dlclose (self); */
10914     }
10915   else
10916     puts (dlerror ());
10917
10918   return status;
10919 }
10920 _LT_EOF
10921   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10922   (eval $ac_link) 2>&5
10923   ac_status=$?
10924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10925   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10926     (./conftest; exit; ) >&5 2>/dev/null
10927     lt_status=$?
10928     case x$lt_status in
10929       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10930       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10931       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10932     esac
10933   else :
10934     # compilation failed
10935     lt_cv_dlopen_self_static=no
10936   fi
10937 fi
10938 rm -fr conftest*
10939
10940
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10943 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10944     fi
10945
10946     CPPFLAGS="$save_CPPFLAGS"
10947     LDFLAGS="$save_LDFLAGS"
10948     LIBS="$save_LIBS"
10949     ;;
10950   esac
10951
10952   case $lt_cv_dlopen_self in
10953   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10954   *) enable_dlopen_self=unknown ;;
10955   esac
10956
10957   case $lt_cv_dlopen_self_static in
10958   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10959   *) enable_dlopen_self_static=unknown ;;
10960   esac
10961 fi
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 striplib=
10980 old_striplib=
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10982 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10983 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10984   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10985   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987 $as_echo "yes" >&6; }
10988 else
10989 # FIXME - insert some real tests, host_os isn't really good enough
10990   case $host_os in
10991   darwin*)
10992     if test -n "$STRIP" ; then
10993       striplib="$STRIP -x"
10994       old_striplib="$STRIP -S"
10995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10996 $as_echo "yes" >&6; }
10997     else
10998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11000     fi
11001     ;;
11002   *)
11003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005     ;;
11006   esac
11007 fi
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020   # Report which library types will actually be built
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11022 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11024 $as_echo "$can_build_shared" >&6; }
11025
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11027 $as_echo_n "checking whether to build shared libraries... " >&6; }
11028   test "$can_build_shared" = "no" && enable_shared=no
11029
11030   # On AIX, shared libraries and static libraries use the same namespace, and
11031   # are all built from PIC.
11032   case $host_os in
11033   aix3*)
11034     test "$enable_shared" = yes && enable_static=no
11035     if test -n "$RANLIB"; then
11036       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11037       postinstall_cmds='$RANLIB $lib'
11038     fi
11039     ;;
11040
11041   aix[4-9]*)
11042     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11043       test "$enable_shared" = yes && enable_static=no
11044     fi
11045     ;;
11046   esac
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11048 $as_echo "$enable_shared" >&6; }
11049
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11051 $as_echo_n "checking whether to build static libraries... " >&6; }
11052   # Make sure either enable_shared or enable_static is yes.
11053   test "$enable_shared" = yes || enable_static=yes
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11055 $as_echo "$enable_static" >&6; }
11056
11057
11058
11059
11060 fi
11061 ac_ext=c
11062 ac_cpp='$CPP $CPPFLAGS'
11063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11066
11067 CC="$lt_save_CC"
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081         ac_config_commands="$ac_config_commands libtool"
11082
11083
11084
11085
11086 # Only expand once:
11087
11088
11089
11090 # Docygen features
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101 # Files:
11102 DX_PROJECT=xmltooling
11103
11104 DX_CONFIG=doxygen.cfg
11105
11106 DX_DOCDIR=doc/api
11107
11108
11109 # Environment variables used inside doxygen.cfg:
11110 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11111
11112 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11113
11114 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11115
11116 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11117
11118
11119 # Doxygen itself:
11120
11121
11122
11123     # Check whether --enable-doxygen-doc was given.
11124 if test "${enable_doxygen_doc+set}" = set; then :
11125   enableval=$enable_doxygen_doc;
11126 case "$enableval" in
11127 #(
11128 y|Y|yes|Yes|YES)
11129     DX_FLAG_doc=1
11130
11131
11132 ;; #(
11133 n|N|no|No|NO)
11134     DX_FLAG_doc=0
11135
11136 ;; #(
11137 *)
11138     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11139 ;;
11140 esac
11141
11142 else
11143
11144 DX_FLAG_doc=1
11145
11146
11147
11148 fi
11149
11150 if test "$DX_FLAG_doc" = 1; then
11151
11152 if test -n "$ac_tool_prefix"; then
11153   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11154 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   case $DX_DOXYGEN in
11161   [\\/]* | ?:[\\/]*)
11162   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11163   ;;
11164   *)
11165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166 for as_dir in $PATH
11167 do
11168   IFS=$as_save_IFS
11169   test -z "$as_dir" && as_dir=.
11170     for ac_exec_ext in '' $ac_executable_extensions; do
11171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11174     break 2
11175   fi
11176 done
11177   done
11178 IFS=$as_save_IFS
11179
11180   ;;
11181 esac
11182 fi
11183 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11184 if test -n "$DX_DOXYGEN"; then
11185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11186 $as_echo "$DX_DOXYGEN" >&6; }
11187 else
11188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189 $as_echo "no" >&6; }
11190 fi
11191
11192
11193 fi
11194 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11195   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11196   # Extract the first word of "doxygen", so it can be a program name with args.
11197 set dummy doxygen; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199 $as_echo_n "checking for $ac_word... " >&6; }
11200 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   case $ac_pt_DX_DOXYGEN in
11204   [\\/]* | ?:[\\/]*)
11205   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11206   ;;
11207   *)
11208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11210 do
11211   IFS=$as_save_IFS
11212   test -z "$as_dir" && as_dir=.
11213     for ac_exec_ext in '' $ac_executable_extensions; do
11214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11215     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217     break 2
11218   fi
11219 done
11220   done
11221 IFS=$as_save_IFS
11222
11223   ;;
11224 esac
11225 fi
11226 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11227 if test -n "$ac_pt_DX_DOXYGEN"; then
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11229 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11230 else
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 fi
11234
11235   if test "x$ac_pt_DX_DOXYGEN" = x; then
11236     DX_DOXYGEN=""
11237   else
11238     case $cross_compiling:$ac_tool_warned in
11239 yes:)
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11242 ac_tool_warned=yes ;;
11243 esac
11244     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11245   fi
11246 else
11247   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11248 fi
11249
11250 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11251     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11252 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11253     DX_FLAG_doc=0
11254
11255 fi
11256
11257
11258 if test -n "$ac_tool_prefix"; then
11259   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11260 set dummy ${ac_tool_prefix}perl; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if test "${ac_cv_path_DX_PERL+set}" = set; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   case $DX_PERL in
11267   [\\/]* | ?:[\\/]*)
11268   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11269   ;;
11270   *)
11271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276     for ac_exec_ext in '' $ac_executable_extensions; do
11277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283   done
11284 IFS=$as_save_IFS
11285
11286   ;;
11287 esac
11288 fi
11289 DX_PERL=$ac_cv_path_DX_PERL
11290 if test -n "$DX_PERL"; then
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11292 $as_echo "$DX_PERL" >&6; }
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 fi
11297
11298
11299 fi
11300 if test -z "$ac_cv_path_DX_PERL"; then
11301   ac_pt_DX_PERL=$DX_PERL
11302   # Extract the first word of "perl", so it can be a program name with args.
11303 set dummy perl; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
11307   $as_echo_n "(cached) " >&6
11308 else
11309   case $ac_pt_DX_PERL in
11310   [\\/]* | ?:[\\/]*)
11311   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11312   ;;
11313   *)
11314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11316 do
11317   IFS=$as_save_IFS
11318   test -z "$as_dir" && as_dir=.
11319     for ac_exec_ext in '' $ac_executable_extensions; do
11320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323     break 2
11324   fi
11325 done
11326   done
11327 IFS=$as_save_IFS
11328
11329   ;;
11330 esac
11331 fi
11332 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11333 if test -n "$ac_pt_DX_PERL"; then
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11335 $as_echo "$ac_pt_DX_PERL" >&6; }
11336 else
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 fi
11340
11341   if test "x$ac_pt_DX_PERL" = x; then
11342     DX_PERL=""
11343   else
11344     case $cross_compiling:$ac_tool_warned in
11345 yes:)
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11348 ac_tool_warned=yes ;;
11349 esac
11350     DX_PERL=$ac_pt_DX_PERL
11351   fi
11352 else
11353   DX_PERL="$ac_cv_path_DX_PERL"
11354 fi
11355
11356 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11358 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11359     DX_FLAG_doc=0
11360
11361 fi
11362
11363     :
11364 fi
11365 if test "$DX_FLAG_doc" = 1; then
11366      if :; then
11367   DX_COND_doc_TRUE=
11368   DX_COND_doc_FALSE='#'
11369 else
11370   DX_COND_doc_TRUE='#'
11371   DX_COND_doc_FALSE=
11372 fi
11373
11374     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
11375
11376     :
11377 else
11378      if false; then
11379   DX_COND_doc_TRUE=
11380   DX_COND_doc_FALSE='#'
11381 else
11382   DX_COND_doc_TRUE='#'
11383   DX_COND_doc_FALSE=
11384 fi
11385
11386
11387     :
11388 fi
11389
11390
11391 # Dot for graphics:
11392
11393
11394
11395     # Check whether --enable-doxygen-dot was given.
11396 if test "${enable_doxygen_dot+set}" = set; then :
11397   enableval=$enable_doxygen_dot;
11398 case "$enableval" in
11399 #(
11400 y|Y|yes|Yes|YES)
11401     DX_FLAG_dot=1
11402
11403
11404 test "$DX_FLAG_doc" = "1" \
11405 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
11406
11407 ;; #(
11408 n|N|no|No|NO)
11409     DX_FLAG_dot=0
11410
11411 ;; #(
11412 *)
11413     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
11414 ;;
11415 esac
11416
11417 else
11418
11419 DX_FLAG_dot=0
11420
11421
11422 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
11423
11424
11425
11426 fi
11427
11428 if test "$DX_FLAG_dot" = 1; then
11429
11430 if test -n "$ac_tool_prefix"; then
11431   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
11432 set dummy ${ac_tool_prefix}dot; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if test "${ac_cv_path_DX_DOT+set}" = set; then :
11436   $as_echo_n "(cached) " >&6
11437 else
11438   case $DX_DOT in
11439   [\\/]* | ?:[\\/]*)
11440   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
11441   ;;
11442   *)
11443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446   IFS=$as_save_IFS
11447   test -z "$as_dir" && as_dir=.
11448     for ac_exec_ext in '' $ac_executable_extensions; do
11449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452     break 2
11453   fi
11454 done
11455   done
11456 IFS=$as_save_IFS
11457
11458   ;;
11459 esac
11460 fi
11461 DX_DOT=$ac_cv_path_DX_DOT
11462 if test -n "$DX_DOT"; then
11463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
11464 $as_echo "$DX_DOT" >&6; }
11465 else
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469
11470
11471 fi
11472 if test -z "$ac_cv_path_DX_DOT"; then
11473   ac_pt_DX_DOT=$DX_DOT
11474   # Extract the first word of "dot", so it can be a program name with args.
11475 set dummy dot; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481   case $ac_pt_DX_DOT in
11482   [\\/]* | ?:[\\/]*)
11483   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
11484   ;;
11485   *)
11486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11488 do
11489   IFS=$as_save_IFS
11490   test -z "$as_dir" && as_dir=.
11491     for ac_exec_ext in '' $ac_executable_extensions; do
11492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495     break 2
11496   fi
11497 done
11498   done
11499 IFS=$as_save_IFS
11500
11501   ;;
11502 esac
11503 fi
11504 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
11505 if test -n "$ac_pt_DX_DOT"; then
11506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
11507 $as_echo "$ac_pt_DX_DOT" >&6; }
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 fi
11512
11513   if test "x$ac_pt_DX_DOT" = x; then
11514     DX_DOT=""
11515   else
11516     case $cross_compiling:$ac_tool_warned in
11517 yes:)
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11520 ac_tool_warned=yes ;;
11521 esac
11522     DX_DOT=$ac_pt_DX_DOT
11523   fi
11524 else
11525   DX_DOT="$ac_cv_path_DX_DOT"
11526 fi
11527
11528 if test "$DX_FLAG_dot$DX_DOT" = 1; then
11529     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
11530 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
11531     DX_FLAG_dot=0
11532
11533 fi
11534
11535     :
11536 fi
11537 if test "$DX_FLAG_dot" = 1; then
11538      if :; then
11539   DX_COND_dot_TRUE=
11540   DX_COND_dot_FALSE='#'
11541 else
11542   DX_COND_dot_TRUE='#'
11543   DX_COND_dot_FALSE=
11544 fi
11545
11546     DX_ENV="$DX_ENV HAVE_DOT='YES'"
11547
11548              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
11549
11550     :
11551 else
11552      if false; then
11553   DX_COND_dot_TRUE=
11554   DX_COND_dot_FALSE='#'
11555 else
11556   DX_COND_dot_TRUE='#'
11557   DX_COND_dot_FALSE=
11558 fi
11559
11560     DX_ENV="$DX_ENV HAVE_DOT='NO'"
11561
11562     :
11563 fi
11564
11565
11566 # Man pages generation:
11567
11568
11569
11570     # Check whether --enable-doxygen-man was given.
11571 if test "${enable_doxygen_man+set}" = set; then :
11572   enableval=$enable_doxygen_man;
11573 case "$enableval" in
11574 #(
11575 y|Y|yes|Yes|YES)
11576     DX_FLAG_man=1
11577
11578
11579 test "$DX_FLAG_doc" = "1" \
11580 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
11581
11582 ;; #(
11583 n|N|no|No|NO)
11584     DX_FLAG_man=0
11585
11586 ;; #(
11587 *)
11588     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
11589 ;;
11590 esac
11591
11592 else
11593
11594 DX_FLAG_man=0
11595
11596
11597 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
11598
11599
11600
11601 fi
11602
11603 if test "$DX_FLAG_man" = 1; then
11604
11605     :
11606 fi
11607 if test "$DX_FLAG_man" = 1; then
11608      if :; then
11609   DX_COND_man_TRUE=
11610   DX_COND_man_FALSE='#'
11611 else
11612   DX_COND_man_TRUE='#'
11613   DX_COND_man_FALSE=
11614 fi
11615
11616     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
11617
11618     :
11619 else
11620      if false; then
11621   DX_COND_man_TRUE=
11622   DX_COND_man_FALSE='#'
11623 else
11624   DX_COND_man_TRUE='#'
11625   DX_COND_man_FALSE=
11626 fi
11627
11628     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
11629
11630     :
11631 fi
11632
11633
11634 # RTF file generation:
11635
11636
11637
11638     # Check whether --enable-doxygen-rtf was given.
11639 if test "${enable_doxygen_rtf+set}" = set; then :
11640   enableval=$enable_doxygen_rtf;
11641 case "$enableval" in
11642 #(
11643 y|Y|yes|Yes|YES)
11644     DX_FLAG_rtf=1
11645
11646
11647 test "$DX_FLAG_doc" = "1" \
11648 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
11649
11650 ;; #(
11651 n|N|no|No|NO)
11652     DX_FLAG_rtf=0
11653
11654 ;; #(
11655 *)
11656     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
11657 ;;
11658 esac
11659
11660 else
11661
11662 DX_FLAG_rtf=0
11663
11664
11665 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
11666
11667
11668
11669 fi
11670
11671 if test "$DX_FLAG_rtf" = 1; then
11672
11673     :
11674 fi
11675 if test "$DX_FLAG_rtf" = 1; then
11676      if :; then
11677   DX_COND_rtf_TRUE=
11678   DX_COND_rtf_FALSE='#'
11679 else
11680   DX_COND_rtf_TRUE='#'
11681   DX_COND_rtf_FALSE=
11682 fi
11683
11684     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
11685
11686     :
11687 else
11688      if false; then
11689   DX_COND_rtf_TRUE=
11690   DX_COND_rtf_FALSE='#'
11691 else
11692   DX_COND_rtf_TRUE='#'
11693   DX_COND_rtf_FALSE=
11694 fi
11695
11696     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
11697
11698     :
11699 fi
11700
11701
11702 # XML file generation:
11703
11704
11705
11706     # Check whether --enable-doxygen-xml was given.
11707 if test "${enable_doxygen_xml+set}" = set; then :
11708   enableval=$enable_doxygen_xml;
11709 case "$enableval" in
11710 #(
11711 y|Y|yes|Yes|YES)
11712     DX_FLAG_xml=1
11713
11714
11715 test "$DX_FLAG_doc" = "1" \
11716 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
11717
11718 ;; #(
11719 n|N|no|No|NO)
11720     DX_FLAG_xml=0
11721
11722 ;; #(
11723 *)
11724     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
11725 ;;
11726 esac
11727
11728 else
11729
11730 DX_FLAG_xml=0
11731
11732
11733 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
11734
11735
11736
11737 fi
11738
11739 if test "$DX_FLAG_xml" = 1; then
11740
11741     :
11742 fi
11743 if test "$DX_FLAG_xml" = 1; then
11744      if :; then
11745   DX_COND_xml_TRUE=
11746   DX_COND_xml_FALSE='#'
11747 else
11748   DX_COND_xml_TRUE='#'
11749   DX_COND_xml_FALSE=
11750 fi
11751
11752     DX_ENV="$DX_ENV GENERATE_XML='YES'"
11753
11754     :
11755 else
11756      if false; then
11757   DX_COND_xml_TRUE=
11758   DX_COND_xml_FALSE='#'
11759 else
11760   DX_COND_xml_TRUE='#'
11761   DX_COND_xml_FALSE=
11762 fi
11763
11764     DX_ENV="$DX_ENV GENERATE_XML='NO'"
11765
11766     :
11767 fi
11768
11769
11770 # (Compressed) HTML help generation:
11771
11772
11773
11774     # Check whether --enable-doxygen-chm was given.
11775 if test "${enable_doxygen_chm+set}" = set; then :
11776   enableval=$enable_doxygen_chm;
11777 case "$enableval" in
11778 #(
11779 y|Y|yes|Yes|YES)
11780     DX_FLAG_chm=1
11781
11782
11783 test "$DX_FLAG_doc" = "1" \
11784 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
11785
11786 ;; #(
11787 n|N|no|No|NO)
11788     DX_FLAG_chm=0
11789
11790 ;; #(
11791 *)
11792     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
11793 ;;
11794 esac
11795
11796 else
11797
11798 DX_FLAG_chm=0
11799
11800
11801 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
11802
11803
11804
11805 fi
11806
11807 if test "$DX_FLAG_chm" = 1; then
11808
11809 if test -n "$ac_tool_prefix"; then
11810   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
11811 set dummy ${ac_tool_prefix}hhc; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if test "${ac_cv_path_DX_HHC+set}" = set; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817   case $DX_HHC in
11818   [\\/]* | ?:[\\/]*)
11819   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
11820   ;;
11821   *)
11822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11824 do
11825   IFS=$as_save_IFS
11826   test -z "$as_dir" && as_dir=.
11827     for ac_exec_ext in '' $ac_executable_extensions; do
11828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11829     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831     break 2
11832   fi
11833 done
11834   done
11835 IFS=$as_save_IFS
11836
11837   ;;
11838 esac
11839 fi
11840 DX_HHC=$ac_cv_path_DX_HHC
11841 if test -n "$DX_HHC"; then
11842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
11843 $as_echo "$DX_HHC" >&6; }
11844 else
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848
11849
11850 fi
11851 if test -z "$ac_cv_path_DX_HHC"; then
11852   ac_pt_DX_HHC=$DX_HHC
11853   # Extract the first word of "hhc", so it can be a program name with args.
11854 set dummy hhc; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860   case $ac_pt_DX_HHC in
11861   [\\/]* | ?:[\\/]*)
11862   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
11863   ;;
11864   *)
11865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868   IFS=$as_save_IFS
11869   test -z "$as_dir" && as_dir=.
11870     for ac_exec_ext in '' $ac_executable_extensions; do
11871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874     break 2
11875   fi
11876 done
11877   done
11878 IFS=$as_save_IFS
11879
11880   ;;
11881 esac
11882 fi
11883 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
11884 if test -n "$ac_pt_DX_HHC"; then
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
11886 $as_echo "$ac_pt_DX_HHC" >&6; }
11887 else
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892   if test "x$ac_pt_DX_HHC" = x; then
11893     DX_HHC=""
11894   else
11895     case $cross_compiling:$ac_tool_warned in
11896 yes:)
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11899 ac_tool_warned=yes ;;
11900 esac
11901     DX_HHC=$ac_pt_DX_HHC
11902   fi
11903 else
11904   DX_HHC="$ac_cv_path_DX_HHC"
11905 fi
11906
11907 if test "$DX_FLAG_chm$DX_HHC" = 1; then
11908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
11909 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
11910     DX_FLAG_chm=0
11911
11912 fi
11913
11914     :
11915 fi
11916 if test "$DX_FLAG_chm" = 1; then
11917      if :; then
11918   DX_COND_chm_TRUE=
11919   DX_COND_chm_FALSE='#'
11920 else
11921   DX_COND_chm_TRUE='#'
11922   DX_COND_chm_FALSE=
11923 fi
11924
11925     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
11926
11927              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11928
11929              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
11930
11931     :
11932 else
11933      if false; then
11934   DX_COND_chm_TRUE=
11935   DX_COND_chm_FALSE='#'
11936 else
11937   DX_COND_chm_TRUE='#'
11938   DX_COND_chm_FALSE=
11939 fi
11940
11941     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
11942
11943     :
11944 fi
11945
11946
11947 # Seperate CHI file generation.
11948
11949
11950
11951     # Check whether --enable-doxygen-chi was given.
11952 if test "${enable_doxygen_chi+set}" = set; then :
11953   enableval=$enable_doxygen_chi;
11954 case "$enableval" in
11955 #(
11956 y|Y|yes|Yes|YES)
11957     DX_FLAG_chi=1
11958
11959
11960 test "$DX_FLAG_chm" = "1" \
11961 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
11962
11963 ;; #(
11964 n|N|no|No|NO)
11965     DX_FLAG_chi=0
11966
11967 ;; #(
11968 *)
11969     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
11970 ;;
11971 esac
11972
11973 else
11974
11975 DX_FLAG_chi=0
11976
11977
11978 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
11979
11980
11981
11982 fi
11983
11984 if test "$DX_FLAG_chi" = 1; then
11985
11986     :
11987 fi
11988 if test "$DX_FLAG_chi" = 1; then
11989      if :; then
11990   DX_COND_chi_TRUE=
11991   DX_COND_chi_FALSE='#'
11992 else
11993   DX_COND_chi_TRUE='#'
11994   DX_COND_chi_FALSE=
11995 fi
11996
11997     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
11998
11999     :
12000 else
12001      if false; then
12002   DX_COND_chi_TRUE=
12003   DX_COND_chi_FALSE='#'
12004 else
12005   DX_COND_chi_TRUE='#'
12006   DX_COND_chi_FALSE=
12007 fi
12008
12009     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12010
12011     :
12012 fi
12013
12014
12015 # Plain HTML pages generation:
12016
12017
12018
12019     # Check whether --enable-doxygen-html was given.
12020 if test "${enable_doxygen_html+set}" = set; then :
12021   enableval=$enable_doxygen_html;
12022 case "$enableval" in
12023 #(
12024 y|Y|yes|Yes|YES)
12025     DX_FLAG_html=1
12026
12027
12028 test "$DX_FLAG_doc" = "1" \
12029 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12030
12031 test "$DX_FLAG_chm" = "0" \
12032 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12033
12034 ;; #(
12035 n|N|no|No|NO)
12036     DX_FLAG_html=0
12037
12038 ;; #(
12039 *)
12040     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12041 ;;
12042 esac
12043
12044 else
12045
12046 DX_FLAG_html=1
12047
12048
12049 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12050
12051
12052 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12053
12054
12055
12056 fi
12057
12058 if test "$DX_FLAG_html" = 1; then
12059
12060     :
12061 fi
12062 if test "$DX_FLAG_html" = 1; then
12063      if :; then
12064   DX_COND_html_TRUE=
12065   DX_COND_html_FALSE='#'
12066 else
12067   DX_COND_html_TRUE='#'
12068   DX_COND_html_FALSE=
12069 fi
12070
12071     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12072
12073     :
12074 else
12075      if false; then
12076   DX_COND_html_TRUE=
12077   DX_COND_html_FALSE='#'
12078 else
12079   DX_COND_html_TRUE='#'
12080   DX_COND_html_FALSE=
12081 fi
12082
12083     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12084
12085     :
12086 fi
12087
12088
12089 # PostScript file generation:
12090
12091
12092
12093     # Check whether --enable-doxygen-ps was given.
12094 if test "${enable_doxygen_ps+set}" = set; then :
12095   enableval=$enable_doxygen_ps;
12096 case "$enableval" in
12097 #(
12098 y|Y|yes|Yes|YES)
12099     DX_FLAG_ps=1
12100
12101
12102 test "$DX_FLAG_doc" = "1" \
12103 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12104
12105 ;; #(
12106 n|N|no|No|NO)
12107     DX_FLAG_ps=0
12108
12109 ;; #(
12110 *)
12111     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12112 ;;
12113 esac
12114
12115 else
12116
12117 DX_FLAG_ps=0
12118
12119
12120 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12121
12122
12123
12124 fi
12125
12126 if test "$DX_FLAG_ps" = 1; then
12127
12128 if test -n "$ac_tool_prefix"; then
12129   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12130 set dummy ${ac_tool_prefix}latex; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   case $DX_LATEX in
12137   [\\/]* | ?:[\\/]*)
12138   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12139   ;;
12140   *)
12141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144   IFS=$as_save_IFS
12145   test -z "$as_dir" && as_dir=.
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150     break 2
12151   fi
12152 done
12153   done
12154 IFS=$as_save_IFS
12155
12156   ;;
12157 esac
12158 fi
12159 DX_LATEX=$ac_cv_path_DX_LATEX
12160 if test -n "$DX_LATEX"; then
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12162 $as_echo "$DX_LATEX" >&6; }
12163 else
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12166 fi
12167
12168
12169 fi
12170 if test -z "$ac_cv_path_DX_LATEX"; then
12171   ac_pt_DX_LATEX=$DX_LATEX
12172   # Extract the first word of "latex", so it can be a program name with args.
12173 set dummy latex; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175 $as_echo_n "checking for $ac_word... " >&6; }
12176 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   case $ac_pt_DX_LATEX in
12180   [\\/]* | ?:[\\/]*)
12181   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12182   ;;
12183   *)
12184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187   IFS=$as_save_IFS
12188   test -z "$as_dir" && as_dir=.
12189     for ac_exec_ext in '' $ac_executable_extensions; do
12190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12191     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193     break 2
12194   fi
12195 done
12196   done
12197 IFS=$as_save_IFS
12198
12199   ;;
12200 esac
12201 fi
12202 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12203 if test -n "$ac_pt_DX_LATEX"; then
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12205 $as_echo "$ac_pt_DX_LATEX" >&6; }
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210
12211   if test "x$ac_pt_DX_LATEX" = x; then
12212     DX_LATEX=""
12213   else
12214     case $cross_compiling:$ac_tool_warned in
12215 yes:)
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12218 ac_tool_warned=yes ;;
12219 esac
12220     DX_LATEX=$ac_pt_DX_LATEX
12221   fi
12222 else
12223   DX_LATEX="$ac_cv_path_DX_LATEX"
12224 fi
12225
12226 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12228 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12229     DX_FLAG_ps=0
12230
12231 fi
12232
12233
12234 if test -n "$ac_tool_prefix"; then
12235   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12236 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   case $DX_MAKEINDEX in
12243   [\\/]* | ?:[\\/]*)
12244   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12245   ;;
12246   *)
12247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12249 do
12250   IFS=$as_save_IFS
12251   test -z "$as_dir" && as_dir=.
12252     for ac_exec_ext in '' $ac_executable_extensions; do
12253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256     break 2
12257   fi
12258 done
12259   done
12260 IFS=$as_save_IFS
12261
12262   ;;
12263 esac
12264 fi
12265 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12266 if test -n "$DX_MAKEINDEX"; then
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12268 $as_echo "$DX_MAKEINDEX" >&6; }
12269 else
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272 fi
12273
12274
12275 fi
12276 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12277   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12278   # Extract the first word of "makeindex", so it can be a program name with args.
12279 set dummy makeindex; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12283   $as_echo_n "(cached) " >&6
12284 else
12285   case $ac_pt_DX_MAKEINDEX in
12286   [\\/]* | ?:[\\/]*)
12287   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12288   ;;
12289   *)
12290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12304
12305   ;;
12306 esac
12307 fi
12308 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12309 if test -n "$ac_pt_DX_MAKEINDEX"; then
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12311 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12312 else
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316
12317   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12318     DX_MAKEINDEX=""
12319   else
12320     case $cross_compiling:$ac_tool_warned in
12321 yes:)
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12324 ac_tool_warned=yes ;;
12325 esac
12326     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12327   fi
12328 else
12329   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12330 fi
12331
12332 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12333     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12334 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12335     DX_FLAG_ps=0
12336
12337 fi
12338
12339
12340 if test -n "$ac_tool_prefix"; then
12341   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12342 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   case $DX_DVIPS in
12349   [\\/]* | ?:[\\/]*)
12350   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12351   ;;
12352   *)
12353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356   IFS=$as_save_IFS
12357   test -z "$as_dir" && as_dir=.
12358     for ac_exec_ext in '' $ac_executable_extensions; do
12359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362     break 2
12363   fi
12364 done
12365   done
12366 IFS=$as_save_IFS
12367
12368   ;;
12369 esac
12370 fi
12371 DX_DVIPS=$ac_cv_path_DX_DVIPS
12372 if test -n "$DX_DVIPS"; then
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
12374 $as_echo "$DX_DVIPS" >&6; }
12375 else
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12378 fi
12379
12380
12381 fi
12382 if test -z "$ac_cv_path_DX_DVIPS"; then
12383   ac_pt_DX_DVIPS=$DX_DVIPS
12384   # Extract the first word of "dvips", so it can be a program name with args.
12385 set dummy dvips; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391   case $ac_pt_DX_DVIPS in
12392   [\\/]* | ?:[\\/]*)
12393   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
12394   ;;
12395   *)
12396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401     for ac_exec_ext in '' $ac_executable_extensions; do
12402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408   done
12409 IFS=$as_save_IFS
12410
12411   ;;
12412 esac
12413 fi
12414 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
12415 if test -n "$ac_pt_DX_DVIPS"; then
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
12417 $as_echo "$ac_pt_DX_DVIPS" >&6; }
12418 else
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422
12423   if test "x$ac_pt_DX_DVIPS" = x; then
12424     DX_DVIPS=""
12425   else
12426     case $cross_compiling:$ac_tool_warned in
12427 yes:)
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12430 ac_tool_warned=yes ;;
12431 esac
12432     DX_DVIPS=$ac_pt_DX_DVIPS
12433   fi
12434 else
12435   DX_DVIPS="$ac_cv_path_DX_DVIPS"
12436 fi
12437
12438 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
12439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
12440 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
12441     DX_FLAG_ps=0
12442
12443 fi
12444
12445
12446 if test -n "$ac_tool_prefix"; then
12447   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12448 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   case $DX_EGREP in
12455   [\\/]* | ?:[\\/]*)
12456   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12457   ;;
12458   *)
12459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462   IFS=$as_save_IFS
12463   test -z "$as_dir" && as_dir=.
12464     for ac_exec_ext in '' $ac_executable_extensions; do
12465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468     break 2
12469   fi
12470 done
12471   done
12472 IFS=$as_save_IFS
12473
12474   ;;
12475 esac
12476 fi
12477 DX_EGREP=$ac_cv_path_DX_EGREP
12478 if test -n "$DX_EGREP"; then
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12480 $as_echo "$DX_EGREP" >&6; }
12481 else
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486
12487 fi
12488 if test -z "$ac_cv_path_DX_EGREP"; then
12489   ac_pt_DX_EGREP=$DX_EGREP
12490   # Extract the first word of "egrep", so it can be a program name with args.
12491 set dummy egrep; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12495   $as_echo_n "(cached) " >&6
12496 else
12497   case $ac_pt_DX_EGREP in
12498   [\\/]* | ?:[\\/]*)
12499   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12500   ;;
12501   *)
12502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505   IFS=$as_save_IFS
12506   test -z "$as_dir" && as_dir=.
12507     for ac_exec_ext in '' $ac_executable_extensions; do
12508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511     break 2
12512   fi
12513 done
12514   done
12515 IFS=$as_save_IFS
12516
12517   ;;
12518 esac
12519 fi
12520 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12521 if test -n "$ac_pt_DX_EGREP"; then
12522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12523 $as_echo "$ac_pt_DX_EGREP" >&6; }
12524 else
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529   if test "x$ac_pt_DX_EGREP" = x; then
12530     DX_EGREP=""
12531   else
12532     case $cross_compiling:$ac_tool_warned in
12533 yes:)
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12536 ac_tool_warned=yes ;;
12537 esac
12538     DX_EGREP=$ac_pt_DX_EGREP
12539   fi
12540 else
12541   DX_EGREP="$ac_cv_path_DX_EGREP"
12542 fi
12543
12544 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
12545     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
12546 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
12547     DX_FLAG_ps=0
12548
12549 fi
12550
12551     :
12552 fi
12553 if test "$DX_FLAG_ps" = 1; then
12554      if :; then
12555   DX_COND_ps_TRUE=
12556   DX_COND_ps_FALSE='#'
12557 else
12558   DX_COND_ps_TRUE='#'
12559   DX_COND_ps_FALSE=
12560 fi
12561
12562
12563     :
12564 else
12565      if false; then
12566   DX_COND_ps_TRUE=
12567   DX_COND_ps_FALSE='#'
12568 else
12569   DX_COND_ps_TRUE='#'
12570   DX_COND_ps_FALSE=
12571 fi
12572
12573
12574     :
12575 fi
12576
12577
12578 # PDF file generation:
12579
12580
12581
12582     # Check whether --enable-doxygen-pdf was given.
12583 if test "${enable_doxygen_pdf+set}" = set; then :
12584   enableval=$enable_doxygen_pdf;
12585 case "$enableval" in
12586 #(
12587 y|Y|yes|Yes|YES)
12588     DX_FLAG_pdf=1
12589
12590
12591 test "$DX_FLAG_doc" = "1" \
12592 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
12593
12594 ;; #(
12595 n|N|no|No|NO)
12596     DX_FLAG_pdf=0
12597
12598 ;; #(
12599 *)
12600     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
12601 ;;
12602 esac
12603
12604 else
12605
12606 DX_FLAG_pdf=0
12607
12608
12609 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
12610
12611
12612
12613 fi
12614
12615 if test "$DX_FLAG_pdf" = 1; then
12616
12617 if test -n "$ac_tool_prefix"; then
12618   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
12619 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   case $DX_PDFLATEX in
12626   [\\/]* | ?:[\\/]*)
12627   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
12628   ;;
12629   *)
12630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12632 do
12633   IFS=$as_save_IFS
12634   test -z "$as_dir" && as_dir=.
12635     for ac_exec_ext in '' $ac_executable_extensions; do
12636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639     break 2
12640   fi
12641 done
12642   done
12643 IFS=$as_save_IFS
12644
12645   ;;
12646 esac
12647 fi
12648 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
12649 if test -n "$DX_PDFLATEX"; then
12650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
12651 $as_echo "$DX_PDFLATEX" >&6; }
12652 else
12653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12655 fi
12656
12657
12658 fi
12659 if test -z "$ac_cv_path_DX_PDFLATEX"; then
12660   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
12661   # Extract the first word of "pdflatex", so it can be a program name with args.
12662 set dummy pdflatex; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   case $ac_pt_DX_PDFLATEX in
12669   [\\/]* | ?:[\\/]*)
12670   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
12671   ;;
12672   *)
12673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12675 do
12676   IFS=$as_save_IFS
12677   test -z "$as_dir" && as_dir=.
12678     for ac_exec_ext in '' $ac_executable_extensions; do
12679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12680     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682     break 2
12683   fi
12684 done
12685   done
12686 IFS=$as_save_IFS
12687
12688   ;;
12689 esac
12690 fi
12691 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
12692 if test -n "$ac_pt_DX_PDFLATEX"; then
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
12694 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
12695 else
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699
12700   if test "x$ac_pt_DX_PDFLATEX" = x; then
12701     DX_PDFLATEX=""
12702   else
12703     case $cross_compiling:$ac_tool_warned in
12704 yes:)
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12707 ac_tool_warned=yes ;;
12708 esac
12709     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
12710   fi
12711 else
12712   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
12713 fi
12714
12715 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
12716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
12717 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
12718     DX_FLAG_pdf=0
12719
12720 fi
12721
12722
12723 if test -n "$ac_tool_prefix"; then
12724   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12725 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   case $DX_MAKEINDEX in
12732   [\\/]* | ?:[\\/]*)
12733   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12734   ;;
12735   *)
12736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12738 do
12739   IFS=$as_save_IFS
12740   test -z "$as_dir" && as_dir=.
12741     for ac_exec_ext in '' $ac_executable_extensions; do
12742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12743     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745     break 2
12746   fi
12747 done
12748   done
12749 IFS=$as_save_IFS
12750
12751   ;;
12752 esac
12753 fi
12754 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12755 if test -n "$DX_MAKEINDEX"; then
12756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12757 $as_echo "$DX_MAKEINDEX" >&6; }
12758 else
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761 fi
12762
12763
12764 fi
12765 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12766   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12767   # Extract the first word of "makeindex", so it can be a program name with args.
12768 set dummy makeindex; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   case $ac_pt_DX_MAKEINDEX in
12775   [\\/]* | ?:[\\/]*)
12776   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12777   ;;
12778   *)
12779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12781 do
12782   IFS=$as_save_IFS
12783   test -z "$as_dir" && as_dir=.
12784     for ac_exec_ext in '' $ac_executable_extensions; do
12785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12786     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788     break 2
12789   fi
12790 done
12791   done
12792 IFS=$as_save_IFS
12793
12794   ;;
12795 esac
12796 fi
12797 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12798 if test -n "$ac_pt_DX_MAKEINDEX"; then
12799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12800 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12801 else
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804 fi
12805
12806   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12807     DX_MAKEINDEX=""
12808   else
12809     case $cross_compiling:$ac_tool_warned in
12810 yes:)
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12813 ac_tool_warned=yes ;;
12814 esac
12815     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12816   fi
12817 else
12818   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12819 fi
12820
12821 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
12822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
12823 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
12824     DX_FLAG_pdf=0
12825
12826 fi
12827
12828
12829 if test -n "$ac_tool_prefix"; then
12830   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12831 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $DX_EGREP in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856
12857   ;;
12858 esac
12859 fi
12860 DX_EGREP=$ac_cv_path_DX_EGREP
12861 if test -n "$DX_EGREP"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12863 $as_echo "$DX_EGREP" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870 fi
12871 if test -z "$ac_cv_path_DX_EGREP"; then
12872   ac_pt_DX_EGREP=$DX_EGREP
12873   # Extract the first word of "egrep", so it can be a program name with args.
12874 set dummy egrep; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   case $ac_pt_DX_EGREP in
12881   [\\/]* | ?:[\\/]*)
12882   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12883   ;;
12884   *)
12885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888   IFS=$as_save_IFS
12889   test -z "$as_dir" && as_dir=.
12890     for ac_exec_ext in '' $ac_executable_extensions; do
12891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894     break 2
12895   fi
12896 done
12897   done
12898 IFS=$as_save_IFS
12899
12900   ;;
12901 esac
12902 fi
12903 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12904 if test -n "$ac_pt_DX_EGREP"; then
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12906 $as_echo "$ac_pt_DX_EGREP" >&6; }
12907 else
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12910 fi
12911
12912   if test "x$ac_pt_DX_EGREP" = x; then
12913     DX_EGREP=""
12914   else
12915     case $cross_compiling:$ac_tool_warned in
12916 yes:)
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12919 ac_tool_warned=yes ;;
12920 esac
12921     DX_EGREP=$ac_pt_DX_EGREP
12922   fi
12923 else
12924   DX_EGREP="$ac_cv_path_DX_EGREP"
12925 fi
12926
12927 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
12928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
12929 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
12930     DX_FLAG_pdf=0
12931
12932 fi
12933
12934     :
12935 fi
12936 if test "$DX_FLAG_pdf" = 1; then
12937      if :; then
12938   DX_COND_pdf_TRUE=
12939   DX_COND_pdf_FALSE='#'
12940 else
12941   DX_COND_pdf_TRUE='#'
12942   DX_COND_pdf_FALSE=
12943 fi
12944
12945
12946     :
12947 else
12948      if false; then
12949   DX_COND_pdf_TRUE=
12950   DX_COND_pdf_FALSE='#'
12951 else
12952   DX_COND_pdf_TRUE='#'
12953   DX_COND_pdf_FALSE=
12954 fi
12955
12956
12957     :
12958 fi
12959
12960
12961 # LaTeX generation for PS and/or PDF:
12962 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
12963      if :; then
12964   DX_COND_latex_TRUE=
12965   DX_COND_latex_FALSE='#'
12966 else
12967   DX_COND_latex_TRUE='#'
12968   DX_COND_latex_FALSE=
12969 fi
12970
12971     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
12972
12973 else
12974      if false; then
12975   DX_COND_latex_TRUE=
12976   DX_COND_latex_FALSE='#'
12977 else
12978   DX_COND_latex_TRUE='#'
12979   DX_COND_latex_FALSE=
12980 fi
12981
12982     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
12983
12984 fi
12985
12986 # Paper size for PS and/or PDF:
12987
12988 case "$DOXYGEN_PAPER_SIZE" in
12989 #(
12990 "")
12991     DOXYGEN_PAPER_SIZE=""
12992
12993 ;; #(
12994 a4wide|a4|letter|legal|executive)
12995     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
12996
12997 ;; #(
12998 *)
12999     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
13000 ;;
13001 esac
13002
13003 #For debugging:
13004 #echo DX_FLAG_doc=$DX_FLAG_doc
13005 #echo DX_FLAG_dot=$DX_FLAG_dot
13006 #echo DX_FLAG_man=$DX_FLAG_man
13007 #echo DX_FLAG_html=$DX_FLAG_html
13008 #echo DX_FLAG_chm=$DX_FLAG_chm
13009 #echo DX_FLAG_chi=$DX_FLAG_chi
13010 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13011 #echo DX_FLAG_xml=$DX_FLAG_xml
13012 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13013 #echo DX_FLAG_ps=$DX_FLAG_ps
13014 #echo DX_ENV=$DX_ENV
13015
13016
13017 # Check whether --enable-debug was given.
13018 if test "${enable_debug+set}" = set; then :
13019   enableval=$enable_debug; enable_debug=$enableval
13020 else
13021   enable_debug=no
13022 fi
13023
13024
13025 if test "$enable_debug" = "yes" ; then
13026     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13027     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13028 else
13029     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13030     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13031 fi
13032
13033 ac_config_headers="$ac_config_headers config.h xmltooling/config_pub.h"
13034
13035 ac_config_files="$ac_config_files xmltooling.spec"
13036
13037 ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
13038
13039
13040 ac_ext=c
13041 ac_cpp='$CPP $CPPFLAGS'
13042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13045 if test -n "$ac_tool_prefix"; then
13046   for ac_prog in gcc gcc3 cc
13047   do
13048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051 $as_echo_n "checking for $ac_word... " >&6; }
13052 if test "${ac_cv_prog_CC+set}" = set; then :
13053   $as_echo_n "(cached) " >&6
13054 else
13055   if test -n "$CC"; then
13056   ac_cv_prog_CC="$CC" # Let the user override the test.
13057 else
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13060 do
13061   IFS=$as_save_IFS
13062   test -z "$as_dir" && as_dir=.
13063     for ac_exec_ext in '' $ac_executable_extensions; do
13064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067     break 2
13068   fi
13069 done
13070   done
13071 IFS=$as_save_IFS
13072
13073 fi
13074 fi
13075 CC=$ac_cv_prog_CC
13076 if test -n "$CC"; then
13077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13078 $as_echo "$CC" >&6; }
13079 else
13080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 fi
13083
13084
13085     test -n "$CC" && break
13086   done
13087 fi
13088 if test -z "$CC"; then
13089   ac_ct_CC=$CC
13090   for ac_prog in gcc gcc3 cc
13091 do
13092   # Extract the first word of "$ac_prog", so it can be a program name with args.
13093 set dummy $ac_prog; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   if test -n "$ac_ct_CC"; then
13100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13101 else
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105   IFS=$as_save_IFS
13106   test -z "$as_dir" && as_dir=.
13107     for ac_exec_ext in '' $ac_executable_extensions; do
13108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13109     ac_cv_prog_ac_ct_CC="$ac_prog"
13110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111     break 2
13112   fi
13113 done
13114   done
13115 IFS=$as_save_IFS
13116
13117 fi
13118 fi
13119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13120 if test -n "$ac_ct_CC"; then
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13122 $as_echo "$ac_ct_CC" >&6; }
13123 else
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126 fi
13127
13128
13129   test -n "$ac_ct_CC" && break
13130 done
13131
13132   if test "x$ac_ct_CC" = x; then
13133     CC=""
13134   else
13135     case $cross_compiling:$ac_tool_warned in
13136 yes:)
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13139 ac_tool_warned=yes ;;
13140 esac
13141     CC=$ac_ct_CC
13142   fi
13143 fi
13144
13145
13146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13148 as_fn_error $? "no acceptable C compiler found in \$PATH
13149 See \`config.log' for more details" "$LINENO" 5 ; }
13150
13151 # Provide some information about the compiler.
13152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13153 set X $ac_compile
13154 ac_compiler=$2
13155 for ac_option in --version -v -V -qversion; do
13156   { { ac_try="$ac_compiler $ac_option >&5"
13157 case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13162 $as_echo "$ac_try_echo"; } >&5
13163   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13164   ac_status=$?
13165   if test -s conftest.err; then
13166     sed '10a\
13167 ... rest of stderr output deleted ...
13168          10q' conftest.err >conftest.er1
13169     cat conftest.er1 >&5
13170   fi
13171   rm -f conftest.er1 conftest.err
13172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13173   test $ac_status = 0; }
13174 done
13175
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13177 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13178 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h.  */
13183
13184 int
13185 main ()
13186 {
13187 #ifndef __GNUC__
13188        choke me
13189 #endif
13190
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_compile "$LINENO"; then :
13196   ac_compiler_gnu=yes
13197 else
13198   ac_compiler_gnu=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13202
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13206 if test $ac_compiler_gnu = yes; then
13207   GCC=yes
13208 else
13209   GCC=
13210 fi
13211 ac_test_CFLAGS=${CFLAGS+set}
13212 ac_save_CFLAGS=$CFLAGS
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13215 if test "${ac_cv_prog_cc_g+set}" = set; then :
13216   $as_echo_n "(cached) " >&6
13217 else
13218   ac_save_c_werror_flag=$ac_c_werror_flag
13219    ac_c_werror_flag=yes
13220    ac_cv_prog_cc_g=no
13221    CFLAGS="-g"
13222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h.  */
13224
13225 int
13226 main ()
13227 {
13228
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 if ac_fn_c_try_compile "$LINENO"; then :
13234   ac_cv_prog_cc_g=yes
13235 else
13236   CFLAGS=""
13237       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h.  */
13239
13240 int
13241 main ()
13242 {
13243
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 if ac_fn_c_try_compile "$LINENO"; then :
13249
13250 else
13251   ac_c_werror_flag=$ac_save_c_werror_flag
13252          CFLAGS="-g"
13253          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h.  */
13255
13256 int
13257 main ()
13258 {
13259
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_c_try_compile "$LINENO"; then :
13265   ac_cv_prog_cc_g=yes
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272    ac_c_werror_flag=$ac_save_c_werror_flag
13273 fi
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13275 $as_echo "$ac_cv_prog_cc_g" >&6; }
13276 if test "$ac_test_CFLAGS" = set; then
13277   CFLAGS=$ac_save_CFLAGS
13278 elif test $ac_cv_prog_cc_g = yes; then
13279   if test "$GCC" = yes; then
13280     CFLAGS="-g -O2"
13281   else
13282     CFLAGS="-g"
13283   fi
13284 else
13285   if test "$GCC" = yes; then
13286     CFLAGS="-O2"
13287   else
13288     CFLAGS=
13289   fi
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13293 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13294   $as_echo_n "(cached) " >&6
13295 else
13296   ac_cv_prog_cc_c89=no
13297 ac_save_CC=$CC
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h.  */
13300 #include <stdarg.h>
13301 #include <stdio.h>
13302 #include <sys/types.h>
13303 #include <sys/stat.h>
13304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13305 struct buf { int x; };
13306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13307 static char *e (p, i)
13308      char **p;
13309      int i;
13310 {
13311   return p[i];
13312 }
13313 static char *f (char * (*g) (char **, int), char **p, ...)
13314 {
13315   char *s;
13316   va_list v;
13317   va_start (v,p);
13318   s = g (p, va_arg (v,int));
13319   va_end (v);
13320   return s;
13321 }
13322
13323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13324    function prototypes and stuff, but not '\xHH' hex character constants.
13325    These don't provoke an error unfortunately, instead are silently treated
13326    as 'x'.  The following induces an error, until -std is added to get
13327    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13328    array size at least.  It's necessary to write '\x00'==0 to get something
13329    that's true only with -std.  */
13330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13331
13332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13333    inside strings and character constants.  */
13334 #define FOO(x) 'x'
13335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13336
13337 int test (int i, double x);
13338 struct s1 {int (*f) (int a);};
13339 struct s2 {int (*f) (double a);};
13340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13341 int argc;
13342 char **argv;
13343 int
13344 main ()
13345 {
13346 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13347   ;
13348   return 0;
13349 }
13350 _ACEOF
13351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13352         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13353 do
13354   CC="$ac_save_CC $ac_arg"
13355   if ac_fn_c_try_compile "$LINENO"; then :
13356   ac_cv_prog_cc_c89=$ac_arg
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext
13359   test "x$ac_cv_prog_cc_c89" != "xno" && break
13360 done
13361 rm -f conftest.$ac_ext
13362 CC=$ac_save_CC
13363
13364 fi
13365 # AC_CACHE_VAL
13366 case "x$ac_cv_prog_cc_c89" in
13367   x)
13368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13369 $as_echo "none needed" >&6; } ;;
13370   xno)
13371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13372 $as_echo "unsupported" >&6; } ;;
13373   *)
13374     CC="$CC $ac_cv_prog_cc_c89"
13375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13377 esac
13378 if test "x$ac_cv_prog_cc_c89" != xno; then :
13379
13380 fi
13381
13382 ac_ext=c
13383 ac_cpp='$CPP $CPPFLAGS'
13384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13387
13388 depcc="$CC"   am_compiler_list=
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13391 $as_echo_n "checking dependency style of $depcc... " >&6; }
13392 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13396   # We make a subdir and do the tests there.  Otherwise we can end up
13397   # making bogus files that we don't know about and never remove.  For
13398   # instance it was reported that on HP-UX the gcc test will end up
13399   # making a dummy file named `D' -- because `-MD' means `put the output
13400   # in D'.
13401   mkdir conftest.dir
13402   # Copy depcomp to subdir because otherwise we won't find it if we're
13403   # using a relative directory.
13404   cp "$am_depcomp" conftest.dir
13405   cd conftest.dir
13406   # We will build objects and dependencies in a subdirectory because
13407   # it helps to detect inapplicable dependency modes.  For instance
13408   # both Tru64's cc and ICC support -MD to output dependencies as a
13409   # side effect of compilation, but ICC will put the dependencies in
13410   # the current directory while Tru64 will put them in the object
13411   # directory.
13412   mkdir sub
13413
13414   am_cv_CC_dependencies_compiler_type=none
13415   if test "$am_compiler_list" = ""; then
13416      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13417   fi
13418   am__universal=false
13419   case " $depcc " in #(
13420      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13421      esac
13422
13423   for depmode in $am_compiler_list; do
13424     # Setup a source with many dependencies, because some compilers
13425     # like to wrap large dependency lists on column 80 (with \), and
13426     # we should not choose a depcomp mode which is confused by this.
13427     #
13428     # We need to recreate these files for each test, as the compiler may
13429     # overwrite some of them when testing with obscure command lines.
13430     # This happens at least with the AIX C compiler.
13431     : > sub/conftest.c
13432     for i in 1 2 3 4 5 6; do
13433       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13434       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13435       # Solaris 8's {/usr,}/bin/sh.
13436       touch sub/conftst$i.h
13437     done
13438     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13439
13440     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13441     # mode.  It turns out that the SunPro C++ compiler does not properly
13442     # handle `-M -o', and we need to detect this.  Also, some Intel
13443     # versions had trouble with output in subdirs
13444     am__obj=sub/conftest.${OBJEXT-o}
13445     am__minus_obj="-o $am__obj"
13446     case $depmode in
13447     gcc)
13448       # This depmode causes a compiler race in universal mode.
13449       test "$am__universal" = false || continue
13450       ;;
13451     nosideeffect)
13452       # after this tag, mechanisms are not by side-effect, so they'll
13453       # only be used when explicitly requested
13454       if test "x$enable_dependency_tracking" = xyes; then
13455         continue
13456       else
13457         break
13458       fi
13459       ;;
13460     msvisualcpp | msvcmsys)
13461       # This compiler won't grok `-c -o', but also, the minuso test has
13462       # not run yet.  These depmodes are late enough in the game, and
13463       # so weak that their functioning should not be impacted.
13464       am__obj=conftest.${OBJEXT-o}
13465       am__minus_obj=
13466       ;;
13467     none) break ;;
13468     esac
13469     if depmode=$depmode \
13470        source=sub/conftest.c object=$am__obj \
13471        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13472        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13473          >/dev/null 2>conftest.err &&
13474        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13475        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13476        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13477        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13478       # icc doesn't choke on unknown options, it will just issue warnings
13479       # or remarks (even with -Werror).  So we grep stderr for any message
13480       # that says an option was ignored or not supported.
13481       # When given -MP, icc 7.0 and 7.1 complain thusly:
13482       #   icc: Command line warning: ignoring option '-M'; no argument required
13483       # The diagnosis changed in icc 8.0:
13484       #   icc: Command line remark: option '-MP' not supported
13485       if (grep 'ignoring option' conftest.err ||
13486           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13487         am_cv_CC_dependencies_compiler_type=$depmode
13488         break
13489       fi
13490     fi
13491   done
13492
13493   cd ..
13494   rm -rf conftest.dir
13495 else
13496   am_cv_CC_dependencies_compiler_type=none
13497 fi
13498
13499 fi
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13503
13504  if
13505   test "x$enable_dependency_tracking" != xno \
13506   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13507   am__fastdepCC_TRUE=
13508   am__fastdepCC_FALSE='#'
13509 else
13510   am__fastdepCC_TRUE='#'
13511   am__fastdepCC_FALSE=
13512 fi
13513
13514
13515 ac_ext=cpp
13516 ac_cpp='$CXXCPP $CPPFLAGS'
13517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13520 if test -z "$CXX"; then
13521   if test -n "$CCC"; then
13522     CXX=$CCC
13523   else
13524     if test -n "$ac_tool_prefix"; then
13525   for ac_prog in g++ g++3 c++ CC
13526   do
13527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13528 set dummy $ac_tool_prefix$ac_prog; 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_prog_CXX+set}" = set; then :
13532   $as_echo_n "(cached) " >&6
13533 else
13534   if test -n "$CXX"; then
13535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13536 else
13537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538 for as_dir in $PATH
13539 do
13540   IFS=$as_save_IFS
13541   test -z "$as_dir" && as_dir=.
13542     for ac_exec_ext in '' $ac_executable_extensions; do
13543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546     break 2
13547   fi
13548 done
13549   done
13550 IFS=$as_save_IFS
13551
13552 fi
13553 fi
13554 CXX=$ac_cv_prog_CXX
13555 if test -n "$CXX"; then
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13557 $as_echo "$CXX" >&6; }
13558 else
13559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13561 fi
13562
13563
13564     test -n "$CXX" && break
13565   done
13566 fi
13567 if test -z "$CXX"; then
13568   ac_ct_CXX=$CXX
13569   for ac_prog in g++ g++3 c++ CC
13570 do
13571   # Extract the first word of "$ac_prog", so it can be a program name with args.
13572 set dummy $ac_prog; ac_word=$2
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13574 $as_echo_n "checking for $ac_word... " >&6; }
13575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578   if test -n "$ac_ct_CXX"; then
13579   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13580 else
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13583 do
13584   IFS=$as_save_IFS
13585   test -z "$as_dir" && as_dir=.
13586     for ac_exec_ext in '' $ac_executable_extensions; do
13587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13588     ac_cv_prog_ac_ct_CXX="$ac_prog"
13589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590     break 2
13591   fi
13592 done
13593   done
13594 IFS=$as_save_IFS
13595
13596 fi
13597 fi
13598 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13599 if test -n "$ac_ct_CXX"; then
13600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13601 $as_echo "$ac_ct_CXX" >&6; }
13602 else
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13604 $as_echo "no" >&6; }
13605 fi
13606
13607
13608   test -n "$ac_ct_CXX" && break
13609 done
13610
13611   if test "x$ac_ct_CXX" = x; then
13612     CXX="g++"
13613   else
13614     case $cross_compiling:$ac_tool_warned in
13615 yes:)
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13618 ac_tool_warned=yes ;;
13619 esac
13620     CXX=$ac_ct_CXX
13621   fi
13622 fi
13623
13624   fi
13625 fi
13626 # Provide some information about the compiler.
13627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13628 set X $ac_compile
13629 ac_compiler=$2
13630 for ac_option in --version -v -V -qversion; do
13631   { { ac_try="$ac_compiler $ac_option >&5"
13632 case "(($ac_try" in
13633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634   *) ac_try_echo=$ac_try;;
13635 esac
13636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13637 $as_echo "$ac_try_echo"; } >&5
13638   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13639   ac_status=$?
13640   if test -s conftest.err; then
13641     sed '10a\
13642 ... rest of stderr output deleted ...
13643          10q' conftest.err >conftest.er1
13644     cat conftest.er1 >&5
13645   fi
13646   rm -f conftest.er1 conftest.err
13647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13648   test $ac_status = 0; }
13649 done
13650
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13652 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13653 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13654   $as_echo_n "(cached) " >&6
13655 else
13656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h.  */
13658
13659 int
13660 main ()
13661 {
13662 #ifndef __GNUC__
13663        choke me
13664 #endif
13665
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_cxx_try_compile "$LINENO"; then :
13671   ac_compiler_gnu=yes
13672 else
13673   ac_compiler_gnu=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13677
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13680 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13681 if test $ac_compiler_gnu = yes; then
13682   GXX=yes
13683 else
13684   GXX=
13685 fi
13686 ac_test_CXXFLAGS=${CXXFLAGS+set}
13687 ac_save_CXXFLAGS=$CXXFLAGS
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13689 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13690 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13694    ac_cxx_werror_flag=yes
13695    ac_cv_prog_cxx_g=no
13696    CXXFLAGS="-g"
13697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699
13700 int
13701 main ()
13702 {
13703
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_cxx_try_compile "$LINENO"; then :
13709   ac_cv_prog_cxx_g=yes
13710 else
13711   CXXFLAGS=""
13712       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h.  */
13714
13715 int
13716 main ()
13717 {
13718
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_cxx_try_compile "$LINENO"; then :
13724
13725 else
13726   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13727          CXXFLAGS="-g"
13728          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h.  */
13730
13731 int
13732 main ()
13733 {
13734
13735   ;
13736   return 0;
13737 }
13738 _ACEOF
13739 if ac_fn_cxx_try_compile "$LINENO"; then :
13740   ac_cv_prog_cxx_g=yes
13741 fi
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13750 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13751 if test "$ac_test_CXXFLAGS" = set; then
13752   CXXFLAGS=$ac_save_CXXFLAGS
13753 elif test $ac_cv_prog_cxx_g = yes; then
13754   if test "$GXX" = yes; then
13755     CXXFLAGS="-g -O2"
13756   else
13757     CXXFLAGS="-g"
13758   fi
13759 else
13760   if test "$GXX" = yes; then
13761     CXXFLAGS="-O2"
13762   else
13763     CXXFLAGS=
13764   fi
13765 fi
13766 ac_ext=c
13767 ac_cpp='$CPP $CPPFLAGS'
13768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13771
13772 depcc="$CXX"  am_compiler_list=
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13775 $as_echo_n "checking dependency style of $depcc... " >&6; }
13776 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13777   $as_echo_n "(cached) " >&6
13778 else
13779   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13780   # We make a subdir and do the tests there.  Otherwise we can end up
13781   # making bogus files that we don't know about and never remove.  For
13782   # instance it was reported that on HP-UX the gcc test will end up
13783   # making a dummy file named `D' -- because `-MD' means `put the output
13784   # in D'.
13785   mkdir conftest.dir
13786   # Copy depcomp to subdir because otherwise we won't find it if we're
13787   # using a relative directory.
13788   cp "$am_depcomp" conftest.dir
13789   cd conftest.dir
13790   # We will build objects and dependencies in a subdirectory because
13791   # it helps to detect inapplicable dependency modes.  For instance
13792   # both Tru64's cc and ICC support -MD to output dependencies as a
13793   # side effect of compilation, but ICC will put the dependencies in
13794   # the current directory while Tru64 will put them in the object
13795   # directory.
13796   mkdir sub
13797
13798   am_cv_CXX_dependencies_compiler_type=none
13799   if test "$am_compiler_list" = ""; then
13800      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13801   fi
13802   am__universal=false
13803   case " $depcc " in #(
13804      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13805      esac
13806
13807   for depmode in $am_compiler_list; do
13808     # Setup a source with many dependencies, because some compilers
13809     # like to wrap large dependency lists on column 80 (with \), and
13810     # we should not choose a depcomp mode which is confused by this.
13811     #
13812     # We need to recreate these files for each test, as the compiler may
13813     # overwrite some of them when testing with obscure command lines.
13814     # This happens at least with the AIX C compiler.
13815     : > sub/conftest.c
13816     for i in 1 2 3 4 5 6; do
13817       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13818       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13819       # Solaris 8's {/usr,}/bin/sh.
13820       touch sub/conftst$i.h
13821     done
13822     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13823
13824     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13825     # mode.  It turns out that the SunPro C++ compiler does not properly
13826     # handle `-M -o', and we need to detect this.  Also, some Intel
13827     # versions had trouble with output in subdirs
13828     am__obj=sub/conftest.${OBJEXT-o}
13829     am__minus_obj="-o $am__obj"
13830     case $depmode in
13831     gcc)
13832       # This depmode causes a compiler race in universal mode.
13833       test "$am__universal" = false || continue
13834       ;;
13835     nosideeffect)
13836       # after this tag, mechanisms are not by side-effect, so they'll
13837       # only be used when explicitly requested
13838       if test "x$enable_dependency_tracking" = xyes; then
13839         continue
13840       else
13841         break
13842       fi
13843       ;;
13844     msvisualcpp | msvcmsys)
13845       # This compiler won't grok `-c -o', but also, the minuso test has
13846       # not run yet.  These depmodes are late enough in the game, and
13847       # so weak that their functioning should not be impacted.
13848       am__obj=conftest.${OBJEXT-o}
13849       am__minus_obj=
13850       ;;
13851     none) break ;;
13852     esac
13853     if depmode=$depmode \
13854        source=sub/conftest.c object=$am__obj \
13855        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13856        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13857          >/dev/null 2>conftest.err &&
13858        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13859        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13860        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13861        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13862       # icc doesn't choke on unknown options, it will just issue warnings
13863       # or remarks (even with -Werror).  So we grep stderr for any message
13864       # that says an option was ignored or not supported.
13865       # When given -MP, icc 7.0 and 7.1 complain thusly:
13866       #   icc: Command line warning: ignoring option '-M'; no argument required
13867       # The diagnosis changed in icc 8.0:
13868       #   icc: Command line remark: option '-MP' not supported
13869       if (grep 'ignoring option' conftest.err ||
13870           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13871         am_cv_CXX_dependencies_compiler_type=$depmode
13872         break
13873       fi
13874     fi
13875   done
13876
13877   cd ..
13878   rm -rf conftest.dir
13879 else
13880   am_cv_CXX_dependencies_compiler_type=none
13881 fi
13882
13883 fi
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13885 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13886 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13887
13888  if
13889   test "x$enable_dependency_tracking" != xno \
13890   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13891   am__fastdepCXX_TRUE=
13892   am__fastdepCXX_FALSE='#'
13893 else
13894   am__fastdepCXX_TRUE='#'
13895   am__fastdepCXX_FALSE=
13896 fi
13897
13898
13899
13900 ac_ext=cpp
13901 ac_cpp='$CXXCPP $CPPFLAGS'
13902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13905 if test -z "$CXX"; then
13906   if test -n "$CCC"; then
13907     CXX=$CCC
13908   else
13909     if test -n "$ac_tool_prefix"; then
13910   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13911   do
13912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13915 $as_echo_n "checking for $ac_word... " >&6; }
13916 if test "${ac_cv_prog_CXX+set}" = set; then :
13917   $as_echo_n "(cached) " >&6
13918 else
13919   if test -n "$CXX"; then
13920   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13921 else
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13924 do
13925   IFS=$as_save_IFS
13926   test -z "$as_dir" && as_dir=.
13927     for ac_exec_ext in '' $ac_executable_extensions; do
13928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13929     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13931     break 2
13932   fi
13933 done
13934   done
13935 IFS=$as_save_IFS
13936
13937 fi
13938 fi
13939 CXX=$ac_cv_prog_CXX
13940 if test -n "$CXX"; then
13941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13942 $as_echo "$CXX" >&6; }
13943 else
13944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 fi
13947
13948
13949     test -n "$CXX" && break
13950   done
13951 fi
13952 if test -z "$CXX"; then
13953   ac_ct_CXX=$CXX
13954   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13955 do
13956   # Extract the first word of "$ac_prog", so it can be a program name with args.
13957 set dummy $ac_prog; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13961   $as_echo_n "(cached) " >&6
13962 else
13963   if test -n "$ac_ct_CXX"; then
13964   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969   IFS=$as_save_IFS
13970   test -z "$as_dir" && as_dir=.
13971     for ac_exec_ext in '' $ac_executable_extensions; do
13972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13973     ac_cv_prog_ac_ct_CXX="$ac_prog"
13974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975     break 2
13976   fi
13977 done
13978   done
13979 IFS=$as_save_IFS
13980
13981 fi
13982 fi
13983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13984 if test -n "$ac_ct_CXX"; then
13985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13986 $as_echo "$ac_ct_CXX" >&6; }
13987 else
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13990 fi
13991
13992
13993   test -n "$ac_ct_CXX" && break
13994 done
13995
13996   if test "x$ac_ct_CXX" = x; then
13997     CXX="g++"
13998   else
13999     case $cross_compiling:$ac_tool_warned in
14000 yes:)
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14003 ac_tool_warned=yes ;;
14004 esac
14005     CXX=$ac_ct_CXX
14006   fi
14007 fi
14008
14009   fi
14010 fi
14011 # Provide some information about the compiler.
14012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14013 set X $ac_compile
14014 ac_compiler=$2
14015 for ac_option in --version -v -V -qversion; do
14016   { { ac_try="$ac_compiler $ac_option >&5"
14017 case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14022 $as_echo "$ac_try_echo"; } >&5
14023   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14024   ac_status=$?
14025   if test -s conftest.err; then
14026     sed '10a\
14027 ... rest of stderr output deleted ...
14028          10q' conftest.err >conftest.er1
14029     cat conftest.er1 >&5
14030   fi
14031   rm -f conftest.er1 conftest.err
14032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033   test $ac_status = 0; }
14034 done
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14037 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14038 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14039   $as_echo_n "(cached) " >&6
14040 else
14041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h.  */
14043
14044 int
14045 main ()
14046 {
14047 #ifndef __GNUC__
14048        choke me
14049 #endif
14050
14051   ;
14052   return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_cxx_try_compile "$LINENO"; then :
14056   ac_compiler_gnu=yes
14057 else
14058   ac_compiler_gnu=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14062
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14065 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14066 if test $ac_compiler_gnu = yes; then
14067   GXX=yes
14068 else
14069   GXX=
14070 fi
14071 ac_test_CXXFLAGS=${CXXFLAGS+set}
14072 ac_save_CXXFLAGS=$CXXFLAGS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14074 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14075 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14076   $as_echo_n "(cached) " >&6
14077 else
14078   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14079    ac_cxx_werror_flag=yes
14080    ac_cv_prog_cxx_g=no
14081    CXXFLAGS="-g"
14082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h.  */
14084
14085 int
14086 main ()
14087 {
14088
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_cxx_try_compile "$LINENO"; then :
14094   ac_cv_prog_cxx_g=yes
14095 else
14096   CXXFLAGS=""
14097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h.  */
14099
14100 int
14101 main ()
14102 {
14103
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_cxx_try_compile "$LINENO"; then :
14109
14110 else
14111   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14112          CXXFLAGS="-g"
14113          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h.  */
14115
14116 int
14117 main ()
14118 {
14119
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_cxx_try_compile "$LINENO"; then :
14125   ac_cv_prog_cxx_g=yes
14126 fi
14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14133 fi
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14135 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14136 if test "$ac_test_CXXFLAGS" = set; then
14137   CXXFLAGS=$ac_save_CXXFLAGS
14138 elif test $ac_cv_prog_cxx_g = yes; then
14139   if test "$GXX" = yes; then
14140     CXXFLAGS="-g -O2"
14141   else
14142     CXXFLAGS="-g"
14143   fi
14144 else
14145   if test "$GXX" = yes; then
14146     CXXFLAGS="-O2"
14147   else
14148     CXXFLAGS=
14149   fi
14150 fi
14151 ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157 depcc="$CXX"  am_compiler_list=
14158
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14160 $as_echo_n "checking dependency style of $depcc... " >&6; }
14161 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14162   $as_echo_n "(cached) " >&6
14163 else
14164   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14165   # We make a subdir and do the tests there.  Otherwise we can end up
14166   # making bogus files that we don't know about and never remove.  For
14167   # instance it was reported that on HP-UX the gcc test will end up
14168   # making a dummy file named `D' -- because `-MD' means `put the output
14169   # in D'.
14170   mkdir conftest.dir
14171   # Copy depcomp to subdir because otherwise we won't find it if we're
14172   # using a relative directory.
14173   cp "$am_depcomp" conftest.dir
14174   cd conftest.dir
14175   # We will build objects and dependencies in a subdirectory because
14176   # it helps to detect inapplicable dependency modes.  For instance
14177   # both Tru64's cc and ICC support -MD to output dependencies as a
14178   # side effect of compilation, but ICC will put the dependencies in
14179   # the current directory while Tru64 will put them in the object
14180   # directory.
14181   mkdir sub
14182
14183   am_cv_CXX_dependencies_compiler_type=none
14184   if test "$am_compiler_list" = ""; then
14185      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14186   fi
14187   am__universal=false
14188   case " $depcc " in #(
14189      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14190      esac
14191
14192   for depmode in $am_compiler_list; do
14193     # Setup a source with many dependencies, because some compilers
14194     # like to wrap large dependency lists on column 80 (with \), and
14195     # we should not choose a depcomp mode which is confused by this.
14196     #
14197     # We need to recreate these files for each test, as the compiler may
14198     # overwrite some of them when testing with obscure command lines.
14199     # This happens at least with the AIX C compiler.
14200     : > sub/conftest.c
14201     for i in 1 2 3 4 5 6; do
14202       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14203       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14204       # Solaris 8's {/usr,}/bin/sh.
14205       touch sub/conftst$i.h
14206     done
14207     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14208
14209     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14210     # mode.  It turns out that the SunPro C++ compiler does not properly
14211     # handle `-M -o', and we need to detect this.  Also, some Intel
14212     # versions had trouble with output in subdirs
14213     am__obj=sub/conftest.${OBJEXT-o}
14214     am__minus_obj="-o $am__obj"
14215     case $depmode in
14216     gcc)
14217       # This depmode causes a compiler race in universal mode.
14218       test "$am__universal" = false || continue
14219       ;;
14220     nosideeffect)
14221       # after this tag, mechanisms are not by side-effect, so they'll
14222       # only be used when explicitly requested
14223       if test "x$enable_dependency_tracking" = xyes; then
14224         continue
14225       else
14226         break
14227       fi
14228       ;;
14229     msvisualcpp | msvcmsys)
14230       # This compiler won't grok `-c -o', but also, the minuso test has
14231       # not run yet.  These depmodes are late enough in the game, and
14232       # so weak that their functioning should not be impacted.
14233       am__obj=conftest.${OBJEXT-o}
14234       am__minus_obj=
14235       ;;
14236     none) break ;;
14237     esac
14238     if depmode=$depmode \
14239        source=sub/conftest.c object=$am__obj \
14240        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14241        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14242          >/dev/null 2>conftest.err &&
14243        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14244        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14245        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14246        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14247       # icc doesn't choke on unknown options, it will just issue warnings
14248       # or remarks (even with -Werror).  So we grep stderr for any message
14249       # that says an option was ignored or not supported.
14250       # When given -MP, icc 7.0 and 7.1 complain thusly:
14251       #   icc: Command line warning: ignoring option '-M'; no argument required
14252       # The diagnosis changed in icc 8.0:
14253       #   icc: Command line remark: option '-MP' not supported
14254       if (grep 'ignoring option' conftest.err ||
14255           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14256         am_cv_CXX_dependencies_compiler_type=$depmode
14257         break
14258       fi
14259     fi
14260   done
14261
14262   cd ..
14263   rm -rf conftest.dir
14264 else
14265   am_cv_CXX_dependencies_compiler_type=none
14266 fi
14267
14268 fi
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14270 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14271 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14272
14273  if
14274   test "x$enable_dependency_tracking" != xno \
14275   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14276   am__fastdepCXX_TRUE=
14277   am__fastdepCXX_FALSE='#'
14278 else
14279   am__fastdepCXX_TRUE='#'
14280   am__fastdepCXX_FALSE=
14281 fi
14282
14283
14284 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14285     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14286     (test "X$CXX" != "Xg++"))) ; then
14287   ac_ext=cpp
14288 ac_cpp='$CXXCPP $CPPFLAGS'
14289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14293 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14294 if test -z "$CXXCPP"; then
14295   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14296   $as_echo_n "(cached) " >&6
14297 else
14298       # Double quotes because CXXCPP needs to be expanded
14299     for CXXCPP in "$CXX -E" "/lib/cpp"
14300     do
14301       ac_preproc_ok=false
14302 for ac_cxx_preproc_warn_flag in '' yes
14303 do
14304   # Use a header file that comes with gcc, so configuring glibc
14305   # with a fresh cross-compiler works.
14306   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14307   # <limits.h> exists even on freestanding compilers.
14308   # On the NeXT, cc -E runs the code through the compiler's parser,
14309   # not just through cpp. "Syntax error" is here to catch this case.
14310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h.  */
14312 #ifdef __STDC__
14313 # include <limits.h>
14314 #else
14315 # include <assert.h>
14316 #endif
14317                      Syntax error
14318 _ACEOF
14319 if ac_fn_cxx_try_cpp "$LINENO"; then :
14320
14321 else
14322   # Broken: fails on valid input.
14323 continue
14324 fi
14325 rm -f conftest.err conftest.i conftest.$ac_ext
14326
14327   # OK, works on sane cases.  Now check whether nonexistent headers
14328   # can be detected and how.
14329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h.  */
14331 #include <ac_nonexistent.h>
14332 _ACEOF
14333 if ac_fn_cxx_try_cpp "$LINENO"; then :
14334   # Broken: success on invalid input.
14335 continue
14336 else
14337   # Passes both tests.
14338 ac_preproc_ok=:
14339 break
14340 fi
14341 rm -f conftest.err conftest.i conftest.$ac_ext
14342
14343 done
14344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14345 rm -f conftest.i conftest.err conftest.$ac_ext
14346 if $ac_preproc_ok; then :
14347   break
14348 fi
14349
14350     done
14351     ac_cv_prog_CXXCPP=$CXXCPP
14352
14353 fi
14354   CXXCPP=$ac_cv_prog_CXXCPP
14355 else
14356   ac_cv_prog_CXXCPP=$CXXCPP
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14359 $as_echo "$CXXCPP" >&6; }
14360 ac_preproc_ok=false
14361 for ac_cxx_preproc_warn_flag in '' yes
14362 do
14363   # Use a header file that comes with gcc, so configuring glibc
14364   # with a fresh cross-compiler works.
14365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14366   # <limits.h> exists even on freestanding compilers.
14367   # On the NeXT, cc -E runs the code through the compiler's parser,
14368   # not just through cpp. "Syntax error" is here to catch this case.
14369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h.  */
14371 #ifdef __STDC__
14372 # include <limits.h>
14373 #else
14374 # include <assert.h>
14375 #endif
14376                      Syntax error
14377 _ACEOF
14378 if ac_fn_cxx_try_cpp "$LINENO"; then :
14379
14380 else
14381   # Broken: fails on valid input.
14382 continue
14383 fi
14384 rm -f conftest.err conftest.i conftest.$ac_ext
14385
14386   # OK, works on sane cases.  Now check whether nonexistent headers
14387   # can be detected and how.
14388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h.  */
14390 #include <ac_nonexistent.h>
14391 _ACEOF
14392 if ac_fn_cxx_try_cpp "$LINENO"; then :
14393   # Broken: success on invalid input.
14394 continue
14395 else
14396   # Passes both tests.
14397 ac_preproc_ok=:
14398 break
14399 fi
14400 rm -f conftest.err conftest.i conftest.$ac_ext
14401
14402 done
14403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14404 rm -f conftest.i conftest.err conftest.$ac_ext
14405 if $ac_preproc_ok; then :
14406
14407 else
14408   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14410 _lt_caught_CXX_error=yes; }
14411 fi
14412
14413 ac_ext=c
14414 ac_cpp='$CPP $CPPFLAGS'
14415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14418
14419 else
14420   _lt_caught_CXX_error=yes
14421 fi
14422
14423
14424
14425
14426 ac_ext=cpp
14427 ac_cpp='$CXXCPP $CPPFLAGS'
14428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14431
14432 archive_cmds_need_lc_CXX=no
14433 allow_undefined_flag_CXX=
14434 always_export_symbols_CXX=no
14435 archive_expsym_cmds_CXX=
14436 compiler_needs_object_CXX=no
14437 export_dynamic_flag_spec_CXX=
14438 hardcode_direct_CXX=no
14439 hardcode_direct_absolute_CXX=no
14440 hardcode_libdir_flag_spec_CXX=
14441 hardcode_libdir_flag_spec_ld_CXX=
14442 hardcode_libdir_separator_CXX=
14443 hardcode_minus_L_CXX=no
14444 hardcode_shlibpath_var_CXX=unsupported
14445 hardcode_automatic_CXX=no
14446 inherit_rpath_CXX=no
14447 module_cmds_CXX=
14448 module_expsym_cmds_CXX=
14449 link_all_deplibs_CXX=unknown
14450 old_archive_cmds_CXX=$old_archive_cmds
14451 no_undefined_flag_CXX=
14452 whole_archive_flag_spec_CXX=
14453 enable_shared_with_static_runtimes_CXX=no
14454
14455 # Source file extension for C++ test sources.
14456 ac_ext=cpp
14457
14458 # Object file extension for compiled C++ test sources.
14459 objext=o
14460 objext_CXX=$objext
14461
14462 # No sense in running all these tests if we already determined that
14463 # the CXX compiler isn't working.  Some variables (like enable_shared)
14464 # are currently assumed to apply to all compilers on this platform,
14465 # and will be corrupted by setting them based on a non-working compiler.
14466 if test "$_lt_caught_CXX_error" != yes; then
14467   # Code to be used in simple compile tests
14468   lt_simple_compile_test_code="int some_variable = 0;"
14469
14470   # Code to be used in simple link tests
14471   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14472
14473   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14474
14475
14476
14477
14478
14479
14480 # If no C compiler was specified, use CC.
14481 LTCC=${LTCC-"$CC"}
14482
14483 # If no C compiler flags were specified, use CFLAGS.
14484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14485
14486 # Allow CC to be a program name with arguments.
14487 compiler=$CC
14488
14489
14490   # save warnings/boilerplate of simple test code
14491   ac_outfile=conftest.$ac_objext
14492 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14494 _lt_compiler_boilerplate=`cat conftest.err`
14495 $RM conftest*
14496
14497   ac_outfile=conftest.$ac_objext
14498 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14500 _lt_linker_boilerplate=`cat conftest.err`
14501 $RM -r conftest*
14502
14503
14504   # Allow CC to be a program name with arguments.
14505   lt_save_CC=$CC
14506   lt_save_LD=$LD
14507   lt_save_GCC=$GCC
14508   GCC=$GXX
14509   lt_save_with_gnu_ld=$with_gnu_ld
14510   lt_save_path_LD=$lt_cv_path_LD
14511   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14512     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14513   else
14514     $as_unset lt_cv_prog_gnu_ld
14515   fi
14516   if test -n "${lt_cv_path_LDCXX+set}"; then
14517     lt_cv_path_LD=$lt_cv_path_LDCXX
14518   else
14519     $as_unset lt_cv_path_LD
14520   fi
14521   test -z "${LDCXX+set}" || LD=$LDCXX
14522   CC=${CXX-"c++"}
14523   compiler=$CC
14524   compiler_CXX=$CC
14525   for cc_temp in $compiler""; do
14526   case $cc_temp in
14527     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14528     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14529     \-*) ;;
14530     *) break;;
14531   esac
14532 done
14533 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14534
14535
14536   if test -n "$compiler"; then
14537     # We don't want -fno-exception when compiling C++ code, so set the
14538     # no_builtin_flag separately
14539     if test "$GXX" = yes; then
14540       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14541     else
14542       lt_prog_compiler_no_builtin_flag_CXX=
14543     fi
14544
14545     if test "$GXX" = yes; then
14546       # Set up default GNU C++ configuration
14547
14548
14549
14550 # Check whether --with-gnu-ld was given.
14551 if test "${with_gnu_ld+set}" = set; then :
14552   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14553 else
14554   with_gnu_ld=no
14555 fi
14556
14557 ac_prog=ld
14558 if test "$GCC" = yes; then
14559   # Check if gcc -print-prog-name=ld gives a path.
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14561 $as_echo_n "checking for ld used by $CC... " >&6; }
14562   case $host in
14563   *-*-mingw*)
14564     # gcc leaves a trailing carriage return which upsets mingw
14565     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14566   *)
14567     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14568   esac
14569   case $ac_prog in
14570     # Accept absolute paths.
14571     [\\/]* | ?:[\\/]*)
14572       re_direlt='/[^/][^/]*/\.\./'
14573       # Canonicalize the pathname of ld
14574       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14575       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14576         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14577       done
14578       test -z "$LD" && LD="$ac_prog"
14579       ;;
14580   "")
14581     # If it fails, then pretend we aren't using GCC.
14582     ac_prog=ld
14583     ;;
14584   *)
14585     # If it is relative, then search for the first ld in PATH.
14586     with_gnu_ld=unknown
14587     ;;
14588   esac
14589 elif test "$with_gnu_ld" = yes; then
14590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14591 $as_echo_n "checking for GNU ld... " >&6; }
14592 else
14593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14594 $as_echo_n "checking for non-GNU ld... " >&6; }
14595 fi
14596 if test "${lt_cv_path_LD+set}" = set; then :
14597   $as_echo_n "(cached) " >&6
14598 else
14599   if test -z "$LD"; then
14600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14601   for ac_dir in $PATH; do
14602     IFS="$lt_save_ifs"
14603     test -z "$ac_dir" && ac_dir=.
14604     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14605       lt_cv_path_LD="$ac_dir/$ac_prog"
14606       # Check to see if the program is GNU ld.  I'd rather use --version,
14607       # but apparently some variants of GNU ld only accept -v.
14608       # Break only if it was the GNU/non-GNU ld that we prefer.
14609       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14610       *GNU* | *'with BFD'*)
14611         test "$with_gnu_ld" != no && break
14612         ;;
14613       *)
14614         test "$with_gnu_ld" != yes && break
14615         ;;
14616       esac
14617     fi
14618   done
14619   IFS="$lt_save_ifs"
14620 else
14621   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14622 fi
14623 fi
14624
14625 LD="$lt_cv_path_LD"
14626 if test -n "$LD"; then
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14628 $as_echo "$LD" >&6; }
14629 else
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14632 fi
14633 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14635 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14636 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14637   $as_echo_n "(cached) " >&6
14638 else
14639   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14640 case `$LD -v 2>&1 </dev/null` in
14641 *GNU* | *'with BFD'*)
14642   lt_cv_prog_gnu_ld=yes
14643   ;;
14644 *)
14645   lt_cv_prog_gnu_ld=no
14646   ;;
14647 esac
14648 fi
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14650 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14651 with_gnu_ld=$lt_cv_prog_gnu_ld
14652
14653
14654
14655
14656
14657
14658
14659       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14660       # archiving commands below assume that GNU ld is being used.
14661       if test "$with_gnu_ld" = yes; then
14662         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14663         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14664
14665         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14666         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14667
14668         # If archive_cmds runs LD, not CC, wlarc should be empty
14669         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14670         #     investigate it a little bit more. (MM)
14671         wlarc='${wl}'
14672
14673         # ancient GNU ld didn't support --whole-archive et. al.
14674         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14675           $GREP 'no-whole-archive' > /dev/null; then
14676           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14677         else
14678           whole_archive_flag_spec_CXX=
14679         fi
14680       else
14681         with_gnu_ld=no
14682         wlarc=
14683
14684         # A generic and very simple default shared library creation
14685         # command for GNU C++ for the case where it uses the native
14686         # linker, instead of GNU ld.  If possible, this setting should
14687         # overridden to take advantage of the native linker features on
14688         # the platform it is being used on.
14689         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14690       fi
14691
14692       # Commands to make compiler produce verbose output that lists
14693       # what "hidden" libraries, object files and flags are used when
14694       # linking a shared library.
14695       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14696
14697     else
14698       GXX=no
14699       with_gnu_ld=no
14700       wlarc=
14701     fi
14702
14703     # PORTME: fill in a description of your system's C++ link characteristics
14704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14705 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14706     ld_shlibs_CXX=yes
14707     case $host_os in
14708       aix3*)
14709         # FIXME: insert proper C++ library support
14710         ld_shlibs_CXX=no
14711         ;;
14712       aix[4-9]*)
14713         if test "$host_cpu" = ia64; then
14714           # On IA64, the linker does run time linking by default, so we don't
14715           # have to do anything special.
14716           aix_use_runtimelinking=no
14717           exp_sym_flag='-Bexport'
14718           no_entry_flag=""
14719         else
14720           aix_use_runtimelinking=no
14721
14722           # Test if we are trying to use run time linking or normal
14723           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14724           # need to do runtime linking.
14725           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14726             for ld_flag in $LDFLAGS; do
14727               case $ld_flag in
14728               *-brtl*)
14729                 aix_use_runtimelinking=yes
14730                 break
14731                 ;;
14732               esac
14733             done
14734             ;;
14735           esac
14736
14737           exp_sym_flag='-bexport'
14738           no_entry_flag='-bnoentry'
14739         fi
14740
14741         # When large executables or shared objects are built, AIX ld can
14742         # have problems creating the table of contents.  If linking a library
14743         # or program results in "error TOC overflow" add -mminimal-toc to
14744         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14745         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14746
14747         archive_cmds_CXX=''
14748         hardcode_direct_CXX=yes
14749         hardcode_direct_absolute_CXX=yes
14750         hardcode_libdir_separator_CXX=':'
14751         link_all_deplibs_CXX=yes
14752         file_list_spec_CXX='${wl}-f,'
14753
14754         if test "$GXX" = yes; then
14755           case $host_os in aix4.[012]|aix4.[012].*)
14756           # We only want to do this on AIX 4.2 and lower, the check
14757           # below for broken collect2 doesn't work under 4.3+
14758           collect2name=`${CC} -print-prog-name=collect2`
14759           if test -f "$collect2name" &&
14760              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14761           then
14762             # We have reworked collect2
14763             :
14764           else
14765             # We have old collect2
14766             hardcode_direct_CXX=unsupported
14767             # It fails to find uninstalled libraries when the uninstalled
14768             # path is not listed in the libpath.  Setting hardcode_minus_L
14769             # to unsupported forces relinking
14770             hardcode_minus_L_CXX=yes
14771             hardcode_libdir_flag_spec_CXX='-L$libdir'
14772             hardcode_libdir_separator_CXX=
14773           fi
14774           esac
14775           shared_flag='-shared'
14776           if test "$aix_use_runtimelinking" = yes; then
14777             shared_flag="$shared_flag "'${wl}-G'
14778           fi
14779         else
14780           # not using gcc
14781           if test "$host_cpu" = ia64; then
14782           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14783           # chokes on -Wl,-G. The following line is correct:
14784           shared_flag='-G'
14785           else
14786             if test "$aix_use_runtimelinking" = yes; then
14787               shared_flag='${wl}-G'
14788             else
14789               shared_flag='${wl}-bM:SRE'
14790             fi
14791           fi
14792         fi
14793
14794         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14795         # It seems that -bexpall does not export symbols beginning with
14796         # underscore (_), so it is better to generate a list of symbols to
14797         # export.
14798         always_export_symbols_CXX=yes
14799         if test "$aix_use_runtimelinking" = yes; then
14800           # Warning - without using the other runtime loading flags (-brtl),
14801           # -berok will link without error, but may produce a broken library.
14802           allow_undefined_flag_CXX='-berok'
14803           # Determine the default libpath from the value encoded in an empty
14804           # executable.
14805           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h.  */
14807
14808 int
14809 main ()
14810 {
14811
14812   ;
14813   return 0;
14814 }
14815 _ACEOF
14816 if ac_fn_cxx_try_link "$LINENO"; then :
14817
14818 lt_aix_libpath_sed='
14819     /Import File Strings/,/^$/ {
14820         /^0/ {
14821             s/^0  *\(.*\)$/\1/
14822             p
14823         }
14824     }'
14825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14826 # Check for a 64-bit object if we didn't find anything.
14827 if test -z "$aix_libpath"; then
14828   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14829 fi
14830 fi
14831 rm -f core conftest.err conftest.$ac_objext \
14832     conftest$ac_exeext conftest.$ac_ext
14833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14834
14835           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14836
14837           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14838         else
14839           if test "$host_cpu" = ia64; then
14840             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14841             allow_undefined_flag_CXX="-z nodefs"
14842             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"
14843           else
14844             # Determine the default libpath from the value encoded in an
14845             # empty executable.
14846             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848
14849 int
14850 main ()
14851 {
14852
14853   ;
14854   return 0;
14855 }
14856 _ACEOF
14857 if ac_fn_cxx_try_link "$LINENO"; then :
14858
14859 lt_aix_libpath_sed='
14860     /Import File Strings/,/^$/ {
14861         /^0/ {
14862             s/^0  *\(.*\)$/\1/
14863             p
14864         }
14865     }'
14866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14867 # Check for a 64-bit object if we didn't find anything.
14868 if test -z "$aix_libpath"; then
14869   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14870 fi
14871 fi
14872 rm -f core conftest.err conftest.$ac_objext \
14873     conftest$ac_exeext conftest.$ac_ext
14874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14875
14876             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14877             # Warning - without using the other run time loading flags,
14878             # -berok will link without error, but may produce a broken library.
14879             no_undefined_flag_CXX=' ${wl}-bernotok'
14880             allow_undefined_flag_CXX=' ${wl}-berok'
14881             # Exported symbols can be pulled into shared objects from archives
14882             whole_archive_flag_spec_CXX='$convenience'
14883             archive_cmds_need_lc_CXX=yes
14884             # This is similar to how AIX traditionally builds its shared
14885             # libraries.
14886             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'
14887           fi
14888         fi
14889         ;;
14890
14891       beos*)
14892         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14893           allow_undefined_flag_CXX=unsupported
14894           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14895           # support --undefined.  This deserves some investigation.  FIXME
14896           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14897         else
14898           ld_shlibs_CXX=no
14899         fi
14900         ;;
14901
14902       chorus*)
14903         case $cc_basename in
14904           *)
14905           # FIXME: insert proper C++ library support
14906           ld_shlibs_CXX=no
14907           ;;
14908         esac
14909         ;;
14910
14911       cygwin* | mingw* | pw32* | cegcc*)
14912         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14913         # as there is no search path for DLLs.
14914         hardcode_libdir_flag_spec_CXX='-L$libdir'
14915         allow_undefined_flag_CXX=unsupported
14916         always_export_symbols_CXX=no
14917         enable_shared_with_static_runtimes_CXX=yes
14918
14919         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14920           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'
14921           # If the export-symbols file already is a .def file (1st line
14922           # is EXPORTS), use it as is; otherwise, prepend...
14923           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14924             cp $export_symbols $output_objdir/$soname.def;
14925           else
14926             echo EXPORTS > $output_objdir/$soname.def;
14927             cat $export_symbols >> $output_objdir/$soname.def;
14928           fi~
14929           $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'
14930         else
14931           ld_shlibs_CXX=no
14932         fi
14933         ;;
14934       darwin* | rhapsody*)
14935
14936
14937   archive_cmds_need_lc_CXX=no
14938   hardcode_direct_CXX=no
14939   hardcode_automatic_CXX=yes
14940   hardcode_shlibpath_var_CXX=unsupported
14941   whole_archive_flag_spec_CXX=''
14942   link_all_deplibs_CXX=yes
14943   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14944   case $cc_basename in
14945      ifort*) _lt_dar_can_shared=yes ;;
14946      *) _lt_dar_can_shared=$GCC ;;
14947   esac
14948   if test "$_lt_dar_can_shared" = "yes"; then
14949     output_verbose_link_cmd=echo
14950     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}"
14951     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14952     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}"
14953     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}"
14954        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14955       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}"
14956       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}"
14957     fi
14958
14959   else
14960   ld_shlibs_CXX=no
14961   fi
14962
14963         ;;
14964
14965       dgux*)
14966         case $cc_basename in
14967           ec++*)
14968             # FIXME: insert proper C++ library support
14969             ld_shlibs_CXX=no
14970             ;;
14971           ghcx*)
14972             # Green Hills C++ Compiler
14973             # FIXME: insert proper C++ library support
14974             ld_shlibs_CXX=no
14975             ;;
14976           *)
14977             # FIXME: insert proper C++ library support
14978             ld_shlibs_CXX=no
14979             ;;
14980         esac
14981         ;;
14982
14983       freebsd[12]*)
14984         # C++ shared libraries reported to be fairly broken before
14985         # switch to ELF
14986         ld_shlibs_CXX=no
14987         ;;
14988
14989       freebsd-elf*)
14990         archive_cmds_need_lc_CXX=no
14991         ;;
14992
14993       freebsd* | dragonfly*)
14994         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14995         # conventions
14996         ld_shlibs_CXX=yes
14997         ;;
14998
14999       gnu*)
15000         ;;
15001
15002       hpux9*)
15003         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15004         hardcode_libdir_separator_CXX=:
15005         export_dynamic_flag_spec_CXX='${wl}-E'
15006         hardcode_direct_CXX=yes
15007         hardcode_minus_L_CXX=yes # Not in the search PATH,
15008                                              # but as the default
15009                                              # location of the library.
15010
15011         case $cc_basename in
15012           CC*)
15013             # FIXME: insert proper C++ library support
15014             ld_shlibs_CXX=no
15015             ;;
15016           aCC*)
15017             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'
15018             # Commands to make compiler produce verbose output that lists
15019             # what "hidden" libraries, object files and flags are used when
15020             # linking a shared library.
15021             #
15022             # There doesn't appear to be a way to prevent this compiler from
15023             # explicitly linking system object files so we need to strip them
15024             # from the output so that they don't get included in the library
15025             # dependencies.
15026             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; $ECHO "X$list" | $Xsed'
15027             ;;
15028           *)
15029             if test "$GXX" = yes; then
15030               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
15031             else
15032               # FIXME: insert proper C++ library support
15033               ld_shlibs_CXX=no
15034             fi
15035             ;;
15036         esac
15037         ;;
15038
15039       hpux10*|hpux11*)
15040         if test $with_gnu_ld = no; then
15041           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15042           hardcode_libdir_separator_CXX=:
15043
15044           case $host_cpu in
15045             hppa*64*|ia64*)
15046               ;;
15047             *)
15048               export_dynamic_flag_spec_CXX='${wl}-E'
15049               ;;
15050           esac
15051         fi
15052         case $host_cpu in
15053           hppa*64*|ia64*)
15054             hardcode_direct_CXX=no
15055             hardcode_shlibpath_var_CXX=no
15056             ;;
15057           *)
15058             hardcode_direct_CXX=yes
15059             hardcode_direct_absolute_CXX=yes
15060             hardcode_minus_L_CXX=yes # Not in the search PATH,
15061                                                  # but as the default
15062                                                  # location of the library.
15063             ;;
15064         esac
15065
15066         case $cc_basename in
15067           CC*)
15068             # FIXME: insert proper C++ library support
15069             ld_shlibs_CXX=no
15070             ;;
15071           aCC*)
15072             case $host_cpu in
15073               hppa*64*)
15074                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15075                 ;;
15076               ia64*)
15077                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15078                 ;;
15079               *)
15080                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15081                 ;;
15082             esac
15083             # Commands to make compiler produce verbose output that lists
15084             # what "hidden" libraries, object files and flags are used when
15085             # linking a shared library.
15086             #
15087             # There doesn't appear to be a way to prevent this compiler from
15088             # explicitly linking system object files so we need to strip them
15089             # from the output so that they don't get included in the library
15090             # dependencies.
15091             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; $ECHO "X$list" | $Xsed'
15092             ;;
15093           *)
15094             if test "$GXX" = yes; then
15095               if test $with_gnu_ld = no; then
15096                 case $host_cpu in
15097                   hppa*64*)
15098                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15099                     ;;
15100                   ia64*)
15101                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15102                     ;;
15103                   *)
15104                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15105                     ;;
15106                 esac
15107               fi
15108             else
15109               # FIXME: insert proper C++ library support
15110               ld_shlibs_CXX=no
15111             fi
15112             ;;
15113         esac
15114         ;;
15115
15116       interix[3-9]*)
15117         hardcode_direct_CXX=no
15118         hardcode_shlibpath_var_CXX=no
15119         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15120         export_dynamic_flag_spec_CXX='${wl}-E'
15121         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15122         # Instead, shared libraries are loaded at an image base (0x10000000 by
15123         # default) and relocated if they conflict, which is a slow very memory
15124         # consuming and fragmenting process.  To avoid this, we pick a random,
15125         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15126         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15127         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'
15128         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'
15129         ;;
15130       irix5* | irix6*)
15131         case $cc_basename in
15132           CC*)
15133             # SGI C++
15134             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15135
15136             # Archives containing C++ object files must be created using
15137             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15138             # necessary to make sure instantiated templates are included
15139             # in the archive.
15140             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15141             ;;
15142           *)
15143             if test "$GXX" = yes; then
15144               if test "$with_gnu_ld" = no; then
15145                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15146               else
15147                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15148               fi
15149             fi
15150             link_all_deplibs_CXX=yes
15151             ;;
15152         esac
15153         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15154         hardcode_libdir_separator_CXX=:
15155         inherit_rpath_CXX=yes
15156         ;;
15157
15158       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15159         case $cc_basename in
15160           KCC*)
15161             # Kuck and Associates, Inc. (KAI) C++ Compiler
15162
15163             # KCC will only create a shared library if the output file
15164             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15165             # to its proper name (with version) after linking.
15166             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'
15167             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'
15168             # Commands to make compiler produce verbose output that lists
15169             # what "hidden" libraries, object files and flags are used when
15170             # linking a shared library.
15171             #
15172             # There doesn't appear to be a way to prevent this compiler from
15173             # explicitly linking system object files so we need to strip them
15174             # from the output so that they don't get included in the library
15175             # dependencies.
15176             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; $ECHO "X$list" | $Xsed'
15177
15178             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15179             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15180
15181             # Archives containing C++ object files must be created using
15182             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15183             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15184             ;;
15185           icpc* | ecpc* )
15186             # Intel C++
15187             with_gnu_ld=yes
15188             # version 8.0 and above of icpc choke on multiply defined symbols
15189             # if we add $predep_objects and $postdep_objects, however 7.1 and
15190             # earlier do not add the objects themselves.
15191             case `$CC -V 2>&1` in
15192               *"Version 7."*)
15193                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15194                 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'
15195                 ;;
15196               *)  # Version 8.0 or newer
15197                 tmp_idyn=
15198                 case $host_cpu in
15199                   ia64*) tmp_idyn=' -i_dynamic';;
15200                 esac
15201                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202                 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'
15203                 ;;
15204             esac
15205             archive_cmds_need_lc_CXX=no
15206             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15207             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15208             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15209             ;;
15210           pgCC* | pgcpp*)
15211             # Portland Group C++ compiler
15212             case `$CC -V` in
15213             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15214               prelink_cmds_CXX='tpldir=Template.dir~
15215                 rm -rf $tpldir~
15216                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15217                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15218               old_archive_cmds_CXX='tpldir=Template.dir~
15219                 rm -rf $tpldir~
15220                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15221                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15222                 $RANLIB $oldlib'
15223               archive_cmds_CXX='tpldir=Template.dir~
15224                 rm -rf $tpldir~
15225                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15226                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15227               archive_expsym_cmds_CXX='tpldir=Template.dir~
15228                 rm -rf $tpldir~
15229                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15230                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15231               ;;
15232             *) # Version 6 will use weak symbols
15233               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15234               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'
15235               ;;
15236             esac
15237
15238             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15239             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15240             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15241             ;;
15242           cxx*)
15243             # Compaq C++
15244             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245             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'
15246
15247             runpath_var=LD_RUN_PATH
15248             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15249             hardcode_libdir_separator_CXX=:
15250
15251             # Commands to make compiler produce verbose output that lists
15252             # what "hidden" libraries, object files and flags are used when
15253             # linking a shared library.
15254             #
15255             # There doesn't appear to be a way to prevent this compiler from
15256             # explicitly linking system object files so we need to strip them
15257             # from the output so that they don't get included in the library
15258             # dependencies.
15259             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15260             ;;
15261           xl*)
15262             # IBM XL 8.0 on PPC, with GNU ld
15263             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15264             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15265             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266             if test "x$supports_anon_versioning" = xyes; then
15267               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15268                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15269                 echo "local: *; };" >> $output_objdir/$libname.ver~
15270                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15271             fi
15272             ;;
15273           *)
15274             case `$CC -V 2>&1 | sed 5q` in
15275             *Sun\ C*)
15276               # Sun C++ 5.9
15277               no_undefined_flag_CXX=' -zdefs'
15278               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15279               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'
15280               hardcode_libdir_flag_spec_CXX='-R$libdir'
15281               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15282               compiler_needs_object_CXX=yes
15283
15284               # Not sure whether something based on
15285               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15286               # would be better.
15287               output_verbose_link_cmd='echo'
15288
15289               # Archives containing C++ object files must be created using
15290               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15291               # necessary to make sure instantiated templates are included
15292               # in the archive.
15293               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15294               ;;
15295             esac
15296             ;;
15297         esac
15298         ;;
15299
15300       lynxos*)
15301         # FIXME: insert proper C++ library support
15302         ld_shlibs_CXX=no
15303         ;;
15304
15305       m88k*)
15306         # FIXME: insert proper C++ library support
15307         ld_shlibs_CXX=no
15308         ;;
15309
15310       mvs*)
15311         case $cc_basename in
15312           cxx*)
15313             # FIXME: insert proper C++ library support
15314             ld_shlibs_CXX=no
15315             ;;
15316           *)
15317             # FIXME: insert proper C++ library support
15318             ld_shlibs_CXX=no
15319             ;;
15320         esac
15321         ;;
15322
15323       netbsd*)
15324         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15325           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15326           wlarc=
15327           hardcode_libdir_flag_spec_CXX='-R$libdir'
15328           hardcode_direct_CXX=yes
15329           hardcode_shlibpath_var_CXX=no
15330         fi
15331         # Workaround some broken pre-1.5 toolchains
15332         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15333         ;;
15334
15335       *nto* | *qnx*)
15336         ld_shlibs_CXX=yes
15337         ;;
15338
15339       openbsd2*)
15340         # C++ shared libraries are fairly broken
15341         ld_shlibs_CXX=no
15342         ;;
15343
15344       openbsd*)
15345         if test -f /usr/libexec/ld.so; then
15346           hardcode_direct_CXX=yes
15347           hardcode_shlibpath_var_CXX=no
15348           hardcode_direct_absolute_CXX=yes
15349           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15350           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15351           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15352             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15353             export_dynamic_flag_spec_CXX='${wl}-E'
15354             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15355           fi
15356           output_verbose_link_cmd=echo
15357         else
15358           ld_shlibs_CXX=no
15359         fi
15360         ;;
15361
15362       osf3* | osf4* | osf5*)
15363         case $cc_basename in
15364           KCC*)
15365             # Kuck and Associates, Inc. (KAI) C++ Compiler
15366
15367             # KCC will only create a shared library if the output file
15368             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15369             # to its proper name (with version) after linking.
15370             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'
15371
15372             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15373             hardcode_libdir_separator_CXX=:
15374
15375             # Archives containing C++ object files must be created using
15376             # the KAI C++ compiler.
15377             case $host in
15378               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15379               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15380             esac
15381             ;;
15382           RCC*)
15383             # Rational C++ 2.4.1
15384             # FIXME: insert proper C++ library support
15385             ld_shlibs_CXX=no
15386             ;;
15387           cxx*)
15388             case $host in
15389               osf3*)
15390                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15391                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15392                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15393                 ;;
15394               *)
15395                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15396                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15397                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15398                   echo "-hidden">> $lib.exp~
15399                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15400                   $RM $lib.exp'
15401                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15402                 ;;
15403             esac
15404
15405             hardcode_libdir_separator_CXX=:
15406
15407             # Commands to make compiler produce verbose output that lists
15408             # what "hidden" libraries, object files and flags are used when
15409             # linking a shared library.
15410             #
15411             # There doesn't appear to be a way to prevent this compiler from
15412             # explicitly linking system object files so we need to strip them
15413             # from the output so that they don't get included in the library
15414             # dependencies.
15415             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15416             ;;
15417           *)
15418             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15419               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15420               case $host in
15421                 osf3*)
15422                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15423                   ;;
15424                 *)
15425                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15426                   ;;
15427               esac
15428
15429               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15430               hardcode_libdir_separator_CXX=:
15431
15432               # Commands to make compiler produce verbose output that lists
15433               # what "hidden" libraries, object files and flags are used when
15434               # linking a shared library.
15435               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15436
15437             else
15438               # FIXME: insert proper C++ library support
15439               ld_shlibs_CXX=no
15440             fi
15441             ;;
15442         esac
15443         ;;
15444
15445       psos*)
15446         # FIXME: insert proper C++ library support
15447         ld_shlibs_CXX=no
15448         ;;
15449
15450       sunos4*)
15451         case $cc_basename in
15452           CC*)
15453             # Sun C++ 4.x
15454             # FIXME: insert proper C++ library support
15455             ld_shlibs_CXX=no
15456             ;;
15457           lcc*)
15458             # Lucid
15459             # FIXME: insert proper C++ library support
15460             ld_shlibs_CXX=no
15461             ;;
15462           *)
15463             # FIXME: insert proper C++ library support
15464             ld_shlibs_CXX=no
15465             ;;
15466         esac
15467         ;;
15468
15469       solaris*)
15470         case $cc_basename in
15471           CC*)
15472             # Sun C++ 4.2, 5.x and Centerline C++
15473             archive_cmds_need_lc_CXX=yes
15474             no_undefined_flag_CXX=' -zdefs'
15475             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15476             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15477               $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'
15478
15479             hardcode_libdir_flag_spec_CXX='-R$libdir'
15480             hardcode_shlibpath_var_CXX=no
15481             case $host_os in
15482               solaris2.[0-5] | solaris2.[0-5].*) ;;
15483               *)
15484                 # The compiler driver will combine and reorder linker options,
15485                 # but understands `-z linker_flag'.
15486                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15487                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15488                 ;;
15489             esac
15490             link_all_deplibs_CXX=yes
15491
15492             output_verbose_link_cmd='echo'
15493
15494             # Archives containing C++ object files must be created using
15495             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15496             # necessary to make sure instantiated templates are included
15497             # in the archive.
15498             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15499             ;;
15500           gcx*)
15501             # Green Hills C++ Compiler
15502             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15503
15504             # The C++ compiler must be used to create the archive.
15505             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15506             ;;
15507           *)
15508             # GNU C++ compiler with Solaris linker
15509             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15510               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15511               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15512                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15513                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15514                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15515
15516                 # Commands to make compiler produce verbose output that lists
15517                 # what "hidden" libraries, object files and flags are used when
15518                 # linking a shared library.
15519                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15520               else
15521                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15522                 # platform.
15523                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15524                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15525                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15526
15527                 # Commands to make compiler produce verbose output that lists
15528                 # what "hidden" libraries, object files and flags are used when
15529                 # linking a shared library.
15530                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15531               fi
15532
15533               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15534               case $host_os in
15535                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15536                 *)
15537                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15538                   ;;
15539               esac
15540             fi
15541             ;;
15542         esac
15543         ;;
15544
15545     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15546       no_undefined_flag_CXX='${wl}-z,text'
15547       archive_cmds_need_lc_CXX=no
15548       hardcode_shlibpath_var_CXX=no
15549       runpath_var='LD_RUN_PATH'
15550
15551       case $cc_basename in
15552         CC*)
15553           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15554           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15555           ;;
15556         *)
15557           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15558           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559           ;;
15560       esac
15561       ;;
15562
15563       sysv5* | sco3.2v5* | sco5v6*)
15564         # Note: We can NOT use -z defs as we might desire, because we do not
15565         # link with -lc, and that would cause any symbols used from libc to
15566         # always be unresolved, which means just about no library would
15567         # ever link correctly.  If we're not using GNU ld we use -z text
15568         # though, which does catch some bad symbols but isn't as heavy-handed
15569         # as -z defs.
15570         no_undefined_flag_CXX='${wl}-z,text'
15571         allow_undefined_flag_CXX='${wl}-z,nodefs'
15572         archive_cmds_need_lc_CXX=no
15573         hardcode_shlibpath_var_CXX=no
15574         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15575         hardcode_libdir_separator_CXX=':'
15576         link_all_deplibs_CXX=yes
15577         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15578         runpath_var='LD_RUN_PATH'
15579
15580         case $cc_basename in
15581           CC*)
15582             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15583             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15584             ;;
15585           *)
15586             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15587             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15588             ;;
15589         esac
15590       ;;
15591
15592       tandem*)
15593         case $cc_basename in
15594           NCC*)
15595             # NonStop-UX NCC 3.20
15596             # FIXME: insert proper C++ library support
15597             ld_shlibs_CXX=no
15598             ;;
15599           *)
15600             # FIXME: insert proper C++ library support
15601             ld_shlibs_CXX=no
15602             ;;
15603         esac
15604         ;;
15605
15606       vxworks*)
15607         # FIXME: insert proper C++ library support
15608         ld_shlibs_CXX=no
15609         ;;
15610
15611       *)
15612         # FIXME: insert proper C++ library support
15613         ld_shlibs_CXX=no
15614         ;;
15615     esac
15616
15617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15618 $as_echo "$ld_shlibs_CXX" >&6; }
15619     test "$ld_shlibs_CXX" = no && can_build_shared=no
15620
15621     GCC_CXX="$GXX"
15622     LD_CXX="$LD"
15623
15624     ## CAVEAT EMPTOR:
15625     ## There is no encapsulation within the following macros, do not change
15626     ## the running order or otherwise move them around unless you know exactly
15627     ## what you are doing...
15628     # Dependencies to place before and after the object being linked:
15629 predep_objects_CXX=
15630 postdep_objects_CXX=
15631 predeps_CXX=
15632 postdeps_CXX=
15633 compiler_lib_search_path_CXX=
15634
15635 cat > conftest.$ac_ext <<_LT_EOF
15636 class Foo
15637 {
15638 public:
15639   Foo (void) { a = 0; }
15640 private:
15641   int a;
15642 };
15643 _LT_EOF
15644
15645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15646   (eval $ac_compile) 2>&5
15647   ac_status=$?
15648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649   test $ac_status = 0; }; then
15650   # Parse the compiler output and extract the necessary
15651   # objects, libraries and library flags.
15652
15653   # Sentinel used to keep track of whether or not we are before
15654   # the conftest object file.
15655   pre_test_object_deps_done=no
15656
15657   for p in `eval "$output_verbose_link_cmd"`; do
15658     case $p in
15659
15660     -L* | -R* | -l*)
15661        # Some compilers place space between "-{L,R}" and the path.
15662        # Remove the space.
15663        if test $p = "-L" ||
15664           test $p = "-R"; then
15665          prev=$p
15666          continue
15667        else
15668          prev=
15669        fi
15670
15671        if test "$pre_test_object_deps_done" = no; then
15672          case $p in
15673          -L* | -R*)
15674            # Internal compiler library paths should come after those
15675            # provided the user.  The postdeps already come after the
15676            # user supplied libs so there is no need to process them.
15677            if test -z "$compiler_lib_search_path_CXX"; then
15678              compiler_lib_search_path_CXX="${prev}${p}"
15679            else
15680              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15681            fi
15682            ;;
15683          # The "-l" case would never come before the object being
15684          # linked, so don't bother handling this case.
15685          esac
15686        else
15687          if test -z "$postdeps_CXX"; then
15688            postdeps_CXX="${prev}${p}"
15689          else
15690            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15691          fi
15692        fi
15693        ;;
15694
15695     *.$objext)
15696        # This assumes that the test object file only shows up
15697        # once in the compiler output.
15698        if test "$p" = "conftest.$objext"; then
15699          pre_test_object_deps_done=yes
15700          continue
15701        fi
15702
15703        if test "$pre_test_object_deps_done" = no; then
15704          if test -z "$predep_objects_CXX"; then
15705            predep_objects_CXX="$p"
15706          else
15707            predep_objects_CXX="$predep_objects_CXX $p"
15708          fi
15709        else
15710          if test -z "$postdep_objects_CXX"; then
15711            postdep_objects_CXX="$p"
15712          else
15713            postdep_objects_CXX="$postdep_objects_CXX $p"
15714          fi
15715        fi
15716        ;;
15717
15718     *) ;; # Ignore the rest.
15719
15720     esac
15721   done
15722
15723   # Clean up.
15724   rm -f a.out a.exe
15725 else
15726   echo "libtool.m4: error: problem compiling CXX test program"
15727 fi
15728
15729 $RM -f confest.$objext
15730
15731 # PORTME: override above test on systems where it is broken
15732 case $host_os in
15733 interix[3-9]*)
15734   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15735   # hack all around it, let's just trust "g++" to DTRT.
15736   predep_objects_CXX=
15737   postdep_objects_CXX=
15738   postdeps_CXX=
15739   ;;
15740
15741 linux*)
15742   case `$CC -V 2>&1 | sed 5q` in
15743   *Sun\ C*)
15744     # Sun C++ 5.9
15745
15746     # The more standards-conforming stlport4 library is
15747     # incompatible with the Cstd library. Avoid specifying
15748     # it if it's in CXXFLAGS. Ignore libCrun as
15749     # -library=stlport4 depends on it.
15750     case " $CXX $CXXFLAGS " in
15751     *" -library=stlport4 "*)
15752       solaris_use_stlport4=yes
15753       ;;
15754     esac
15755
15756     if test "$solaris_use_stlport4" != yes; then
15757       postdeps_CXX='-library=Cstd -library=Crun'
15758     fi
15759     ;;
15760   esac
15761   ;;
15762
15763 solaris*)
15764   case $cc_basename in
15765   CC*)
15766     # The more standards-conforming stlport4 library is
15767     # incompatible with the Cstd library. Avoid specifying
15768     # it if it's in CXXFLAGS. Ignore libCrun as
15769     # -library=stlport4 depends on it.
15770     case " $CXX $CXXFLAGS " in
15771     *" -library=stlport4 "*)
15772       solaris_use_stlport4=yes
15773       ;;
15774     esac
15775
15776     # Adding this requires a known-good setup of shared libraries for
15777     # Sun compiler versions before 5.6, else PIC objects from an old
15778     # archive will be linked into the output, leading to subtle bugs.
15779     if test "$solaris_use_stlport4" != yes; then
15780       postdeps_CXX='-library=Cstd -library=Crun'
15781     fi
15782     ;;
15783   esac
15784   ;;
15785 esac
15786
15787
15788 case " $postdeps_CXX " in
15789 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15790 esac
15791  compiler_lib_search_dirs_CXX=
15792 if test -n "${compiler_lib_search_path_CXX}"; then
15793  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15794 fi
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826     lt_prog_compiler_wl_CXX=
15827 lt_prog_compiler_pic_CXX=
15828 lt_prog_compiler_static_CXX=
15829
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15831 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15832
15833   # C++ specific cases for pic, static, wl, etc.
15834   if test "$GXX" = yes; then
15835     lt_prog_compiler_wl_CXX='-Wl,'
15836     lt_prog_compiler_static_CXX='-static'
15837
15838     case $host_os in
15839     aix*)
15840       # All AIX code is PIC.
15841       if test "$host_cpu" = ia64; then
15842         # AIX 5 now supports IA64 processor
15843         lt_prog_compiler_static_CXX='-Bstatic'
15844       fi
15845       ;;
15846
15847     amigaos*)
15848       case $host_cpu in
15849       powerpc)
15850             # see comment about AmigaOS4 .so support
15851             lt_prog_compiler_pic_CXX='-fPIC'
15852         ;;
15853       m68k)
15854             # FIXME: we need at least 68020 code to build shared libraries, but
15855             # adding the `-m68020' flag to GCC prevents building anything better,
15856             # like `-m68040'.
15857             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15858         ;;
15859       esac
15860       ;;
15861
15862     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15863       # PIC is the default for these OSes.
15864       ;;
15865     mingw* | cygwin* | os2* | pw32* | cegcc*)
15866       # This hack is so that the source file can tell whether it is being
15867       # built for inclusion in a dll (and should export symbols for example).
15868       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15869       # (--disable-auto-import) libraries
15870       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15871       ;;
15872     darwin* | rhapsody*)
15873       # PIC is the default on this platform
15874       # Common symbols not allowed in MH_DYLIB files
15875       lt_prog_compiler_pic_CXX='-fno-common'
15876       ;;
15877     *djgpp*)
15878       # DJGPP does not support shared libraries at all
15879       lt_prog_compiler_pic_CXX=
15880       ;;
15881     interix[3-9]*)
15882       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15883       # Instead, we relocate shared libraries at runtime.
15884       ;;
15885     sysv4*MP*)
15886       if test -d /usr/nec; then
15887         lt_prog_compiler_pic_CXX=-Kconform_pic
15888       fi
15889       ;;
15890     hpux*)
15891       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15892       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15893       # sets the default TLS model and affects inlining.
15894       case $host_cpu in
15895       hppa*64*)
15896         ;;
15897       *)
15898         lt_prog_compiler_pic_CXX='-fPIC'
15899         ;;
15900       esac
15901       ;;
15902     *qnx* | *nto*)
15903       # QNX uses GNU C++, but need to define -shared option too, otherwise
15904       # it will coredump.
15905       lt_prog_compiler_pic_CXX='-fPIC -shared'
15906       ;;
15907     *)
15908       lt_prog_compiler_pic_CXX='-fPIC'
15909       ;;
15910     esac
15911   else
15912     case $host_os in
15913       aix[4-9]*)
15914         # All AIX code is PIC.
15915         if test "$host_cpu" = ia64; then
15916           # AIX 5 now supports IA64 processor
15917           lt_prog_compiler_static_CXX='-Bstatic'
15918         else
15919           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15920         fi
15921         ;;
15922       chorus*)
15923         case $cc_basename in
15924         cxch68*)
15925           # Green Hills C++ Compiler
15926           # _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"
15927           ;;
15928         esac
15929         ;;
15930       dgux*)
15931         case $cc_basename in
15932           ec++*)
15933             lt_prog_compiler_pic_CXX='-KPIC'
15934             ;;
15935           ghcx*)
15936             # Green Hills C++ Compiler
15937             lt_prog_compiler_pic_CXX='-pic'
15938             ;;
15939           *)
15940             ;;
15941         esac
15942         ;;
15943       freebsd* | dragonfly*)
15944         # FreeBSD uses GNU C++
15945         ;;
15946       hpux9* | hpux10* | hpux11*)
15947         case $cc_basename in
15948           CC*)
15949             lt_prog_compiler_wl_CXX='-Wl,'
15950             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15951             if test "$host_cpu" != ia64; then
15952               lt_prog_compiler_pic_CXX='+Z'
15953             fi
15954             ;;
15955           aCC*)
15956             lt_prog_compiler_wl_CXX='-Wl,'
15957             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15958             case $host_cpu in
15959             hppa*64*|ia64*)
15960               # +Z the default
15961               ;;
15962             *)
15963               lt_prog_compiler_pic_CXX='+Z'
15964               ;;
15965             esac
15966             ;;
15967           *)
15968             ;;
15969         esac
15970         ;;
15971       interix*)
15972         # This is c89, which is MS Visual C++ (no shared libs)
15973         # Anyone wants to do a port?
15974         ;;
15975       irix5* | irix6* | nonstopux*)
15976         case $cc_basename in
15977           CC*)
15978             lt_prog_compiler_wl_CXX='-Wl,'
15979             lt_prog_compiler_static_CXX='-non_shared'
15980             # CC pic flag -KPIC is the default.
15981             ;;
15982           *)
15983             ;;
15984         esac
15985         ;;
15986       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15987         case $cc_basename in
15988           KCC*)
15989             # KAI C++ Compiler
15990             lt_prog_compiler_wl_CXX='--backend -Wl,'
15991             lt_prog_compiler_pic_CXX='-fPIC'
15992             ;;
15993           ecpc* )
15994             # old Intel C++ for x86_64 which still supported -KPIC.
15995             lt_prog_compiler_wl_CXX='-Wl,'
15996             lt_prog_compiler_pic_CXX='-KPIC'
15997             lt_prog_compiler_static_CXX='-static'
15998             ;;
15999           icpc* )
16000             # Intel C++, used to be incompatible with GCC.
16001             # ICC 10 doesn't accept -KPIC any more.
16002             lt_prog_compiler_wl_CXX='-Wl,'
16003             lt_prog_compiler_pic_CXX='-fPIC'
16004             lt_prog_compiler_static_CXX='-static'
16005             ;;
16006           pgCC* | pgcpp*)
16007             # Portland Group C++ compiler
16008             lt_prog_compiler_wl_CXX='-Wl,'
16009             lt_prog_compiler_pic_CXX='-fpic'
16010             lt_prog_compiler_static_CXX='-Bstatic'
16011             ;;
16012           cxx*)
16013             # Compaq C++
16014             # Make sure the PIC flag is empty.  It appears that all Alpha
16015             # Linux and Compaq Tru64 Unix objects are PIC.
16016             lt_prog_compiler_pic_CXX=
16017             lt_prog_compiler_static_CXX='-non_shared'
16018             ;;
16019           xlc* | xlC*)
16020             # IBM XL 8.0 on PPC
16021             lt_prog_compiler_wl_CXX='-Wl,'
16022             lt_prog_compiler_pic_CXX='-qpic'
16023             lt_prog_compiler_static_CXX='-qstaticlink'
16024             ;;
16025           *)
16026             case `$CC -V 2>&1 | sed 5q` in
16027             *Sun\ C*)
16028               # Sun C++ 5.9
16029               lt_prog_compiler_pic_CXX='-KPIC'
16030               lt_prog_compiler_static_CXX='-Bstatic'
16031               lt_prog_compiler_wl_CXX='-Qoption ld '
16032               ;;
16033             esac
16034             ;;
16035         esac
16036         ;;
16037       lynxos*)
16038         ;;
16039       m88k*)
16040         ;;
16041       mvs*)
16042         case $cc_basename in
16043           cxx*)
16044             lt_prog_compiler_pic_CXX='-W c,exportall'
16045             ;;
16046           *)
16047             ;;
16048         esac
16049         ;;
16050       netbsd* | netbsdelf*-gnu)
16051         ;;
16052       *qnx* | *nto*)
16053         # QNX uses GNU C++, but need to define -shared option too, otherwise
16054         # it will coredump.
16055         lt_prog_compiler_pic_CXX='-fPIC -shared'
16056         ;;
16057       osf3* | osf4* | osf5*)
16058         case $cc_basename in
16059           KCC*)
16060             lt_prog_compiler_wl_CXX='--backend -Wl,'
16061             ;;
16062           RCC*)
16063             # Rational C++ 2.4.1
16064             lt_prog_compiler_pic_CXX='-pic'
16065             ;;
16066           cxx*)
16067             # Digital/Compaq C++
16068             lt_prog_compiler_wl_CXX='-Wl,'
16069             # Make sure the PIC flag is empty.  It appears that all Alpha
16070             # Linux and Compaq Tru64 Unix objects are PIC.
16071             lt_prog_compiler_pic_CXX=
16072             lt_prog_compiler_static_CXX='-non_shared'
16073             ;;
16074           *)
16075             ;;
16076         esac
16077         ;;
16078       psos*)
16079         ;;
16080       solaris*)
16081         case $cc_basename in
16082           CC*)
16083             # Sun C++ 4.2, 5.x and Centerline C++
16084             lt_prog_compiler_pic_CXX='-KPIC'
16085             lt_prog_compiler_static_CXX='-Bstatic'
16086             lt_prog_compiler_wl_CXX='-Qoption ld '
16087             ;;
16088           gcx*)
16089             # Green Hills C++ Compiler
16090             lt_prog_compiler_pic_CXX='-PIC'
16091             ;;
16092           *)
16093             ;;
16094         esac
16095         ;;
16096       sunos4*)
16097         case $cc_basename in
16098           CC*)
16099             # Sun C++ 4.x
16100             lt_prog_compiler_pic_CXX='-pic'
16101             lt_prog_compiler_static_CXX='-Bstatic'
16102             ;;
16103           lcc*)
16104             # Lucid
16105             lt_prog_compiler_pic_CXX='-pic'
16106             ;;
16107           *)
16108             ;;
16109         esac
16110         ;;
16111       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16112         case $cc_basename in
16113           CC*)
16114             lt_prog_compiler_wl_CXX='-Wl,'
16115             lt_prog_compiler_pic_CXX='-KPIC'
16116             lt_prog_compiler_static_CXX='-Bstatic'
16117             ;;
16118         esac
16119         ;;
16120       tandem*)
16121         case $cc_basename in
16122           NCC*)
16123             # NonStop-UX NCC 3.20
16124             lt_prog_compiler_pic_CXX='-KPIC'
16125             ;;
16126           *)
16127             ;;
16128         esac
16129         ;;
16130       vxworks*)
16131         ;;
16132       *)
16133         lt_prog_compiler_can_build_shared_CXX=no
16134         ;;
16135     esac
16136   fi
16137
16138 case $host_os in
16139   # For platforms which do not support PIC, -DPIC is meaningless:
16140   *djgpp*)
16141     lt_prog_compiler_pic_CXX=
16142     ;;
16143   *)
16144     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16145     ;;
16146 esac
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16148 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16149
16150
16151
16152 #
16153 # Check to make sure the PIC flag actually works.
16154 #
16155 if test -n "$lt_prog_compiler_pic_CXX"; then
16156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16157 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16158 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16159   $as_echo_n "(cached) " >&6
16160 else
16161   lt_cv_prog_compiler_pic_works_CXX=no
16162    ac_outfile=conftest.$ac_objext
16163    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16164    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16165    # Insert the option either (1) after the last *FLAGS variable, or
16166    # (2) before a word containing "conftest.", or (3) at the end.
16167    # Note that $ac_compile itself does not contain backslashes and begins
16168    # with a dollar sign (not a hyphen), so the echo should work correctly.
16169    # The option is referenced via a variable to avoid confusing sed.
16170    lt_compile=`echo "$ac_compile" | $SED \
16171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16173    -e 's:$: $lt_compiler_flag:'`
16174    (eval echo "\"\$as_me:16174: $lt_compile\"" >&5)
16175    (eval "$lt_compile" 2>conftest.err)
16176    ac_status=$?
16177    cat conftest.err >&5
16178    echo "$as_me:16178: \$? = $ac_status" >&5
16179    if (exit $ac_status) && test -s "$ac_outfile"; then
16180      # The compiler can only warn and ignore the option if not recognized
16181      # So say no if there are warnings other than the usual output.
16182      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16183      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16184      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16185        lt_cv_prog_compiler_pic_works_CXX=yes
16186      fi
16187    fi
16188    $RM conftest*
16189
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16192 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16193
16194 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16195     case $lt_prog_compiler_pic_CXX in
16196      "" | " "*) ;;
16197      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16198      esac
16199 else
16200     lt_prog_compiler_pic_CXX=
16201      lt_prog_compiler_can_build_shared_CXX=no
16202 fi
16203
16204 fi
16205
16206
16207
16208 #
16209 # Check to make sure the static flag actually works.
16210 #
16211 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16213 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16214 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16215   $as_echo_n "(cached) " >&6
16216 else
16217   lt_cv_prog_compiler_static_works_CXX=no
16218    save_LDFLAGS="$LDFLAGS"
16219    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16220    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16221    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16222      # The linker can only warn and ignore the option if not recognized
16223      # So say no if there are warnings
16224      if test -s conftest.err; then
16225        # Append any errors to the config.log.
16226        cat conftest.err 1>&5
16227        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16228        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16229        if diff conftest.exp conftest.er2 >/dev/null; then
16230          lt_cv_prog_compiler_static_works_CXX=yes
16231        fi
16232      else
16233        lt_cv_prog_compiler_static_works_CXX=yes
16234      fi
16235    fi
16236    $RM -r conftest*
16237    LDFLAGS="$save_LDFLAGS"
16238
16239 fi
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16241 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16242
16243 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16244     :
16245 else
16246     lt_prog_compiler_static_CXX=
16247 fi
16248
16249
16250
16251
16252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16254 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16255   $as_echo_n "(cached) " >&6
16256 else
16257   lt_cv_prog_compiler_c_o_CXX=no
16258    $RM -r conftest 2>/dev/null
16259    mkdir conftest
16260    cd conftest
16261    mkdir out
16262    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16263
16264    lt_compiler_flag="-o out/conftest2.$ac_objext"
16265    # Insert the option either (1) after the last *FLAGS variable, or
16266    # (2) before a word containing "conftest.", or (3) at the end.
16267    # Note that $ac_compile itself does not contain backslashes and begins
16268    # with a dollar sign (not a hyphen), so the echo should work correctly.
16269    lt_compile=`echo "$ac_compile" | $SED \
16270    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16272    -e 's:$: $lt_compiler_flag:'`
16273    (eval echo "\"\$as_me:16273: $lt_compile\"" >&5)
16274    (eval "$lt_compile" 2>out/conftest.err)
16275    ac_status=$?
16276    cat out/conftest.err >&5
16277    echo "$as_me:16277: \$? = $ac_status" >&5
16278    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16279    then
16280      # The compiler can only warn and ignore the option if not recognized
16281      # So say no if there are warnings
16282      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16283      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16284      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16285        lt_cv_prog_compiler_c_o_CXX=yes
16286      fi
16287    fi
16288    chmod u+w . 2>&5
16289    $RM conftest*
16290    # SGI C++ compiler will create directory out/ii_files/ for
16291    # template instantiation
16292    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16293    $RM out/* && rmdir out
16294    cd ..
16295    $RM -r conftest
16296    $RM conftest*
16297
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16300 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16301
16302
16303
16304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16305 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16306 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16307   $as_echo_n "(cached) " >&6
16308 else
16309   lt_cv_prog_compiler_c_o_CXX=no
16310    $RM -r conftest 2>/dev/null
16311    mkdir conftest
16312    cd conftest
16313    mkdir out
16314    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16315
16316    lt_compiler_flag="-o out/conftest2.$ac_objext"
16317    # Insert the option either (1) after the last *FLAGS variable, or
16318    # (2) before a word containing "conftest.", or (3) at the end.
16319    # Note that $ac_compile itself does not contain backslashes and begins
16320    # with a dollar sign (not a hyphen), so the echo should work correctly.
16321    lt_compile=`echo "$ac_compile" | $SED \
16322    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16324    -e 's:$: $lt_compiler_flag:'`
16325    (eval echo "\"\$as_me:16325: $lt_compile\"" >&5)
16326    (eval "$lt_compile" 2>out/conftest.err)
16327    ac_status=$?
16328    cat out/conftest.err >&5
16329    echo "$as_me:16329: \$? = $ac_status" >&5
16330    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16331    then
16332      # The compiler can only warn and ignore the option if not recognized
16333      # So say no if there are warnings
16334      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16335      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16336      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16337        lt_cv_prog_compiler_c_o_CXX=yes
16338      fi
16339    fi
16340    chmod u+w . 2>&5
16341    $RM conftest*
16342    # SGI C++ compiler will create directory out/ii_files/ for
16343    # template instantiation
16344    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16345    $RM out/* && rmdir out
16346    cd ..
16347    $RM -r conftest
16348    $RM conftest*
16349
16350 fi
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16352 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16353
16354
16355
16356
16357 hard_links="nottested"
16358 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16359   # do not overwrite the value of need_locks provided by the user
16360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16361 $as_echo_n "checking if we can lock with hard links... " >&6; }
16362   hard_links=yes
16363   $RM conftest*
16364   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16365   touch conftest.a
16366   ln conftest.a conftest.b 2>&5 || hard_links=no
16367   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16369 $as_echo "$hard_links" >&6; }
16370   if test "$hard_links" = no; then
16371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16372 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16373     need_locks=warn
16374   fi
16375 else
16376   need_locks=no
16377 fi
16378
16379
16380
16381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16382 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16383
16384   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16385   case $host_os in
16386   aix[4-9]*)
16387     # If we're using GNU nm, then we don't want the "-C" option.
16388     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16389     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16390       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16391     else
16392       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'
16393     fi
16394     ;;
16395   pw32*)
16396     export_symbols_cmds_CXX="$ltdll_cmds"
16397   ;;
16398   cygwin* | mingw* | cegcc*)
16399     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16400   ;;
16401   linux* | k*bsd*-gnu)
16402     link_all_deplibs_CXX=no
16403   ;;
16404   *)
16405     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16406   ;;
16407   esac
16408   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16409
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16411 $as_echo "$ld_shlibs_CXX" >&6; }
16412 test "$ld_shlibs_CXX" = no && can_build_shared=no
16413
16414 with_gnu_ld_CXX=$with_gnu_ld
16415
16416
16417
16418
16419
16420
16421 #
16422 # Do we need to explicitly link libc?
16423 #
16424 case "x$archive_cmds_need_lc_CXX" in
16425 x|xyes)
16426   # Assume -lc should be added
16427   archive_cmds_need_lc_CXX=yes
16428
16429   if test "$enable_shared" = yes && test "$GCC" = yes; then
16430     case $archive_cmds_CXX in
16431     *'~'*)
16432       # FIXME: we may have to deal with multi-command sequences.
16433       ;;
16434     '$CC '*)
16435       # Test whether the compiler implicitly links with -lc since on some
16436       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16437       # to ld, don't add -lc before -lgcc.
16438       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16439 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16440       $RM conftest*
16441       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16442
16443       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16444   (eval $ac_compile) 2>&5
16445   ac_status=$?
16446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16447   test $ac_status = 0; } 2>conftest.err; then
16448         soname=conftest
16449         lib=conftest
16450         libobjs=conftest.$ac_objext
16451         deplibs=
16452         wl=$lt_prog_compiler_wl_CXX
16453         pic_flag=$lt_prog_compiler_pic_CXX
16454         compiler_flags=-v
16455         linker_flags=-v
16456         verstring=
16457         output_objdir=.
16458         libname=conftest
16459         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16460         allow_undefined_flag_CXX=
16461         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16462   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16463   ac_status=$?
16464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16465   test $ac_status = 0; }
16466         then
16467           archive_cmds_need_lc_CXX=no
16468         else
16469           archive_cmds_need_lc_CXX=yes
16470         fi
16471         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16472       else
16473         cat conftest.err 1>&5
16474       fi
16475       $RM conftest*
16476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16477 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16478       ;;
16479     esac
16480   fi
16481   ;;
16482 esac
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16548 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16549
16550 library_names_spec=
16551 libname_spec='lib$name'
16552 soname_spec=
16553 shrext_cmds=".so"
16554 postinstall_cmds=
16555 postuninstall_cmds=
16556 finish_cmds=
16557 finish_eval=
16558 shlibpath_var=
16559 shlibpath_overrides_runpath=unknown
16560 version_type=none
16561 dynamic_linker="$host_os ld.so"
16562 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16563 need_lib_prefix=unknown
16564 hardcode_into_libs=no
16565
16566 # when you set need_version to no, make sure it does not cause -set_version
16567 # flags to be left without arguments
16568 need_version=unknown
16569
16570 case $host_os in
16571 aix3*)
16572   version_type=linux
16573   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16574   shlibpath_var=LIBPATH
16575
16576   # AIX 3 has no versioning support, so we append a major version to the name.
16577   soname_spec='${libname}${release}${shared_ext}$major'
16578   ;;
16579
16580 aix[4-9]*)
16581   version_type=linux
16582   need_lib_prefix=no
16583   need_version=no
16584   hardcode_into_libs=yes
16585   if test "$host_cpu" = ia64; then
16586     # AIX 5 supports IA64
16587     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16588     shlibpath_var=LD_LIBRARY_PATH
16589   else
16590     # With GCC up to 2.95.x, collect2 would create an import file
16591     # for dependence libraries.  The import file would start with
16592     # the line `#! .'.  This would cause the generated library to
16593     # depend on `.', always an invalid library.  This was fixed in
16594     # development snapshots of GCC prior to 3.0.
16595     case $host_os in
16596       aix4 | aix4.[01] | aix4.[01].*)
16597       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16598            echo ' yes '
16599            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16600         :
16601       else
16602         can_build_shared=no
16603       fi
16604       ;;
16605     esac
16606     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16607     # soname into executable. Probably we can add versioning support to
16608     # collect2, so additional links can be useful in future.
16609     if test "$aix_use_runtimelinking" = yes; then
16610       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16611       # instead of lib<name>.a to let people know that these are not
16612       # typical AIX shared libraries.
16613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614     else
16615       # We preserve .a as extension for shared libraries through AIX4.2
16616       # and later when we are not doing run time linking.
16617       library_names_spec='${libname}${release}.a $libname.a'
16618       soname_spec='${libname}${release}${shared_ext}$major'
16619     fi
16620     shlibpath_var=LIBPATH
16621   fi
16622   ;;
16623
16624 amigaos*)
16625   case $host_cpu in
16626   powerpc)
16627     # Since July 2007 AmigaOS4 officially supports .so libraries.
16628     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630     ;;
16631   m68k)
16632     library_names_spec='$libname.ixlibrary $libname.a'
16633     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16634     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16635     ;;
16636   esac
16637   ;;
16638
16639 beos*)
16640   library_names_spec='${libname}${shared_ext}'
16641   dynamic_linker="$host_os ld.so"
16642   shlibpath_var=LIBRARY_PATH
16643   ;;
16644
16645 bsdi[45]*)
16646   version_type=linux
16647   need_version=no
16648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649   soname_spec='${libname}${release}${shared_ext}$major'
16650   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16651   shlibpath_var=LD_LIBRARY_PATH
16652   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16653   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16654   # the default ld.so.conf also contains /usr/contrib/lib and
16655   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16656   # libtool to hard-code these into programs
16657   ;;
16658
16659 cygwin* | mingw* | pw32* | cegcc*)
16660   version_type=windows
16661   shrext_cmds=".dll"
16662   need_version=no
16663   need_lib_prefix=no
16664
16665   case $GCC,$host_os in
16666   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16667     library_names_spec='$libname.dll.a'
16668     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16669     postinstall_cmds='base_file=`basename \${file}`~
16670       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16671       dldir=$destdir/`dirname \$dlpath`~
16672       test -d \$dldir || mkdir -p \$dldir~
16673       $install_prog $dir/$dlname \$dldir/$dlname~
16674       chmod a+x \$dldir/$dlname~
16675       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16676         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16677       fi'
16678     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16679       dlpath=$dir/\$dldll~
16680        $RM \$dlpath'
16681     shlibpath_overrides_runpath=yes
16682
16683     case $host_os in
16684     cygwin*)
16685       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16686       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16687       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16688       ;;
16689     mingw* | cegcc*)
16690       # MinGW DLLs use traditional 'lib' prefix
16691       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16692       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16693       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16694         # It is most probably a Windows format PATH printed by
16695         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16696         # path with ; separators, and with drive letters. We can handle the
16697         # drive letters (cygwin fileutils understands them), so leave them,
16698         # especially as we might pass files found there to a mingw objdump,
16699         # which wouldn't understand a cygwinified path. Ahh.
16700         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16701       else
16702         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16703       fi
16704       ;;
16705     pw32*)
16706       # pw32 DLLs use 'pw' prefix rather than 'lib'
16707       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16708       ;;
16709     esac
16710     ;;
16711
16712   *)
16713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16714     ;;
16715   esac
16716   dynamic_linker='Win32 ld.exe'
16717   # FIXME: first we should search . and the directory the executable is in
16718   shlibpath_var=PATH
16719   ;;
16720
16721 darwin* | rhapsody*)
16722   dynamic_linker="$host_os dyld"
16723   version_type=darwin
16724   need_lib_prefix=no
16725   need_version=no
16726   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16727   soname_spec='${libname}${release}${major}$shared_ext'
16728   shlibpath_overrides_runpath=yes
16729   shlibpath_var=DYLD_LIBRARY_PATH
16730   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16731
16732   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16733   ;;
16734
16735 dgux*)
16736   version_type=linux
16737   need_lib_prefix=no
16738   need_version=no
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   shlibpath_var=LD_LIBRARY_PATH
16742   ;;
16743
16744 freebsd1*)
16745   dynamic_linker=no
16746   ;;
16747
16748 freebsd* | dragonfly*)
16749   # DragonFly does not have aout.  When/if they implement a new
16750   # versioning mechanism, adjust this.
16751   if test -x /usr/bin/objformat; then
16752     objformat=`/usr/bin/objformat`
16753   else
16754     case $host_os in
16755     freebsd[123]*) objformat=aout ;;
16756     *) objformat=elf ;;
16757     esac
16758   fi
16759   version_type=freebsd-$objformat
16760   case $version_type in
16761     freebsd-elf*)
16762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763       need_version=no
16764       need_lib_prefix=no
16765       ;;
16766     freebsd-*)
16767       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16768       need_version=yes
16769       ;;
16770   esac
16771   shlibpath_var=LD_LIBRARY_PATH
16772   case $host_os in
16773   freebsd2*)
16774     shlibpath_overrides_runpath=yes
16775     ;;
16776   freebsd3.[01]* | freebsdelf3.[01]*)
16777     shlibpath_overrides_runpath=yes
16778     hardcode_into_libs=yes
16779     ;;
16780   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16781   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16782     shlibpath_overrides_runpath=no
16783     hardcode_into_libs=yes
16784     ;;
16785   *) # from 4.6 on, and DragonFly
16786     shlibpath_overrides_runpath=yes
16787     hardcode_into_libs=yes
16788     ;;
16789   esac
16790   ;;
16791
16792 gnu*)
16793   version_type=linux
16794   need_lib_prefix=no
16795   need_version=no
16796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16797   soname_spec='${libname}${release}${shared_ext}$major'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   hardcode_into_libs=yes
16800   ;;
16801
16802 hpux9* | hpux10* | hpux11*)
16803   # Give a soname corresponding to the major version so that dld.sl refuses to
16804   # link against other versions.
16805   version_type=sunos
16806   need_lib_prefix=no
16807   need_version=no
16808   case $host_cpu in
16809   ia64*)
16810     shrext_cmds='.so'
16811     hardcode_into_libs=yes
16812     dynamic_linker="$host_os dld.so"
16813     shlibpath_var=LD_LIBRARY_PATH
16814     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16816     soname_spec='${libname}${release}${shared_ext}$major'
16817     if test "X$HPUX_IA64_MODE" = X32; then
16818       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16819     else
16820       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16821     fi
16822     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16823     ;;
16824   hppa*64*)
16825     shrext_cmds='.sl'
16826     hardcode_into_libs=yes
16827     dynamic_linker="$host_os dld.sl"
16828     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16829     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831     soname_spec='${libname}${release}${shared_ext}$major'
16832     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16833     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16834     ;;
16835   *)
16836     shrext_cmds='.sl'
16837     dynamic_linker="$host_os dld.sl"
16838     shlibpath_var=SHLIB_PATH
16839     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841     soname_spec='${libname}${release}${shared_ext}$major'
16842     ;;
16843   esac
16844   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16845   postinstall_cmds='chmod 555 $lib'
16846   ;;
16847
16848 interix[3-9]*)
16849   version_type=linux
16850   need_lib_prefix=no
16851   need_version=no
16852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16853   soname_spec='${libname}${release}${shared_ext}$major'
16854   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16855   shlibpath_var=LD_LIBRARY_PATH
16856   shlibpath_overrides_runpath=no
16857   hardcode_into_libs=yes
16858   ;;
16859
16860 irix5* | irix6* | nonstopux*)
16861   case $host_os in
16862     nonstopux*) version_type=nonstopux ;;
16863     *)
16864         if test "$lt_cv_prog_gnu_ld" = yes; then
16865                 version_type=linux
16866         else
16867                 version_type=irix
16868         fi ;;
16869   esac
16870   need_lib_prefix=no
16871   need_version=no
16872   soname_spec='${libname}${release}${shared_ext}$major'
16873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16874   case $host_os in
16875   irix5* | nonstopux*)
16876     libsuff= shlibsuff=
16877     ;;
16878   *)
16879     case $LD in # libtool.m4 will add one of these switches to LD
16880     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16881       libsuff= shlibsuff= libmagic=32-bit;;
16882     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16883       libsuff=32 shlibsuff=N32 libmagic=N32;;
16884     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16885       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16886     *) libsuff= shlibsuff= libmagic=never-match;;
16887     esac
16888     ;;
16889   esac
16890   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16891   shlibpath_overrides_runpath=no
16892   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16893   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16894   hardcode_into_libs=yes
16895   ;;
16896
16897 # No shared lib support for Linux oldld, aout, or coff.
16898 linux*oldld* | linux*aout* | linux*coff*)
16899   dynamic_linker=no
16900   ;;
16901
16902 # This must be Linux ELF.
16903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16904   version_type=linux
16905   need_lib_prefix=no
16906   need_version=no
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   shlibpath_overrides_runpath=no
16912   # Some binutils ld are patched to set DT_RUNPATH
16913   save_LDFLAGS=$LDFLAGS
16914   save_libdir=$libdir
16915   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16916        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918 /* end confdefs.h.  */
16919
16920 int
16921 main ()
16922 {
16923
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 if ac_fn_cxx_try_link "$LINENO"; then :
16929   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16930   shlibpath_overrides_runpath=yes
16931 fi
16932 fi
16933 rm -f core conftest.err conftest.$ac_objext \
16934     conftest$ac_exeext conftest.$ac_ext
16935   LDFLAGS=$save_LDFLAGS
16936   libdir=$save_libdir
16937
16938   # This implies no fast_install, which is unacceptable.
16939   # Some rework will be needed to allow for fast_install
16940   # before this can be enabled.
16941   hardcode_into_libs=yes
16942
16943   # Append ld.so.conf contents to the search path
16944   if test -f /etc/ld.so.conf; then
16945     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;/^$/d' | tr '\n' ' '`
16946     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16947   fi
16948
16949   # We used to test for /lib/ld.so.1 and disable shared libraries on
16950   # powerpc, because MkLinux only supported shared libraries with the
16951   # GNU dynamic linker.  Since this was broken with cross compilers,
16952   # most powerpc-linux boxes support dynamic linking these days and
16953   # people can always --disable-shared, the test was removed, and we
16954   # assume the GNU/Linux dynamic linker is in use.
16955   dynamic_linker='GNU/Linux ld.so'
16956   ;;
16957
16958 netbsdelf*-gnu)
16959   version_type=linux
16960   need_lib_prefix=no
16961   need_version=no
16962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16963   soname_spec='${libname}${release}${shared_ext}$major'
16964   shlibpath_var=LD_LIBRARY_PATH
16965   shlibpath_overrides_runpath=no
16966   hardcode_into_libs=yes
16967   dynamic_linker='NetBSD ld.elf_so'
16968   ;;
16969
16970 netbsd*)
16971   version_type=sunos
16972   need_lib_prefix=no
16973   need_version=no
16974   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16976     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16977     dynamic_linker='NetBSD (a.out) ld.so'
16978   else
16979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16980     soname_spec='${libname}${release}${shared_ext}$major'
16981     dynamic_linker='NetBSD ld.elf_so'
16982   fi
16983   shlibpath_var=LD_LIBRARY_PATH
16984   shlibpath_overrides_runpath=yes
16985   hardcode_into_libs=yes
16986   ;;
16987
16988 newsos6)
16989   version_type=linux
16990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16991   shlibpath_var=LD_LIBRARY_PATH
16992   shlibpath_overrides_runpath=yes
16993   ;;
16994
16995 *nto* | *qnx*)
16996   version_type=qnx
16997   need_lib_prefix=no
16998   need_version=no
16999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000   soname_spec='${libname}${release}${shared_ext}$major'
17001   shlibpath_var=LD_LIBRARY_PATH
17002   shlibpath_overrides_runpath=no
17003   hardcode_into_libs=yes
17004   dynamic_linker='ldqnx.so'
17005   ;;
17006
17007 openbsd*)
17008   version_type=sunos
17009   sys_lib_dlsearch_path_spec="/usr/lib"
17010   need_lib_prefix=no
17011   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17012   case $host_os in
17013     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17014     *)                          need_version=no  ;;
17015   esac
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17018   shlibpath_var=LD_LIBRARY_PATH
17019   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17020     case $host_os in
17021       openbsd2.[89] | openbsd2.[89].*)
17022         shlibpath_overrides_runpath=no
17023         ;;
17024       *)
17025         shlibpath_overrides_runpath=yes
17026         ;;
17027       esac
17028   else
17029     shlibpath_overrides_runpath=yes
17030   fi
17031   ;;
17032
17033 os2*)
17034   libname_spec='$name'
17035   shrext_cmds=".dll"
17036   need_lib_prefix=no
17037   library_names_spec='$libname${shared_ext} $libname.a'
17038   dynamic_linker='OS/2 ld.exe'
17039   shlibpath_var=LIBPATH
17040   ;;
17041
17042 osf3* | osf4* | osf5*)
17043   version_type=osf
17044   need_lib_prefix=no
17045   need_version=no
17046   soname_spec='${libname}${release}${shared_ext}$major'
17047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048   shlibpath_var=LD_LIBRARY_PATH
17049   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17050   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17051   ;;
17052
17053 rdos*)
17054   dynamic_linker=no
17055   ;;
17056
17057 solaris*)
17058   version_type=linux
17059   need_lib_prefix=no
17060   need_version=no
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062   soname_spec='${libname}${release}${shared_ext}$major'
17063   shlibpath_var=LD_LIBRARY_PATH
17064   shlibpath_overrides_runpath=yes
17065   hardcode_into_libs=yes
17066   # ldd complains unless libraries are executable
17067   postinstall_cmds='chmod +x $lib'
17068   ;;
17069
17070 sunos4*)
17071   version_type=sunos
17072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17073   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17074   shlibpath_var=LD_LIBRARY_PATH
17075   shlibpath_overrides_runpath=yes
17076   if test "$with_gnu_ld" = yes; then
17077     need_lib_prefix=no
17078   fi
17079   need_version=yes
17080   ;;
17081
17082 sysv4 | sysv4.3*)
17083   version_type=linux
17084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17085   soname_spec='${libname}${release}${shared_ext}$major'
17086   shlibpath_var=LD_LIBRARY_PATH
17087   case $host_vendor in
17088     sni)
17089       shlibpath_overrides_runpath=no
17090       need_lib_prefix=no
17091       runpath_var=LD_RUN_PATH
17092       ;;
17093     siemens)
17094       need_lib_prefix=no
17095       ;;
17096     motorola)
17097       need_lib_prefix=no
17098       need_version=no
17099       shlibpath_overrides_runpath=no
17100       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17101       ;;
17102   esac
17103   ;;
17104
17105 sysv4*MP*)
17106   if test -d /usr/nec ;then
17107     version_type=linux
17108     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17109     soname_spec='$libname${shared_ext}.$major'
17110     shlibpath_var=LD_LIBRARY_PATH
17111   fi
17112   ;;
17113
17114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17115   version_type=freebsd-elf
17116   need_lib_prefix=no
17117   need_version=no
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   shlibpath_overrides_runpath=yes
17122   hardcode_into_libs=yes
17123   if test "$with_gnu_ld" = yes; then
17124     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17125   else
17126     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17127     case $host_os in
17128       sco3.2v5*)
17129         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17130         ;;
17131     esac
17132   fi
17133   sys_lib_dlsearch_path_spec='/usr/lib'
17134   ;;
17135
17136 tpf*)
17137   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17138   version_type=linux
17139   need_lib_prefix=no
17140   need_version=no
17141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142   shlibpath_var=LD_LIBRARY_PATH
17143   shlibpath_overrides_runpath=no
17144   hardcode_into_libs=yes
17145   ;;
17146
17147 uts4*)
17148   version_type=linux
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   ;;
17153
17154 *)
17155   dynamic_linker=no
17156   ;;
17157 esac
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17159 $as_echo "$dynamic_linker" >&6; }
17160 test "$dynamic_linker" = no && can_build_shared=no
17161
17162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17163 if test "$GCC" = yes; then
17164   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17165 fi
17166
17167 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17168   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17169 fi
17170 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17171   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17172 fi
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17210 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17211 hardcode_action_CXX=
17212 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17213    test -n "$runpath_var_CXX" ||
17214    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17215
17216   # We can hardcode non-existent directories.
17217   if test "$hardcode_direct_CXX" != no &&
17218      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17219      # have to relink, otherwise we might link with an installed library
17220      # when we should be linking with a yet-to-be-installed one
17221      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17222      test "$hardcode_minus_L_CXX" != no; then
17223     # Linking always hardcodes the temporary library directory.
17224     hardcode_action_CXX=relink
17225   else
17226     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17227     hardcode_action_CXX=immediate
17228   fi
17229 else
17230   # We cannot hardcode anything, or else we can only hardcode existing
17231   # directories.
17232   hardcode_action_CXX=unsupported
17233 fi
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17235 $as_echo "$hardcode_action_CXX" >&6; }
17236
17237 if test "$hardcode_action_CXX" = relink ||
17238    test "$inherit_rpath_CXX" = yes; then
17239   # Fast installation is not supported
17240   enable_fast_install=no
17241 elif test "$shlibpath_overrides_runpath" = yes ||
17242      test "$enable_shared" = no; then
17243   # Fast installation is not necessary
17244   enable_fast_install=needless
17245 fi
17246
17247
17248
17249
17250
17251
17252
17253   fi # test -n "$compiler"
17254
17255   CC=$lt_save_CC
17256   LDCXX=$LD
17257   LD=$lt_save_LD
17258   GCC=$lt_save_GCC
17259   with_gnu_ld=$lt_save_with_gnu_ld
17260   lt_cv_path_LDCXX=$lt_cv_path_LD
17261   lt_cv_path_LD=$lt_save_path_LD
17262   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17263   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17264 fi # test "$_lt_caught_CXX_error" != yes
17265
17266 ac_ext=c
17267 ac_cpp='$CPP $CPPFLAGS'
17268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17271
17272
17273
17274
17275 if test "$GCC" = "yes" ; then
17276 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17277 #        [
17278 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17279 #            [Define to enable class visibility control in gcc.])
17280 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17281 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17282 #        ])
17283     CFLAGS="-Wall $GCC_CFLAGS"
17284     CXXFLAGS="-Wall $GCC_CXXFLAGS"
17285 fi
17286
17287 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17288 # Also enables POSIX semantics for some functions.
17289 case "${host_cpu}-${host_os}" in
17290     *solaris*)
17291         CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
17292         CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS"
17293         if test "$CXX" = "CC" ; then
17294                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17295         fi
17296     ;;
17297 esac
17298
17299 # Checks for typedefs, structures, and compiler characteristics.
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17301 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17302 if test "${ac_cv_c_const+set}" = set; then :
17303   $as_echo_n "(cached) " >&6
17304 else
17305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h.  */
17307
17308 int
17309 main ()
17310 {
17311 /* FIXME: Include the comments suggested by Paul. */
17312 #ifndef __cplusplus
17313   /* Ultrix mips cc rejects this.  */
17314   typedef int charset[2];
17315   const charset cs;
17316   /* SunOS 4.1.1 cc rejects this.  */
17317   char const *const *pcpcc;
17318   char **ppc;
17319   /* NEC SVR4.0.2 mips cc rejects this.  */
17320   struct point {int x, y;};
17321   static struct point const zero = {0,0};
17322   /* AIX XL C 1.02.0.0 rejects this.
17323      It does not let you subtract one const X* pointer from another in
17324      an arm of an if-expression whose if-part is not a constant
17325      expression */
17326   const char *g = "string";
17327   pcpcc = &g + (g ? g-g : 0);
17328   /* HPUX 7.0 cc rejects these. */
17329   ++pcpcc;
17330   ppc = (char**) pcpcc;
17331   pcpcc = (char const *const *) ppc;
17332   { /* SCO 3.2v4 cc rejects this.  */
17333     char *t;
17334     char const *s = 0 ? (char *) 0 : (char const *) 0;
17335
17336     *t++ = 0;
17337     if (s) return 0;
17338   }
17339   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17340     int x[] = {25, 17};
17341     const int *foo = &x[0];
17342     ++foo;
17343   }
17344   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17345     typedef const int *iptr;
17346     iptr p = 0;
17347     ++p;
17348   }
17349   { /* AIX XL C 1.02.0.0 rejects this saying
17350        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17351     struct s { int j; const int *ap[3]; };
17352     struct s *b; b->j = 5;
17353   }
17354   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17355     const int foo = 10;
17356     if (!foo) return 0;
17357   }
17358   return !cs[0] && !zero.x;
17359 #endif
17360
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 if ac_fn_c_try_compile "$LINENO"; then :
17366   ac_cv_c_const=yes
17367 else
17368   ac_cv_c_const=no
17369 fi
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 fi
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17373 $as_echo "$ac_cv_c_const" >&6; }
17374 if test $ac_cv_c_const = no; then
17375
17376 $as_echo "#define const /**/" >>confdefs.h
17377
17378 fi
17379
17380 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17381 if test "x$ac_cv_type_size_t" = x""yes; then :
17382
17383 else
17384
17385 cat >>confdefs.h <<_ACEOF
17386 #define size_t unsigned int
17387 _ACEOF
17388
17389 fi
17390
17391 # The cast to long int works around a bug in the HP C Compiler
17392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17394 # This bug is HP SR number 8606223364.
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17396 $as_echo_n "checking size of long... " >&6; }
17397 if test "${ac_cv_sizeof_long+set}" = set; then :
17398   $as_echo_n "(cached) " >&6
17399 else
17400   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17401
17402 else
17403   if test "$ac_cv_type_long" = yes; then
17404      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17406 as_fn_error 77 "cannot compute sizeof (long)
17407 See \`config.log' for more details" "$LINENO" 5 ; }
17408    else
17409      ac_cv_sizeof_long=0
17410    fi
17411 fi
17412
17413 fi
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17415 $as_echo "$ac_cv_sizeof_long" >&6; }
17416
17417
17418
17419 cat >>confdefs.h <<_ACEOF
17420 #define SIZEOF_LONG $ac_cv_sizeof_long
17421 _ACEOF
17422
17423
17424
17425 # Checks for library functions.
17426 for ac_func in strchr strdup strstr timegm gmtime_r strcasecmp
17427 do :
17428   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17431   cat >>confdefs.h <<_ACEOF
17432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17433 _ACEOF
17434
17435 fi
17436 done
17437
17438 for ac_header in dlfcn.h
17439 do :
17440   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
17441 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
17442   cat >>confdefs.h <<_ACEOF
17443 #define HAVE_DLFCN_H 1
17444 _ACEOF
17445
17446 fi
17447
17448 done
17449
17450 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
17451 if test "x$ac_cv_func_dlclose" = x""yes; then :
17452
17453 else
17454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17455 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17457   $as_echo_n "(cached) " >&6
17458 else
17459   ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-ldl  $LIBS"
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h.  */
17463
17464 /* Override any GCC internal prototype to avoid an error.
17465    Use char because int might match the return type of a GCC
17466    builtin and then its argument prototype would still apply.  */
17467 #ifdef __cplusplus
17468 extern "C"
17469 #endif
17470 char dlopen ();
17471 int
17472 main ()
17473 {
17474 return dlopen ();
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 if ac_fn_c_try_link "$LINENO"; then :
17480   ac_cv_lib_dl_dlopen=yes
17481 else
17482   ac_cv_lib_dl_dlopen=no
17483 fi
17484 rm -f core conftest.err conftest.$ac_objext \
17485     conftest$ac_exeext conftest.$ac_ext
17486 LIBS=$ac_check_lib_save_LIBS
17487 fi
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17489 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17490 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17491   cat >>confdefs.h <<_ACEOF
17492 #define HAVE_LIBDL 1
17493 _ACEOF
17494
17495   LIBS="-ldl $LIBS"
17496
17497 fi
17498
17499 fi
17500
17501
17502 # checks for pthreads
17503
17504
17505 ac_ext=c
17506 ac_cpp='$CPP $CPPFLAGS'
17507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17510
17511 acx_pthread_ok=no
17512
17513 # We used to check for pthread.h first, but this fails if pthread.h
17514 # requires special compiler flags (e.g. on True64 or Sequent).
17515 # It gets checked for in the link test anyway.
17516
17517 # First of all, check if the user has set any of the PTHREAD_LIBS,
17518 # etcetera environment variables, and if threads linking works using
17519 # them:
17520 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17521         save_CFLAGS="$CFLAGS"
17522         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17523         save_LIBS="$LIBS"
17524         LIBS="$PTHREAD_LIBS $LIBS"
17525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17526 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17527         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h.  */
17529
17530 /* Override any GCC internal prototype to avoid an error.
17531    Use char because int might match the return type of a GCC
17532    builtin and then its argument prototype would still apply.  */
17533 #ifdef __cplusplus
17534 extern "C"
17535 #endif
17536 char pthread_join ();
17537 int
17538 main ()
17539 {
17540 return pthread_join ();
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 if ac_fn_c_try_link "$LINENO"; then :
17546   acx_pthread_ok=yes
17547 fi
17548 rm -f core conftest.err conftest.$ac_objext \
17549     conftest$ac_exeext conftest.$ac_ext
17550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17551 $as_echo "$acx_pthread_ok" >&6; }
17552         if test x"$acx_pthread_ok" = xno; then
17553                 PTHREAD_LIBS=""
17554                 PTHREAD_CFLAGS=""
17555         fi
17556         LIBS="$save_LIBS"
17557         CFLAGS="$save_CFLAGS"
17558 fi
17559
17560 # We must check for the threads library under a number of different
17561 # names; the ordering is very important because some systems
17562 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17563 # libraries is broken (non-POSIX).
17564
17565 # Create a list of thread flags to try.  Items starting with a "-" are
17566 # C compiler flags, and other items are library names, except for "none"
17567 # which indicates that we try without any flags at all, and "pthread-config"
17568 # which is a program returning the flags for the Pth emulation library.
17569
17570 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17571
17572 # The ordering *is* (sometimes) important.  Some notes on the
17573 # individual items follow:
17574
17575 # pthreads: AIX (must check this before -lpthread)
17576 # none: in case threads are in libc; should be tried before -Kthread and
17577 #       other compiler flags to prevent continual compiler warnings
17578 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17579 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17580 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17581 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17582 # -pthreads: Solaris/gcc
17583 # -mthreads: Mingw32/gcc, Lynx/gcc
17584 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17585 #      doesn't hurt to check since this sometimes defines pthreads too;
17586 #      also defines -D_REENTRANT)
17587 #      ... -mt is also the pthreads flag for HP/aCC
17588 # pthread: Linux, etcetera
17589 # --thread-safe: KAI C++
17590 # pthread-config: use pthread-config program (for GNU Pth library)
17591
17592 case "${host_cpu}-${host_os}" in
17593         *solaris*)
17594
17595         # On Solaris (at least, for some versions), libc contains stubbed
17596         # (non-functional) versions of the pthreads routines, so link-based
17597         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17598         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17599         # a function called by this macro, so we could check for that, but
17600         # who knows whether they'll stub that too in a future libc.)  So,
17601         # we'll just look for -pthreads and -lpthread first:
17602
17603         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17604         ;;
17605 esac
17606
17607 if test x"$acx_pthread_ok" = xno; then
17608 for flag in $acx_pthread_flags; do
17609
17610         case $flag in
17611                 none)
17612                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17613 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17614                 ;;
17615
17616                 -*)
17617                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17618 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17619                 PTHREAD_CFLAGS="$flag"
17620                 ;;
17621
17622                 pthread-config)
17623                 # Extract the first word of "pthread-config", so it can be a program name with args.
17624 set dummy pthread-config; ac_word=$2
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17626 $as_echo_n "checking for $ac_word... " >&6; }
17627 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17628   $as_echo_n "(cached) " >&6
17629 else
17630   if test -n "$acx_pthread_config"; then
17631   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17632 else
17633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17634 for as_dir in $PATH
17635 do
17636   IFS=$as_save_IFS
17637   test -z "$as_dir" && as_dir=.
17638     for ac_exec_ext in '' $ac_executable_extensions; do
17639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17640     ac_cv_prog_acx_pthread_config="yes"
17641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17642     break 2
17643   fi
17644 done
17645   done
17646 IFS=$as_save_IFS
17647
17648   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17649 fi
17650 fi
17651 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17652 if test -n "$acx_pthread_config"; then
17653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17654 $as_echo "$acx_pthread_config" >&6; }
17655 else
17656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657 $as_echo "no" >&6; }
17658 fi
17659
17660
17661                 if test x"$acx_pthread_config" = xno; then continue; fi
17662                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17663                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17664                 ;;
17665
17666                 *)
17667                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17668 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17669                 PTHREAD_LIBS="-l$flag"
17670                 ;;
17671         esac
17672
17673         save_LIBS="$LIBS"
17674         save_CFLAGS="$CFLAGS"
17675         LIBS="$PTHREAD_LIBS $LIBS"
17676         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17677
17678         # Check for various functions.  We must include pthread.h,
17679         # since some functions may be macros.  (On the Sequent, we
17680         # need a special flag -Kthread to make this header compile.)
17681         # We check for pthread_join because it is in -lpthread on IRIX
17682         # while pthread_create is in libc.  We check for pthread_attr_init
17683         # due to DEC craziness with -lpthreads.  We check for
17684         # pthread_cleanup_push because it is one of the few pthread
17685         # functions on Solaris that doesn't have a non-functional libc stub.
17686         # We try pthread_create on general principles.
17687         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h.  */
17689 #include <pthread.h>
17690 int
17691 main ()
17692 {
17693 pthread_t th; pthread_join(th, 0);
17694                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17695                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 if ac_fn_c_try_link "$LINENO"; then :
17701   acx_pthread_ok=yes
17702 fi
17703 rm -f core conftest.err conftest.$ac_objext \
17704     conftest$ac_exeext conftest.$ac_ext
17705
17706         LIBS="$save_LIBS"
17707         CFLAGS="$save_CFLAGS"
17708
17709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17710 $as_echo "$acx_pthread_ok" >&6; }
17711         if test "x$acx_pthread_ok" = xyes; then
17712                 break;
17713         fi
17714
17715         PTHREAD_LIBS=""
17716         PTHREAD_CFLAGS=""
17717 done
17718 fi
17719
17720 # Various other checks:
17721 if test "x$acx_pthread_ok" = xyes; then
17722         save_LIBS="$LIBS"
17723         LIBS="$PTHREAD_LIBS $LIBS"
17724         save_CFLAGS="$CFLAGS"
17725         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17726
17727         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17729 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17730         attr_name=unknown
17731         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17732             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h.  */
17734 #include <pthread.h>
17735 int
17736 main ()
17737 {
17738 int attr=$attr; return attr;
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 if ac_fn_c_try_link "$LINENO"; then :
17744   attr_name=$attr; break
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext \
17747     conftest$ac_exeext conftest.$ac_ext
17748         done
17749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17750 $as_echo "$attr_name" >&6; }
17751         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17752
17753 cat >>confdefs.h <<_ACEOF
17754 #define PTHREAD_CREATE_JOINABLE $attr_name
17755 _ACEOF
17756
17757         fi
17758
17759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17760 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17761         flag=no
17762         case "${host_cpu}-${host_os}" in
17763                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
17764                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
17765                 *solaris*)
17766                 if test "$GCC" = "yes"; then
17767                     flag="-D_REENTRANT"
17768                 else
17769                     flag="-mt -D_REENTRANT"
17770                 fi
17771                 ;;
17772         esac
17773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17774 $as_echo "${flag}" >&6; }
17775         if test "x$flag" != xno; then
17776             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17777         fi
17778
17779         LIBS="$save_LIBS"
17780         CFLAGS="$save_CFLAGS"
17781
17782         # More AIX lossage: must compile with xlc_r or cc_r
17783         if test x"$GCC" != xyes; then
17784           for ac_prog in xlc_r cc_r
17785 do
17786   # Extract the first word of "$ac_prog", so it can be a program name with args.
17787 set dummy $ac_prog; ac_word=$2
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17789 $as_echo_n "checking for $ac_word... " >&6; }
17790 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17791   $as_echo_n "(cached) " >&6
17792 else
17793   if test -n "$PTHREAD_CC"; then
17794   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17795 else
17796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17797 for as_dir in $PATH
17798 do
17799   IFS=$as_save_IFS
17800   test -z "$as_dir" && as_dir=.
17801     for ac_exec_ext in '' $ac_executable_extensions; do
17802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17803     ac_cv_prog_PTHREAD_CC="$ac_prog"
17804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17805     break 2
17806   fi
17807 done
17808   done
17809 IFS=$as_save_IFS
17810
17811 fi
17812 fi
17813 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17814 if test -n "$PTHREAD_CC"; then
17815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17816 $as_echo "$PTHREAD_CC" >&6; }
17817 else
17818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17819 $as_echo "no" >&6; }
17820 fi
17821
17822
17823   test -n "$PTHREAD_CC" && break
17824 done
17825 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17826
17827         else
17828           PTHREAD_CC=$CC
17829         fi
17830 else
17831         PTHREAD_CC="$CC"
17832 fi
17833
17834
17835
17836
17837
17838 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17839 if test x"$acx_pthread_ok" = xyes; then
17840         enable_threads="pthread"
17841         :
17842 else
17843         acx_pthread_ok=no
17844         enable_threads="no"
17845 fi
17846 ac_ext=c
17847 ac_cpp='$CPP $CPPFLAGS'
17848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17851
17852
17853 if test $enable_threads != "pthread"; then
17854     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
17855 else
17856
17857 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17858
17859          if test "$enable_threads" = "pthread"; then
17860   BUILD_PTHREAD_TRUE=
17861   BUILD_PTHREAD_FALSE='#'
17862 else
17863   BUILD_PTHREAD_TRUE='#'
17864   BUILD_PTHREAD_FALSE=
17865 fi
17866
17867     LIBS="$PTHREAD_LIBS $LIBS"
17868     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17869     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
17870 fi
17871
17872 for ac_func in pthread_rwlock_init
17873 do :
17874   ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
17875 if test "x$ac_cv_func_pthread_rwlock_init" = x""yes; then :
17876   cat >>confdefs.h <<_ACEOF
17877 #define HAVE_PTHREAD_RWLOCK_INIT 1
17878 _ACEOF
17879
17880 fi
17881 done
17882
17883
17884 ac_ext=cpp
17885 ac_cpp='$CXXCPP $CPPFLAGS'
17886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17889
17890
17891 # C++ requirements
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17893 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17894 if test "${ac_cv_cxx_namespaces+set}" = set; then :
17895   $as_echo_n "(cached) " >&6
17896 else
17897
17898  ac_ext=cpp
17899 ac_cpp='$CXXCPP $CPPFLAGS'
17900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17903
17904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h.  */
17906 namespace Outer { namespace Inner { int i = 0; }}
17907 int
17908 main ()
17909 {
17910 using namespace Outer::Inner; return i;
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_cxx_try_compile "$LINENO"; then :
17916   ac_cv_cxx_namespaces=yes
17917 else
17918   ac_cv_cxx_namespaces=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921  ac_ext=cpp
17922 ac_cpp='$CXXCPP $CPPFLAGS'
17923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17926
17927
17928 fi
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17930 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17931 if test "$ac_cv_cxx_namespaces" = yes; then
17932
17933 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17934
17935 fi
17936
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
17938 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
17939 if test "${ac_cv_cxx_have_stl+set}" = set; then :
17940   $as_echo_n "(cached) " >&6
17941 else
17942
17943  ac_ext=cpp
17944 ac_cpp='$CXXCPP $CPPFLAGS'
17945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17948
17949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h.  */
17951 #include <list>
17952 #include <deque>
17953 #ifdef HAVE_NAMESPACES
17954 using namespace std;
17955 #endif
17956 int
17957 main ()
17958 {
17959 list<int> x; x.push_back(5);
17960 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 if ac_fn_cxx_try_compile "$LINENO"; then :
17966   ac_cv_cxx_have_stl=yes
17967 else
17968   ac_cv_cxx_have_stl=no
17969 fi
17970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971  ac_ext=cpp
17972 ac_cpp='$CXXCPP $CPPFLAGS'
17973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17976
17977
17978 fi
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
17980 $as_echo "$ac_cv_cxx_have_stl" >&6; }
17981 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
17982   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
17983 fi
17984
17985
17986 # Boost
17987
17988 echo "$as_me: this is boost.m4 serial 16" >&5
17989 boost_save_IFS=$IFS
17990 boost_version_req=
17991 IFS=.
17992 set x $boost_version_req 0 0 0
17993 IFS=$boost_save_IFS
17994 shift
17995 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
17996 boost_version_req_string=$1.$2.$3
17997
17998 # Check whether --with-boost was given.
17999 if test "${with_boost+set}" = set; then :
18000   withval=$with_boost;
18001 fi
18002 # If BOOST_ROOT is set and the user has not provided a value to
18003 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
18004 if test x"$BOOST_ROOT" != x; then
18005   if test x"$with_boost" = x; then
18006     { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
18007 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
18008     with_boost=$BOOST_ROOT
18009   else
18010     { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
18011 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
18012   fi
18013 fi
18014 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
18015 boost_save_CPPFLAGS=$CPPFLAGS
18016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
18017 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
18018 if test "${boost_cv_inc_path+set}" = set; then :
18019   $as_echo_n "(cached) " >&6
18020 else
18021   boost_cv_inc_path=no
18022 ac_ext=cpp
18023 ac_cpp='$CXXCPP $CPPFLAGS'
18024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h.  */
18029 #include <boost/version.hpp>
18030 #if !defined BOOST_VERSION
18031 # error BOOST_VERSION is not defined
18032 #elif BOOST_VERSION < $boost_version_req
18033 # error Boost headers version < $boost_version_req
18034 #endif
18035
18036 int
18037 main ()
18038 {
18039
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044     # If the user provided a value to --with-boost, use it and only it.
18045     case $with_boost in #(
18046       ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
18047                  /usr/include C:/Boost/include;; #(
18048       *)      set x "$with_boost/include" "$with_boost";;
18049     esac
18050     shift
18051     for boost_dir
18052     do
18053     # Without --layout=system, Boost (or at least some versions) installs
18054     # itself in <prefix>/include/boost-<version>.  This inner loop helps to
18055     # find headers in such directories.
18056     #
18057     # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
18058     # order followed by ${boost_dir}.  The final '.' is a sentinel for
18059     # searching $boost_dir" itself.  Entries are whitespace separated.
18060     #
18061     # I didn't indent this loop on purpose (to avoid over-indented code)
18062     boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
18063         && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
18064         && echo .`
18065     for boost_inc in $boost_layout_system_search_list
18066     do
18067       if test x"$boost_inc" != x.; then
18068         boost_inc="$boost_dir/$boost_inc"
18069       else
18070         boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
18071       fi
18072       if test x"$boost_inc" != x; then
18073         # We are going to check whether the version of Boost installed
18074         # in $boost_inc is usable by running a compilation that
18075         # #includes it.  But if we pass a -I/some/path in which Boost
18076         # is not installed, the compiler will just skip this -I and
18077         # use other locations (either from CPPFLAGS, or from its list
18078         # of system include directories).  As a result we would use
18079         # header installed on the machine instead of the /some/path
18080         # specified by the user.  So in that precise case (trying
18081         # $boost_inc), make sure the version.hpp exists.
18082         #
18083         # Use test -e as there can be symlinks.
18084         test -e "$boost_inc/boost/version.hpp" || continue
18085         CPPFLAGS="$CPPFLAGS -I$boost_inc"
18086       fi
18087       if ac_fn_cxx_try_compile "$LINENO"; then :
18088   boost_cv_inc_path=yes
18089 else
18090   boost_cv_version=no
18091 fi
18092 rm -f core conftest.err conftest.$ac_objext
18093       if test x"$boost_cv_inc_path" = xyes; then
18094         if test x"$boost_inc" != x; then
18095           boost_cv_inc_path=$boost_inc
18096         fi
18097         break 2
18098       fi
18099     done
18100     done
18101 ac_ext=cpp
18102 ac_cpp='$CXXCPP $CPPFLAGS'
18103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18106
18107 fi
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
18109 $as_echo "$boost_cv_inc_path" >&6; }
18110     case $boost_cv_inc_path in #(
18111       no)
18112         boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
18113         as_fn_error $? "$boost_errmsg" "$LINENO" 5
18114
18115         ;;#(
18116       yes)
18117         BOOST_CPPFLAGS=
18118         ;;#(
18119       *)
18120         BOOST_CPPFLAGS="-I$boost_cv_inc_path"
18121         ;;
18122     esac
18123   if test x"$boost_cv_inc_path" != xno; then
18124
18125 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
18126
18127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
18128 $as_echo_n "checking for Boost's header version... " >&6; }
18129 if test "${boost_cv_lib_version+set}" = set; then :
18130   $as_echo_n "(cached) " >&6
18131 else
18132        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134 #include <boost/version.hpp>
18135 boost_lib_version = BOOST_LIB_VERSION
18136 _ACEOF
18137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18138   tr -d '\r' |
18139   $SED -n -e "/^boost_lib_version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
18140   boost_cv_lib_version=`cat conftest.i`
18141 fi
18142 rm -rf conftest*
18143
18144 fi
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
18146 $as_echo "$boost_cv_lib_version" >&6; }
18147     # e.g. "134" for 1_34_1 or "135" for 1_35
18148     boost_major_version=`echo "$boost_cv_lib_version" | $SED 's/_//;s/_.*//;s/ //'`
18149     case $boost_major_version in #(
18150       '' | *[!0-9]*)
18151         as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
18152         ;;
18153     esac
18154 fi
18155 CPPFLAGS=$boost_save_CPPFLAGS
18156
18157 if test x"$boost_cv_inc_path" = xno; then
18158   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
18159 $as_echo "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
18160 else
18161 ac_ext=cpp
18162 ac_cpp='$CXXCPP $CPPFLAGS'
18163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18166 boost_save_CPPFLAGS=$CPPFLAGS
18167 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18168 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
18169 if test "x$ac_cv_header_boost_bind_hpp" = x""yes; then :
18170
18171 $as_echo "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
18172
18173 else
18174   as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5
18175 fi
18176
18177
18178 CPPFLAGS=$boost_save_CPPFLAGS
18179 ac_ext=cpp
18180 ac_cpp='$CXXCPP $CPPFLAGS'
18181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18184 fi
18185
18186
18187 if test x"$boost_cv_inc_path" = xno; then
18188   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/cast.hpp" >&5
18189 $as_echo "$as_me: Boost not available, not searching for boost/cast.hpp" >&6;}
18190 else
18191 ac_ext=cpp
18192 ac_cpp='$CXXCPP $CPPFLAGS'
18193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18196 boost_save_CPPFLAGS=$CPPFLAGS
18197 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18198 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/cast.hpp" "ac_cv_header_boost_cast_hpp" "$ac_includes_default"
18199 if test "x$ac_cv_header_boost_cast_hpp" = x""yes; then :
18200
18201 $as_echo "#define HAVE_BOOST_CAST_HPP 1" >>confdefs.h
18202
18203 else
18204   as_fn_error $? "cannot find boost/cast.hpp" "$LINENO" 5
18205 fi
18206
18207
18208 CPPFLAGS=$boost_save_CPPFLAGS
18209 ac_ext=cpp
18210 ac_cpp='$CXXCPP $CPPFLAGS'
18211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18214 fi
18215
18216 if test x"$boost_cv_inc_path" = xno; then
18217   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/lexical_cast.hpp" >&5
18218 $as_echo "$as_me: Boost not available, not searching for boost/lexical_cast.hpp" >&6;}
18219 else
18220 ac_ext=cpp
18221 ac_cpp='$CXXCPP $CPPFLAGS'
18222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18225 boost_save_CPPFLAGS=$CPPFLAGS
18226 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18227 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/lexical_cast.hpp" "ac_cv_header_boost_lexical_cast_hpp" "$ac_includes_default"
18228 if test "x$ac_cv_header_boost_lexical_cast_hpp" = x""yes; then :
18229
18230 $as_echo "#define HAVE_BOOST_LEXICAL_CAST_HPP 1" >>confdefs.h
18231
18232 else
18233   as_fn_error $? "cannot find boost/lexical_cast.hpp" "$LINENO" 5
18234 fi
18235
18236
18237 CPPFLAGS=$boost_save_CPPFLAGS
18238 ac_ext=cpp
18239 ac_cpp='$CXXCPP $CPPFLAGS'
18240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18243 fi
18244
18245
18246
18247 if test x"$boost_cv_inc_path" = xno; then
18248   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/lambda/lambda.hpp" >&5
18249 $as_echo "$as_me: Boost not available, not searching for boost/lambda/lambda.hpp" >&6;}
18250 else
18251 ac_ext=cpp
18252 ac_cpp='$CXXCPP $CPPFLAGS'
18253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18256 boost_save_CPPFLAGS=$CPPFLAGS
18257 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18258 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/lambda/lambda.hpp" "ac_cv_header_boost_lambda_lambda_hpp" "$ac_includes_default"
18259 if test "x$ac_cv_header_boost_lambda_lambda_hpp" = x""yes; then :
18260
18261 $as_echo "#define HAVE_BOOST_LAMBDA_LAMBDA_HPP 1" >>confdefs.h
18262
18263 else
18264   as_fn_error $? "cannot find boost/lambda/lambda.hpp" "$LINENO" 5
18265 fi
18266
18267
18268 CPPFLAGS=$boost_save_CPPFLAGS
18269 ac_ext=cpp
18270 ac_cpp='$CXXCPP $CPPFLAGS'
18271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18274 fi
18275
18276
18277 if test x"$boost_cv_inc_path" = xno; then
18278   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_vector.hpp" >&5
18279 $as_echo "$as_me: Boost not available, not searching for boost/ptr_container/ptr_vector.hpp" >&6;}
18280 else
18281 ac_ext=cpp
18282 ac_cpp='$CXXCPP $CPPFLAGS'
18283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18286 boost_save_CPPFLAGS=$CPPFLAGS
18287 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18288 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/ptr_container/ptr_vector.hpp" "ac_cv_header_boost_ptr_container_ptr_vector_hpp" "$ac_includes_default"
18289 if test "x$ac_cv_header_boost_ptr_container_ptr_vector_hpp" = x""yes; then :
18290
18291 $as_echo "#define HAVE_BOOST_PTR_CONTAINER_PTR_VECTOR_HPP 1" >>confdefs.h
18292
18293 else
18294   as_fn_error $? "cannot find boost/ptr_container/ptr_vector.hpp" "$LINENO" 5
18295 fi
18296
18297
18298 CPPFLAGS=$boost_save_CPPFLAGS
18299 ac_ext=cpp
18300 ac_cpp='$CXXCPP $CPPFLAGS'
18301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18304 fi
18305
18306
18307 if test x"$boost_cv_inc_path" = xno; then
18308   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/scoped_ptr.hpp" >&5
18309 $as_echo "$as_me: Boost not available, not searching for boost/scoped_ptr.hpp" >&6;}
18310 else
18311 ac_ext=cpp
18312 ac_cpp='$CXXCPP $CPPFLAGS'
18313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18316 boost_save_CPPFLAGS=$CPPFLAGS
18317 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18318 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/scoped_ptr.hpp" "ac_cv_header_boost_scoped_ptr_hpp" "$ac_includes_default"
18319 if test "x$ac_cv_header_boost_scoped_ptr_hpp" = x""yes; then :
18320
18321 $as_echo "#define HAVE_BOOST_SCOPED_PTR_HPP 1" >>confdefs.h
18322
18323 else
18324   as_fn_error $? "cannot find boost/scoped_ptr.hpp" "$LINENO" 5
18325 fi
18326
18327
18328 CPPFLAGS=$boost_save_CPPFLAGS
18329 ac_ext=cpp
18330 ac_cpp='$CXXCPP $CPPFLAGS'
18331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18334 fi
18335
18336 if test x"$boost_cv_inc_path" = xno; then
18337   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/shared_ptr.hpp" >&5
18338 $as_echo "$as_me: Boost not available, not searching for boost/shared_ptr.hpp" >&6;}
18339 else
18340 ac_ext=cpp
18341 ac_cpp='$CXXCPP $CPPFLAGS'
18342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18345 boost_save_CPPFLAGS=$CPPFLAGS
18346 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18347 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
18348 if test "x$ac_cv_header_boost_shared_ptr_hpp" = x""yes; then :
18349
18350 $as_echo "#define HAVE_BOOST_SHARED_PTR_HPP 1" >>confdefs.h
18351
18352 else
18353   as_fn_error $? "cannot find boost/shared_ptr.hpp" "$LINENO" 5
18354 fi
18355
18356
18357 CPPFLAGS=$boost_save_CPPFLAGS
18358 ac_ext=cpp
18359 ac_cpp='$CXXCPP $CPPFLAGS'
18360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18363 fi
18364
18365
18366
18367 if test x"$boost_cv_inc_path" = xno; then
18368   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/algorithm/string.hpp" >&5
18369 $as_echo "$as_me: Boost not available, not searching for boost/algorithm/string.hpp" >&6;}
18370 else
18371 ac_ext=cpp
18372 ac_cpp='$CXXCPP $CPPFLAGS'
18373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18376 boost_save_CPPFLAGS=$CPPFLAGS
18377 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18378 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
18379 if test "x$ac_cv_header_boost_algorithm_string_hpp" = x""yes; then :
18380
18381 $as_echo "#define HAVE_BOOST_ALGORITHM_STRING_HPP 1" >>confdefs.h
18382
18383 else
18384   as_fn_error $? "cannot find boost/algorithm/string.hpp" "$LINENO" 5
18385 fi
18386
18387
18388 CPPFLAGS=$boost_save_CPPFLAGS
18389 ac_ext=cpp
18390 ac_cpp='$CXXCPP $CPPFLAGS'
18391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18394 fi
18395
18396
18397
18398 if test x"$boost_cv_inc_path" = xno; then
18399   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/tokenizer.hpp" >&5
18400 $as_echo "$as_me: Boost not available, not searching for boost/tokenizer.hpp" >&6;}
18401 else
18402 ac_ext=cpp
18403 ac_cpp='$CXXCPP $CPPFLAGS'
18404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18407 boost_save_CPPFLAGS=$CPPFLAGS
18408 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18409 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/tokenizer.hpp" "ac_cv_header_boost_tokenizer_hpp" "$ac_includes_default"
18410 if test "x$ac_cv_header_boost_tokenizer_hpp" = x""yes; then :
18411
18412 $as_echo "#define HAVE_BOOST_TOKENIZER_HPP 1" >>confdefs.h
18413
18414 else
18415   as_fn_error $? "cannot find boost/tokenizer.hpp" "$LINENO" 5
18416 fi
18417
18418
18419 CPPFLAGS=$boost_save_CPPFLAGS
18420 ac_ext=cpp
18421 ac_cpp='$CXXCPP $CPPFLAGS'
18422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18425 fi
18426
18427
18428 CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
18429
18430 # are covariant methods allowed?
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h.  */
18433
18434 int
18435 main ()
18436 {
18437
18438         class base { public: virtual base *GetPtr( void ) { return this; } };
18439         class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
18440
18441   ;
18442   return 0;
18443 }
18444 _ACEOF
18445 if ac_fn_cxx_try_link "$LINENO"; then :
18446
18447 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
18448
18449 fi
18450 rm -f core conftest.err conftest.$ac_objext \
18451     conftest$ac_exeext conftest.$ac_ext
18452
18453 # is nullptr supported?
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h.  */
18456
18457 int
18458 main ()
18459 {
18460 const char* ptr = nullptr;
18461   ;
18462   return 0;
18463 }
18464 _ACEOF
18465 if ac_fn_cxx_try_compile "$LINENO"; then :
18466
18467 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
18468
18469 fi
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471
18472 # log4shib settings (favor this version over the log4cpp code)
18473 # Extract the first word of "log4shib-config", so it can be a program name with args.
18474 set dummy log4shib-config; ac_word=$2
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18476 $as_echo_n "checking for $ac_word... " >&6; }
18477 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18478   $as_echo_n "(cached) " >&6
18479 else
18480   case $LOG4SHIB_CONFIG in
18481   [\\/]* | ?:[\\/]*)
18482   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18483   ;;
18484   *)
18485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486 for as_dir in $PATH
18487 do
18488   IFS=$as_save_IFS
18489   test -z "$as_dir" && as_dir=.
18490     for ac_exec_ext in '' $ac_executable_extensions; do
18491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18492     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18494     break 2
18495   fi
18496 done
18497   done
18498 IFS=$as_save_IFS
18499
18500   ;;
18501 esac
18502 fi
18503 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18504 if test -n "$LOG4SHIB_CONFIG"; then
18505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18506 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18507 else
18508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510 fi
18511
18512
18513
18514 # Check whether --with-log4shib was given.
18515 if test "${with_log4shib+set}" = set; then :
18516   withval=$with_log4shib;
18517     LOG4SHIB_CONFIG="${with_log4shib}"
18518     if ! test -f "${LOG4SHIB_CONFIG}" ; then
18519         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18520     fi
18521
18522 fi
18523
18524 if test -f "${LOG4SHIB_CONFIG}" ; then
18525     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18526     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18527     ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18528 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18529
18530 else
18531   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18532 fi
18533
18534
18535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h.  */
18537 #include <log4shib/Category.hh>
18538 #include <log4shib/CategoryStream.hh>
18539 int
18540 main ()
18541 {
18542 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 if ac_fn_cxx_try_link "$LINENO"; then :
18548
18549 $as_echo "#define XMLTOOLING_LOG4SHIB 1" >>confdefs.h
18550
18551 else
18552   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext \
18555     conftest$ac_exeext conftest.$ac_ext
18556 else
18557     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18558 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18559     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18560 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18561
18562     # log4cpp settings
18563     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18564 set dummy log4cpp-config; ac_word=$2
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18566 $as_echo_n "checking for $ac_word... " >&6; }
18567 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18568   $as_echo_n "(cached) " >&6
18569 else
18570   case $LOG4CPP_CONFIG in
18571   [\\/]* | ?:[\\/]*)
18572   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18573   ;;
18574   *)
18575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18576 for as_dir in $PATH
18577 do
18578   IFS=$as_save_IFS
18579   test -z "$as_dir" && as_dir=.
18580     for ac_exec_ext in '' $ac_executable_extensions; do
18581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18582     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18584     break 2
18585   fi
18586 done
18587   done
18588 IFS=$as_save_IFS
18589
18590   ;;
18591 esac
18592 fi
18593 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18594 if test -n "$LOG4CPP_CONFIG"; then
18595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18596 $as_echo "$LOG4CPP_CONFIG" >&6; }
18597 else
18598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18600 fi
18601
18602
18603
18604 # Check whether --with-log4cpp was given.
18605 if test "${with_log4cpp+set}" = set; then :
18606   withval=$with_log4cpp;
18607         LOG4CPP_CONFIG="${with_log4cpp}"
18608         if ! test -f "${LOG4CPP_CONFIG}" ; then
18609                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18610         fi
18611
18612 fi
18613
18614     if test -f "${LOG4CPP_CONFIG}"; then
18615         { $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
18616 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18617         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18618         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18619         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18620 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18621
18622 else
18623   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18624 fi
18625
18626
18627         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h.  */
18629 #include <log4cpp/Category.hh>
18630 #include <log4cpp/CategoryStream.hh>
18631 int
18632 main ()
18633 {
18634 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18635   ;
18636   return 0;
18637 }
18638 _ACEOF
18639 if ac_fn_cxx_try_link "$LINENO"; then :
18640
18641 $as_echo "#define XMLTOOLING_LOG4CPP 1" >>confdefs.h
18642
18643 else
18644   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18645 fi
18646 rm -f core conftest.err conftest.$ac_objext \
18647     conftest$ac_exeext conftest.$ac_ext
18648         else
18649             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18650         fi
18651 fi
18652
18653 # Xerces settings
18654
18655 # Check whether --with-xerces was given.
18656 if test "${with_xerces+set}" = set; then :
18657   withval=$with_xerces;
18658 else
18659   with_xerces=/usr
18660 fi
18661
18662 if test x_$with_xerces != x_/usr; then
18663     CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18664     LIBS="-L${with_xerces}/lib -lxerces-c $LIBS"
18665 else
18666     LIBS="-lxerces-c $LIBS"
18667 fi
18668
18669 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18670 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18671
18672 else
18673   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18674 fi
18675
18676
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18678 $as_echo_n "checking Xerces version... " >&6; }
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h.  */
18681 #include <xercesc/util/XercesVersion.hpp>
18682 int
18683 main ()
18684 {
18685 #if  _XERCES_VERSION != 20600
18686 int i = 0;
18687 #else
18688 #error cannot use version 2.6.0
18689 #endif
18690   ;
18691   return 0;
18692 }
18693 _ACEOF
18694 if ac_fn_cxx_try_cpp "$LINENO"; then :
18695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18696 $as_echo "OK" >&6; }
18697 else
18698   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18700 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18701 See \`config.log' for more details" "$LINENO" 5 ; }
18702 fi
18703 rm -f conftest.err conftest.i conftest.$ac_ext
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h.  */
18706 #include <xercesc/util/PlatformUtils.hpp>
18707 int
18708 main ()
18709 {
18710 xercesc::XMLPlatformUtils::Initialize()
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 if ac_fn_cxx_try_link "$LINENO"; then :
18716
18717 else
18718   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext \
18721     conftest$ac_exeext conftest.$ac_ext
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces is 64-bit clean" >&5
18724 $as_echo_n "checking whether Xerces is 64-bit clean... " >&6; }
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h.  */
18727 #include <xercesc/framework/MemBufInputSource.hpp>
18728 int
18729 main ()
18730 {
18731 using namespace XERCES_CPP_NAMESPACE; XMLFilePos testvar;
18732   ;
18733   return 0;
18734 }
18735 _ACEOF
18736 if ac_fn_cxx_try_compile "$LINENO"; then :
18737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18738 $as_echo "yes" >&6; }
18739 $as_echo "#define XMLTOOLING_XERCESC_64BITSAFE 1" >>confdefs.h
18740
18741 else
18742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18743 $as_echo "no" >&6; }
18744 fi
18745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces BinInputStream requires getContentType" >&5
18748 $as_echo_n "checking whether Xerces BinInputStream requires getContentType... " >&6; }
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h.  */
18751 #include <xercesc/util/BinMemInputStream.hpp>
18752 int
18753 main ()
18754 {
18755 using namespace XERCES_CPP_NAMESPACE; XMLByte buf[1024]; BinMemInputStream in(buf,1024); in.getContentType();
18756   ;
18757   return 0;
18758 }
18759 _ACEOF
18760 if ac_fn_cxx_try_compile "$LINENO"; then :
18761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18762 $as_echo "yes" >&6; }
18763 $as_echo "#define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1" >>confdefs.h
18764
18765 else
18766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18767 $as_echo "no" >&6; }
18768 fi
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMLS API is compliant" >&5
18772 $as_echo_n "checking whether Xerces DOMLS API is compliant... " >&6; }
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h.  */
18775 #include <xercesc/dom/DOM.hpp>
18776 int
18777 main ()
18778 {
18779 using namespace XERCES_CPP_NAMESPACE;
18780         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
18781         DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 if ac_fn_cxx_try_compile "$LINENO"; then :
18787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18788 $as_echo "yes" >&6; }
18789 $as_echo "#define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1" >>confdefs.h
18790
18791 else
18792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 $as_echo "no" >&6; }
18794 fi
18795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18796
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
18798 $as_echo_n "checking whether Xerces has setIdAttribute(XMLCh*, bool)... " >&6; }
18799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800 /* end confdefs.h.  */
18801 #include <xercesc/dom/DOM.hpp>
18802 int
18803 main ()
18804 {
18805 using namespace XERCES_CPP_NAMESPACE; DOMElement * elt; elt->setIdAttribute(NULL, false);
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 if ac_fn_cxx_try_compile "$LINENO"; then :
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18812 $as_echo "yes" >&6; }
18813 $as_echo "#define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1" >>confdefs.h
18814
18815 else
18816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18818 fi
18819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18820
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18822 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h.  */
18825 #include <xercesc/util/XMLString.hpp>
18826 int
18827 main ()
18828 {
18829 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18830   ;
18831   return 0;
18832 }
18833 _ACEOF
18834 if ac_fn_cxx_try_compile "$LINENO"; then :
18835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18836 $as_echo "yes" >&6; }
18837 $as_echo "#define XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18838
18839 else
18840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841 $as_echo "no" >&6; }
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844
18845 # XML-Security settings
18846
18847 # Check whether --with-xmlsec was given.
18848 if test "${with_xmlsec+set}" = set; then :
18849   withval=$with_xmlsec;
18850 else
18851   with_xmlsec=/usr
18852 fi
18853
18854
18855 if test x_$with_xmlsec != x_no; then
18856
18857     # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
18858
18859 # Check whether --with-openssl was given.
18860 if test "${with_openssl+set}" = set; then :
18861   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
18862             SSLFLAGS="-I${with_openssl}/include"
18863             SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
18864         else
18865             SSLLIBS="-lcrypto -lssl"
18866         fi
18867 fi
18868
18869
18870     if test "x$SSLLIBS" = "x" ; then
18871         # Extract the first word of "pkg-config", so it can be a program name with args.
18872 set dummy pkg-config; ac_word=$2
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18874 $as_echo_n "checking for $ac_word... " >&6; }
18875 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18876   $as_echo_n "(cached) " >&6
18877 else
18878   case $PKG_CONFIG in
18879   [\\/]* | ?:[\\/]*)
18880   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18881   ;;
18882   *)
18883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18885 do
18886   IFS=$as_save_IFS
18887   test -z "$as_dir" && as_dir=.
18888     for ac_exec_ext in '' $ac_executable_extensions; do
18889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18890     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18892     break 2
18893   fi
18894 done
18895   done
18896 IFS=$as_save_IFS
18897
18898   ;;
18899 esac
18900 fi
18901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18902 if test -n "$PKG_CONFIG"; then
18903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18904 $as_echo "$PKG_CONFIG" >&6; }
18905 else
18906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908 fi
18909
18910
18911         if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
18912             if pkg-config openssl ; then
18913                 SSLLIBS="`$PKG_CONFIG --libs openssl`"
18914                 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
18915             else
18916                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
18917 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
18918             fi
18919         fi
18920     fi
18921
18922     if test "x$SSLLIBS" = "x" ; then
18923         SSLLIBS="-lcrypto -lssl"
18924     fi
18925
18926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
18927 $as_echo_n "checking for OpenSSL cflags... " >&6; }
18928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
18929 $as_echo "$SSLFLAGS" >&6; }
18930     CPPFLAGS="$CPPFLAGS $SSLFLAGS"
18931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
18932 $as_echo_n "checking for OpenSSL libraries... " >&6; }
18933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLLIBS" >&5
18934 $as_echo "$SSLLIBS" >&6; }
18935     XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
18936
18937     # save and append master libs
18938     save_LIBS="$LIBS"
18939     LIBS="$XMLSEC_LIBS $LIBS"
18940
18941     ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
18942 if test "x$ac_cv_header_openssl_pem_h" = x""yes; then :
18943
18944 else
18945   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
18946 fi
18947
18948
18949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_CRYPTO_string" >&5
18950 $as_echo_n "checking for ERR_load_CRYPTO_string... " >&6; }
18951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h.  */
18953
18954 /* Override any GCC internal prototype to avoid an error.
18955    Use char because int might match the return type of a GCC
18956    builtin and then its argument prototype would still apply.  */
18957 #ifdef __cplusplus
18958 extern "C"
18959 #endif
18960 char ERR_load_CRYPTO_strings ();
18961 int
18962 main ()
18963 {
18964 return ERR_load_CRYPTO_strings ();
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 if ac_fn_cxx_try_link "$LINENO"; then :
18970
18971 else
18972   as_fn_error $? "unable to link with openssl libraries" "$LINENO" 5
18973 fi
18974 rm -f core conftest.err conftest.$ac_objext \
18975     conftest$ac_exeext conftest.$ac_ext
18976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18977 $as_echo "yes" >&6; }
18978
18979     ac_fn_cxx_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h>
18980 "
18981 if test "x$ac_cv_have_decl_EVP_sha512" = x""yes; then :
18982
18983 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_SHA2 1" >>confdefs.h
18984
18985 fi
18986
18987     ac_fn_cxx_check_decl "$LINENO" "EVP_PKEY_set1_EC_KEY" "ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" "#include <openssl/evp.h>
18988 "
18989 if test "x$ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" = x""yes; then :
18990
18991 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_EC 1" >>confdefs.h
18992
18993 fi
18994
18995
18996     # restore master libs
18997     LIBS="$save_LIBS"
18998
18999     if test x_$with_xmlsec != x_/usr; then
19000         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
19001         XMLSEC_LIBS="-L${with_xmlsec}/lib -lxml-security-c $XMLSEC_LIBS"
19002     else
19003         XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
19004     fi
19005
19006     # save and append master libs
19007     save_LIBS="$LIBS"
19008     LIBS="$XMLSEC_LIBS $LIBS"
19009
19010     ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
19011 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
19012
19013 else
19014   as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
19015 fi
19016
19017
19018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
19019 $as_echo_n "checking XML-Security version... " >&6; }
19020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h.  */
19022 #include <xsec/utils/XSECPlatformUtils.hpp>
19023 int
19024 main ()
19025 {
19026 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
19027 int i = 0;
19028 #else
19029 #error need version 1.4.0 or later
19030 #endif
19031   ;
19032   return 0;
19033 }
19034 _ACEOF
19035 if ac_fn_cxx_try_cpp "$LINENO"; then :
19036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
19037 $as_echo "OK" >&6; }
19038 else
19039   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19041 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
19042 See \`config.log' for more details" "$LINENO" 5 ; }
19043 fi
19044 rm -f conftest.err conftest.i conftest.$ac_ext
19045
19046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h.  */
19048 #include <xsec/utils/XSECPlatformUtils.hpp>
19049 int
19050 main ()
19051 {
19052 XSECPlatformUtils::Initialise()
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 if ac_fn_cxx_try_link "$LINENO"; then :
19058
19059 else
19060   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
19061 fi
19062 rm -f core conftest.err conftest.$ac_objext \
19063     conftest$ac_exeext conftest.$ac_ext
19064     ac_fn_cxx_check_type "$LINENO" "xsecsize_t" "ac_cv_type_xsecsize_t" "$ac_includes_default"
19065 if test "x$ac_cv_type_xsecsize_t" = x""yes; then :
19066
19067 $as_echo "#define HAVE_XSECSIZE_T 1" >>confdefs.h
19068
19069 fi
19070
19071
19072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C has multiple CRL support" >&5
19073 $as_echo_n "checking whether XML-Security-C has multiple CRL support... " >&6; }
19074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h.  */
19076 #include <xsec/dsig/DSIGKeyInfoX509.hpp>
19077 int
19078 main ()
19079 {
19080 DSIGKeyInfoX509* klist; klist->getX509CRLListSize();
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 if ac_fn_cxx_try_compile "$LINENO"; then :
19086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19087 $as_echo "yes" >&6; }
19088 $as_echo "#define XMLTOOLING_XMLSEC_MULTIPLECRL 1" >>confdefs.h
19089
19090 else
19091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092 $as_echo "no" >&6; }
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095
19096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C exposes the signature algorithm URI" >&5
19097 $as_echo_n "checking whether XML-Security-C exposes the signature algorithm URI... " >&6; }
19098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h.  */
19100 #include <xsec/dsig/DSIGSignature.hpp>
19101 int
19102 main ()
19103 {
19104 DSIGSignature* sig; sig->getAlgorithmURI();
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 if ac_fn_cxx_try_compile "$LINENO"; then :
19110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19111 $as_echo "yes" >&6; }
19112 $as_echo "#define XMLTOOLING_XMLSEC_SIGALGORITHM 1" >>confdefs.h
19113
19114 else
19115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19116 $as_echo "no" >&6; }
19117 fi
19118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119
19120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes ECC support" >&5
19121 $as_echo_n "checking whether XML-Security-C includes ECC support... " >&6; }
19122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h.  */
19124 #include <xsec/dsig/DSIGKeyInfoValue.hpp>
19125 int
19126 main ()
19127 {
19128 DSIGKeyInfoValue* info; info->getECNamedCurve();
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 if ac_fn_cxx_try_compile "$LINENO"; then :
19134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19135 $as_echo "yes" >&6; }
19136 $as_echo "#define XMLTOOLING_XMLSEC_ECC 1" >>confdefs.h
19137
19138 else
19139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19140 $as_echo "no" >&6; }
19141 fi
19142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19143
19144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes C14N 1.1 support" >&5
19145 $as_echo_n "checking whether XML-Security-C includes C14N 1.1 support... " >&6; }
19146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h.  */
19148 #include <xsec/dsig/DSIGConstants.hpp>
19149 int
19150 main ()
19151 {
19152 transformType t = TRANSFORM_C14N11;
19153   ;
19154   return 0;
19155 }
19156 _ACEOF
19157 if ac_fn_cxx_try_compile "$LINENO"; then :
19158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19159 $as_echo "yes" >&6; }
19160 $as_echo "#define XMLTOOLING_XMLSEC_C14N11 1" >>confdefs.h
19161
19162 else
19163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19164 $as_echo "no" >&6; }
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167
19168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes debug logging support" >&5
19169 $as_echo_n "checking whether XML-Security-C includes debug logging support... " >&6; }
19170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h.  */
19172 #include <xsec/utils/XSECPlatformUtils.hpp>
19173 int
19174 main ()
19175 {
19176 XSECPlatformUtils::SetReferenceLoggingSink(NULL)
19177   ;
19178   return 0;
19179 }
19180 _ACEOF
19181 if ac_fn_cxx_try_compile "$LINENO"; then :
19182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19183 $as_echo "yes" >&6; }
19184 $as_echo "#define XMLTOOLING_XMLSEC_DEBUGLOGGING 1" >>confdefs.h
19185
19186 else
19187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19189 fi
19190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19191
19192     # restore master libs
19193     LIBS="$save_LIBS"
19194
19195     # libcurl settings
19196     # Extract the first word of "curl-config", so it can be a program name with args.
19197 set dummy curl-config; ac_word=$2
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19199 $as_echo_n "checking for $ac_word... " >&6; }
19200 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
19201   $as_echo_n "(cached) " >&6
19202 else
19203   case $CURL_CONFIG in
19204   [\\/]* | ?:[\\/]*)
19205   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
19206   ;;
19207   *)
19208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19210 do
19211   IFS=$as_save_IFS
19212   test -z "$as_dir" && as_dir=.
19213     for ac_exec_ext in '' $ac_executable_extensions; do
19214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19215     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19217     break 2
19218   fi
19219 done
19220   done
19221 IFS=$as_save_IFS
19222
19223   ;;
19224 esac
19225 fi
19226 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
19227 if test -n "$CURL_CONFIG"; then
19228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
19229 $as_echo "$CURL_CONFIG" >&6; }
19230 else
19231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233 fi
19234
19235
19236
19237 # Check whether --with-curl was given.
19238 if test "${with_curl+set}" = set; then :
19239   withval=$with_curl;
19240         CURL_CONFIG="${with_curl}"
19241         if ! test -f "${CURL_CONFIG}" ; then
19242             CURL_CONFIG="${with_curl}/bin/curl-config"
19243         fi
19244
19245 fi
19246
19247     if test -f "${CURL_CONFIG}" ; then
19248         CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
19249         XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
19250     else
19251         as_fn_error $? "curl-config not found, may need to use --with-curl option" "$LINENO" 5
19252     fi
19253
19254     # save and append master libs
19255     save_LIBS="$LIBS"
19256     LIBS="$XMLSEC_LIBS $LIBS"
19257
19258     ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
19259 if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
19260
19261 else
19262   as_fn_error $? "unable to find libcurl header files" "$LINENO" 5
19263 fi
19264
19265
19266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h.  */
19268 #include <curl/curl.h>
19269 int
19270 main ()
19271 {
19272 curl_global_init(CURL_GLOBAL_ALL)
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 if ac_fn_cxx_try_link "$LINENO"; then :
19278
19279 else
19280   as_fn_error $? "unable to link with libcurl" "$LINENO" 5
19281 fi
19282 rm -f core conftest.err conftest.$ac_objext \
19283     conftest$ac_exeext conftest.$ac_ext
19284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
19285 $as_echo_n "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... " >&6; }
19286     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h.  */
19288 #include <curl/curl.h>
19289
19290 _ACEOF
19291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19292   $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then :
19293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19294 $as_echo "yes" >&6; }
19295 else
19296   as_fn_error $? "need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" "$LINENO" 5
19297 fi
19298 rm -f conftest*
19299
19300     ac_fn_cxx_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "#include <curl/curl.h>
19301 "
19302 if test "x$ac_cv_type_curl_off_t" = x""yes; then :
19303
19304 $as_echo "#define HAVE_CURL_OFF_T 1" >>confdefs.h
19305
19306 fi
19307
19308
19309     # restore master libs
19310     LIBS="$save_LIBS"
19311
19312
19313 else
19314     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlsec disabled, building without signature/encryption support" >&5
19315 $as_echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
19316
19317 $as_echo "#define XMLTOOLING_NO_XMLSEC 1" >>confdefs.h
19318
19319 fi
19320  if test x_$with_xmlsec != x_no; then
19321   BUILD_XMLSEC_TRUE=
19322   BUILD_XMLSEC_FALSE='#'
19323 else
19324   BUILD_XMLSEC_TRUE='#'
19325   BUILD_XMLSEC_FALSE=
19326 fi
19327
19328
19329 # Does the STL in use help or screw us?
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332 #include <string>
19333 int
19334 main ()
19335 {
19336 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
19337   ;
19338   return 0;
19339 }
19340 _ACEOF
19341 if ac_fn_cxx_try_link "$LINENO"; then :
19342
19343 $as_echo "#define HAVE_GOOD_STL 1" >>confdefs.h
19344
19345 fi
19346 rm -f core conftest.err conftest.$ac_objext \
19347     conftest$ac_exeext conftest.$ac_ext
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h.  */
19350 #include <vector>
19351 int
19352 main ()
19353 {
19354 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 if ac_fn_cxx_try_link "$LINENO"; then :
19360
19361 $as_echo "#define HAVE_ITERATOR_TRAITS 1" >>confdefs.h
19362
19363 fi
19364 rm -f core conftest.err conftest.$ac_objext \
19365     conftest$ac_exeext conftest.$ac_ext
19366
19367 # Check for unit test support
19368 CXXTEST="/usr/bin/cxxtestgen.pl"
19369 CXXTESTFLAGS=""
19370
19371 # Check whether --with-cxxtest was given.
19372 if test "${with_cxxtest+set}" = set; then :
19373   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
19374         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
19375         CXXTESTFLAGS="-I${with_cxxtest}"
19376     fi
19377 fi
19378
19379 if ! test -f "${CXXTEST}"; then
19380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
19381 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
19382 fi
19383
19384
19385
19386  if test -f ${CXXTEST}; then
19387   BUILD_UNITTEST_TRUE=
19388   BUILD_UNITTEST_FALSE='#'
19389 else
19390   BUILD_UNITTEST_TRUE='#'
19391   BUILD_UNITTEST_FALSE=
19392 fi
19393
19394
19395
19396 # we need the expanded forms...
19397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19399
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
19401 $as_echo_n "checking our pkgconfig libname... " >&6; }
19402 test ".$ax_create_pkgconfig_libname" != "." || \
19403 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
19404 test ".$ax_create_pkgconfig_libname" != "." || \
19405 ax_create_pkgconfig_libname="$PACKAGE"
19406 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19407 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
19409 $as_echo "$ax_create_pkgconfig_libname" >&6; }
19410
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
19412 $as_echo_n "checking our pkgconfig version... " >&6; }
19413 test ".$ax_create_pkgconfig_version" != "." || \
19414 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
19415 test ".$ax_create_pkgconfig_version" != "." || \
19416 ax_create_pkgconfig_version="$VERSION"
19417 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19418 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
19420 $as_echo "$ax_create_pkgconfig_version" >&6; }
19421
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
19423 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
19424 test ".$pkgconfig_libdir" = "." && \
19425 pkgconfig_libdir='${libdir}/pkgconfig'
19426 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
19427 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19428 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
19430 $as_echo "$pkgconfig_libdir" >&6; }
19431 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
19433 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
19434
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
19437 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
19438 test ".$pkgconfig_libfile" != "." || \
19439 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
19440 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
19441 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
19443 $as_echo "$pkgconfig_libfile" >&6; }
19444 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
19446 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
19447
19448
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
19450 $as_echo_n "checking our package / suffix... " >&6; }
19451 ax_create_pkgconfig_suffix="$program_suffix"
19452 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
19454 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
19455
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
19457 $as_echo_n "checking our pkgconfig description... " >&6; }
19458 ax_create_pkgconfig_description="OpenSAML XMLTooling-C library"
19459 test ".$ax_create_pkgconfig_description" != "." || \
19460 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
19461 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19462 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
19464 $as_echo "$ax_create_pkgconfig_description" >&6; }
19465
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
19467 $as_echo_n "checking our pkgconfig requires... " >&6; }
19468 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
19469 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19470 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
19472 $as_echo "$ax_create_pkgconfig_requires" >&6; }
19473
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
19475 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
19476 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
19477 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
19478 ax_create_pkgconfig_libs="$XMLSEC_LIBS -lxmltooling"
19479 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19480 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
19482 $as_echo "$ax_create_pkgconfig_libs" >&6; }
19483
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
19485 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
19486 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
19487 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19488 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
19490 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
19491
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
19493 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
19494 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
19495 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19496 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
19498 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
19499
19500 test ".$ax_create_pkgconfig_generate" != "." || \
19501 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
19502 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19503 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19504 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
19506 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
19507
19508 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
19509 ax_create_pkgconfig_src_libdir=`pwd`
19510 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
19511 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19512          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
19513          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
19514          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
19515 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
19516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19517             s//\1/
19518             q
19519           }
19520           /^X\(\/\/\)[^/].*/{
19521             s//\1/
19522             q
19523           }
19524           /^X\(\/\/\)$/{
19525             s//\1/
19526             q
19527           }
19528           /^X\(\/\).*/{
19529             s//\1/
19530             q
19531           }
19532           s/.*/./; q'`
19533 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19534 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19535 case ".$objdir" in
19536 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19538 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19539 fi
19540
19541 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19542 ax_create_pkgconfig_src_headers=`pwd`
19543 v="$ac_top_srcdir" ;
19544 test ".$v" != "." || v="$ax_spec_dir"
19545 test ".$v" != "." || v="$srcdir"
19546 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19547 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19548 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19549          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19550          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19551          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19552 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19554             s//\1/
19555             q
19556           }
19557           /^X\(\/\/\)[^/].*/{
19558             s//\1/
19559             q
19560           }
19561           /^X\(\/\/\)$/{
19562             s//\1/
19563             q
19564           }
19565           /^X\(\/\).*/{
19566             s//\1/
19567             q
19568           }
19569           s/.*/./; q'`
19570 test ! -d $ax_create_pkgconfig_src_headers/include || \
19571 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19573 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19574 fi
19575
19576
19577 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19578
19579
19580 LIBTOOL="$LIBTOOL --silent"
19581
19582 # output packaging and makefiles
19583 cat >confcache <<\_ACEOF
19584 # This file is a shell script that caches the results of configure
19585 # tests run on this system so they can be shared between configure
19586 # scripts and configure runs, see configure's option --config-cache.
19587 # It is not useful on other systems.  If it contains results you don't
19588 # want to keep, you may remove or edit it.
19589 #
19590 # config.status only pays attention to the cache file if you give it
19591 # the --recheck option to rerun configure.
19592 #
19593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19595 # following values.
19596
19597 _ACEOF
19598
19599 # The following way of writing the cache mishandles newlines in values,
19600 # but we know of no workaround that is simple, portable, and efficient.
19601 # So, we kill variables containing newlines.
19602 # Ultrix sh set writes to stderr and can't be redirected directly,
19603 # and sets the high bit in the cache file unless we assign to the vars.
19604 (
19605   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19606     eval ac_val=\$$ac_var
19607     case $ac_val in #(
19608     *${as_nl}*)
19609       case $ac_var in #(
19610       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19612       esac
19613       case $ac_var in #(
19614       _ | IFS | as_nl) ;; #(
19615       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19616       *) { eval $ac_var=; unset $ac_var;} ;;
19617       esac ;;
19618     esac
19619   done
19620
19621   (set) 2>&1 |
19622     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19623     *${as_nl}ac_space=\ *)
19624       # `set' does not quote correctly, so add quotes: double-quote
19625       # substitution turns \\\\ into \\, and sed turns \\ into \.
19626       sed -n \
19627         "s/'/'\\\\''/g;
19628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19629       ;; #(
19630     *)
19631       # `set' quotes correctly as required by POSIX, so do not add quotes.
19632       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19633       ;;
19634     esac |
19635     sort
19636 ) |
19637   sed '
19638      /^ac_cv_env_/b end
19639      t clear
19640      :clear
19641      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19642      t end
19643      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19644      :end' >>confcache
19645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19646   if test -w "$cache_file"; then
19647     test "x$cache_file" != "x/dev/null" &&
19648       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19649 $as_echo "$as_me: updating cache $cache_file" >&6;}
19650     cat confcache >$cache_file
19651   else
19652     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19653 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19654   fi
19655 fi
19656 rm -f confcache
19657
19658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19659 # Let make expand exec_prefix.
19660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19661
19662 DEFS=-DHAVE_CONFIG_H
19663
19664 ac_libobjs=
19665 ac_ltlibobjs=
19666 U=
19667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19668   # 1. Remove the extension, and $U if already installed.
19669   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19670   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19671   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19672   #    will be set to the directory where LIBOBJS objects are built.
19673   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19674   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19675 done
19676 LIBOBJS=$ac_libobjs
19677
19678 LTLIBOBJS=$ac_ltlibobjs
19679
19680
19681  if test -n "$EXEEXT"; then
19682   am__EXEEXT_TRUE=
19683   am__EXEEXT_FALSE='#'
19684 else
19685   am__EXEEXT_TRUE='#'
19686   am__EXEEXT_FALSE=
19687 fi
19688
19689 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19690   as_fn_error $? "conditional \"AMDEP\" was never defined.
19691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19692 fi
19693 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19694   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19696 fi
19697 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19698   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19700 fi
19701 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19702   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19704 fi
19705 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19706   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19708 fi
19709 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19710   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19712 fi
19713 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19714   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19716 fi
19717 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19718   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19720 fi
19721 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19722   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19724 fi
19725 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19726   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19728 fi
19729 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19730   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19732 fi
19733 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19734   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19736 fi
19737 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19738   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19740 fi
19741 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19742   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19744 fi
19745 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19746   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19748 fi
19749 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19750   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19752 fi
19753 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19754   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19756 fi
19757 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19758   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19760 fi
19761 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19762   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19764 fi
19765 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19766   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19768 fi
19769 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19770   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19772 fi
19773 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19774   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19776 fi
19777 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19778   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19780 fi
19781 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19782   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19784 fi
19785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19786   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19788 fi
19789 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19790   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19792 fi
19793 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19794   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19796 fi
19797 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
19798   as_fn_error $? "conditional \"BUILD_PTHREAD\" was never defined.
19799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19800 fi
19801 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
19802   as_fn_error $? "conditional \"BUILD_XMLSEC\" was never defined.
19803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19804 fi
19805 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19806   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19808 fi
19809
19810 : ${CONFIG_STATUS=./config.status}
19811 ac_write_fail=0
19812 ac_clean_files_save=$ac_clean_files
19813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19815 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19816 as_write_fail=0
19817 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19818 #! $SHELL
19819 # Generated by $as_me.
19820 # Run this file to recreate the current configuration.
19821 # Compiler output produced by configure, useful for debugging
19822 # configure, is in config.log if it exists.
19823
19824 debug=false
19825 ac_cs_recheck=false
19826 ac_cs_silent=false
19827
19828 SHELL=\${CONFIG_SHELL-$SHELL}
19829 export SHELL
19830 _ASEOF
19831 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19832 ## -------------------- ##
19833 ## M4sh Initialization. ##
19834 ## -------------------- ##
19835
19836 # Be more Bourne compatible
19837 DUALCASE=1; export DUALCASE # for MKS sh
19838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19839   emulate sh
19840   NULLCMD=:
19841   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19842   # is contrary to our usage.  Disable this feature.
19843   alias -g '${1+"$@"}'='"$@"'
19844   setopt NO_GLOB_SUBST
19845 else
19846   case `(set -o) 2>/dev/null` in #(
19847   *posix*) :
19848     set -o posix ;; #(
19849   *) :
19850      ;;
19851 esac
19852 fi
19853
19854
19855 as_nl='
19856 '
19857 export as_nl
19858 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19859 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19862 # Prefer a ksh shell builtin over an external printf program on Solaris,
19863 # but without wasting forks for bash or zsh.
19864 if test -z "$BASH_VERSION$ZSH_VERSION" \
19865     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19866   as_echo='print -r --'
19867   as_echo_n='print -rn --'
19868 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19869   as_echo='printf %s\n'
19870   as_echo_n='printf %s'
19871 else
19872   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19873     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19874     as_echo_n='/usr/ucb/echo -n'
19875   else
19876     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19877     as_echo_n_body='eval
19878       arg=$1;
19879       case $arg in #(
19880       *"$as_nl"*)
19881         expr "X$arg" : "X\\(.*\\)$as_nl";
19882         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19883       esac;
19884       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19885     '
19886     export as_echo_n_body
19887     as_echo_n='sh -c $as_echo_n_body as_echo'
19888   fi
19889   export as_echo_body
19890   as_echo='sh -c $as_echo_body as_echo'
19891 fi
19892
19893 # The user is always right.
19894 if test "${PATH_SEPARATOR+set}" != set; then
19895   PATH_SEPARATOR=:
19896   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19897     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19898       PATH_SEPARATOR=';'
19899   }
19900 fi
19901
19902
19903 # IFS
19904 # We need space, tab and new line, in precisely that order.  Quoting is
19905 # there to prevent editors from complaining about space-tab.
19906 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19907 # splitting by setting IFS to empty value.)
19908 IFS=" ""        $as_nl"
19909
19910 # Find who we are.  Look in the path if we contain no directory separator.
19911 case $0 in #((
19912   *[\\/]* ) as_myself=$0 ;;
19913   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19914 for as_dir in $PATH
19915 do
19916   IFS=$as_save_IFS
19917   test -z "$as_dir" && as_dir=.
19918     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19919   done
19920 IFS=$as_save_IFS
19921
19922      ;;
19923 esac
19924 # We did not find ourselves, most probably we were run as `sh COMMAND'
19925 # in which case we are not to be found in the path.
19926 if test "x$as_myself" = x; then
19927   as_myself=$0
19928 fi
19929 if test ! -f "$as_myself"; then
19930   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19931   exit 1
19932 fi
19933
19934 # Unset variables that we do not need and which cause bugs (e.g. in
19935 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19936 # suppresses any "Segmentation fault" message there.  '((' could
19937 # trigger a bug in pdksh 5.2.14.
19938 for as_var in BASH_ENV ENV MAIL MAILPATH
19939 do eval test x\${$as_var+set} = xset \
19940   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19941 done
19942 PS1='$ '
19943 PS2='> '
19944 PS4='+ '
19945
19946 # NLS nuisances.
19947 LC_ALL=C
19948 export LC_ALL
19949 LANGUAGE=C
19950 export LANGUAGE
19951
19952 # CDPATH.
19953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19954
19955
19956 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19957 # ----------------------------------------
19958 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19959 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19960 # script with STATUS, using 1 if that was 0.
19961 as_fn_error ()
19962 {
19963   as_status=$1; test $as_status -eq 0 && as_status=1
19964   if test "$4"; then
19965     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19966     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19967   fi
19968   $as_echo "$as_me: error: $2" >&2
19969   as_fn_exit $as_status
19970 } # as_fn_error
19971
19972
19973 # as_fn_set_status STATUS
19974 # -----------------------
19975 # Set $? to STATUS, without forking.
19976 as_fn_set_status ()
19977 {
19978   return $1
19979 } # as_fn_set_status
19980
19981 # as_fn_exit STATUS
19982 # -----------------
19983 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19984 as_fn_exit ()
19985 {
19986   set +e
19987   as_fn_set_status $1
19988   exit $1
19989 } # as_fn_exit
19990
19991 # as_fn_unset VAR
19992 # ---------------
19993 # Portably unset VAR.
19994 as_fn_unset ()
19995 {
19996   { eval $1=; unset $1;}
19997 }
19998 as_unset=as_fn_unset
19999 # as_fn_append VAR VALUE
20000 # ----------------------
20001 # Append the text in VALUE to the end of the definition contained in VAR. Take
20002 # advantage of any shell optimizations that allow amortized linear growth over
20003 # repeated appends, instead of the typical quadratic growth present in naive
20004 # implementations.
20005 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20006   eval 'as_fn_append ()
20007   {
20008     eval $1+=\$2
20009   }'
20010 else
20011   as_fn_append ()
20012   {
20013     eval $1=\$$1\$2
20014   }
20015 fi # as_fn_append
20016
20017 # as_fn_arith ARG...
20018 # ------------------
20019 # Perform arithmetic evaluation on the ARGs, and store the result in the
20020 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20021 # must be portable across $(()) and expr.
20022 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20023   eval 'as_fn_arith ()
20024   {
20025     as_val=$(( $* ))
20026   }'
20027 else
20028   as_fn_arith ()
20029   {
20030     as_val=`expr "$@" || test $? -eq 1`
20031   }
20032 fi # as_fn_arith
20033
20034
20035 if expr a : '\(a\)' >/dev/null 2>&1 &&
20036    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20037   as_expr=expr
20038 else
20039   as_expr=false
20040 fi
20041
20042 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20043   as_basename=basename
20044 else
20045   as_basename=false
20046 fi
20047
20048 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20049   as_dirname=dirname
20050 else
20051   as_dirname=false
20052 fi
20053
20054 as_me=`$as_basename -- "$0" ||
20055 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20056          X"$0" : 'X\(//\)$' \| \
20057          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20058 $as_echo X/"$0" |
20059     sed '/^.*\/\([^/][^/]*\)\/*$/{
20060             s//\1/
20061             q
20062           }
20063           /^X\/\(\/\/\)$/{
20064             s//\1/
20065             q
20066           }
20067           /^X\/\(\/\).*/{
20068             s//\1/
20069             q
20070           }
20071           s/.*/./; q'`
20072
20073 # Avoid depending upon Character Ranges.
20074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20077 as_cr_digits='0123456789'
20078 as_cr_alnum=$as_cr_Letters$as_cr_digits
20079
20080 ECHO_C= ECHO_N= ECHO_T=
20081 case `echo -n x` in #(((((
20082 -n*)
20083   case `echo 'xy\c'` in
20084   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20085   xy)  ECHO_C='\c';;
20086   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20087        ECHO_T=' ';;
20088   esac;;
20089 *)
20090   ECHO_N='-n';;
20091 esac
20092
20093 rm -f conf$$ conf$$.exe conf$$.file
20094 if test -d conf$$.dir; then
20095   rm -f conf$$.dir/conf$$.file
20096 else
20097   rm -f conf$$.dir
20098   mkdir conf$$.dir 2>/dev/null
20099 fi
20100 if (echo >conf$$.file) 2>/dev/null; then
20101   if ln -s conf$$.file conf$$ 2>/dev/null; then
20102     as_ln_s='ln -s'
20103     # ... but there are two gotchas:
20104     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20105     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20106     # In both cases, we have to default to `cp -p'.
20107     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20108       as_ln_s='cp -p'
20109   elif ln conf$$.file conf$$ 2>/dev/null; then
20110     as_ln_s=ln
20111   else
20112     as_ln_s='cp -p'
20113   fi
20114 else
20115   as_ln_s='cp -p'
20116 fi
20117 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20118 rmdir conf$$.dir 2>/dev/null
20119
20120
20121 # as_fn_mkdir_p
20122 # -------------
20123 # Create "$as_dir" as a directory, including parents if necessary.
20124 as_fn_mkdir_p ()
20125 {
20126
20127   case $as_dir in #(
20128   -*) as_dir=./$as_dir;;
20129   esac
20130   test -d "$as_dir" || eval $as_mkdir_p || {
20131     as_dirs=
20132     while :; do
20133       case $as_dir in #(
20134       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20135       *) as_qdir=$as_dir;;
20136       esac
20137       as_dirs="'$as_qdir' $as_dirs"
20138       as_dir=`$as_dirname -- "$as_dir" ||
20139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20140          X"$as_dir" : 'X\(//\)[^/]' \| \
20141          X"$as_dir" : 'X\(//\)$' \| \
20142          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20143 $as_echo X"$as_dir" |
20144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20145             s//\1/
20146             q
20147           }
20148           /^X\(\/\/\)[^/].*/{
20149             s//\1/
20150             q
20151           }
20152           /^X\(\/\/\)$/{
20153             s//\1/
20154             q
20155           }
20156           /^X\(\/\).*/{
20157             s//\1/
20158             q
20159           }
20160           s/.*/./; q'`
20161       test -d "$as_dir" && break
20162     done
20163     test -z "$as_dirs" || eval "mkdir $as_dirs"
20164   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20165
20166
20167 } # as_fn_mkdir_p
20168 if mkdir -p . 2>/dev/null; then
20169   as_mkdir_p='mkdir -p "$as_dir"'
20170 else
20171   test -d ./-p && rmdir ./-p
20172   as_mkdir_p=false
20173 fi
20174
20175 if test -x / >/dev/null 2>&1; then
20176   as_test_x='test -x'
20177 else
20178   if ls -dL / >/dev/null 2>&1; then
20179     as_ls_L_option=L
20180   else
20181     as_ls_L_option=
20182   fi
20183   as_test_x='
20184     eval sh -c '\''
20185       if test -d "$1"; then
20186         test -d "$1/.";
20187       else
20188         case $1 in #(
20189         -*)set "./$1";;
20190         esac;
20191         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20192         ???[sx]*):;;*)false;;esac;fi
20193     '\'' sh
20194   '
20195 fi
20196 as_executable_p=$as_test_x
20197
20198 # Sed expression to map a string onto a valid CPP name.
20199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20200
20201 # Sed expression to map a string onto a valid variable name.
20202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20203
20204
20205 exec 6>&1
20206 ## ----------------------------------- ##
20207 ## Main body of $CONFIG_STATUS script. ##
20208 ## ----------------------------------- ##
20209 _ASEOF
20210 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20211
20212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20213 # Save the log message, to keep $0 and so on meaningful, and to
20214 # report actual input values of CONFIG_FILES etc. instead of their
20215 # values after options handling.
20216 ac_log="
20217 This file was extended by xmltooling $as_me 1.5.1, which was
20218 generated by GNU Autoconf 2.67.  Invocation command line was
20219
20220   CONFIG_FILES    = $CONFIG_FILES
20221   CONFIG_HEADERS  = $CONFIG_HEADERS
20222   CONFIG_LINKS    = $CONFIG_LINKS
20223   CONFIG_COMMANDS = $CONFIG_COMMANDS
20224   $ $0 $@
20225
20226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20227 "
20228
20229 _ACEOF
20230
20231 case $ac_config_files in *"
20232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20233 esac
20234
20235 case $ac_config_headers in *"
20236 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20237 esac
20238
20239
20240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20241 # Files that config.status was made for.
20242 config_files="$ac_config_files"
20243 config_headers="$ac_config_headers"
20244 config_commands="$ac_config_commands"
20245
20246 _ACEOF
20247
20248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20249 ac_cs_usage="\
20250 \`$as_me' instantiates files and other configuration actions
20251 from templates according to the current configuration.  Unless the files
20252 and actions are specified as TAGs, all are instantiated by default.
20253
20254 Usage: $0 [OPTION]... [TAG]...
20255
20256   -h, --help       print this help, then exit
20257   -V, --version    print version number and configuration settings, then exit
20258       --config     print configuration, then exit
20259   -q, --quiet, --silent
20260                    do not print progress messages
20261   -d, --debug      don't remove temporary files
20262       --recheck    update $as_me by reconfiguring in the same conditions
20263       --file=FILE[:TEMPLATE]
20264                    instantiate the configuration file FILE
20265       --header=FILE[:TEMPLATE]
20266                    instantiate the configuration header FILE
20267
20268 Configuration files:
20269 $config_files
20270
20271 Configuration headers:
20272 $config_headers
20273
20274 Configuration commands:
20275 $config_commands
20276
20277 Report bugs to <https://issues.shibboleth.net/>."
20278
20279 _ACEOF
20280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20281 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20282 ac_cs_version="\\
20283 xmltooling config.status 1.5.1
20284 configured by $0, generated by GNU Autoconf 2.67,
20285   with options \\"\$ac_cs_config\\"
20286
20287 Copyright (C) 2010 Free Software Foundation, Inc.
20288 This config.status script is free software; the Free Software Foundation
20289 gives unlimited permission to copy, distribute and modify it."
20290
20291 ac_pwd='$ac_pwd'
20292 srcdir='$srcdir'
20293 INSTALL='$INSTALL'
20294 MKDIR_P='$MKDIR_P'
20295 AWK='$AWK'
20296 test -n "\$AWK" || AWK=awk
20297 _ACEOF
20298
20299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20300 # The default lists apply if the user does not specify any file.
20301 ac_need_defaults=:
20302 while test $# != 0
20303 do
20304   case $1 in
20305   --*=?*)
20306     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20307     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20308     ac_shift=:
20309     ;;
20310   --*=)
20311     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20312     ac_optarg=
20313     ac_shift=:
20314     ;;
20315   *)
20316     ac_option=$1
20317     ac_optarg=$2
20318     ac_shift=shift
20319     ;;
20320   esac
20321
20322   case $ac_option in
20323   # Handling of the options.
20324   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20325     ac_cs_recheck=: ;;
20326   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20327     $as_echo "$ac_cs_version"; exit ;;
20328   --config | --confi | --conf | --con | --co | --c )
20329     $as_echo "$ac_cs_config"; exit ;;
20330   --debug | --debu | --deb | --de | --d | -d )
20331     debug=: ;;
20332   --file | --fil | --fi | --f )
20333     $ac_shift
20334     case $ac_optarg in
20335     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20336     '') as_fn_error $? "missing file argument" ;;
20337     esac
20338     as_fn_append CONFIG_FILES " '$ac_optarg'"
20339     ac_need_defaults=false;;
20340   --header | --heade | --head | --hea )
20341     $ac_shift
20342     case $ac_optarg in
20343     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20344     esac
20345     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20346     ac_need_defaults=false;;
20347   --he | --h)
20348     # Conflict between --help and --header
20349     as_fn_error $? "ambiguous option: \`$1'
20350 Try \`$0 --help' for more information.";;
20351   --help | --hel | -h )
20352     $as_echo "$ac_cs_usage"; exit ;;
20353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20354   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20355     ac_cs_silent=: ;;
20356
20357   # This is an error.
20358   -*) as_fn_error $? "unrecognized option: \`$1'
20359 Try \`$0 --help' for more information." ;;
20360
20361   *) as_fn_append ac_config_targets " $1"
20362      ac_need_defaults=false ;;
20363
20364   esac
20365   shift
20366 done
20367
20368 ac_configure_extra_args=
20369
20370 if $ac_cs_silent; then
20371   exec 6>/dev/null
20372   ac_configure_extra_args="$ac_configure_extra_args --silent"
20373 fi
20374
20375 _ACEOF
20376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20377 if \$ac_cs_recheck; then
20378   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20379   shift
20380   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20381   CONFIG_SHELL='$SHELL'
20382   export CONFIG_SHELL
20383   exec "\$@"
20384 fi
20385
20386 _ACEOF
20387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20388 exec 5>>config.log
20389 {
20390   echo
20391   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20392 ## Running $as_me. ##
20393 _ASBOX
20394   $as_echo "$ac_log"
20395 } >&5
20396
20397 _ACEOF
20398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20399 #
20400 # INIT-COMMANDS
20401 #
20402 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20403
20404
20405 # The HP-UX ksh and POSIX shell print the target directory to stdout
20406 # if CDPATH is set.
20407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20408
20409 sed_quote_subst='$sed_quote_subst'
20410 double_quote_subst='$double_quote_subst'
20411 delay_variable_subst='$delay_variable_subst'
20412 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20413 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20414 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20415 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20416 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20417 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20418 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20419 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20420 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20421 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20422 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20423 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20424 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20425 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20426 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20427 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20428 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20429 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20430 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20431 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20432 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20433 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20434 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20435 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20436 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20437 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20438 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20439 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20440 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20441 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20442 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20443 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20444 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20445 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20446 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20447 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20448 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20449 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20450 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20451 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20452 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20453 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20454 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20457 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20458 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20459 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20460 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20461 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20462 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20463 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20464 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20465 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20466 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20467 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20468 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20469 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20470 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20471 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20472 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20473 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20474 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20475 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20476 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20477 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20478 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20479 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20480 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20481 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20482 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20483 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20484 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20485 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20486 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20487 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20488 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20489 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20490 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20491 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20492 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20493 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20494 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20495 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20496 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20497 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20498 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20499 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20500 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20501 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20502 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20503 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20504 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20505 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20506 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20507 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20508 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20509 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20510 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20511 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20512 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20513 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20514 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20515 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20516 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20517 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20518 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20519 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20520 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20521 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20522 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20523 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20524 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20525 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20526 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20527 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20528 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20529 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20530 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20531 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20532 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20533 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20534 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20535 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20536 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20537 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20538 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20539 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20540 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20541 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20542 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20543 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20544 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20545 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20546 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20547 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20548 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20549 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20550 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20551 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20552 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20553 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20554 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20555 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20556 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20557 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20558 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20559 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20560 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20561 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20562 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20563 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20564 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20565 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20566 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20567 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20568 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20569 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20570 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20571 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20572 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20573 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20574 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20575 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20576 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20577 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20578 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20579 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20580 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20581 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20582 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20583
20584 LTCC='$LTCC'
20585 LTCFLAGS='$LTCFLAGS'
20586 compiler='$compiler_DEFAULT'
20587
20588 # Quote evaled strings.
20589 for var in SED \
20590 GREP \
20591 EGREP \
20592 FGREP \
20593 LD \
20594 NM \
20595 LN_S \
20596 lt_SP2NL \
20597 lt_NL2SP \
20598 reload_flag \
20599 OBJDUMP \
20600 deplibs_check_method \
20601 file_magic_cmd \
20602 AR \
20603 AR_FLAGS \
20604 STRIP \
20605 RANLIB \
20606 CC \
20607 CFLAGS \
20608 compiler \
20609 lt_cv_sys_global_symbol_pipe \
20610 lt_cv_sys_global_symbol_to_cdecl \
20611 lt_cv_sys_global_symbol_to_c_name_address \
20612 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20613 SHELL \
20614 ECHO \
20615 lt_prog_compiler_no_builtin_flag \
20616 lt_prog_compiler_wl \
20617 lt_prog_compiler_pic \
20618 lt_prog_compiler_static \
20619 lt_cv_prog_compiler_c_o \
20620 need_locks \
20621 DSYMUTIL \
20622 NMEDIT \
20623 LIPO \
20624 OTOOL \
20625 OTOOL64 \
20626 shrext_cmds \
20627 export_dynamic_flag_spec \
20628 whole_archive_flag_spec \
20629 compiler_needs_object \
20630 with_gnu_ld \
20631 allow_undefined_flag \
20632 no_undefined_flag \
20633 hardcode_libdir_flag_spec \
20634 hardcode_libdir_flag_spec_ld \
20635 hardcode_libdir_separator \
20636 fix_srcfile_path \
20637 exclude_expsyms \
20638 include_expsyms \
20639 file_list_spec \
20640 variables_saved_for_relink \
20641 libname_spec \
20642 library_names_spec \
20643 soname_spec \
20644 finish_eval \
20645 old_striplib \
20646 striplib \
20647 compiler_lib_search_dirs \
20648 predep_objects \
20649 postdep_objects \
20650 predeps \
20651 postdeps \
20652 compiler_lib_search_path \
20653 LD_CXX \
20654 compiler_CXX \
20655 lt_prog_compiler_no_builtin_flag_CXX \
20656 lt_prog_compiler_wl_CXX \
20657 lt_prog_compiler_pic_CXX \
20658 lt_prog_compiler_static_CXX \
20659 lt_cv_prog_compiler_c_o_CXX \
20660 export_dynamic_flag_spec_CXX \
20661 whole_archive_flag_spec_CXX \
20662 compiler_needs_object_CXX \
20663 with_gnu_ld_CXX \
20664 allow_undefined_flag_CXX \
20665 no_undefined_flag_CXX \
20666 hardcode_libdir_flag_spec_CXX \
20667 hardcode_libdir_flag_spec_ld_CXX \
20668 hardcode_libdir_separator_CXX \
20669 fix_srcfile_path_CXX \
20670 exclude_expsyms_CXX \
20671 include_expsyms_CXX \
20672 file_list_spec_CXX \
20673 compiler_lib_search_dirs_CXX \
20674 predep_objects_CXX \
20675 postdep_objects_CXX \
20676 predeps_CXX \
20677 postdeps_CXX \
20678 compiler_lib_search_path_CXX; do
20679     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20680     *[\\\\\\\`\\"\\\$]*)
20681       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20682       ;;
20683     *)
20684       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20685       ;;
20686     esac
20687 done
20688
20689 # Double-quote double-evaled strings.
20690 for var in reload_cmds \
20691 old_postinstall_cmds \
20692 old_postuninstall_cmds \
20693 old_archive_cmds \
20694 extract_expsyms_cmds \
20695 old_archive_from_new_cmds \
20696 old_archive_from_expsyms_cmds \
20697 archive_cmds \
20698 archive_expsym_cmds \
20699 module_cmds \
20700 module_expsym_cmds \
20701 export_symbols_cmds \
20702 prelink_cmds \
20703 postinstall_cmds \
20704 postuninstall_cmds \
20705 finish_cmds \
20706 sys_lib_search_path_spec \
20707 sys_lib_dlsearch_path_spec \
20708 old_archive_cmds_CXX \
20709 old_archive_from_new_cmds_CXX \
20710 old_archive_from_expsyms_cmds_CXX \
20711 archive_cmds_CXX \
20712 archive_expsym_cmds_CXX \
20713 module_cmds_CXX \
20714 module_expsym_cmds_CXX \
20715 export_symbols_cmds_CXX \
20716 prelink_cmds_CXX; do
20717     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20718     *[\\\\\\\`\\"\\\$]*)
20719       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20720       ;;
20721     *)
20722       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20723       ;;
20724     esac
20725 done
20726
20727 # Fix-up fallback echo if it was mangled by the above quoting rules.
20728 case \$lt_ECHO in
20729 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20730   ;;
20731 esac
20732
20733 ac_aux_dir='$ac_aux_dir'
20734 xsi_shell='$xsi_shell'
20735 lt_shell_append='$lt_shell_append'
20736
20737 # See if we are running on zsh, and set the options which allow our
20738 # commands through without removal of \ escapes INIT.
20739 if test -n "\${ZSH_VERSION+set}" ; then
20740    setopt NO_GLOB_SUBST
20741 fi
20742
20743
20744     PACKAGE='$PACKAGE'
20745     VERSION='$VERSION'
20746     TIMESTAMP='$TIMESTAMP'
20747     RM='$RM'
20748     ofile='$ofile'
20749
20750
20751
20752
20753
20754
20755 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20756 pkgconfig_prefix='$prefix'
20757 pkgconfig_execprefix='$exec_prefix'
20758 pkgconfig_bindir='$bindir'
20759 pkgconfig_libdir='$libdir'
20760 pkgconfig_includedir='$includedir'
20761 pkgconfig_datarootdir='$datarootdir'
20762 pkgconfig_datadir='$datadir'
20763 pkgconfig_sysconfdir='$sysconfdir'
20764 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20765 pkgconfig_package='$PACKAGE_NAME'
20766 pkgconfig_libname='$ax_create_pkgconfig_libname'
20767 pkgconfig_description='$ax_create_pkgconfig_description'
20768 pkgconfig_version='$ax_create_pkgconfig_version'
20769 pkgconfig_requires='$ax_create_pkgconfig_requires'
20770 pkgconfig_libs='$ax_create_pkgconfig_libs'
20771 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20772 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20773 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20774 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20775
20776
20777 _ACEOF
20778
20779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780
20781 # Handling of arguments.
20782 for ac_config_target in $ac_config_targets
20783 do
20784   case $ac_config_target in
20785     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20786     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20787     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20788     "xmltooling/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
20789     "xmltooling.spec") CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
20790     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20791     "xmltooling/Makefile") CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
20792     "xmltoolingtest/Makefile") CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
20793     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20794     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20795     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
20796
20797   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20798   esac
20799 done
20800
20801
20802 # If the user did not use the arguments to specify the items to instantiate,
20803 # then the envvar interface is used.  Set only those that are not.
20804 # We use the long form for the default assignment because of an extremely
20805 # bizarre bug on SunOS 4.1.3.
20806 if $ac_need_defaults; then
20807   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20808   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20809   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20810 fi
20811
20812 # Have a temporary directory for convenience.  Make it in the build tree
20813 # simply because there is no reason against having it here, and in addition,
20814 # creating and moving files from /tmp can sometimes cause problems.
20815 # Hook for its removal unless debugging.
20816 # Note that there is a small window in which the directory will not be cleaned:
20817 # after its creation but before its name has been assigned to `$tmp'.
20818 $debug ||
20819 {
20820   tmp=
20821   trap 'exit_status=$?
20822   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20823 ' 0
20824   trap 'as_fn_exit 1' 1 2 13 15
20825 }
20826 # Create a (secure) tmp directory for tmp files.
20827
20828 {
20829   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20830   test -n "$tmp" && test -d "$tmp"
20831 }  ||
20832 {
20833   tmp=./conf$$-$RANDOM
20834   (umask 077 && mkdir "$tmp")
20835 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20836
20837 # Set up the scripts for CONFIG_FILES section.
20838 # No need to generate them if there are no CONFIG_FILES.
20839 # This happens for instance with `./config.status config.h'.
20840 if test -n "$CONFIG_FILES"; then
20841
20842
20843 ac_cr=`echo X | tr X '\015'`
20844 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20845 # But we know of no other shell where ac_cr would be empty at this
20846 # point, so we can use a bashism as a fallback.
20847 if test "x$ac_cr" = x; then
20848   eval ac_cr=\$\'\\r\'
20849 fi
20850 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20851 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20852   ac_cs_awk_cr='\\r'
20853 else
20854   ac_cs_awk_cr=$ac_cr
20855 fi
20856
20857 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20858 _ACEOF
20859
20860
20861 {
20862   echo "cat >conf$$subs.awk <<_ACEOF" &&
20863   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20864   echo "_ACEOF"
20865 } >conf$$subs.sh ||
20866   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20867 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20868 ac_delim='%!_!# '
20869 for ac_last_try in false false false false false :; do
20870   . ./conf$$subs.sh ||
20871     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20872
20873   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20874   if test $ac_delim_n = $ac_delim_num; then
20875     break
20876   elif $ac_last_try; then
20877     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20878   else
20879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20880   fi
20881 done
20882 rm -f conf$$subs.sh
20883
20884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20885 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20886 _ACEOF
20887 sed -n '
20888 h
20889 s/^/S["/; s/!.*/"]=/
20890 p
20891 g
20892 s/^[^!]*!//
20893 :repl
20894 t repl
20895 s/'"$ac_delim"'$//
20896 t delim
20897 :nl
20898 h
20899 s/\(.\{148\}\)..*/\1/
20900 t more1
20901 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20902 p
20903 n
20904 b repl
20905 :more1
20906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20907 p
20908 g
20909 s/.\{148\}//
20910 t nl
20911 :delim
20912 h
20913 s/\(.\{148\}\)..*/\1/
20914 t more2
20915 s/["\\]/\\&/g; s/^/"/; s/$/"/
20916 p
20917 b
20918 :more2
20919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20920 p
20921 g
20922 s/.\{148\}//
20923 t delim
20924 ' <conf$$subs.awk | sed '
20925 /^[^""]/{
20926   N
20927   s/\n//
20928 }
20929 ' >>$CONFIG_STATUS || ac_write_fail=1
20930 rm -f conf$$subs.awk
20931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20932 _ACAWK
20933 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20934   for (key in S) S_is_set[key] = 1
20935   FS = "\a"
20936
20937 }
20938 {
20939   line = $ 0
20940   nfields = split(line, field, "@")
20941   substed = 0
20942   len = length(field[1])
20943   for (i = 2; i < nfields; i++) {
20944     key = field[i]
20945     keylen = length(key)
20946     if (S_is_set[key]) {
20947       value = S[key]
20948       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20949       len += length(value) + length(field[++i])
20950       substed = 1
20951     } else
20952       len += 1 + keylen
20953   }
20954
20955   print line
20956 }
20957
20958 _ACAWK
20959 _ACEOF
20960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20961 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20962   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20963 else
20964   cat
20965 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20966   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20967 _ACEOF
20968
20969 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20970 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20971 # trailing colons and then remove the whole line if VPATH becomes empty
20972 # (actually we leave an empty line to preserve line numbers).
20973 if test "x$srcdir" = x.; then
20974   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20975 h
20976 s///
20977 s/^/:/
20978 s/[      ]*$/:/
20979 s/:\$(srcdir):/:/g
20980 s/:\${srcdir}:/:/g
20981 s/:@srcdir@:/:/g
20982 s/^:*//
20983 s/:*$//
20984 x
20985 s/\(=[   ]*\).*/\1/
20986 G
20987 s/\n//
20988 s/^[^=]*=[       ]*$//
20989 }'
20990 fi
20991
20992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20993 fi # test -n "$CONFIG_FILES"
20994
20995 # Set up the scripts for CONFIG_HEADERS section.
20996 # No need to generate them if there are no CONFIG_HEADERS.
20997 # This happens for instance with `./config.status Makefile'.
20998 if test -n "$CONFIG_HEADERS"; then
20999 cat >"$tmp/defines.awk" <<\_ACAWK ||
21000 BEGIN {
21001 _ACEOF
21002
21003 # Transform confdefs.h into an awk script `defines.awk', embedded as
21004 # here-document in config.status, that substitutes the proper values into
21005 # config.h.in to produce config.h.
21006
21007 # Create a delimiter string that does not exist in confdefs.h, to ease
21008 # handling of long lines.
21009 ac_delim='%!_!# '
21010 for ac_last_try in false false :; do
21011   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21012   if test -z "$ac_t"; then
21013     break
21014   elif $ac_last_try; then
21015     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21016   else
21017     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21018   fi
21019 done
21020
21021 # For the awk script, D is an array of macro values keyed by name,
21022 # likewise P contains macro parameters if any.  Preserve backslash
21023 # newline sequences.
21024
21025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21026 sed -n '
21027 s/.\{148\}/&'"$ac_delim"'/g
21028 t rset
21029 :rset
21030 s/^[     ]*#[    ]*define[       ][      ]*/ /
21031 t def
21032 d
21033 :def
21034 s/\\$//
21035 t bsnl
21036 s/["\\]/\\&/g
21037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21038 D["\1"]=" \3"/p
21039 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21040 d
21041 :bsnl
21042 s/["\\]/\\&/g
21043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21044 D["\1"]=" \3\\\\\\n"\\/p
21045 t cont
21046 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21047 t cont
21048 d
21049 :cont
21050 n
21051 s/.\{148\}/&'"$ac_delim"'/g
21052 t clear
21053 :clear
21054 s/\\$//
21055 t bsnlc
21056 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21057 d
21058 :bsnlc
21059 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21060 b cont
21061 ' <confdefs.h | sed '
21062 s/'"$ac_delim"'/"\\\
21063 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21064
21065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21066   for (key in D) D_is_set[key] = 1
21067   FS = "\a"
21068 }
21069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21070   line = \$ 0
21071   split(line, arg, " ")
21072   if (arg[1] == "#") {
21073     defundef = arg[2]
21074     mac1 = arg[3]
21075   } else {
21076     defundef = substr(arg[1], 2)
21077     mac1 = arg[2]
21078   }
21079   split(mac1, mac2, "(") #)
21080   macro = mac2[1]
21081   prefix = substr(line, 1, index(line, defundef) - 1)
21082   if (D_is_set[macro]) {
21083     # Preserve the white space surrounding the "#".
21084     print prefix "define", macro P[macro] D[macro]
21085     next
21086   } else {
21087     # Replace #undef with comments.  This is necessary, for example,
21088     # in the case of _POSIX_SOURCE, which is predefined and required
21089     # on some systems where configure will not decide to define it.
21090     if (defundef == "undef") {
21091       print "/*", prefix defundef, macro, "*/"
21092       next
21093     }
21094   }
21095 }
21096 { print }
21097 _ACAWK
21098 _ACEOF
21099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21100   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21101 fi # test -n "$CONFIG_HEADERS"
21102
21103
21104 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21105 shift
21106 for ac_tag
21107 do
21108   case $ac_tag in
21109   :[FHLC]) ac_mode=$ac_tag; continue;;
21110   esac
21111   case $ac_mode$ac_tag in
21112   :[FHL]*:*);;
21113   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
21114   :[FH]-) ac_tag=-:-;;
21115   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21116   esac
21117   ac_save_IFS=$IFS
21118   IFS=:
21119   set x $ac_tag
21120   IFS=$ac_save_IFS
21121   shift
21122   ac_file=$1
21123   shift
21124
21125   case $ac_mode in
21126   :L) ac_source=$1;;
21127   :[FH])
21128     ac_file_inputs=
21129     for ac_f
21130     do
21131       case $ac_f in
21132       -) ac_f="$tmp/stdin";;
21133       *) # Look for the file first in the build tree, then in the source tree
21134          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21135          # because $ac_f cannot contain `:'.
21136          test -f "$ac_f" ||
21137            case $ac_f in
21138            [\\/$]*) false;;
21139            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21140            esac ||
21141            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
21142       esac
21143       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21144       as_fn_append ac_file_inputs " '$ac_f'"
21145     done
21146
21147     # Let's still pretend it is `configure' which instantiates (i.e., don't
21148     # use $as_me), people would be surprised to read:
21149     #    /* config.h.  Generated by config.status.  */
21150     configure_input='Generated from '`
21151           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21152         `' by configure.'
21153     if test x"$ac_file" != x-; then
21154       configure_input="$ac_file.  $configure_input"
21155       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21156 $as_echo "$as_me: creating $ac_file" >&6;}
21157     fi
21158     # Neutralize special characters interpreted by sed in replacement strings.
21159     case $configure_input in #(
21160     *\&* | *\|* | *\\* )
21161        ac_sed_conf_input=`$as_echo "$configure_input" |
21162        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21163     *) ac_sed_conf_input=$configure_input;;
21164     esac
21165
21166     case $ac_tag in
21167     *:-:* | *:-) cat >"$tmp/stdin" \
21168       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
21169     esac
21170     ;;
21171   esac
21172
21173   ac_dir=`$as_dirname -- "$ac_file" ||
21174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21175          X"$ac_file" : 'X\(//\)[^/]' \| \
21176          X"$ac_file" : 'X\(//\)$' \| \
21177          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21178 $as_echo X"$ac_file" |
21179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21180             s//\1/
21181             q
21182           }
21183           /^X\(\/\/\)[^/].*/{
21184             s//\1/
21185             q
21186           }
21187           /^X\(\/\/\)$/{
21188             s//\1/
21189             q
21190           }
21191           /^X\(\/\).*/{
21192             s//\1/
21193             q
21194           }
21195           s/.*/./; q'`
21196   as_dir="$ac_dir"; as_fn_mkdir_p
21197   ac_builddir=.
21198
21199 case "$ac_dir" in
21200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21201 *)
21202   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21203   # A ".." for each directory in $ac_dir_suffix.
21204   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21205   case $ac_top_builddir_sub in
21206   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21207   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21208   esac ;;
21209 esac
21210 ac_abs_top_builddir=$ac_pwd
21211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21212 # for backward compatibility:
21213 ac_top_builddir=$ac_top_build_prefix
21214
21215 case $srcdir in
21216   .)  # We are building in place.
21217     ac_srcdir=.
21218     ac_top_srcdir=$ac_top_builddir_sub
21219     ac_abs_top_srcdir=$ac_pwd ;;
21220   [\\/]* | ?:[\\/]* )  # Absolute name.
21221     ac_srcdir=$srcdir$ac_dir_suffix;
21222     ac_top_srcdir=$srcdir
21223     ac_abs_top_srcdir=$srcdir ;;
21224   *) # Relative name.
21225     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21226     ac_top_srcdir=$ac_top_build_prefix$srcdir
21227     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21228 esac
21229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21230
21231
21232   case $ac_mode in
21233   :F)
21234   #
21235   # CONFIG_FILE
21236   #
21237
21238   case $INSTALL in
21239   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21240   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21241   esac
21242   ac_MKDIR_P=$MKDIR_P
21243   case $MKDIR_P in
21244   [\\/$]* | ?:[\\/]* ) ;;
21245   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21246   esac
21247 _ACEOF
21248
21249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21250 # If the template does not know about datarootdir, expand it.
21251 # FIXME: This hack should be removed a few years after 2.60.
21252 ac_datarootdir_hack=; ac_datarootdir_seen=
21253 ac_sed_dataroot='
21254 /datarootdir/ {
21255   p
21256   q
21257 }
21258 /@datadir@/p
21259 /@docdir@/p
21260 /@infodir@/p
21261 /@localedir@/p
21262 /@mandir@/p'
21263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21264 *datarootdir*) ac_datarootdir_seen=yes;;
21265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21266   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21268 _ACEOF
21269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21270   ac_datarootdir_hack='
21271   s&@datadir@&$datadir&g
21272   s&@docdir@&$docdir&g
21273   s&@infodir@&$infodir&g
21274   s&@localedir@&$localedir&g
21275   s&@mandir@&$mandir&g
21276   s&\\\${datarootdir}&$datarootdir&g' ;;
21277 esac
21278 _ACEOF
21279
21280 # Neutralize VPATH when `$srcdir' = `.'.
21281 # Shell code in configure.ac might set extrasub.
21282 # FIXME: do we really want to maintain this feature?
21283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21284 ac_sed_extra="$ac_vpsub
21285 $extrasub
21286 _ACEOF
21287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21288 :t
21289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21290 s|@configure_input@|$ac_sed_conf_input|;t t
21291 s&@top_builddir@&$ac_top_builddir_sub&;t t
21292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21293 s&@srcdir@&$ac_srcdir&;t t
21294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21295 s&@top_srcdir@&$ac_top_srcdir&;t t
21296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21297 s&@builddir@&$ac_builddir&;t t
21298 s&@abs_builddir@&$ac_abs_builddir&;t t
21299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21300 s&@INSTALL@&$ac_INSTALL&;t t
21301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21302 $ac_datarootdir_hack
21303 "
21304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21305   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21306
21307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21308   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21309   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21310   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21311 which seems to be undefined.  Please make sure it is defined" >&5
21312 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21313 which seems to be undefined.  Please make sure it is defined" >&2;}
21314
21315   rm -f "$tmp/stdin"
21316   case $ac_file in
21317   -) cat "$tmp/out" && rm -f "$tmp/out";;
21318   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21319   esac \
21320   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21321  ;;
21322   :H)
21323   #
21324   # CONFIG_HEADER
21325   #
21326   if test x"$ac_file" != x-; then
21327     {
21328       $as_echo "/* $configure_input  */" \
21329       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21330     } >"$tmp/config.h" \
21331       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21332     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21333       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21334 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21335     else
21336       rm -f "$ac_file"
21337       mv "$tmp/config.h" "$ac_file" \
21338         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21339     fi
21340   else
21341     $as_echo "/* $configure_input  */" \
21342       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21343       || as_fn_error $? "could not create -" "$LINENO" 5
21344   fi
21345 # Compute "$ac_file"'s index in $config_headers.
21346 _am_arg="$ac_file"
21347 _am_stamp_count=1
21348 for _am_header in $config_headers :; do
21349   case $_am_header in
21350     $_am_arg | $_am_arg:* )
21351       break ;;
21352     * )
21353       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21354   esac
21355 done
21356 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21357 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21358          X"$_am_arg" : 'X\(//\)[^/]' \| \
21359          X"$_am_arg" : 'X\(//\)$' \| \
21360          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21361 $as_echo X"$_am_arg" |
21362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21363             s//\1/
21364             q
21365           }
21366           /^X\(\/\/\)[^/].*/{
21367             s//\1/
21368             q
21369           }
21370           /^X\(\/\/\)$/{
21371             s//\1/
21372             q
21373           }
21374           /^X\(\/\).*/{
21375             s//\1/
21376             q
21377           }
21378           s/.*/./; q'`/stamp-h$_am_stamp_count
21379  ;;
21380
21381   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21382 $as_echo "$as_me: executing $ac_file commands" >&6;}
21383  ;;
21384   esac
21385
21386
21387   case $ac_file$ac_mode in
21388     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21389   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21390   # are listed without --file.  Let's play safe and only enable the eval
21391   # if we detect the quoting.
21392   case $CONFIG_FILES in
21393   *\'*) eval set x "$CONFIG_FILES" ;;
21394   *)   set x $CONFIG_FILES ;;
21395   esac
21396   shift
21397   for mf
21398   do
21399     # Strip MF so we end up with the name of the file.
21400     mf=`echo "$mf" | sed -e 's/:.*$//'`
21401     # Check whether this is an Automake generated Makefile or not.
21402     # We used to match only the files named `Makefile.in', but
21403     # some people rename them; so instead we look at the file content.
21404     # Grep'ing the first line is not enough: some people post-process
21405     # each Makefile.in and add a new line on top of each file to say so.
21406     # Grep'ing the whole file is not good either: AIX grep has a line
21407     # limit of 2048, but all sed's we know have understand at least 4000.
21408     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21409       dirpart=`$as_dirname -- "$mf" ||
21410 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21411          X"$mf" : 'X\(//\)[^/]' \| \
21412          X"$mf" : 'X\(//\)$' \| \
21413          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21414 $as_echo X"$mf" |
21415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21416             s//\1/
21417             q
21418           }
21419           /^X\(\/\/\)[^/].*/{
21420             s//\1/
21421             q
21422           }
21423           /^X\(\/\/\)$/{
21424             s//\1/
21425             q
21426           }
21427           /^X\(\/\).*/{
21428             s//\1/
21429             q
21430           }
21431           s/.*/./; q'`
21432     else
21433       continue
21434     fi
21435     # Extract the definition of DEPDIR, am__include, and am__quote
21436     # from the Makefile without running `make'.
21437     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21438     test -z "$DEPDIR" && continue
21439     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21440     test -z "am__include" && continue
21441     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21442     # When using ansi2knr, U may be empty or an underscore; expand it
21443     U=`sed -n 's/^U = //p' < "$mf"`
21444     # Find all dependency output files, they are included files with
21445     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21446     # simplest approach to changing $(DEPDIR) to its actual value in the
21447     # expansion.
21448     for file in `sed -n "
21449       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21450          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21451       # Make sure the directory exists.
21452       test -f "$dirpart/$file" && continue
21453       fdir=`$as_dirname -- "$file" ||
21454 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21455          X"$file" : 'X\(//\)[^/]' \| \
21456          X"$file" : 'X\(//\)$' \| \
21457          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21458 $as_echo X"$file" |
21459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21460             s//\1/
21461             q
21462           }
21463           /^X\(\/\/\)[^/].*/{
21464             s//\1/
21465             q
21466           }
21467           /^X\(\/\/\)$/{
21468             s//\1/
21469             q
21470           }
21471           /^X\(\/\).*/{
21472             s//\1/
21473             q
21474           }
21475           s/.*/./; q'`
21476       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21477       # echo "creating $dirpart/$file"
21478       echo '# dummy' > "$dirpart/$file"
21479     done
21480   done
21481 }
21482  ;;
21483     "libtool":C)
21484
21485     # See if we are running on zsh, and set the options which allow our
21486     # commands through without removal of \ escapes.
21487     if test -n "${ZSH_VERSION+set}" ; then
21488       setopt NO_GLOB_SUBST
21489     fi
21490
21491     cfgfile="${ofile}T"
21492     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21493     $RM "$cfgfile"
21494
21495     cat <<_LT_EOF >> "$cfgfile"
21496 #! $SHELL
21497
21498 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21499 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21501 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21502 #
21503 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21504 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21505 #   Written by Gordon Matzigkeit, 1996
21506 #
21507 #   This file is part of GNU Libtool.
21508 #
21509 # GNU Libtool is free software; you can redistribute it and/or
21510 # modify it under the terms of the GNU General Public License as
21511 # published by the Free Software Foundation; either version 2 of
21512 # the License, or (at your option) any later version.
21513 #
21514 # As a special exception to the GNU General Public License,
21515 # if you distribute this file as part of a program or library that
21516 # is built using GNU Libtool, you may include this file under the
21517 # same distribution terms that you use for the rest of that program.
21518 #
21519 # GNU Libtool is distributed in the hope that it will be useful,
21520 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21521 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21522 # GNU General Public License for more details.
21523 #
21524 # You should have received a copy of the GNU General Public License
21525 # along with GNU Libtool; see the file COPYING.  If not, a copy
21526 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21527 # obtained by writing to the Free Software Foundation, Inc.,
21528 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21529
21530
21531 # The names of the tagged configurations supported by this script.
21532 available_tags="CXX "
21533
21534 # ### BEGIN LIBTOOL CONFIG
21535
21536 # Whether or not to build static libraries.
21537 build_old_libs=$enable_static
21538
21539 # Which release of libtool.m4 was used?
21540 macro_version=$macro_version
21541 macro_revision=$macro_revision
21542
21543 # Whether or not to build shared libraries.
21544 build_libtool_libs=$enable_shared
21545
21546 # What type of objects to build.
21547 pic_mode=$pic_mode
21548
21549 # Whether or not to optimize for fast installation.
21550 fast_install=$enable_fast_install
21551
21552 # The host system.
21553 host_alias=$host_alias
21554 host=$host
21555 host_os=$host_os
21556
21557 # The build system.
21558 build_alias=$build_alias
21559 build=$build
21560 build_os=$build_os
21561
21562 # A sed program that does not truncate output.
21563 SED=$lt_SED
21564
21565 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21566 Xsed="\$SED -e 1s/^X//"
21567
21568 # A grep program that handles long lines.
21569 GREP=$lt_GREP
21570
21571 # An ERE matcher.
21572 EGREP=$lt_EGREP
21573
21574 # A literal string matcher.
21575 FGREP=$lt_FGREP
21576
21577 # A BSD- or MS-compatible name lister.
21578 NM=$lt_NM
21579
21580 # Whether we need soft or hard links.
21581 LN_S=$lt_LN_S
21582
21583 # What is the maximum length of a command?
21584 max_cmd_len=$max_cmd_len
21585
21586 # Object file suffix (normally "o").
21587 objext=$ac_objext
21588
21589 # Executable file suffix (normally "").
21590 exeext=$exeext
21591
21592 # whether the shell understands "unset".
21593 lt_unset=$lt_unset
21594
21595 # turn spaces into newlines.
21596 SP2NL=$lt_lt_SP2NL
21597
21598 # turn newlines into spaces.
21599 NL2SP=$lt_lt_NL2SP
21600
21601 # How to create reloadable object files.
21602 reload_flag=$lt_reload_flag
21603 reload_cmds=$lt_reload_cmds
21604
21605 # An object symbol dumper.
21606 OBJDUMP=$lt_OBJDUMP
21607
21608 # Method to check whether dependent libraries are shared objects.
21609 deplibs_check_method=$lt_deplibs_check_method
21610
21611 # Command to use when deplibs_check_method == "file_magic".
21612 file_magic_cmd=$lt_file_magic_cmd
21613
21614 # The archiver.
21615 AR=$lt_AR
21616 AR_FLAGS=$lt_AR_FLAGS
21617
21618 # A symbol stripping program.
21619 STRIP=$lt_STRIP
21620
21621 # Commands used to install an old-style archive.
21622 RANLIB=$lt_RANLIB
21623 old_postinstall_cmds=$lt_old_postinstall_cmds
21624 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21625
21626 # A C compiler.
21627 LTCC=$lt_CC
21628
21629 # LTCC compiler flags.
21630 LTCFLAGS=$lt_CFLAGS
21631
21632 # Take the output of nm and produce a listing of raw symbols and C names.
21633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21634
21635 # Transform the output of nm in a proper C declaration.
21636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21637
21638 # Transform the output of nm in a C name address pair.
21639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21640
21641 # Transform the output of nm in a C name address pair when lib prefix is needed.
21642 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21643
21644 # The name of the directory that contains temporary libtool files.
21645 objdir=$objdir
21646
21647 # Shell to use when invoking shell scripts.
21648 SHELL=$lt_SHELL
21649
21650 # An echo program that does not interpret backslashes.
21651 ECHO=$lt_ECHO
21652
21653 # Used to examine libraries when file_magic_cmd begins with "file".
21654 MAGIC_CMD=$MAGIC_CMD
21655
21656 # Must we lock files when doing compilation?
21657 need_locks=$lt_need_locks
21658
21659 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21660 DSYMUTIL=$lt_DSYMUTIL
21661
21662 # Tool to change global to local symbols on Mac OS X.
21663 NMEDIT=$lt_NMEDIT
21664
21665 # Tool to manipulate fat objects and archives on Mac OS X.
21666 LIPO=$lt_LIPO
21667
21668 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21669 OTOOL=$lt_OTOOL
21670
21671 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21672 OTOOL64=$lt_OTOOL64
21673
21674 # Old archive suffix (normally "a").
21675 libext=$libext
21676
21677 # Shared library suffix (normally ".so").
21678 shrext_cmds=$lt_shrext_cmds
21679
21680 # The commands to extract the exported symbol list from a shared archive.
21681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21682
21683 # Variables whose values should be saved in libtool wrapper scripts and
21684 # restored at link time.
21685 variables_saved_for_relink=$lt_variables_saved_for_relink
21686
21687 # Do we need the "lib" prefix for modules?
21688 need_lib_prefix=$need_lib_prefix
21689
21690 # Do we need a version for libraries?
21691 need_version=$need_version
21692
21693 # Library versioning type.
21694 version_type=$version_type
21695
21696 # Shared library runtime path variable.
21697 runpath_var=$runpath_var
21698
21699 # Shared library path variable.
21700 shlibpath_var=$shlibpath_var
21701
21702 # Is shlibpath searched before the hard-coded library search path?
21703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21704
21705 # Format of library name prefix.
21706 libname_spec=$lt_libname_spec
21707
21708 # List of archive names.  First name is the real one, the rest are links.
21709 # The last name is the one that the linker finds with -lNAME
21710 library_names_spec=$lt_library_names_spec
21711
21712 # The coded name of the library, if different from the real name.
21713 soname_spec=$lt_soname_spec
21714
21715 # Command to use after installation of a shared archive.
21716 postinstall_cmds=$lt_postinstall_cmds
21717
21718 # Command to use after uninstallation of a shared archive.
21719 postuninstall_cmds=$lt_postuninstall_cmds
21720
21721 # Commands used to finish a libtool library installation in a directory.
21722 finish_cmds=$lt_finish_cmds
21723
21724 # As "finish_cmds", except a single script fragment to be evaled but
21725 # not shown.
21726 finish_eval=$lt_finish_eval
21727
21728 # Whether we should hardcode library paths into libraries.
21729 hardcode_into_libs=$hardcode_into_libs
21730
21731 # Compile-time system search path for libraries.
21732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21733
21734 # Run-time system search path for libraries.
21735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21736
21737 # Whether dlopen is supported.
21738 dlopen_support=$enable_dlopen
21739
21740 # Whether dlopen of programs is supported.
21741 dlopen_self=$enable_dlopen_self
21742
21743 # Whether dlopen of statically linked programs is supported.
21744 dlopen_self_static=$enable_dlopen_self_static
21745
21746 # Commands to strip libraries.
21747 old_striplib=$lt_old_striplib
21748 striplib=$lt_striplib
21749
21750
21751 # The linker used to build libraries.
21752 LD=$lt_LD
21753
21754 # Commands used to build an old-style archive.
21755 old_archive_cmds=$lt_old_archive_cmds
21756
21757 # A language specific compiler.
21758 CC=$lt_compiler
21759
21760 # Is the compiler the GNU compiler?
21761 with_gcc=$GCC
21762
21763 # Compiler flag to turn off builtin functions.
21764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21765
21766 # How to pass a linker flag through the compiler.
21767 wl=$lt_lt_prog_compiler_wl
21768
21769 # Additional compiler flags for building library objects.
21770 pic_flag=$lt_lt_prog_compiler_pic
21771
21772 # Compiler flag to prevent dynamic linking.
21773 link_static_flag=$lt_lt_prog_compiler_static
21774
21775 # Does compiler simultaneously support -c and -o options?
21776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21777
21778 # Whether or not to add -lc for building shared libraries.
21779 build_libtool_need_lc=$archive_cmds_need_lc
21780
21781 # Whether or not to disallow shared libs when runtime libs are static.
21782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21783
21784 # Compiler flag to allow reflexive dlopens.
21785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21786
21787 # Compiler flag to generate shared objects directly from archives.
21788 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21789
21790 # Whether the compiler copes with passing no objects directly.
21791 compiler_needs_object=$lt_compiler_needs_object
21792
21793 # Create an old-style archive from a shared archive.
21794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21795
21796 # Create a temporary old-style archive to link instead of a shared archive.
21797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21798
21799 # Commands used to build a shared archive.
21800 archive_cmds=$lt_archive_cmds
21801 archive_expsym_cmds=$lt_archive_expsym_cmds
21802
21803 # Commands used to build a loadable module if different from building
21804 # a shared archive.
21805 module_cmds=$lt_module_cmds
21806 module_expsym_cmds=$lt_module_expsym_cmds
21807
21808 # Whether we are building with GNU ld or not.
21809 with_gnu_ld=$lt_with_gnu_ld
21810
21811 # Flag that allows shared libraries with undefined symbols to be built.
21812 allow_undefined_flag=$lt_allow_undefined_flag
21813
21814 # Flag that enforces no undefined symbols.
21815 no_undefined_flag=$lt_no_undefined_flag
21816
21817 # Flag to hardcode \$libdir into a binary during linking.
21818 # This must work even if \$libdir does not exist
21819 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21820
21821 # If ld is used when linking, flag to hardcode \$libdir into a binary
21822 # during linking.  This must work even if \$libdir does not exist.
21823 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21824
21825 # Whether we need a single "-rpath" flag with a separated argument.
21826 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21827
21828 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21829 # DIR into the resulting binary.
21830 hardcode_direct=$hardcode_direct
21831
21832 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21833 # DIR into the resulting binary and the resulting library dependency is
21834 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21835 # library is relocated.
21836 hardcode_direct_absolute=$hardcode_direct_absolute
21837
21838 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21839 # into the resulting binary.
21840 hardcode_minus_L=$hardcode_minus_L
21841
21842 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21843 # into the resulting binary.
21844 hardcode_shlibpath_var=$hardcode_shlibpath_var
21845
21846 # Set to "yes" if building a shared library automatically hardcodes DIR
21847 # into the library and all subsequent libraries and executables linked
21848 # against it.
21849 hardcode_automatic=$hardcode_automatic
21850
21851 # Set to yes if linker adds runtime paths of dependent libraries
21852 # to runtime path list.
21853 inherit_rpath=$inherit_rpath
21854
21855 # Whether libtool must link a program against all its dependency libraries.
21856 link_all_deplibs=$link_all_deplibs
21857
21858 # Fix the shell variable \$srcfile for the compiler.
21859 fix_srcfile_path=$lt_fix_srcfile_path
21860
21861 # Set to "yes" if exported symbols are required.
21862 always_export_symbols=$always_export_symbols
21863
21864 # The commands to list exported symbols.
21865 export_symbols_cmds=$lt_export_symbols_cmds
21866
21867 # Symbols that should not be listed in the preloaded symbols.
21868 exclude_expsyms=$lt_exclude_expsyms
21869
21870 # Symbols that must always be exported.
21871 include_expsyms=$lt_include_expsyms
21872
21873 # Commands necessary for linking programs (against libraries) with templates.
21874 prelink_cmds=$lt_prelink_cmds
21875
21876 # Specify filename containing input files.
21877 file_list_spec=$lt_file_list_spec
21878
21879 # How to hardcode a shared library path into an executable.
21880 hardcode_action=$hardcode_action
21881
21882 # The directories searched by this compiler when creating a shared library.
21883 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21884
21885 # Dependencies to place before and after the objects being linked to
21886 # create a shared library.
21887 predep_objects=$lt_predep_objects
21888 postdep_objects=$lt_postdep_objects
21889 predeps=$lt_predeps
21890 postdeps=$lt_postdeps
21891
21892 # The library search path used internally by the compiler when linking
21893 # a shared library.
21894 compiler_lib_search_path=$lt_compiler_lib_search_path
21895
21896 # ### END LIBTOOL CONFIG
21897
21898 _LT_EOF
21899
21900   case $host_os in
21901   aix3*)
21902     cat <<\_LT_EOF >> "$cfgfile"
21903 # AIX sometimes has problems with the GCC collect2 program.  For some
21904 # reason, if we set the COLLECT_NAMES environment variable, the problems
21905 # vanish in a puff of smoke.
21906 if test "X${COLLECT_NAMES+set}" != Xset; then
21907   COLLECT_NAMES=
21908   export COLLECT_NAMES
21909 fi
21910 _LT_EOF
21911     ;;
21912   esac
21913
21914
21915 ltmain="$ac_aux_dir/ltmain.sh"
21916
21917
21918   # We use sed instead of cat because bash on DJGPP gets confused if
21919   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21920   # text mode, it properly converts lines to CR/LF.  This bash problem
21921   # is reportedly fixed, but why not run on old versions too?
21922   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21923     || (rm -f "$cfgfile"; exit 1)
21924
21925   case $xsi_shell in
21926   yes)
21927     cat << \_LT_EOF >> "$cfgfile"
21928
21929 # func_dirname file append nondir_replacement
21930 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21931 # otherwise set result to NONDIR_REPLACEMENT.
21932 func_dirname ()
21933 {
21934   case ${1} in
21935     */*) func_dirname_result="${1%/*}${2}" ;;
21936     *  ) func_dirname_result="${3}" ;;
21937   esac
21938 }
21939
21940 # func_basename file
21941 func_basename ()
21942 {
21943   func_basename_result="${1##*/}"
21944 }
21945
21946 # func_dirname_and_basename file append nondir_replacement
21947 # perform func_basename and func_dirname in a single function
21948 # call:
21949 #   dirname:  Compute the dirname of FILE.  If nonempty,
21950 #             add APPEND to the result, otherwise set result
21951 #             to NONDIR_REPLACEMENT.
21952 #             value returned in "$func_dirname_result"
21953 #   basename: Compute filename of FILE.
21954 #             value retuned in "$func_basename_result"
21955 # Implementation must be kept synchronized with func_dirname
21956 # and func_basename. For efficiency, we do not delegate to
21957 # those functions but instead duplicate the functionality here.
21958 func_dirname_and_basename ()
21959 {
21960   case ${1} in
21961     */*) func_dirname_result="${1%/*}${2}" ;;
21962     *  ) func_dirname_result="${3}" ;;
21963   esac
21964   func_basename_result="${1##*/}"
21965 }
21966
21967 # func_stripname prefix suffix name
21968 # strip PREFIX and SUFFIX off of NAME.
21969 # PREFIX and SUFFIX must not contain globbing or regex special
21970 # characters, hashes, percent signs, but SUFFIX may contain a leading
21971 # dot (in which case that matches only a dot).
21972 func_stripname ()
21973 {
21974   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21975   # positional parameters, so assign one to ordinary parameter first.
21976   func_stripname_result=${3}
21977   func_stripname_result=${func_stripname_result#"${1}"}
21978   func_stripname_result=${func_stripname_result%"${2}"}
21979 }
21980
21981 # func_opt_split
21982 func_opt_split ()
21983 {
21984   func_opt_split_opt=${1%%=*}
21985   func_opt_split_arg=${1#*=}
21986 }
21987
21988 # func_lo2o object
21989 func_lo2o ()
21990 {
21991   case ${1} in
21992     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21993     *)    func_lo2o_result=${1} ;;
21994   esac
21995 }
21996
21997 # func_xform libobj-or-source
21998 func_xform ()
21999 {
22000   func_xform_result=${1%.*}.lo
22001 }
22002
22003 # func_arith arithmetic-term...
22004 func_arith ()
22005 {
22006   func_arith_result=$(( $* ))
22007 }
22008
22009 # func_len string
22010 # STRING may not start with a hyphen.
22011 func_len ()
22012 {
22013   func_len_result=${#1}
22014 }
22015
22016 _LT_EOF
22017     ;;
22018   *) # Bourne compatible functions.
22019     cat << \_LT_EOF >> "$cfgfile"
22020
22021 # func_dirname file append nondir_replacement
22022 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22023 # otherwise set result to NONDIR_REPLACEMENT.
22024 func_dirname ()
22025 {
22026   # Extract subdirectory from the argument.
22027   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22028   if test "X$func_dirname_result" = "X${1}"; then
22029     func_dirname_result="${3}"
22030   else
22031     func_dirname_result="$func_dirname_result${2}"
22032   fi
22033 }
22034
22035 # func_basename file
22036 func_basename ()
22037 {
22038   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22039 }
22040
22041
22042 # func_stripname prefix suffix name
22043 # strip PREFIX and SUFFIX off of NAME.
22044 # PREFIX and SUFFIX must not contain globbing or regex special
22045 # characters, hashes, percent signs, but SUFFIX may contain a leading
22046 # dot (in which case that matches only a dot).
22047 # func_strip_suffix prefix name
22048 func_stripname ()
22049 {
22050   case ${2} in
22051     .*) func_stripname_result=`$ECHO "X${3}" \
22052            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22053     *)  func_stripname_result=`$ECHO "X${3}" \
22054            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22055   esac
22056 }
22057
22058 # sed scripts:
22059 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22060 my_sed_long_arg='1s/^-[^=]*=//'
22061
22062 # func_opt_split
22063 func_opt_split ()
22064 {
22065   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22066   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22067 }
22068
22069 # func_lo2o object
22070 func_lo2o ()
22071 {
22072   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22073 }
22074
22075 # func_xform libobj-or-source
22076 func_xform ()
22077 {
22078   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22079 }
22080
22081 # func_arith arithmetic-term...
22082 func_arith ()
22083 {
22084   func_arith_result=`expr "$@"`
22085 }
22086
22087 # func_len string
22088 # STRING may not start with a hyphen.
22089 func_len ()
22090 {
22091   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22092 }
22093
22094 _LT_EOF
22095 esac
22096
22097 case $lt_shell_append in
22098   yes)
22099     cat << \_LT_EOF >> "$cfgfile"
22100
22101 # func_append var value
22102 # Append VALUE to the end of shell variable VAR.
22103 func_append ()
22104 {
22105   eval "$1+=\$2"
22106 }
22107 _LT_EOF
22108     ;;
22109   *)
22110     cat << \_LT_EOF >> "$cfgfile"
22111
22112 # func_append var value
22113 # Append VALUE to the end of shell variable VAR.
22114 func_append ()
22115 {
22116   eval "$1=\$$1\$2"
22117 }
22118
22119 _LT_EOF
22120     ;;
22121   esac
22122
22123
22124   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22125     || (rm -f "$cfgfile"; exit 1)
22126
22127   mv -f "$cfgfile" "$ofile" ||
22128     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22129   chmod +x "$ofile"
22130
22131
22132     cat <<_LT_EOF >> "$ofile"
22133
22134 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22135
22136 # The linker used to build libraries.
22137 LD=$lt_LD_CXX
22138
22139 # Commands used to build an old-style archive.
22140 old_archive_cmds=$lt_old_archive_cmds_CXX
22141
22142 # A language specific compiler.
22143 CC=$lt_compiler_CXX
22144
22145 # Is the compiler the GNU compiler?
22146 with_gcc=$GCC_CXX
22147
22148 # Compiler flag to turn off builtin functions.
22149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22150
22151 # How to pass a linker flag through the compiler.
22152 wl=$lt_lt_prog_compiler_wl_CXX
22153
22154 # Additional compiler flags for building library objects.
22155 pic_flag=$lt_lt_prog_compiler_pic_CXX
22156
22157 # Compiler flag to prevent dynamic linking.
22158 link_static_flag=$lt_lt_prog_compiler_static_CXX
22159
22160 # Does compiler simultaneously support -c and -o options?
22161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22162
22163 # Whether or not to add -lc for building shared libraries.
22164 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22165
22166 # Whether or not to disallow shared libs when runtime libs are static.
22167 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22168
22169 # Compiler flag to allow reflexive dlopens.
22170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22171
22172 # Compiler flag to generate shared objects directly from archives.
22173 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22174
22175 # Whether the compiler copes with passing no objects directly.
22176 compiler_needs_object=$lt_compiler_needs_object_CXX
22177
22178 # Create an old-style archive from a shared archive.
22179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22180
22181 # Create a temporary old-style archive to link instead of a shared archive.
22182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22183
22184 # Commands used to build a shared archive.
22185 archive_cmds=$lt_archive_cmds_CXX
22186 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22187
22188 # Commands used to build a loadable module if different from building
22189 # a shared archive.
22190 module_cmds=$lt_module_cmds_CXX
22191 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22192
22193 # Whether we are building with GNU ld or not.
22194 with_gnu_ld=$lt_with_gnu_ld_CXX
22195
22196 # Flag that allows shared libraries with undefined symbols to be built.
22197 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22198
22199 # Flag that enforces no undefined symbols.
22200 no_undefined_flag=$lt_no_undefined_flag_CXX
22201
22202 # Flag to hardcode \$libdir into a binary during linking.
22203 # This must work even if \$libdir does not exist
22204 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22205
22206 # If ld is used when linking, flag to hardcode \$libdir into a binary
22207 # during linking.  This must work even if \$libdir does not exist.
22208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22209
22210 # Whether we need a single "-rpath" flag with a separated argument.
22211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22212
22213 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22214 # DIR into the resulting binary.
22215 hardcode_direct=$hardcode_direct_CXX
22216
22217 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22218 # DIR into the resulting binary and the resulting library dependency is
22219 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22220 # library is relocated.
22221 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22222
22223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22224 # into the resulting binary.
22225 hardcode_minus_L=$hardcode_minus_L_CXX
22226
22227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22228 # into the resulting binary.
22229 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22230
22231 # Set to "yes" if building a shared library automatically hardcodes DIR
22232 # into the library and all subsequent libraries and executables linked
22233 # against it.
22234 hardcode_automatic=$hardcode_automatic_CXX
22235
22236 # Set to yes if linker adds runtime paths of dependent libraries
22237 # to runtime path list.
22238 inherit_rpath=$inherit_rpath_CXX
22239
22240 # Whether libtool must link a program against all its dependency libraries.
22241 link_all_deplibs=$link_all_deplibs_CXX
22242
22243 # Fix the shell variable \$srcfile for the compiler.
22244 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22245
22246 # Set to "yes" if exported symbols are required.
22247 always_export_symbols=$always_export_symbols_CXX
22248
22249 # The commands to list exported symbols.
22250 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22251
22252 # Symbols that should not be listed in the preloaded symbols.
22253 exclude_expsyms=$lt_exclude_expsyms_CXX
22254
22255 # Symbols that must always be exported.
22256 include_expsyms=$lt_include_expsyms_CXX
22257
22258 # Commands necessary for linking programs (against libraries) with templates.
22259 prelink_cmds=$lt_prelink_cmds_CXX
22260
22261 # Specify filename containing input files.
22262 file_list_spec=$lt_file_list_spec_CXX
22263
22264 # How to hardcode a shared library path into an executable.
22265 hardcode_action=$hardcode_action_CXX
22266
22267 # The directories searched by this compiler when creating a shared library.
22268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22269
22270 # Dependencies to place before and after the objects being linked to
22271 # create a shared library.
22272 predep_objects=$lt_predep_objects_CXX
22273 postdep_objects=$lt_postdep_objects_CXX
22274 predeps=$lt_predeps_CXX
22275 postdeps=$lt_postdeps_CXX
22276
22277 # The library search path used internally by the compiler when linking
22278 # a shared library.
22279 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22280
22281 # ### END LIBTOOL TAG CONFIG: CXX
22282 _LT_EOF
22283
22284  ;;
22285     "$ax_create_pkgconfig_generate":C)
22286 pkgconfig_generate="$ax_create_pkgconfig_generate"
22287 if test ! -f "$pkgconfig_generate.in"
22288 then generate="true"
22289 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
22290 then generate="true"
22291 else generate="false";
22292 fi
22293 if $generate ; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
22295 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
22296 cat > $pkgconfig_generate.in <<AXEOF
22297 # generated by configure / remove this line to disable regeneration
22298 prefix=@prefix@
22299 exec_prefix=@exec_prefix@
22300 bindir=@bindir@
22301 libdir=@libdir@
22302 datarootdir=@datarootdir@
22303 datadir=@datadir@
22304 sysconfdir=@sysconfdir@
22305 includedir=@includedir@
22306 package=@PACKAGE@
22307 suffix=@suffix@
22308
22309 Name: @PACKAGE_NAME@
22310 Description: @PACKAGE_DESCRIPTION@
22311 Version: @PACKAGE_VERSION@
22312 Requires: @PACKAGE_REQUIRES@
22313 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
22314 Cflags: -I\${includedir} @CPPFLAGS@
22315 AXEOF
22316 fi # DONE generate $pkgconfig_generate.in
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
22318 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
22319 cat >conftest.sed <<AXEOF
22320 s|@prefix@|${pkgconfig_prefix}|
22321 s|@exec_prefix@|${pkgconfig_execprefix}|
22322 s|@bindir@|${pkgconfig_bindir}|
22323 s|@libdir@|${pkgconfig_libdir}|
22324 s|@datarootdir@|${pkgconfig_datarootdir}|
22325 s|@datadir@|${pkgconfig_datadir}|
22326 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22327 s|@includedir@|${pkgconfig_includedir}|
22328 s|@suffix@|${pkgconfig_suffix}|
22329 s|@PACKAGE@|${pkgconfig_package}|
22330 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22331 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22332 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22333 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22334 s|@LIBS@|${pkgconfig_libs}|
22335 s|@LDFLAGS@|${pkgconfig_ldflags}|
22336 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22337 AXEOF
22338 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
22339 if test ! -s $pkgconfig_generate ; then
22340     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
22341 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
22342 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22344 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22345 cat >conftest.sed <<AXEOF
22346 s|@prefix@|${pkgconfig_prefix}|
22347 s|@exec_prefix@|${pkgconfig_execprefix}|
22348 s|@bindir@|${pkgconfig_bindir}|
22349 s|@libdir@|${pkgconfig_src_libdir}|
22350 s|@datarootdir@|${pkgconfig_datarootdir}|
22351 s|@datadir@|${pkgconfig_datadir}|
22352 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22353 s|@includedir@|${pkgconfig_src_headers}|
22354 s|@suffix@|${pkgconfig_suffix}|
22355 s|@PACKAGE@|${pkgconfig_package}|
22356 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22357 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22358 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22359 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22360 s|@LIBS@|${pkgconfig_libs}|
22361 s|@LDFLAGS@|${pkgconfig_ldflags}|
22362 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22363 AXEOF
22364 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
22365 if test ! -s $pkgconfig_uninstalled ; then
22366     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22367 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22368            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
22369 if test ".$pkgconfig_requires_add" != "." ; then
22370            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
22371     else   pkgconfig_requires_add=":" ; fi
22372 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22374 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22375 cat >conftest.sed <<AXEOF
22376 s|@prefix@|\"${pkgconfig_prefix}\"|
22377 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
22378 s|@bindir@|\"${pkgconfig_bindir}\"|
22379 s|@libdir@|\"${pkgconfig_src_libdir}\"|
22380 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
22381 s|@datadir@|\"${pkgconfig_datadir}\"|
22382 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
22383 s|@includedir@|\"${pkgconfig_src_headers}\"|
22384 s|@suffix@|\"${pkgconfig_suffix}\"|
22385 s|@PACKAGE@|\"${pkgconfig_package}\"|
22386 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
22387 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
22388 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
22389 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
22390 s|@LIBS@|\"${pkgconfig_libs}\"|
22391 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
22392 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
22393 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
22394 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
22395 s>Version: *>\\;\\; --modversion|--version) echo >
22396 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
22397 s>Libs: *>\\;\\; --libs) echo >
22398 s>Cflags: *>\\;\\; --cflags) echo >
22399 /--libs)/a\\
22400        $pkgconfig_requires_add
22401 /--cflags)/a\\
22402        $pkgconfig_requires_add\\
22403 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
22404 ;; --uninstalled) exit 0 \\
22405 ;; *) ;; esac done
22406 AXEOF
22407 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
22408 if test ! -s $pkgconfig_uninstalled ; then
22409     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22410 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22411  ;;
22412
22413   esac
22414 done # for ac_tag
22415
22416
22417 as_fn_exit 0
22418 _ACEOF
22419 ac_clean_files=$ac_clean_files_save
22420
22421 test $ac_write_fail = 0 ||
22422   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22423
22424
22425 # configure is writing to config.log, and then calls config.status.
22426 # config.status does its own redirection, appending to config.log.
22427 # Unfortunately, on DOS this fails, as config.log is still kept open
22428 # by configure, so config.status won't be able to write to it; its
22429 # output is simply discarded.  So we exec the FD to /dev/null,
22430 # effectively closing config.log, so it can be properly (re)opened and
22431 # appended to by config.status.  When coming back to configure, we
22432 # need to make the FD available again.
22433 if test "$no_create" != yes; then
22434   ac_cs_success=:
22435   ac_config_status_args=
22436   test "$silent" = yes &&
22437     ac_config_status_args="$ac_config_status_args --quiet"
22438   exec 5>/dev/null
22439   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22440   exec 5>>config.log
22441   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22442   # would make configure fail if this is the last instruction.
22443   $ac_cs_success || as_fn_exit 1
22444 fi
22445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22446   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22447 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22448 fi
22449