Update format until release
[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.4.
4 #
5 # Report bugs to <https://bugs.internet2.edu/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 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://bugs.internet2.edu/ 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.4'
705 PACKAGE_STRING='xmltooling 1.4'
706 PACKAGE_BUGREPORT='https://bugs.internet2.edu/'
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 BUILD_PTHREAD_FALSE
764 BUILD_PTHREAD_TRUE
765 PTHREAD_CFLAGS
766 PTHREAD_LIBS
767 PTHREAD_CC
768 acx_pthread_config
769 CXXCPP
770 am__fastdepCXX_FALSE
771 am__fastdepCXX_TRUE
772 CXXDEPMODE
773 ac_ct_CXX
774 CXXFLAGS
775 CXX
776 DOXYGEN_PAPER_SIZE
777 DX_COND_latex_FALSE
778 DX_COND_latex_TRUE
779 DX_COND_pdf_FALSE
780 DX_COND_pdf_TRUE
781 DX_PDFLATEX
782 DX_FLAG_pdf
783 DX_COND_ps_FALSE
784 DX_COND_ps_TRUE
785 DX_EGREP
786 DX_DVIPS
787 DX_MAKEINDEX
788 DX_LATEX
789 DX_FLAG_ps
790 DX_COND_html_FALSE
791 DX_COND_html_TRUE
792 DX_FLAG_html
793 DX_COND_chi_FALSE
794 DX_COND_chi_TRUE
795 DX_FLAG_chi
796 DX_COND_chm_FALSE
797 DX_COND_chm_TRUE
798 DX_HHC
799 DX_FLAG_chm
800 DX_COND_xml_FALSE
801 DX_COND_xml_TRUE
802 DX_FLAG_xml
803 DX_COND_rtf_FALSE
804 DX_COND_rtf_TRUE
805 DX_FLAG_rtf
806 DX_COND_man_FALSE
807 DX_COND_man_TRUE
808 DX_FLAG_man
809 DX_COND_dot_FALSE
810 DX_COND_dot_TRUE
811 DX_DOT
812 DX_FLAG_dot
813 DX_COND_doc_FALSE
814 DX_COND_doc_TRUE
815 DX_PERL
816 DX_DOXYGEN
817 DX_FLAG_doc
818 DX_ENV
819 DX_DOCDIR
820 DX_CONFIG
821 DX_PROJECT
822 CPP
823 OTOOL64
824 OTOOL
825 LIPO
826 NMEDIT
827 DSYMUTIL
828 lt_ECHO
829 RANLIB
830 AR
831 OBJDUMP
832 LN_S
833 NM
834 ac_ct_DUMPBIN
835 DUMPBIN
836 LD
837 FGREP
838 EGREP
839 GREP
840 SED
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 AMDEPBACKSLASH
845 AMDEP_FALSE
846 AMDEP_TRUE
847 am__quote
848 am__include
849 DEPDIR
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 host_os
858 host_vendor
859 host_cpu
860 host
861 build_os
862 build_vendor
863 build_cpu
864 build
865 LIBTOOL
866 am__untar
867 am__tar
868 AMTAR
869 am__leading_dot
870 SET_MAKE
871 AWK
872 mkdir_p
873 MKDIR_P
874 INSTALL_STRIP_PROGRAM
875 STRIP
876 install_sh
877 MAKEINFO
878 AUTOHEADER
879 AUTOMAKE
880 AUTOCONF
881 ACLOCAL
882 VERSION
883 PACKAGE
884 CYGPATH_W
885 am__isrc
886 INSTALL_DATA
887 INSTALL_SCRIPT
888 INSTALL_PROGRAM
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files=''
928 ac_user_opts='
929 enable_option_checking
930 enable_shared
931 enable_static
932 with_pic
933 enable_fast_install
934 enable_dependency_tracking
935 with_gnu_ld
936 enable_libtool_lock
937 enable_doxygen_doc
938 enable_doxygen_dot
939 enable_doxygen_man
940 enable_doxygen_rtf
941 enable_doxygen_xml
942 enable_doxygen_chm
943 enable_doxygen_chi
944 enable_doxygen_html
945 enable_doxygen_ps
946 enable_doxygen_pdf
947 enable_debug
948 with_log4shib
949 with_log4cpp
950 with_xerces
951 with_xmlsec
952 with_openssl
953 with_curl
954 with_cxxtest
955 '
956       ac_precious_vars='build_alias
957 host_alias
958 target_alias
959 CC
960 CFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
964 CPP
965 DOXYGEN_PAPER_SIZE
966 CXX
967 CXXFLAGS
968 CCC
969 CXXCPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 ac_unrecognized_opts=
976 ac_unrecognized_sep=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
993
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1019
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1023 do
1024   # If the previous option needs an argument, assign it.
1025   if test -n "$ac_prev"; then
1026     eval $ac_prev=\$ac_option
1027     ac_prev=
1028     continue
1029   fi
1030
1031   case $ac_option in
1032   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033   *=)   ac_optarg= ;;
1034   *)    ac_optarg=yes ;;
1035   esac
1036
1037   # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039   case $ac_dashdash$ac_option in
1040   --)
1041     ac_dashdash=yes ;;
1042
1043   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044     ac_prev=bindir ;;
1045   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046     bindir=$ac_optarg ;;
1047
1048   -build | --build | --buil | --bui | --bu)
1049     ac_prev=build_alias ;;
1050   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051     build_alias=$ac_optarg ;;
1052
1053   -cache-file | --cache-file | --cache-fil | --cache-fi \
1054   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055     ac_prev=cache_file ;;
1056   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058     cache_file=$ac_optarg ;;
1059
1060   --config-cache | -C)
1061     cache_file=config.cache ;;
1062
1063   -datadir | --datadir | --datadi | --datad)
1064     ac_prev=datadir ;;
1065   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066     datadir=$ac_optarg ;;
1067
1068   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069   | --dataroo | --dataro | --datar)
1070     ac_prev=datarootdir ;;
1071   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073     datarootdir=$ac_optarg ;;
1074
1075   -disable-* | --disable-*)
1076     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079       as_fn_error $? "invalid feature name: $ac_useropt"
1080     ac_useropt_orig=$ac_useropt
1081     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082     case $ac_user_opts in
1083       *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087          ac_unrecognized_sep=', ';;
1088     esac
1089     eval enable_$ac_useropt=no ;;
1090
1091   -docdir | --docdir | --docdi | --doc | --do)
1092     ac_prev=docdir ;;
1093   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094     docdir=$ac_optarg ;;
1095
1096   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097     ac_prev=dvidir ;;
1098   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099     dvidir=$ac_optarg ;;
1100
1101   -enable-* | --enable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       as_fn_error $? "invalid feature name: $ac_useropt"
1106     ac_useropt_orig=$ac_useropt
1107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108     case $ac_user_opts in
1109       *"
1110 "enable_$ac_useropt"
1111 "*) ;;
1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113          ac_unrecognized_sep=', ';;
1114     esac
1115     eval enable_$ac_useropt=\$ac_optarg ;;
1116
1117   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119   | --exec | --exe | --ex)
1120     ac_prev=exec_prefix ;;
1121   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123   | --exec=* | --exe=* | --ex=*)
1124     exec_prefix=$ac_optarg ;;
1125
1126   -gas | --gas | --ga | --g)
1127     # Obsolete; use --with-gas.
1128     with_gas=yes ;;
1129
1130   -help | --help | --hel | --he | -h)
1131     ac_init_help=long ;;
1132   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133     ac_init_help=recursive ;;
1134   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135     ac_init_help=short ;;
1136
1137   -host | --host | --hos | --ho)
1138     ac_prev=host_alias ;;
1139   -host=* | --host=* | --hos=* | --ho=*)
1140     host_alias=$ac_optarg ;;
1141
1142   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143     ac_prev=htmldir ;;
1144   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145   | --ht=*)
1146     htmldir=$ac_optarg ;;
1147
1148   -includedir | --includedir | --includedi | --included | --include \
1149   | --includ | --inclu | --incl | --inc)
1150     ac_prev=includedir ;;
1151   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152   | --includ=* | --inclu=* | --incl=* | --inc=*)
1153     includedir=$ac_optarg ;;
1154
1155   -infodir | --infodir | --infodi | --infod | --info | --inf)
1156     ac_prev=infodir ;;
1157   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158     infodir=$ac_optarg ;;
1159
1160   -libdir | --libdir | --libdi | --libd)
1161     ac_prev=libdir ;;
1162   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163     libdir=$ac_optarg ;;
1164
1165   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166   | --libexe | --libex | --libe)
1167     ac_prev=libexecdir ;;
1168   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169   | --libexe=* | --libex=* | --libe=*)
1170     libexecdir=$ac_optarg ;;
1171
1172   -localedir | --localedir | --localedi | --localed | --locale)
1173     ac_prev=localedir ;;
1174   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175     localedir=$ac_optarg ;;
1176
1177   -localstatedir | --localstatedir | --localstatedi | --localstated \
1178   | --localstate | --localstat | --localsta | --localst | --locals)
1179     ac_prev=localstatedir ;;
1180   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182     localstatedir=$ac_optarg ;;
1183
1184   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185     ac_prev=mandir ;;
1186   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187     mandir=$ac_optarg ;;
1188
1189   -nfp | --nfp | --nf)
1190     # Obsolete; use --without-fp.
1191     with_fp=no ;;
1192
1193   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194   | --no-cr | --no-c | -n)
1195     no_create=yes ;;
1196
1197   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199     no_recursion=yes ;;
1200
1201   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203   | --oldin | --oldi | --old | --ol | --o)
1204     ac_prev=oldincludedir ;;
1205   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208     oldincludedir=$ac_optarg ;;
1209
1210   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211     ac_prev=prefix ;;
1212   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213     prefix=$ac_optarg ;;
1214
1215   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216   | --program-pre | --program-pr | --program-p)
1217     ac_prev=program_prefix ;;
1218   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220     program_prefix=$ac_optarg ;;
1221
1222   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223   | --program-suf | --program-su | --program-s)
1224     ac_prev=program_suffix ;;
1225   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227     program_suffix=$ac_optarg ;;
1228
1229   -program-transform-name | --program-transform-name \
1230   | --program-transform-nam | --program-transform-na \
1231   | --program-transform-n | --program-transform- \
1232   | --program-transform | --program-transfor \
1233   | --program-transfo | --program-transf \
1234   | --program-trans | --program-tran \
1235   | --progr-tra | --program-tr | --program-t)
1236     ac_prev=program_transform_name ;;
1237   -program-transform-name=* | --program-transform-name=* \
1238   | --program-transform-nam=* | --program-transform-na=* \
1239   | --program-transform-n=* | --program-transform-=* \
1240   | --program-transform=* | --program-transfor=* \
1241   | --program-transfo=* | --program-transf=* \
1242   | --program-trans=* | --program-tran=* \
1243   | --progr-tra=* | --program-tr=* | --program-t=*)
1244     program_transform_name=$ac_optarg ;;
1245
1246   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247     ac_prev=pdfdir ;;
1248   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249     pdfdir=$ac_optarg ;;
1250
1251   -psdir | --psdir | --psdi | --psd | --ps)
1252     ac_prev=psdir ;;
1253   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254     psdir=$ac_optarg ;;
1255
1256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257   | -silent | --silent | --silen | --sile | --sil)
1258     silent=yes ;;
1259
1260   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261     ac_prev=sbindir ;;
1262   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263   | --sbi=* | --sb=*)
1264     sbindir=$ac_optarg ;;
1265
1266   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268   | --sharedst | --shareds | --shared | --share | --shar \
1269   | --sha | --sh)
1270     ac_prev=sharedstatedir ;;
1271   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274   | --sha=* | --sh=*)
1275     sharedstatedir=$ac_optarg ;;
1276
1277   -site | --site | --sit)
1278     ac_prev=site ;;
1279   -site=* | --site=* | --sit=*)
1280     site=$ac_optarg ;;
1281
1282   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283     ac_prev=srcdir ;;
1284   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285     srcdir=$ac_optarg ;;
1286
1287   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288   | --syscon | --sysco | --sysc | --sys | --sy)
1289     ac_prev=sysconfdir ;;
1290   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292     sysconfdir=$ac_optarg ;;
1293
1294   -target | --target | --targe | --targ | --tar | --ta | --t)
1295     ac_prev=target_alias ;;
1296   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297     target_alias=$ac_optarg ;;
1298
1299   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300     verbose=yes ;;
1301
1302   -version | --version | --versio | --versi | --vers | -V)
1303     ac_init_version=: ;;
1304
1305   -with-* | --with-*)
1306     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309       as_fn_error $? "invalid package name: $ac_useropt"
1310     ac_useropt_orig=$ac_useropt
1311     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312     case $ac_user_opts in
1313       *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317          ac_unrecognized_sep=', ';;
1318     esac
1319     eval with_$ac_useropt=\$ac_optarg ;;
1320
1321   -without-* | --without-*)
1322     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323     # Reject names that are not valid shell variable names.
1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325       as_fn_error $? "invalid package name: $ac_useropt"
1326     ac_useropt_orig=$ac_useropt
1327     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328     case $ac_user_opts in
1329       *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333          ac_unrecognized_sep=', ';;
1334     esac
1335     eval with_$ac_useropt=no ;;
1336
1337   --x)
1338     # Obsolete; use --with-x.
1339     with_x=yes ;;
1340
1341   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342   | --x-incl | --x-inc | --x-in | --x-i)
1343     ac_prev=x_includes ;;
1344   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346     x_includes=$ac_optarg ;;
1347
1348   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350     ac_prev=x_libraries ;;
1351   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353     x_libraries=$ac_optarg ;;
1354
1355   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1357     ;;
1358
1359   *=*)
1360     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361     # Reject names that are not valid shell variable names.
1362     case $ac_envvar in #(
1363       '' | [0-9]* | *[!_$as_cr_alnum]* )
1364       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365     esac
1366     eval $ac_envvar=\$ac_optarg
1367     export $ac_envvar ;;
1368
1369   *)
1370     # FIXME: should be removed in autoconf 3.0.
1371     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375     ;;
1376
1377   esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382   as_fn_error $? "missing argument to $ac_option"
1383 fi
1384
1385 if test -n "$ac_unrecognized_opts"; then
1386   case $enable_option_checking in
1387     no) ;;
1388     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390   esac
1391 fi
1392
1393 # Check all directory arguments for consistency.
1394 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395                 datadir sysconfdir sharedstatedir localstatedir includedir \
1396                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397                 libdir localedir mandir
1398 do
1399   eval ac_val=\$$ac_var
1400   # Remove trailing slashes.
1401   case $ac_val in
1402     */ )
1403       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404       eval $ac_var=\$ac_val;;
1405   esac
1406   # Be sure to have absolute directory names.
1407   case $ac_val in
1408     [\\/$]* | ?:[\\/]* )  continue;;
1409     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410   esac
1411   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1413
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1420
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423   if test "x$build_alias" = x; then
1424     cross_compiling=maybe
1425     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1426     If a cross compiler is detected then cross compile mode will be used" >&2
1427   elif test "x$build_alias" != "x$host_alias"; then
1428     cross_compiling=yes
1429   fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441   as_fn_error $? "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443   as_fn_error $? "pwd does not report name of working directory"
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448   ac_srcdir_defaulted=yes
1449   # Try the directory containing this script, then the parent directory.
1450   ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452          X"$as_myself" : 'X\(//\)[^/]' \| \
1453          X"$as_myself" : 'X\(//\)$' \| \
1454          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)[^/].*/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)$/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\).*/{
1469             s//\1/
1470             q
1471           }
1472           s/.*/./; q'`
1473   srcdir=$ac_confdir
1474   if test ! -r "$srcdir/$ac_unique_file"; then
1475     srcdir=..
1476   fi
1477 else
1478   ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487         pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490   srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_env_${ac_var}_value=\$${ac_var}
1501   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509   # Omit some internal or obsolete options to make the list less imposing.
1510   # This message is too long to be a string in the A/UX 3.1 sh.
1511   cat <<_ACEOF
1512 \`configure' configures xmltooling 1.4 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522   -h, --help              display this help and exit
1523       --help=short        display options specific to this package
1524       --help=recursive    display the short help of all the included packages
1525   -V, --version           display version information and exit
1526   -q, --quiet, --silent   do not print \`checking ...' messages
1527       --cache-file=FILE   cache test results in FILE [disabled]
1528   -C, --config-cache      alias for \`--cache-file=config.cache'
1529   -n, --no-create         do not create output files
1530       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533   --prefix=PREFIX         install architecture-independent files in PREFIX
1534                           [$ac_default_prefix]
1535   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536                           [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546   --bindir=DIR            user executables [EPREFIX/bin]
1547   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548   --libexecdir=DIR        program executables [EPREFIX/libexec]
1549   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552   --libdir=DIR            object code libraries [EPREFIX/lib]
1553   --includedir=DIR        C header files [PREFIX/include]
1554   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1555   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1556   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1557   --infodir=DIR           info documentation [DATAROOTDIR/info]
1558   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1559   --mandir=DIR            man documentation [DATAROOTDIR/man]
1560   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmltooling]
1561   --htmldir=DIR           html documentation [DOCDIR]
1562   --dvidir=DIR            dvi documentation [DOCDIR]
1563   --pdfdir=DIR            pdf documentation [DOCDIR]
1564   --psdir=DIR             ps documentation [DOCDIR]
1565 _ACEOF
1566
1567   cat <<\_ACEOF
1568
1569 Program names:
1570   --program-prefix=PREFIX            prepend PREFIX to installed program names
1571   --program-suffix=SUFFIX            append SUFFIX to installed program names
1572   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
1574 System types:
1575   --build=BUILD     configure for building on BUILD [guessed]
1576   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577 _ACEOF
1578 fi
1579
1580 if test -n "$ac_init_help"; then
1581   case $ac_init_help in
1582      short | recursive ) echo "Configuration of xmltooling 1.4:";;
1583    esac
1584   cat <<\_ACEOF
1585
1586 Optional Features:
1587   --disable-option-checking  ignore unrecognized --enable/--with options
1588   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1589   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1590   --enable-shared[=PKGS]  build shared libraries [default=yes]
1591   --enable-static[=PKGS]  build static libraries [default=yes]
1592   --enable-fast-install[=PKGS]
1593                           optimize for fast installation [default=yes]
1594   --disable-dependency-tracking  speeds up one-time build
1595   --enable-dependency-tracking   do not reject slow dependency extractors
1596   --disable-libtool-lock  avoid locking (might break parallel builds)
1597   --disable-doxygen-doc   don't generate any doxygen documentation
1598   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1599   --enable-doxygen-man    generate doxygen manual pages
1600   --enable-doxygen-rtf    generate doxygen RTF documentation
1601   --enable-doxygen-xml    generate doxygen XML documentation
1602   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1603   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1604                           file
1605   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1606   --enable-doxygen-ps     generate doxygen PostScript documentation
1607   --enable-doxygen-pdf    generate doxygen PDF documentation
1608   --enable-debug          Have GCC compile with symbols (Default = no)
1609
1610 Optional Packages:
1611   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1612   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1613   --with-pic              try to use only PIC/non-PIC objects [default=use
1614                           both]
1615   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616   --with-log4shib=PATH    where log4shib-config is installed
1617   --with-log4cpp=PATH     where log4cpp-config is installed
1618   --with-xerces=PATH      where xerces-c is installed
1619   --with-xmlsec=PATH      where xmlsec is installed
1620   --with-openssl=PATH     where openssl is installed
1621   --with-curl=PATH        where curl-config is installed
1622   --with-cxxtest=PATH     where cxxtest is installed
1623
1624 Some influential environment variables:
1625   CC          C compiler command
1626   CFLAGS      C compiler flags
1627   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628               nonstandard directory <lib dir>
1629   LIBS        libraries to pass to the linker, e.g. -l<library>
1630   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631               you have headers in a nonstandard directory <include dir>
1632   CPP         C preprocessor
1633   DOXYGEN_PAPER_SIZE
1634               a4wide (default), a4, letter, legal or executive
1635   CXX         C++ compiler command
1636   CXXFLAGS    C++ compiler flags
1637   CXXCPP      C++ preprocessor
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to <https://bugs.internet2.edu/>.
1643 _ACEOF
1644 ac_status=$?
1645 fi
1646
1647 if test "$ac_init_help" = "recursive"; then
1648   # If there are subdirs, report their specific --help.
1649   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650     test -d "$ac_dir" ||
1651       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652       continue
1653     ac_builddir=.
1654
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *)
1658   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659   # A ".." for each directory in $ac_dir_suffix.
1660   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661   case $ac_top_builddir_sub in
1662   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664   esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1670
1671 case $srcdir in
1672   .)  # We are building in place.
1673     ac_srcdir=.
1674     ac_top_srcdir=$ac_top_builddir_sub
1675     ac_abs_top_srcdir=$ac_pwd ;;
1676   [\\/]* | ?:[\\/]* )  # Absolute name.
1677     ac_srcdir=$srcdir$ac_dir_suffix;
1678     ac_top_srcdir=$srcdir
1679     ac_abs_top_srcdir=$srcdir ;;
1680   *) # Relative name.
1681     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682     ac_top_srcdir=$ac_top_build_prefix$srcdir
1683     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687     cd "$ac_dir" || { ac_status=$?; continue; }
1688     # Check for guested configure.
1689     if test -f "$ac_srcdir/configure.gnu"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692     elif test -f "$ac_srcdir/configure"; then
1693       echo &&
1694       $SHELL "$ac_srcdir/configure" --help=recursive
1695     else
1696       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697     fi || ac_status=$?
1698     cd "$ac_pwd" || { ac_status=$?; break; }
1699   done
1700 fi
1701
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704   cat <<\_ACEOF
1705 xmltooling configure 1.4
1706 generated by GNU Autoconf 2.67
1707
1708 Copyright (C) 2010 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1711 _ACEOF
1712   exit
1713 fi
1714
1715 ## ------------------------ ##
1716 ## Autoconf initialization. ##
1717 ## ------------------------ ##
1718
1719 # ac_fn_c_try_compile LINENO
1720 # --------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   rm -f conftest.$ac_objext
1726   if { { ac_try="$ac_compile"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_compile") 2>conftest.err
1734   ac_status=$?
1735   if test -s conftest.err; then
1736     grep -v '^ *+' conftest.err >conftest.er1
1737     cat conftest.er1 >&5
1738     mv -f conftest.er1 conftest.err
1739   fi
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; } && {
1742          test -z "$ac_c_werror_flag" ||
1743          test ! -s conftest.err
1744        } && test -s conftest.$ac_objext; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750         ac_retval=1
1751 fi
1752   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_compile
1756
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_link ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   rm -f conftest.$ac_objext conftest$ac_exeext
1764   if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_link") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && {
1780          test -z "$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        } && test -s conftest$ac_exeext && {
1783          test "$cross_compiling" = yes ||
1784          $as_test_x conftest$ac_exeext
1785        }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795   # interfere with the next link command; also delete a directory that is
1796   # left behind by Apple's compiler.  We do this before executing the actions.
1797   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_link
1802
1803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists and can be compiled using the include files in
1806 # INCLUDES, setting the cache variable VAR accordingly.
1807 ac_fn_c_check_header_compile ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval "test \"\${$3+set}\"" = set; then :
1813   $as_echo_n "(cached) " >&6
1814 else
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821   eval "$3=yes"
1822 else
1823   eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831
1832 } # ac_fn_c_check_header_compile
1833
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848   ac_status=$?
1849   if test -s conftest.err; then
1850     grep -v '^ *+' conftest.err >conftest.er1
1851     cat conftest.er1 >&5
1852     mv -f conftest.er1 conftest.err
1853   fi
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } > conftest.i && {
1856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857          test ! -s conftest.err
1858        }; then :
1859   ac_retval=0
1860 else
1861   $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864     ac_retval=1
1865 fi
1866   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_cpp
1870
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1875 ac_fn_c_try_run ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881   *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885   (eval "$ac_link") 2>&5
1886   ac_status=$?
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889   { { case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_try") 2>&5
1896   ac_status=$?
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; }; }; then :
1899   ac_retval=0
1900 else
1901   $as_echo "$as_me: program exited with status $ac_status" >&5
1902        $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905        ac_retval=$ac_status
1906 fi
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909   as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_run
1912
1913 # ac_fn_c_check_func LINENO FUNC VAR
1914 # ----------------------------------
1915 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1916 ac_fn_c_check_func ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1928 #define $2 innocuous_$2
1929
1930 /* System header to define __stub macros and hopefully few prototypes,
1931     which can conflict with char $2 (); below.
1932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933     <limits.h> exists even on freestanding compilers.  */
1934
1935 #ifdef __STDC__
1936 # include <limits.h>
1937 #else
1938 # include <assert.h>
1939 #endif
1940
1941 #undef $2
1942
1943 /* Override any GCC internal prototype to avoid an error.
1944    Use char because int might match the return type of a GCC
1945    builtin and then its argument prototype would still apply.  */
1946 #ifdef __cplusplus
1947 extern "C"
1948 #endif
1949 char $2 ();
1950 /* The GNU C library defines this for functions which it implements
1951     to always fail with ENOSYS.  Some functions are actually named
1952     something starting with __ and the normal name is an alias.  */
1953 #if defined __stub_$2 || defined __stub___$2
1954 choke me
1955 #endif
1956
1957 int
1958 main ()
1959 {
1960 return $2 ();
1961   ;
1962   return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_link "$LINENO"; then :
1966   eval "$3=yes"
1967 else
1968   eval "$3=no"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext \
1971     conftest$ac_exeext conftest.$ac_ext
1972 fi
1973 eval ac_res=\$$3
1974                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977
1978 } # ac_fn_c_check_func
1979
1980 # ac_fn_cxx_try_compile LINENO
1981 # ----------------------------
1982 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_compile ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   rm -f conftest.$ac_objext
1987   if { { ac_try="$ac_compile"
1988 case "(($ac_try" in
1989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990   *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994   (eval "$ac_compile") 2>conftest.err
1995   ac_status=$?
1996   if test -s conftest.err; then
1997     grep -v '^ *+' conftest.err >conftest.er1
1998     cat conftest.er1 >&5
1999     mv -f conftest.er1 conftest.err
2000   fi
2001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002   test $ac_status = 0; } && {
2003          test -z "$ac_cxx_werror_flag" ||
2004          test ! -s conftest.err
2005        } && test -s conftest.$ac_objext; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011         ac_retval=1
2012 fi
2013   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014   as_fn_set_status $ac_retval
2015
2016 } # ac_fn_cxx_try_compile
2017
2018 # ac_fn_cxx_try_cpp LINENO
2019 # ------------------------
2020 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2021 ac_fn_cxx_try_cpp ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   if { { ac_try="$ac_cpp conftest.$ac_ext"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } > conftest.i && {
2040          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2041          test ! -s conftest.err
2042        }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048     ac_retval=1
2049 fi
2050   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_cpp
2054
2055 # ac_fn_cxx_try_link LINENO
2056 # -------------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_cxx_try_link ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   rm -f conftest.$ac_objext conftest$ac_exeext
2062   if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065   *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069   (eval "$ac_link") 2>conftest.err
2070   ac_status=$?
2071   if test -s conftest.err; then
2072     grep -v '^ *+' conftest.err >conftest.er1
2073     cat conftest.er1 >&5
2074     mv -f conftest.er1 conftest.err
2075   fi
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } && {
2078          test -z "$ac_cxx_werror_flag" ||
2079          test ! -s conftest.err
2080        } && test -s conftest$ac_exeext && {
2081          test "$cross_compiling" = yes ||
2082          $as_test_x conftest$ac_exeext
2083        }; then :
2084   ac_retval=0
2085 else
2086   $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089         ac_retval=1
2090 fi
2091   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093   # interfere with the next link command; also delete a directory that is
2094   # left behind by Apple's compiler.  We do this before executing the actions.
2095   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097   as_fn_set_status $ac_retval
2098
2099 } # ac_fn_cxx_try_link
2100
2101 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2102 # -------------------------------------------
2103 # Tests whether TYPE exists after having included INCLUDES, setting cache
2104 # variable VAR accordingly.
2105 ac_fn_c_check_type ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval "test \"\${$3+set}\"" = set; then :
2111   $as_echo_n "(cached) " >&6
2112 else
2113   eval "$3=no"
2114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 int
2118 main ()
2119 {
2120 if (sizeof ($2))
2121          return 0;
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 int
2131 main ()
2132 {
2133 if (sizeof (($2)))
2134             return 0;
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140
2141 else
2142   eval "$3=yes"
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 eval ac_res=\$$3
2149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152
2153 } # ac_fn_c_check_type
2154
2155 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2156 # --------------------------------------------
2157 # Tries to find the compile-time value of EXPR in a program that includes
2158 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2159 # computed
2160 ac_fn_c_compute_int ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   if test "$cross_compiling" = yes; then
2164     # Depending upon the size, compute the lo and hi bounds.
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= 0)];
2172 test_array [0] = 0
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   ac_lo=0 ac_mid=0
2180   while :; do
2181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 test_array [0] = 0
2189
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   ac_hi=$ac_mid; break
2196 else
2197   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2198                         if test $ac_lo -le $ac_mid; then
2199                           ac_lo= ac_hi=
2200                           break
2201                         fi
2202                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205   done
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) < 0)];
2214 test_array [0] = 0
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   ac_hi=-1 ac_mid=-1
2222   while :; do
2223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $4
2226 int
2227 main ()
2228 {
2229 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 test_array [0] = 0
2231
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   ac_lo=$ac_mid; break
2238 else
2239   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240                         if test $ac_mid -le $ac_hi; then
2241                           ac_lo= ac_hi=
2242                           break
2243                         fi
2244                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247   done
2248 else
2249   ac_lo= ac_hi=
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 test_array [0] = 0
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_hi=$ac_mid
2272 else
2273   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 case $ac_lo in #((
2278 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2279 '') ac_retval=1 ;;
2280 esac
2281   else
2282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $4
2285 static long int longval () { return $2; }
2286 static unsigned long int ulongval () { return $2; }
2287 #include <stdio.h>
2288 #include <stdlib.h>
2289 int
2290 main ()
2291 {
2292
2293   FILE *f = fopen ("conftest.val", "w");
2294   if (! f)
2295     return 1;
2296   if (($2) < 0)
2297     {
2298       long int i = longval ();
2299       if (i != ($2))
2300         return 1;
2301       fprintf (f, "%ld", i);
2302     }
2303   else
2304     {
2305       unsigned long int i = ulongval ();
2306       if (i != ($2))
2307         return 1;
2308       fprintf (f, "%lu", i);
2309     }
2310   /* Do not output a trailing newline, as this causes \r\n confusion
2311      on some platforms.  */
2312   return ferror (f) || fclose (f) != 0;
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_run "$LINENO"; then :
2319   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2320 else
2321   ac_retval=1
2322 fi
2323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2324   conftest.$ac_objext conftest.beam conftest.$ac_ext
2325 rm -f conftest.val
2326
2327   fi
2328   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329   as_fn_set_status $ac_retval
2330
2331 } # ac_fn_c_compute_int
2332
2333 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2334 # -------------------------------------------------------
2335 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2336 # the include files in INCLUDES and setting the cache variable VAR
2337 # accordingly.
2338 ac_fn_c_check_header_mongrel ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   if eval "test \"\${$3+set}\"" = set; then :
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval "test \"\${$3+set}\"" = set; then :
2345   $as_echo_n "(cached) " >&6
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 else
2351   # Is the header compilable?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2353 $as_echo_n "checking $2 usability... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360   ac_header_compiler=yes
2361 else
2362   ac_header_compiler=no
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2366 $as_echo "$ac_header_compiler" >&6; }
2367
2368 # Is the header present?
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2370 $as_echo_n "checking $2 presence... " >&6; }
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_c_try_cpp "$LINENO"; then :
2376   ac_header_preproc=yes
2377 else
2378   ac_header_preproc=no
2379 fi
2380 rm -f conftest.err conftest.i conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2382 $as_echo "$ac_header_preproc" >&6; }
2383
2384 # So?  What about this header?
2385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2386   yes:no: )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2388 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391     ;;
2392   no:yes:* )
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2394 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2396 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2398 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2400 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403 ( $as_echo "## ------------------------------------------ ##
2404 ## Report this to https://bugs.internet2.edu/ ##
2405 ## ------------------------------------------ ##"
2406      ) | sed "s/^/$as_me: WARNING:     /" >&2
2407     ;;
2408 esac
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval "test \"\${$3+set}\"" = set; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=\$ac_header_compiler"
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 fi
2420   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421
2422 } # ac_fn_c_check_header_mongrel
2423
2424 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2425 # ---------------------------------------------------------
2426 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2427 # the include files in INCLUDES and setting the cache variable VAR
2428 # accordingly.
2429 ac_fn_cxx_check_header_mongrel ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if eval "test \"\${$3+set}\"" = set; then :
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval "test \"\${$3+set}\"" = set; then :
2436   $as_echo_n "(cached) " >&6
2437 fi
2438 eval ac_res=\$$3
2439                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 else
2442   # Is the header compilable?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2444 $as_echo_n "checking $2 usability... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 $4
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451   ac_header_compiler=yes
2452 else
2453   ac_header_compiler=no
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2457 $as_echo "$ac_header_compiler" >&6; }
2458
2459 # Is the header present?
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2461 $as_echo_n "checking $2 presence... " >&6; }
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 #include <$2>
2465 _ACEOF
2466 if ac_fn_cxx_try_cpp "$LINENO"; then :
2467   ac_header_preproc=yes
2468 else
2469   ac_header_preproc=no
2470 fi
2471 rm -f conftest.err conftest.i conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2473 $as_echo "$ac_header_preproc" >&6; }
2474
2475 # So?  What about this header?
2476 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2477   yes:no: )
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2479 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482     ;;
2483   no:yes:* )
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2485 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2487 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2489 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2491 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2493 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2494 ( $as_echo "## ------------------------------------------ ##
2495 ## Report this to https://bugs.internet2.edu/ ##
2496 ## ------------------------------------------ ##"
2497      ) | sed "s/^/$as_me: WARNING:     /" >&2
2498     ;;
2499 esac
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval "test \"\${$3+set}\"" = set; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   eval "$3=\$ac_header_compiler"
2506 fi
2507 eval ac_res=\$$3
2508                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 fi
2511   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512
2513 } # ac_fn_cxx_check_header_mongrel
2514
2515 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2516 # -----------------------------------------------
2517 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2518 # accordingly.
2519 ac_fn_cxx_check_decl ()
2520 {
2521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522   as_decl_name=`echo $2|sed 's/ *(.*//'`
2523   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2525 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2526 if eval "test \"\${$3+set}\"" = set; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h.  */
2531 $4
2532 int
2533 main ()
2534 {
2535 #ifndef $as_decl_name
2536 #ifdef __cplusplus
2537   (void) $as_decl_use;
2538 #else
2539   (void) $as_decl_name;
2540 #endif
2541 #endif
2542
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_cxx_try_compile "$LINENO"; then :
2548   eval "$3=yes"
2549 else
2550   eval "$3=no"
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558
2559 } # ac_fn_cxx_check_decl
2560
2561 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2562 # ---------------------------------------------
2563 # Tests whether TYPE exists after having included INCLUDES, setting cache
2564 # variable VAR accordingly.
2565 ac_fn_cxx_check_type ()
2566 {
2567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if eval "test \"\${$3+set}\"" = set; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   eval "$3=no"
2574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h.  */
2576 $4
2577 int
2578 main ()
2579 {
2580 if (sizeof ($2))
2581          return 0;
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_cxx_try_compile "$LINENO"; then :
2587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589 $4
2590 int
2591 main ()
2592 {
2593 if (sizeof (($2)))
2594             return 0;
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_cxx_try_compile "$LINENO"; then :
2600
2601 else
2602   eval "$3=yes"
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608 eval ac_res=\$$3
2609                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610 $as_echo "$ac_res" >&6; }
2611   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612
2613 } # ac_fn_cxx_check_type
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2617
2618 It was created by xmltooling $as_me 1.4, which was
2619 generated by GNU Autoconf 2.67.  Invocation command line was
2620
2621   $ $0 $@
2622
2623 _ACEOF
2624 exec 5>>config.log
2625 {
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2630
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2639
2640 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2641 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2644 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2645 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2646 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2647
2648 _ASUNAME
2649
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     $as_echo "PATH: $as_dir"
2656   done
2657 IFS=$as_save_IFS
2658
2659 } >&5
2660
2661 cat >&5 <<_ACEOF
2662
2663
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2667
2668 _ACEOF
2669
2670
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2681 do
2682   for ac_arg
2683   do
2684     case $ac_arg in
2685     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687     | -silent | --silent | --silen | --sile | --sil)
2688       continue ;;
2689     *\'*)
2690       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691     esac
2692     case $ac_pass in
2693     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694     2)
2695       as_fn_append ac_configure_args1 " '$ac_arg'"
2696       if test $ac_must_keep_next = true; then
2697         ac_must_keep_next=false # Got value, back to normal.
2698       else
2699         case $ac_arg in
2700           *=* | --config-cache | -C | -disable-* | --disable-* \
2701           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703           | -with-* | --with-* | -without-* | --without-* | --x)
2704             case "$ac_configure_args0 " in
2705               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706             esac
2707             ;;
2708           -* ) ac_must_keep_next=true ;;
2709         esac
2710       fi
2711       as_fn_append ac_configure_args " '$ac_arg'"
2712       ;;
2713     esac
2714   done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2718
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log.  We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725   # Save into config.log some information that might help in debugging.
2726   {
2727     echo
2728
2729     $as_echo "## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##"
2732     echo
2733     # The following way of writing the cache mishandles newlines in values,
2734 (
2735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736     eval ac_val=\$$ac_var
2737     case $ac_val in #(
2738     *${as_nl}*)
2739       case $ac_var in #(
2740       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742       esac
2743       case $ac_var in #(
2744       _ | IFS | as_nl) ;; #(
2745       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746       *) { eval $ac_var=; unset $ac_var;} ;;
2747       esac ;;
2748     esac
2749   done
2750   (set) 2>&1 |
2751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752     *${as_nl}ac_space=\ *)
2753       sed -n \
2754         "s/'\''/'\''\\\\'\'''\''/g;
2755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756       ;; #(
2757     *)
2758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2759       ;;
2760     esac |
2761     sort
2762 )
2763     echo
2764
2765     $as_echo "## ----------------- ##
2766 ## Output variables. ##
2767 ## ----------------- ##"
2768     echo
2769     for ac_var in $ac_subst_vars
2770     do
2771       eval ac_val=\$$ac_var
2772       case $ac_val in
2773       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774       esac
2775       $as_echo "$ac_var='\''$ac_val'\''"
2776     done | sort
2777     echo
2778
2779     if test -n "$ac_subst_files"; then
2780       $as_echo "## ------------------- ##
2781 ## File substitutions. ##
2782 ## ------------------- ##"
2783       echo
2784       for ac_var in $ac_subst_files
2785       do
2786         eval ac_val=\$$ac_var
2787         case $ac_val in
2788         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2789         esac
2790         $as_echo "$ac_var='\''$ac_val'\''"
2791       done | sort
2792       echo
2793     fi
2794
2795     if test -s confdefs.h; then
2796       $as_echo "## ----------- ##
2797 ## confdefs.h. ##
2798 ## ----------- ##"
2799       echo
2800       cat confdefs.h
2801       echo
2802     fi
2803     test "$ac_signal" != 0 &&
2804       $as_echo "$as_me: caught signal $ac_signal"
2805     $as_echo "$as_me: exit $exit_status"
2806   } >&5
2807   rm -f core *.core core.conftest.* &&
2808     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2809     exit $exit_status
2810 ' 0
2811 for ac_signal in 1 2 13 15; do
2812   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2813 done
2814 ac_signal=0
2815
2816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2817 rm -f -r conftest* confdefs.h
2818
2819 $as_echo "/* confdefs.h */" > confdefs.h
2820
2821 # Predefined preprocessor variables.
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_NAME "$PACKAGE_NAME"
2825 _ACEOF
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2829 _ACEOF
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_STRING "$PACKAGE_STRING"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_URL "$PACKAGE_URL"
2845 _ACEOF
2846
2847
2848 # Let the site file select an alternate cache file if it wants to.
2849 # Prefer an explicitly selected file to automatically selected ones.
2850 ac_site_file1=NONE
2851 ac_site_file2=NONE
2852 if test -n "$CONFIG_SITE"; then
2853   # We do not want a PATH search for config.site.
2854   case $CONFIG_SITE in #((
2855     -*)  ac_site_file1=./$CONFIG_SITE;;
2856     */*) ac_site_file1=$CONFIG_SITE;;
2857     *)   ac_site_file1=./$CONFIG_SITE;;
2858   esac
2859 elif test "x$prefix" != xNONE; then
2860   ac_site_file1=$prefix/share/config.site
2861   ac_site_file2=$prefix/etc/config.site
2862 else
2863   ac_site_file1=$ac_default_prefix/share/config.site
2864   ac_site_file2=$ac_default_prefix/etc/config.site
2865 fi
2866 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 do
2868   test "x$ac_site_file" = xNONE && continue
2869   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2870     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2871 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2872     sed 's/^/| /' "$ac_site_file" >&5
2873     . "$ac_site_file" \
2874       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "failed to load site script $ac_site_file
2877 See \`config.log' for more details" "$LINENO" 5 ; }
2878   fi
2879 done
2880
2881 if test -r "$cache_file"; then
2882   # Some versions of bash will fail to source /dev/null (special files
2883   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2884   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887     case $cache_file in
2888       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889       *)                      . "./$cache_file";;
2890     esac
2891   fi
2892 else
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2895   >$cache_file
2896 fi
2897
2898 # Check that the precious variables saved in the cache have kept the same
2899 # value.
2900 ac_cache_corrupted=false
2901 for ac_var in $ac_precious_vars; do
2902   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2903   eval ac_new_set=\$ac_env_${ac_var}_set
2904   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2905   eval ac_new_val=\$ac_env_${ac_var}_value
2906   case $ac_old_set,$ac_new_set in
2907     set,)
2908       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2910       ac_cache_corrupted=: ;;
2911     ,set)
2912       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2914       ac_cache_corrupted=: ;;
2915     ,);;
2916     *)
2917       if test "x$ac_old_val" != "x$ac_new_val"; then
2918         # differences in whitespace do not lead to failure.
2919         ac_old_val_w=`echo x $ac_old_val`
2920         ac_new_val_w=`echo x $ac_new_val`
2921         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2922           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2924           ac_cache_corrupted=:
2925         else
2926           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2928           eval $ac_var=\$ac_old_val
2929         fi
2930         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2931 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2932         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2933 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2934       fi;;
2935   esac
2936   # Pass precious variables to config.status.
2937   if test "$ac_new_set" = set; then
2938     case $ac_new_val in
2939     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2940     *) ac_arg=$ac_var=$ac_new_val ;;
2941     esac
2942     case " $ac_configure_args " in
2943       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2944       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2945     esac
2946   fi
2947 done
2948 if $ac_cache_corrupted; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2952 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2953   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2954 fi
2955 ## -------------------- ##
2956 ## Main body of script. ##
2957 ## -------------------- ##
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964
2965
2966
2967 ac_aux_dir=
2968 for ac_dir in build-aux "$srcdir"/build-aux; do
2969   if test -f "$ac_dir/install-sh"; then
2970     ac_aux_dir=$ac_dir
2971     ac_install_sh="$ac_aux_dir/install-sh -c"
2972     break
2973   elif test -f "$ac_dir/install.sh"; then
2974     ac_aux_dir=$ac_dir
2975     ac_install_sh="$ac_aux_dir/install.sh -c"
2976     break
2977   elif test -f "$ac_dir/shtool"; then
2978     ac_aux_dir=$ac_dir
2979     ac_install_sh="$ac_aux_dir/shtool install -c"
2980     break
2981   fi
2982 done
2983 if test -z "$ac_aux_dir"; then
2984   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2985 fi
2986
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2993 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2994
2995
2996
2997 am__api_version='1.11'
2998
2999 # Find a good install program.  We prefer a C program (faster),
3000 # so one script is as good as another.  But avoid the broken or
3001 # incompatible versions:
3002 # SysV /etc/install, /usr/sbin/install
3003 # SunOS /usr/etc/install
3004 # IRIX /sbin/install
3005 # AIX /bin/install
3006 # AmigaOS /C/install, which installs bootblocks on floppy discs
3007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3010 # OS/2's system install, which has a completely different semantic
3011 # ./install, which can be erroneously created by make from ./install.sh.
3012 # Reject install programs that cannot install multiple files.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3014 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3015 if test -z "$INSTALL"; then
3016 if test "${ac_cv_path_install+set}" = set; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024     # Account for people who put trailing slashes in PATH elements.
3025 case $as_dir/ in #((
3026   ./ | .// | /[cC]/* | \
3027   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3028   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3029   /usr/ucb/* ) ;;
3030   *)
3031     # OSF1 and SCO ODT 3.0 have their own names for install.
3032     # Don't use installbsd from OSF since it installs stuff as root
3033     # by default.
3034     for ac_prog in ginstall scoinst install; do
3035       for ac_exec_ext in '' $ac_executable_extensions; do
3036         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3037           if test $ac_prog = install &&
3038             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039             # AIX install.  It has an incompatible calling convention.
3040             :
3041           elif test $ac_prog = install &&
3042             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3043             # program-specific install script used by HP pwplus--don't use.
3044             :
3045           else
3046             rm -rf conftest.one conftest.two conftest.dir
3047             echo one > conftest.one
3048             echo two > conftest.two
3049             mkdir conftest.dir
3050             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3051               test -s conftest.one && test -s conftest.two &&
3052               test -s conftest.dir/conftest.one &&
3053               test -s conftest.dir/conftest.two
3054             then
3055               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3056               break 3
3057             fi
3058           fi
3059         fi
3060       done
3061     done
3062     ;;
3063 esac
3064
3065   done
3066 IFS=$as_save_IFS
3067
3068 rm -rf conftest.one conftest.two conftest.dir
3069
3070 fi
3071   if test "${ac_cv_path_install+set}" = set; then
3072     INSTALL=$ac_cv_path_install
3073   else
3074     # As a last resort, use the slow shell script.  Don't cache a
3075     # value for INSTALL within a source directory, because that will
3076     # break other packages using the cache if that directory is
3077     # removed, or if the value is a relative name.
3078     INSTALL=$ac_install_sh
3079   fi
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3082 $as_echo "$INSTALL" >&6; }
3083
3084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3085 # It thinks the first close brace ends the variable substitution.
3086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3087
3088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3089
3090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3091
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3093 $as_echo_n "checking whether build environment is sane... " >&6; }
3094 # Just in case
3095 sleep 1
3096 echo timestamp > conftest.file
3097 # Reject unsafe characters in $srcdir or the absolute working directory
3098 # name.  Accept space and tab only in the latter.
3099 am_lf='
3100 '
3101 case `pwd` in
3102   *[\\\"\#\$\&\'\`$am_lf]*)
3103     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3104 esac
3105 case $srcdir in
3106   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3107     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3108 esac
3109
3110 # Do `set' in a subshell so we don't clobber the current shell's
3111 # arguments.  Must try -L first in case configure is actually a
3112 # symlink; some systems play weird games with the mod time of symlinks
3113 # (eg FreeBSD returns the mod time of the symlink's containing
3114 # directory).
3115 if (
3116    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3117    if test "$*" = "X"; then
3118       # -L didn't work.
3119       set X `ls -t "$srcdir/configure" conftest.file`
3120    fi
3121    rm -f conftest.file
3122    if test "$*" != "X $srcdir/configure conftest.file" \
3123       && test "$*" != "X conftest.file $srcdir/configure"; then
3124
3125       # If neither matched, then we have a broken ls.  This can happen
3126       # if, for instance, CONFIG_SHELL is bash and it inherits a
3127       # broken ls alias from the environment.  This has actually
3128       # happened.  Such a system could not be considered "sane".
3129       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3130 alias in your environment" "$LINENO" 5
3131    fi
3132
3133    test "$2" = conftest.file
3134    )
3135 then
3136    # Ok.
3137    :
3138 else
3139    as_fn_error $? "newly created file is older than distributed files!
3140 Check your system clock" "$LINENO" 5
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3144 test "$program_prefix" != NONE &&
3145   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3146 # Use a double $ so make ignores it.
3147 test "$program_suffix" != NONE &&
3148   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3149 # Double any \ or $.
3150 # By default was `s,x,x', remove it if useless.
3151 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3152 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3153
3154 # expand $ac_aux_dir to an absolute path
3155 am_aux_dir=`cd $ac_aux_dir && pwd`
3156
3157 if test x"${MISSING+set}" != xset; then
3158   case $am_aux_dir in
3159   *\ * | *\     *)
3160     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3161   *)
3162     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3163   esac
3164 fi
3165 # Use eval to expand $SHELL
3166 if eval "$MISSING --run true"; then
3167   am_missing_run="$MISSING --run "
3168 else
3169   am_missing_run=
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3171 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3172 fi
3173
3174 if test x"${install_sh}" != xset; then
3175   case $am_aux_dir in
3176   *\ * | *\     *)
3177     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3178   *)
3179     install_sh="\${SHELL} $am_aux_dir/install-sh"
3180   esac
3181 fi
3182
3183 # Installed binaries are usually stripped using `strip' when the user
3184 # run `make install-strip'.  However `strip' might not be the right
3185 # tool to use in cross-compilation environments, therefore Automake
3186 # will honor the `STRIP' environment variable to overrule this program.
3187 if test "$cross_compiling" != no; then
3188   if test -n "$ac_tool_prefix"; then
3189   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}strip; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_STRIP+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$STRIP"; then
3197   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 STRIP=$ac_cv_prog_STRIP
3217 if test -n "$STRIP"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3219 $as_echo "$STRIP" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 fi
3227 if test -z "$ac_cv_prog_STRIP"; then
3228   ac_ct_STRIP=$STRIP
3229   # Extract the first word of "strip", so it can be a program name with args.
3230 set dummy strip; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   if test -n "$ac_ct_STRIP"; then
3237   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242   IFS=$as_save_IFS
3243   test -z "$as_dir" && as_dir=.
3244     for ac_exec_ext in '' $ac_executable_extensions; do
3245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246     ac_cv_prog_ac_ct_STRIP="strip"
3247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248     break 2
3249   fi
3250 done
3251   done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3257 if test -n "$ac_ct_STRIP"; then
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3259 $as_echo "$ac_ct_STRIP" >&6; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265   if test "x$ac_ct_STRIP" = x; then
3266     STRIP=":"
3267   else
3268     case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274     STRIP=$ac_ct_STRIP
3275   fi
3276 else
3277   STRIP="$ac_cv_prog_STRIP"
3278 fi
3279
3280 fi
3281 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3284 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3285 if test -z "$MKDIR_P"; then
3286   if test "${ac_cv_path_mkdir+set}" = set; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294     for ac_prog in mkdir gmkdir; do
3295          for ac_exec_ext in '' $ac_executable_extensions; do
3296            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3297            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3298              'mkdir (GNU coreutils) '* | \
3299              'mkdir (coreutils) '* | \
3300              'mkdir (fileutils) '4.1*)
3301                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3302                break 3;;
3303            esac
3304          done
3305        done
3306   done
3307 IFS=$as_save_IFS
3308
3309 fi
3310
3311   test -d ./--version && rmdir ./--version
3312   if test "${ac_cv_path_mkdir+set}" = set; then
3313     MKDIR_P="$ac_cv_path_mkdir -p"
3314   else
3315     # As a last resort, use the slow shell script.  Don't cache a
3316     # value for MKDIR_P within a source directory, because that will
3317     # break other packages using the cache if that directory is
3318     # removed, or if the value is a relative name.
3319     MKDIR_P="$ac_install_sh -d"
3320   fi
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3323 $as_echo "$MKDIR_P" >&6; }
3324
3325 mkdir_p="$MKDIR_P"
3326 case $mkdir_p in
3327   [\\/$]* | ?:[\\/]*) ;;
3328   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3329 esac
3330
3331 for ac_prog in gawk mawk nawk awk
3332 do
3333   # Extract the first word of "$ac_prog", so it can be a program name with args.
3334 set dummy $ac_prog; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_AWK+set}" = set; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   if test -n "$AWK"; then
3341   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348     for ac_exec_ext in '' $ac_executable_extensions; do
3349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350     ac_cv_prog_AWK="$ac_prog"
3351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355   done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 AWK=$ac_cv_prog_AWK
3361 if test -n "$AWK"; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3363 $as_echo "$AWK" >&6; }
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370   test -n "$AWK" && break
3371 done
3372
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3374 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3375 set x ${MAKE-make}
3376 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3377 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   cat >conftest.make <<\_ACEOF
3381 SHELL = /bin/sh
3382 all:
3383         @echo '@@@%%%=$(MAKE)=@@@%%%'
3384 _ACEOF
3385 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3386 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3387   *@@@%%%=?*=@@@%%%*)
3388     eval ac_cv_prog_make_${ac_make}_set=yes;;
3389   *)
3390     eval ac_cv_prog_make_${ac_make}_set=no;;
3391 esac
3392 rm -f conftest.make
3393 fi
3394 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396 $as_echo "yes" >&6; }
3397   SET_MAKE=
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401   SET_MAKE="MAKE=${MAKE-make}"
3402 fi
3403
3404 rm -rf .tst 2>/dev/null
3405 mkdir .tst 2>/dev/null
3406 if test -d .tst; then
3407   am__leading_dot=.
3408 else
3409   am__leading_dot=_
3410 fi
3411 rmdir .tst 2>/dev/null
3412
3413 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3414   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3415   # is not polluted with repeated "-I."
3416   am__isrc=' -I$(srcdir)'
3417   # test to see if srcdir already configured
3418   if test -f $srcdir/config.status; then
3419     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3420   fi
3421 fi
3422
3423 # test whether we have cygpath
3424 if test -z "$CYGPATH_W"; then
3425   if (cygpath --version) >/dev/null 2>/dev/null; then
3426     CYGPATH_W='cygpath -w'
3427   else
3428     CYGPATH_W=echo
3429   fi
3430 fi
3431
3432
3433 # Define the identity of the package.
3434  PACKAGE='xmltooling'
3435  VERSION='1.4'
3436
3437
3438 cat >>confdefs.h <<_ACEOF
3439 #define PACKAGE "$PACKAGE"
3440 _ACEOF
3441
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define VERSION "$VERSION"
3445 _ACEOF
3446
3447 # Some tools Automake needs.
3448
3449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3450
3451
3452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3453
3454
3455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3456
3457
3458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3459
3460
3461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3462
3463 # We need awk for the "check" target.  The system "awk" is bad on
3464 # some platforms.
3465 # Always define AMTAR for backward compatibility.
3466
3467 AMTAR=${AMTAR-"${am_missing_run}tar"}
3468
3469 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3470
3471
3472
3473
3474
3475 case `pwd` in
3476   *\ * | *\     *)
3477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3478 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3479 esac
3480
3481
3482
3483 macro_version='2.2.6b'
3484 macro_revision='1.3017'
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498 ltmain="$ac_aux_dir/ltmain.sh"
3499
3500 # Make sure we can run config.sub.
3501 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3502   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3503
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3505 $as_echo_n "checking build system type... " >&6; }
3506 if test "${ac_cv_build+set}" = set; then :
3507   $as_echo_n "(cached) " >&6
3508 else
3509   ac_build_alias=$build_alias
3510 test "x$ac_build_alias" = x &&
3511   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3512 test "x$ac_build_alias" = x &&
3513   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3514 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3515   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3516
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3519 $as_echo "$ac_cv_build" >&6; }
3520 case $ac_cv_build in
3521 *-*-*) ;;
3522 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3523 esac
3524 build=$ac_cv_build
3525 ac_save_IFS=$IFS; IFS='-'
3526 set x $ac_cv_build
3527 shift
3528 build_cpu=$1
3529 build_vendor=$2
3530 shift; shift
3531 # Remember, the first character of IFS is used to create $*,
3532 # except with old shells:
3533 build_os=$*
3534 IFS=$ac_save_IFS
3535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3536
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3539 $as_echo_n "checking host system type... " >&6; }
3540 if test "${ac_cv_host+set}" = set; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if test "x$host_alias" = x; then
3544   ac_cv_host=$ac_cv_build
3545 else
3546   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3547     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3548 fi
3549
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3552 $as_echo "$ac_cv_host" >&6; }
3553 case $ac_cv_host in
3554 *-*-*) ;;
3555 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3556 esac
3557 host=$ac_cv_host
3558 ac_save_IFS=$IFS; IFS='-'
3559 set x $ac_cv_host
3560 shift
3561 host_cpu=$1
3562 host_vendor=$2
3563 shift; shift
3564 # Remember, the first character of IFS is used to create $*,
3565 # except with old shells:
3566 host_os=$*
3567 IFS=$ac_save_IFS
3568 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3569
3570
3571 DEPDIR="${am__leading_dot}deps"
3572
3573 ac_config_commands="$ac_config_commands depfiles"
3574
3575
3576 am_make=${MAKE-make}
3577 cat > confinc << 'END'
3578 am__doit:
3579         @echo this is the am__doit target
3580 .PHONY: am__doit
3581 END
3582 # If we don't find an include directive, just comment out the code.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3584 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3585 am__include="#"
3586 am__quote=
3587 _am_result=none
3588 # First try GNU make style include.
3589 echo "include confinc" > confmf
3590 # Ignore all kinds of additional output from `make'.
3591 case `$am_make -s -f confmf 2> /dev/null` in #(
3592 *the\ am__doit\ target*)
3593   am__include=include
3594   am__quote=
3595   _am_result=GNU
3596   ;;
3597 esac
3598 # Now try BSD make style include.
3599 if test "$am__include" = "#"; then
3600    echo '.include "confinc"' > confmf
3601    case `$am_make -s -f confmf 2> /dev/null` in #(
3602    *the\ am__doit\ target*)
3603      am__include=.include
3604      am__quote="\""
3605      _am_result=BSD
3606      ;;
3607    esac
3608 fi
3609
3610
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3612 $as_echo "$_am_result" >&6; }
3613 rm -f confinc confmf
3614
3615 # Check whether --enable-dependency-tracking was given.
3616 if test "${enable_dependency_tracking+set}" = set; then :
3617   enableval=$enable_dependency_tracking;
3618 fi
3619
3620 if test "x$enable_dependency_tracking" != xno; then
3621   am_depcomp="$ac_aux_dir/depcomp"
3622   AMDEPBACKSLASH='\'
3623 fi
3624  if test "x$enable_dependency_tracking" != xno; then
3625   AMDEP_TRUE=
3626   AMDEP_FALSE='#'
3627 else
3628   AMDEP_TRUE='#'
3629   AMDEP_FALSE=
3630 fi
3631
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 if test -n "$ac_tool_prefix"; then
3639   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644   $as_echo_n "(cached) " >&6
3645 else
3646   if test -n "$CC"; then
3647   ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654     for ac_exec_ext in '' $ac_executable_extensions; do
3655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661   done
3662 IFS=$as_save_IFS
3663
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3670 else
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 fi
3674
3675
3676 fi
3677 if test -z "$ac_cv_prog_CC"; then
3678   ac_ct_CC=$CC
3679   # Extract the first word of "gcc", so it can be a program name with args.
3680 set dummy gcc; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   if test -n "$ac_ct_CC"; then
3687   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_exec_ext in '' $ac_executable_extensions; do
3695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696     ac_cv_prog_ac_ct_CC="gcc"
3697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701   done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3707 if test -n "$ac_ct_CC"; then
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3709 $as_echo "$ac_ct_CC" >&6; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715   if test "x$ac_ct_CC" = x; then
3716     CC=""
3717   else
3718     case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724     CC=$ac_ct_CC
3725   fi
3726 else
3727   CC="$ac_cv_prog_CC"
3728 fi
3729
3730 if test -z "$CC"; then
3731           if test -n "$ac_tool_prefix"; then
3732     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3733 set dummy ${ac_tool_prefix}cc; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_CC+set}" = set; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   if test -n "$CC"; then
3740   ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747     for ac_exec_ext in '' $ac_executable_extensions; do
3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749     ac_cv_prog_CC="${ac_tool_prefix}cc"
3750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754   done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769   fi
3770 fi
3771 if test -z "$CC"; then
3772   # Extract the first word of "cc", so it can be a program name with args.
3773 set dummy cc; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if test "${ac_cv_prog_CC+set}" = set; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   if test -n "$CC"; then
3780   ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782   ac_prog_rejected=no
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788     for ac_exec_ext in '' $ac_executable_extensions; do
3789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3791        ac_prog_rejected=yes
3792        continue
3793      fi
3794     ac_cv_prog_CC="cc"
3795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796     break 2
3797   fi
3798 done
3799   done
3800 IFS=$as_save_IFS
3801
3802 if test $ac_prog_rejected = yes; then
3803   # We found a bogon in the path, so make sure we never use it.
3804   set dummy $ac_cv_prog_CC
3805   shift
3806   if test $# != 0; then
3807     # We chose a different compiler from the bogus one.
3808     # However, it has the same basename, so the bogon will be chosen
3809     # first if we set CC to just the basename; use the full file name.
3810     shift
3811     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3812   fi
3813 fi
3814 fi
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$CC"; then
3828   if test -n "$ac_tool_prefix"; then
3829   for ac_prog in cl.exe
3830   do
3831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_prog_CC+set}" = set; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -n "$CC"; then
3839   ac_cv_prog_CC="$CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853   done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3862 else
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 fi
3866
3867
3868     test -n "$CC" && break
3869   done
3870 fi
3871 if test -z "$CC"; then
3872   ac_ct_CC=$CC
3873   for ac_prog in cl.exe
3874 do
3875   # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   if test -n "$ac_ct_CC"; then
3883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890     for ac_exec_ext in '' $ac_executable_extensions; do
3891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892     ac_cv_prog_ac_ct_CC="$ac_prog"
3893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897   done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903 if test -n "$ac_ct_CC"; then
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3905 $as_echo "$ac_ct_CC" >&6; }
3906 else
3907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3909 fi
3910
3911
3912   test -n "$ac_ct_CC" && break
3913 done
3914
3915   if test "x$ac_ct_CC" = x; then
3916     CC=""
3917   else
3918     case $cross_compiling:$ac_tool_warned in
3919 yes:)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3923 esac
3924     CC=$ac_ct_CC
3925   fi
3926 fi
3927
3928 fi
3929
3930
3931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error $? "no acceptable C compiler found in \$PATH
3934 See \`config.log' for more details" "$LINENO" 5 ; }
3935
3936 # Provide some information about the compiler.
3937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3938 set X $ac_compile
3939 ac_compiler=$2
3940 for ac_option in --version -v -V -qversion; do
3941   { { ac_try="$ac_compiler $ac_option >&5"
3942 case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3949   ac_status=$?
3950   if test -s conftest.err; then
3951     sed '10a\
3952 ... rest of stderr output deleted ...
3953          10q' conftest.err >conftest.er1
3954     cat conftest.er1 >&5
3955   fi
3956   rm -f conftest.er1 conftest.err
3957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958   test $ac_status = 0; }
3959 done
3960
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 ac_clean_files_save=$ac_clean_files
3973 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3974 # Try to create an executable without -o first, disregard a.out.
3975 # It will help us diagnose broken compilers, and finding out an intuition
3976 # of exeext.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3978 $as_echo_n "checking whether the C compiler works... " >&6; }
3979 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3980
3981 # The possible output files:
3982 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3983
3984 ac_rmfiles=
3985 for ac_file in $ac_files
3986 do
3987   case $ac_file in
3988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3989     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3990   esac
3991 done
3992 rm -f $ac_rmfiles
3993
3994 if { { ac_try="$ac_link_default"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001   (eval "$ac_link_default") 2>&5
4002   ac_status=$?
4003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }; then :
4005   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4006 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4007 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4008 # so that the user can short-circuit this test for compilers unknown to
4009 # Autoconf.
4010 for ac_file in $ac_files ''
4011 do
4012   test -f "$ac_file" || continue
4013   case $ac_file in
4014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4015         ;;
4016     [ab].out )
4017         # We found the default executable, but exeext='' is most
4018         # certainly right.
4019         break;;
4020     *.* )
4021         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4022         then :; else
4023            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4024         fi
4025         # We set ac_cv_exeext here because the later test for it is not
4026         # safe: cross compilers may not add the suffix if given an `-o'
4027         # argument, so we may need to know it at that point already.
4028         # Even if this section looks crufty: it has the advantage of
4029         # actually working.
4030         break;;
4031     * )
4032         break;;
4033   esac
4034 done
4035 test "$ac_cv_exeext" = no && ac_cv_exeext=
4036
4037 else
4038   ac_file=''
4039 fi
4040 if test -z "$ac_file"; then :
4041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 $as_echo "no" >&6; }
4043 $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error 77 "C compiler cannot create executables
4049 See \`config.log' for more details" "$LINENO" 5 ; }
4050 else
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 $as_echo "yes" >&6; }
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4055 $as_echo_n "checking for C compiler default output file name... " >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4057 $as_echo "$ac_file" >&6; }
4058 ac_exeext=$ac_cv_exeext
4059
4060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4061 ac_clean_files=$ac_clean_files_save
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4063 $as_echo_n "checking for suffix of executables... " >&6; }
4064 if { { ac_try="$ac_link"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071   (eval "$ac_link") 2>&5
4072   ac_status=$?
4073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074   test $ac_status = 0; }; then :
4075   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4076 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4077 # work properly (i.e., refer to `conftest.exe'), while it won't with
4078 # `rm'.
4079 for ac_file in conftest.exe conftest conftest.*; do
4080   test -f "$ac_file" || continue
4081   case $ac_file in
4082     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4083     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4084           break;;
4085     * ) break;;
4086   esac
4087 done
4088 else
4089   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4092 See \`config.log' for more details" "$LINENO" 5 ; }
4093 fi
4094 rm -f conftest conftest$ac_cv_exeext
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4096 $as_echo "$ac_cv_exeext" >&6; }
4097
4098 rm -f conftest.$ac_ext
4099 EXEEXT=$ac_cv_exeext
4100 ac_exeext=$EXEEXT
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h.  */
4103 #include <stdio.h>
4104 int
4105 main ()
4106 {
4107 FILE *f = fopen ("conftest.out", "w");
4108  return ferror (f) || fclose (f) != 0;
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 ac_clean_files="$ac_clean_files conftest.out"
4115 # Check that the compiler produces executables we can run.  If not, either
4116 # the compiler is broken, or we cross compile.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4118 $as_echo_n "checking whether we are cross compiling... " >&6; }
4119 if test "$cross_compiling" != yes; then
4120   { { ac_try="$ac_link"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 $as_echo "$ac_try_echo"; } >&5
4127   (eval "$ac_link") 2>&5
4128   ac_status=$?
4129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130   test $ac_status = 0; }
4131   if { ac_try='./conftest$ac_cv_exeext'
4132   { { case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138   (eval "$ac_try") 2>&5
4139   ac_status=$?
4140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141   test $ac_status = 0; }; }; then
4142     cross_compiling=no
4143   else
4144     if test "$cross_compiling" = maybe; then
4145         cross_compiling=yes
4146     else
4147         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error $? "cannot run C compiled programs.
4150 If you meant to cross compile, use \`--host'.
4151 See \`config.log' for more details" "$LINENO" 5 ; }
4152     fi
4153   fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4156 $as_echo "$cross_compiling" >&6; }
4157
4158 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4159 ac_clean_files=$ac_clean_files_save
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4161 $as_echo_n "checking for suffix of object files... " >&6; }
4162 if test "${ac_cv_objext+set}" = set; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h.  */
4167
4168 int
4169 main ()
4170 {
4171
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest.o conftest.obj
4177 if { { ac_try="$ac_compile"
4178 case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183 $as_echo "$ac_try_echo"; } >&5
4184   (eval "$ac_compile") 2>&5
4185   ac_status=$?
4186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187   test $ac_status = 0; }; then :
4188   for ac_file in conftest.o conftest.obj conftest.*; do
4189   test -f "$ac_file" || continue;
4190   case $ac_file in
4191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4192     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4193        break;;
4194   esac
4195 done
4196 else
4197   $as_echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4202 as_fn_error $? "cannot compute suffix of object files: cannot compile
4203 See \`config.log' for more details" "$LINENO" 5 ; }
4204 fi
4205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4208 $as_echo "$ac_cv_objext" >&6; }
4209 OBJEXT=$ac_cv_objext
4210 ac_objext=$OBJEXT
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4213 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218
4219 int
4220 main ()
4221 {
4222 #ifndef __GNUC__
4223        choke me
4224 #endif
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231   ac_compiler_gnu=yes
4232 else
4233   ac_compiler_gnu=no
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4237
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4241 if test $ac_compiler_gnu = yes; then
4242   GCC=yes
4243 else
4244   GCC=
4245 fi
4246 ac_test_CFLAGS=${CFLAGS+set}
4247 ac_save_CFLAGS=$CFLAGS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4250 if test "${ac_cv_prog_cc_g+set}" = set; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   ac_save_c_werror_flag=$ac_c_werror_flag
4254    ac_c_werror_flag=yes
4255    ac_cv_prog_cc_g=no
4256    CFLAGS="-g"
4257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259
4260 int
4261 main ()
4262 {
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269   ac_cv_prog_cc_g=yes
4270 else
4271   CFLAGS=""
4272       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284
4285 else
4286   ac_c_werror_flag=$ac_save_c_werror_flag
4287          CFLAGS="-g"
4288          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290
4291 int
4292 main ()
4293 {
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300   ac_cv_prog_cc_g=yes
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307    ac_c_werror_flag=$ac_save_c_werror_flag
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4310 $as_echo "$ac_cv_prog_cc_g" >&6; }
4311 if test "$ac_test_CFLAGS" = set; then
4312   CFLAGS=$ac_save_CFLAGS
4313 elif test $ac_cv_prog_cc_g = yes; then
4314   if test "$GCC" = yes; then
4315     CFLAGS="-g -O2"
4316   else
4317     CFLAGS="-g"
4318   fi
4319 else
4320   if test "$GCC" = yes; then
4321     CFLAGS="-O2"
4322   else
4323     CFLAGS=
4324   fi
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4328 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   ac_cv_prog_cc_c89=no
4332 ac_save_CC=$CC
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h.  */
4335 #include <stdarg.h>
4336 #include <stdio.h>
4337 #include <sys/types.h>
4338 #include <sys/stat.h>
4339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4340 struct buf { int x; };
4341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4342 static char *e (p, i)
4343      char **p;
4344      int i;
4345 {
4346   return p[i];
4347 }
4348 static char *f (char * (*g) (char **, int), char **p, ...)
4349 {
4350   char *s;
4351   va_list v;
4352   va_start (v,p);
4353   s = g (p, va_arg (v,int));
4354   va_end (v);
4355   return s;
4356 }
4357
4358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4359    function prototypes and stuff, but not '\xHH' hex character constants.
4360    These don't provoke an error unfortunately, instead are silently treated
4361    as 'x'.  The following induces an error, until -std is added to get
4362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4363    array size at least.  It's necessary to write '\x00'==0 to get something
4364    that's true only with -std.  */
4365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4366
4367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4368    inside strings and character constants.  */
4369 #define FOO(x) 'x'
4370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4371
4372 int test (int i, double x);
4373 struct s1 {int (*f) (int a);};
4374 struct s2 {int (*f) (double a);};
4375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4376 int argc;
4377 char **argv;
4378 int
4379 main ()
4380 {
4381 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4387         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4388 do
4389   CC="$ac_save_CC $ac_arg"
4390   if ac_fn_c_try_compile "$LINENO"; then :
4391   ac_cv_prog_cc_c89=$ac_arg
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext
4394   test "x$ac_cv_prog_cc_c89" != "xno" && break
4395 done
4396 rm -f conftest.$ac_ext
4397 CC=$ac_save_CC
4398
4399 fi
4400 # AC_CACHE_VAL
4401 case "x$ac_cv_prog_cc_c89" in
4402   x)
4403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4404 $as_echo "none needed" >&6; } ;;
4405   xno)
4406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4407 $as_echo "unsupported" >&6; } ;;
4408   *)
4409     CC="$CC $ac_cv_prog_cc_c89"
4410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4412 esac
4413 if test "x$ac_cv_prog_cc_c89" != xno; then :
4414
4415 fi
4416
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
4423 depcc="$CC"   am_compiler_list=
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4426 $as_echo_n "checking dependency style of $depcc... " >&6; }
4427 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4431   # We make a subdir and do the tests there.  Otherwise we can end up
4432   # making bogus files that we don't know about and never remove.  For
4433   # instance it was reported that on HP-UX the gcc test will end up
4434   # making a dummy file named `D' -- because `-MD' means `put the output
4435   # in D'.
4436   mkdir conftest.dir
4437   # Copy depcomp to subdir because otherwise we won't find it if we're
4438   # using a relative directory.
4439   cp "$am_depcomp" conftest.dir
4440   cd conftest.dir
4441   # We will build objects and dependencies in a subdirectory because
4442   # it helps to detect inapplicable dependency modes.  For instance
4443   # both Tru64's cc and ICC support -MD to output dependencies as a
4444   # side effect of compilation, but ICC will put the dependencies in
4445   # the current directory while Tru64 will put them in the object
4446   # directory.
4447   mkdir sub
4448
4449   am_cv_CC_dependencies_compiler_type=none
4450   if test "$am_compiler_list" = ""; then
4451      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452   fi
4453   am__universal=false
4454   case " $depcc " in #(
4455      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456      esac
4457
4458   for depmode in $am_compiler_list; do
4459     # Setup a source with many dependencies, because some compilers
4460     # like to wrap large dependency lists on column 80 (with \), and
4461     # we should not choose a depcomp mode which is confused by this.
4462     #
4463     # We need to recreate these files for each test, as the compiler may
4464     # overwrite some of them when testing with obscure command lines.
4465     # This happens at least with the AIX C compiler.
4466     : > sub/conftest.c
4467     for i in 1 2 3 4 5 6; do
4468       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4469       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4470       # Solaris 8's {/usr,}/bin/sh.
4471       touch sub/conftst$i.h
4472     done
4473     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474
4475     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4476     # mode.  It turns out that the SunPro C++ compiler does not properly
4477     # handle `-M -o', and we need to detect this.  Also, some Intel
4478     # versions had trouble with output in subdirs
4479     am__obj=sub/conftest.${OBJEXT-o}
4480     am__minus_obj="-o $am__obj"
4481     case $depmode in
4482     gcc)
4483       # This depmode causes a compiler race in universal mode.
4484       test "$am__universal" = false || continue
4485       ;;
4486     nosideeffect)
4487       # after this tag, mechanisms are not by side-effect, so they'll
4488       # only be used when explicitly requested
4489       if test "x$enable_dependency_tracking" = xyes; then
4490         continue
4491       else
4492         break
4493       fi
4494       ;;
4495     msvisualcpp | msvcmsys)
4496       # This compiler won't grok `-c -o', but also, the minuso test has
4497       # not run yet.  These depmodes are late enough in the game, and
4498       # so weak that their functioning should not be impacted.
4499       am__obj=conftest.${OBJEXT-o}
4500       am__minus_obj=
4501       ;;
4502     none) break ;;
4503     esac
4504     if depmode=$depmode \
4505        source=sub/conftest.c object=$am__obj \
4506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4508          >/dev/null 2>conftest.err &&
4509        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4510        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4511        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4512        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4513       # icc doesn't choke on unknown options, it will just issue warnings
4514       # or remarks (even with -Werror).  So we grep stderr for any message
4515       # that says an option was ignored or not supported.
4516       # When given -MP, icc 7.0 and 7.1 complain thusly:
4517       #   icc: Command line warning: ignoring option '-M'; no argument required
4518       # The diagnosis changed in icc 8.0:
4519       #   icc: Command line remark: option '-MP' not supported
4520       if (grep 'ignoring option' conftest.err ||
4521           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4522         am_cv_CC_dependencies_compiler_type=$depmode
4523         break
4524       fi
4525     fi
4526   done
4527
4528   cd ..
4529   rm -rf conftest.dir
4530 else
4531   am_cv_CC_dependencies_compiler_type=none
4532 fi
4533
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4536 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4538
4539  if
4540   test "x$enable_dependency_tracking" != xno \
4541   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4542   am__fastdepCC_TRUE=
4543   am__fastdepCC_FALSE='#'
4544 else
4545   am__fastdepCC_TRUE='#'
4546   am__fastdepCC_FALSE=
4547 fi
4548
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4551 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4552 if test "${ac_cv_path_SED+set}" = set; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4556      for ac_i in 1 2 3 4 5 6 7; do
4557        ac_script="$ac_script$as_nl$ac_script"
4558      done
4559      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4560      { ac_script=; unset ac_script;}
4561      if test -z "$SED"; then
4562   ac_path_SED_found=false
4563   # Loop through the user's path and test for each of PROGNAME-LIST
4564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569     for ac_prog in sed gsed; do
4570     for ac_exec_ext in '' $ac_executable_extensions; do
4571       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4572       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4573 # Check for GNU ac_path_SED and select it if it is found.
4574   # Check for GNU $ac_path_SED
4575 case `"$ac_path_SED" --version 2>&1` in
4576 *GNU*)
4577   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4578 *)
4579   ac_count=0
4580   $as_echo_n 0123456789 >"conftest.in"
4581   while :
4582   do
4583     cat "conftest.in" "conftest.in" >"conftest.tmp"
4584     mv "conftest.tmp" "conftest.in"
4585     cp "conftest.in" "conftest.nl"
4586     $as_echo '' >> "conftest.nl"
4587     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589     as_fn_arith $ac_count + 1 && ac_count=$as_val
4590     if test $ac_count -gt ${ac_path_SED_max-0}; then
4591       # Best one so far, save it but keep looking for a better one
4592       ac_cv_path_SED="$ac_path_SED"
4593       ac_path_SED_max=$ac_count
4594     fi
4595     # 10*(2^10) chars as input seems more than enough
4596     test $ac_count -gt 10 && break
4597   done
4598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 esac
4600
4601       $ac_path_SED_found && break 3
4602     done
4603   done
4604   done
4605 IFS=$as_save_IFS
4606   if test -z "$ac_cv_path_SED"; then
4607     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4608   fi
4609 else
4610   ac_cv_path_SED=$SED
4611 fi
4612
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4615 $as_echo "$ac_cv_path_SED" >&6; }
4616  SED="$ac_cv_path_SED"
4617   rm -f conftest.sed
4618
4619 test -z "$SED" && SED=sed
4620 Xsed="$SED -e 1s/^X//"
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4633 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4634 if test "${ac_cv_path_GREP+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   if test -z "$GREP"; then
4638   ac_path_GREP_found=false
4639   # Loop through the user's path and test for each of PROGNAME-LIST
4640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645     for ac_prog in grep ggrep; do
4646     for ac_exec_ext in '' $ac_executable_extensions; do
4647       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4648       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4649 # Check for GNU ac_path_GREP and select it if it is found.
4650   # Check for GNU $ac_path_GREP
4651 case `"$ac_path_GREP" --version 2>&1` in
4652 *GNU*)
4653   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4654 *)
4655   ac_count=0
4656   $as_echo_n 0123456789 >"conftest.in"
4657   while :
4658   do
4659     cat "conftest.in" "conftest.in" >"conftest.tmp"
4660     mv "conftest.tmp" "conftest.in"
4661     cp "conftest.in" "conftest.nl"
4662     $as_echo 'GREP' >> "conftest.nl"
4663     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665     as_fn_arith $ac_count + 1 && ac_count=$as_val
4666     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4667       # Best one so far, save it but keep looking for a better one
4668       ac_cv_path_GREP="$ac_path_GREP"
4669       ac_path_GREP_max=$ac_count
4670     fi
4671     # 10*(2^10) chars as input seems more than enough
4672     test $ac_count -gt 10 && break
4673   done
4674   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677       $ac_path_GREP_found && break 3
4678     done
4679   done
4680   done
4681 IFS=$as_save_IFS
4682   if test -z "$ac_cv_path_GREP"; then
4683     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684   fi
4685 else
4686   ac_cv_path_GREP=$GREP
4687 fi
4688
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4691 $as_echo "$ac_cv_path_GREP" >&6; }
4692  GREP="$ac_cv_path_GREP"
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4696 $as_echo_n "checking for egrep... " >&6; }
4697 if test "${ac_cv_path_EGREP+set}" = set; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4701    then ac_cv_path_EGREP="$GREP -E"
4702    else
4703      if test -z "$EGREP"; then
4704   ac_path_EGREP_found=false
4705   # Loop through the user's path and test for each of PROGNAME-LIST
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_prog in egrep; do
4712     for ac_exec_ext in '' $ac_executable_extensions; do
4713       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4714       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4715 # Check for GNU ac_path_EGREP and select it if it is found.
4716   # Check for GNU $ac_path_EGREP
4717 case `"$ac_path_EGREP" --version 2>&1` in
4718 *GNU*)
4719   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4720 *)
4721   ac_count=0
4722   $as_echo_n 0123456789 >"conftest.in"
4723   while :
4724   do
4725     cat "conftest.in" "conftest.in" >"conftest.tmp"
4726     mv "conftest.tmp" "conftest.in"
4727     cp "conftest.in" "conftest.nl"
4728     $as_echo 'EGREP' >> "conftest.nl"
4729     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731     as_fn_arith $ac_count + 1 && ac_count=$as_val
4732     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4733       # Best one so far, save it but keep looking for a better one
4734       ac_cv_path_EGREP="$ac_path_EGREP"
4735       ac_path_EGREP_max=$ac_count
4736     fi
4737     # 10*(2^10) chars as input seems more than enough
4738     test $ac_count -gt 10 && break
4739   done
4740   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741 esac
4742
4743       $ac_path_EGREP_found && break 3
4744     done
4745   done
4746   done
4747 IFS=$as_save_IFS
4748   if test -z "$ac_cv_path_EGREP"; then
4749     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4750   fi
4751 else
4752   ac_cv_path_EGREP=$EGREP
4753 fi
4754
4755    fi
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4758 $as_echo "$ac_cv_path_EGREP" >&6; }
4759  EGREP="$ac_cv_path_EGREP"
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4763 $as_echo_n "checking for fgrep... " >&6; }
4764 if test "${ac_cv_path_FGREP+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4768    then ac_cv_path_FGREP="$GREP -F"
4769    else
4770      if test -z "$FGREP"; then
4771   ac_path_FGREP_found=false
4772   # Loop through the user's path and test for each of PROGNAME-LIST
4773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4775 do
4776   IFS=$as_save_IFS
4777   test -z "$as_dir" && as_dir=.
4778     for ac_prog in fgrep; do
4779     for ac_exec_ext in '' $ac_executable_extensions; do
4780       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4781       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4782 # Check for GNU ac_path_FGREP and select it if it is found.
4783   # Check for GNU $ac_path_FGREP
4784 case `"$ac_path_FGREP" --version 2>&1` in
4785 *GNU*)
4786   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4787 *)
4788   ac_count=0
4789   $as_echo_n 0123456789 >"conftest.in"
4790   while :
4791   do
4792     cat "conftest.in" "conftest.in" >"conftest.tmp"
4793     mv "conftest.tmp" "conftest.in"
4794     cp "conftest.in" "conftest.nl"
4795     $as_echo 'FGREP' >> "conftest.nl"
4796     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798     as_fn_arith $ac_count + 1 && ac_count=$as_val
4799     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4800       # Best one so far, save it but keep looking for a better one
4801       ac_cv_path_FGREP="$ac_path_FGREP"
4802       ac_path_FGREP_max=$ac_count
4803     fi
4804     # 10*(2^10) chars as input seems more than enough
4805     test $ac_count -gt 10 && break
4806   done
4807   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808 esac
4809
4810       $ac_path_FGREP_found && break 3
4811     done
4812   done
4813   done
4814 IFS=$as_save_IFS
4815   if test -z "$ac_cv_path_FGREP"; then
4816     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4817   fi
4818 else
4819   ac_cv_path_FGREP=$FGREP
4820 fi
4821
4822    fi
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4825 $as_echo "$ac_cv_path_FGREP" >&6; }
4826  FGREP="$ac_cv_path_FGREP"
4827
4828
4829 test -z "$GREP" && GREP=grep
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849 # Check whether --with-gnu-ld was given.
4850 if test "${with_gnu_ld+set}" = set; then :
4851   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4852 else
4853   with_gnu_ld=no
4854 fi
4855
4856 ac_prog=ld
4857 if test "$GCC" = yes; then
4858   # Check if gcc -print-prog-name=ld gives a path.
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4860 $as_echo_n "checking for ld used by $CC... " >&6; }
4861   case $host in
4862   *-*-mingw*)
4863     # gcc leaves a trailing carriage return which upsets mingw
4864     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4865   *)
4866     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4867   esac
4868   case $ac_prog in
4869     # Accept absolute paths.
4870     [\\/]* | ?:[\\/]*)
4871       re_direlt='/[^/][^/]*/\.\./'
4872       # Canonicalize the pathname of ld
4873       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4874       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4875         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4876       done
4877       test -z "$LD" && LD="$ac_prog"
4878       ;;
4879   "")
4880     # If it fails, then pretend we aren't using GCC.
4881     ac_prog=ld
4882     ;;
4883   *)
4884     # If it is relative, then search for the first ld in PATH.
4885     with_gnu_ld=unknown
4886     ;;
4887   esac
4888 elif test "$with_gnu_ld" = yes; then
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4890 $as_echo_n "checking for GNU ld... " >&6; }
4891 else
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4893 $as_echo_n "checking for non-GNU ld... " >&6; }
4894 fi
4895 if test "${lt_cv_path_LD+set}" = set; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -z "$LD"; then
4899   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4900   for ac_dir in $PATH; do
4901     IFS="$lt_save_ifs"
4902     test -z "$ac_dir" && ac_dir=.
4903     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4904       lt_cv_path_LD="$ac_dir/$ac_prog"
4905       # Check to see if the program is GNU ld.  I'd rather use --version,
4906       # but apparently some variants of GNU ld only accept -v.
4907       # Break only if it was the GNU/non-GNU ld that we prefer.
4908       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4909       *GNU* | *'with BFD'*)
4910         test "$with_gnu_ld" != no && break
4911         ;;
4912       *)
4913         test "$with_gnu_ld" != yes && break
4914         ;;
4915       esac
4916     fi
4917   done
4918   IFS="$lt_save_ifs"
4919 else
4920   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4921 fi
4922 fi
4923
4924 LD="$lt_cv_path_LD"
4925 if test -n "$LD"; then
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4927 $as_echo "$LD" >&6; }
4928 else
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 fi
4932 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4934 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4935 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4939 case `$LD -v 2>&1 </dev/null` in
4940 *GNU* | *'with BFD'*)
4941   lt_cv_prog_gnu_ld=yes
4942   ;;
4943 *)
4944   lt_cv_prog_gnu_ld=no
4945   ;;
4946 esac
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4949 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4950 with_gnu_ld=$lt_cv_prog_gnu_ld
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4961 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4962 if test "${lt_cv_path_NM+set}" = set; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   if test -n "$NM"; then
4966   # Let the user override the test.
4967   lt_cv_path_NM="$NM"
4968 else
4969   lt_nm_to_check="${ac_tool_prefix}nm"
4970   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4971     lt_nm_to_check="$lt_nm_to_check nm"
4972   fi
4973   for lt_tmp_nm in $lt_nm_to_check; do
4974     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4975     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4976       IFS="$lt_save_ifs"
4977       test -z "$ac_dir" && ac_dir=.
4978       tmp_nm="$ac_dir/$lt_tmp_nm"
4979       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4980         # Check to see if the nm accepts a BSD-compat flag.
4981         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4982         #   nm: unknown option "B" ignored
4983         # Tru64's nm complains that /dev/null is an invalid object file
4984         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4985         */dev/null* | *'Invalid file or object type'*)
4986           lt_cv_path_NM="$tmp_nm -B"
4987           break
4988           ;;
4989         *)
4990           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4991           */dev/null*)
4992             lt_cv_path_NM="$tmp_nm -p"
4993             break
4994             ;;
4995           *)
4996             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4997             continue # so that we can try to find one that supports BSD flags
4998             ;;
4999           esac
5000           ;;
5001         esac
5002       fi
5003     done
5004     IFS="$lt_save_ifs"
5005   done
5006   : ${lt_cv_path_NM=no}
5007 fi
5008 fi
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5010 $as_echo "$lt_cv_path_NM" >&6; }
5011 if test "$lt_cv_path_NM" != "no"; then
5012   NM="$lt_cv_path_NM"
5013 else
5014   # Didn't find any BSD compatible name lister, look for dumpbin.
5015   if test -n "$ac_tool_prefix"; then
5016   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5017   do
5018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -n "$DUMPBIN"; then
5026   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 DUMPBIN=$ac_cv_prog_DUMPBIN
5046 if test -n "$DUMPBIN"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5048 $as_echo "$DUMPBIN" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055     test -n "$DUMPBIN" && break
5056   done
5057 fi
5058 if test -z "$DUMPBIN"; then
5059   ac_ct_DUMPBIN=$DUMPBIN
5060   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5061 do
5062   # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$ac_ct_DUMPBIN"; then
5070   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084   done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5090 if test -n "$ac_ct_DUMPBIN"; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5092 $as_echo "$ac_ct_DUMPBIN" >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099   test -n "$ac_ct_DUMPBIN" && break
5100 done
5101
5102   if test "x$ac_ct_DUMPBIN" = x; then
5103     DUMPBIN=":"
5104   else
5105     case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     DUMPBIN=$ac_ct_DUMPBIN
5112   fi
5113 fi
5114
5115
5116   if test "$DUMPBIN" != ":"; then
5117     NM="$DUMPBIN"
5118   fi
5119 fi
5120 test -z "$NM" && NM=nm
5121
5122
5123
5124
5125
5126
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5128 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5129 if test "${lt_cv_nm_interface+set}" = set; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   lt_cv_nm_interface="BSD nm"
5133   echo "int some_variable = 0;" > conftest.$ac_ext
5134   (eval echo "\"\$as_me:5134: $ac_compile\"" >&5)
5135   (eval "$ac_compile" 2>conftest.err)
5136   cat conftest.err >&5
5137   (eval echo "\"\$as_me:5137: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5138   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5139   cat conftest.err >&5
5140   (eval echo "\"\$as_me:5140: output\"" >&5)
5141   cat conftest.out >&5
5142   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5143     lt_cv_nm_interface="MS dumpbin"
5144   fi
5145   rm -f conftest*
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5148 $as_echo "$lt_cv_nm_interface" >&6; }
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5151 $as_echo_n "checking whether ln -s works... " >&6; }
5152 LN_S=$as_ln_s
5153 if test "$LN_S" = "ln -s"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5155 $as_echo "yes" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5158 $as_echo "no, using $LN_S" >&6; }
5159 fi
5160
5161 # find the maximum length of command line arguments
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5163 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5164 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167     i=0
5168   teststring="ABCD"
5169
5170   case $build_os in
5171   msdosdjgpp*)
5172     # On DJGPP, this test can blow up pretty badly due to problems in libc
5173     # (any single argument exceeding 2000 bytes causes a buffer overrun
5174     # during glob expansion).  Even if it were fixed, the result of this
5175     # check would be larger than it should be.
5176     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5177     ;;
5178
5179   gnu*)
5180     # Under GNU Hurd, this test is not required because there is
5181     # no limit to the length of command line arguments.
5182     # Libtool will interpret -1 as no limit whatsoever
5183     lt_cv_sys_max_cmd_len=-1;
5184     ;;
5185
5186   cygwin* | mingw* | cegcc*)
5187     # On Win9x/ME, this test blows up -- it succeeds, but takes
5188     # about 5 minutes as the teststring grows exponentially.
5189     # Worse, since 9x/ME are not pre-emptively multitasking,
5190     # you end up with a "frozen" computer, even though with patience
5191     # the test eventually succeeds (with a max line length of 256k).
5192     # Instead, let's just punt: use the minimum linelength reported by
5193     # all of the supported platforms: 8192 (on NT/2K/XP).
5194     lt_cv_sys_max_cmd_len=8192;
5195     ;;
5196
5197   amigaos*)
5198     # On AmigaOS with pdksh, this test takes hours, literally.
5199     # So we just punt and use a minimum line length of 8192.
5200     lt_cv_sys_max_cmd_len=8192;
5201     ;;
5202
5203   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5204     # This has been around since 386BSD, at least.  Likely further.
5205     if test -x /sbin/sysctl; then
5206       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5207     elif test -x /usr/sbin/sysctl; then
5208       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5209     else
5210       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5211     fi
5212     # And add a safety zone
5213     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5214     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5215     ;;
5216
5217   interix*)
5218     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5219     lt_cv_sys_max_cmd_len=196608
5220     ;;
5221
5222   osf*)
5223     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5224     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5225     # nice to cause kernel panics so lets avoid the loop below.
5226     # First set a reasonable default.
5227     lt_cv_sys_max_cmd_len=16384
5228     #
5229     if test -x /sbin/sysconfig; then
5230       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5231         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5232       esac
5233     fi
5234     ;;
5235   sco3.2v5*)
5236     lt_cv_sys_max_cmd_len=102400
5237     ;;
5238   sysv5* | sco5v6* | sysv4.2uw2*)
5239     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5240     if test -n "$kargmax"; then
5241       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5242     else
5243       lt_cv_sys_max_cmd_len=32768
5244     fi
5245     ;;
5246   *)
5247     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5248     if test -n "$lt_cv_sys_max_cmd_len"; then
5249       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5250       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5251     else
5252       # Make teststring a little bigger before we do anything with it.
5253       # a 1K string should be a reasonable start.
5254       for i in 1 2 3 4 5 6 7 8 ; do
5255         teststring=$teststring$teststring
5256       done
5257       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5258       # If test is not a shell built-in, we'll probably end up computing a
5259       # maximum length that is only half of the actual maximum length, but
5260       # we can't tell.
5261       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5262                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5263               test $i != 17 # 1/2 MB should be enough
5264       do
5265         i=`expr $i + 1`
5266         teststring=$teststring$teststring
5267       done
5268       # Only check the string length outside the loop.
5269       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5270       teststring=
5271       # Add a significant safety factor because C++ compilers can tack on
5272       # massive amounts of additional arguments before passing them to the
5273       # linker.  It appears as though 1/2 is a usable value.
5274       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5275     fi
5276     ;;
5277   esac
5278
5279 fi
5280
5281 if test -n $lt_cv_sys_max_cmd_len ; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5286 $as_echo "none" >&6; }
5287 fi
5288 max_cmd_len=$lt_cv_sys_max_cmd_len
5289
5290
5291
5292
5293
5294
5295 : ${CP="cp -f"}
5296 : ${MV="mv -f"}
5297 : ${RM="rm -f"}
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5300 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5301 # Try some XSI features
5302 xsi_shell=no
5303 ( _lt_dummy="a/b/c"
5304   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5305       = c,a/b,, \
5306     && eval 'test $(( 1 + 1 )) -eq 2 \
5307     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5308   && xsi_shell=yes
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5310 $as_echo "$xsi_shell" >&6; }
5311
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5314 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5315 lt_shell_append=no
5316 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5317     >/dev/null 2>&1 \
5318   && lt_shell_append=yes
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5320 $as_echo "$lt_shell_append" >&6; }
5321
5322
5323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5324   lt_unset=unset
5325 else
5326   lt_unset=false
5327 fi
5328
5329
5330
5331
5332
5333 # test EBCDIC or ASCII
5334 case `echo X|tr X '\101'` in
5335  A) # ASCII based system
5336     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5337   lt_SP2NL='tr \040 \012'
5338   lt_NL2SP='tr \015\012 \040\040'
5339   ;;
5340  *) # EBCDIC based system
5341   lt_SP2NL='tr \100 \n'
5342   lt_NL2SP='tr \r\n \100\100'
5343   ;;
5344 esac
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5356 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   lt_cv_ld_reload_flag='-r'
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5363 reload_flag=$lt_cv_ld_reload_flag
5364 case $reload_flag in
5365 "" | " "*) ;;
5366 *) reload_flag=" $reload_flag" ;;
5367 esac
5368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5369 case $host_os in
5370   darwin*)
5371     if test "$GCC" = yes; then
5372       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5373     else
5374       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5375     fi
5376     ;;
5377 esac
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 if test -n "$ac_tool_prefix"; then
5388   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if test -n "$OBJDUMP"; then
5396   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403     for ac_exec_ext in '' $ac_executable_extensions; do
5404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410   done
5411 IFS=$as_save_IFS
5412
5413 fi
5414 fi
5415 OBJDUMP=$ac_cv_prog_OBJDUMP
5416 if test -n "$OBJDUMP"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5418 $as_echo "$OBJDUMP" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424
5425 fi
5426 if test -z "$ac_cv_prog_OBJDUMP"; then
5427   ac_ct_OBJDUMP=$OBJDUMP
5428   # Extract the first word of "objdump", so it can be a program name with args.
5429 set dummy objdump; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   if test -n "$ac_ct_OBJDUMP"; then
5436   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452
5453 fi
5454 fi
5455 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5456 if test -n "$ac_ct_OBJDUMP"; then
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5458 $as_echo "$ac_ct_OBJDUMP" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464   if test "x$ac_ct_OBJDUMP" = x; then
5465     OBJDUMP="false"
5466   else
5467     case $cross_compiling:$ac_tool_warned in
5468 yes:)
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5471 ac_tool_warned=yes ;;
5472 esac
5473     OBJDUMP=$ac_ct_OBJDUMP
5474   fi
5475 else
5476   OBJDUMP="$ac_cv_prog_OBJDUMP"
5477 fi
5478
5479 test -z "$OBJDUMP" && OBJDUMP=objdump
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5490 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5491 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   lt_cv_file_magic_cmd='$MAGIC_CMD'
5495 lt_cv_file_magic_test_file=
5496 lt_cv_deplibs_check_method='unknown'
5497 # Need to set the preceding variable on all platforms that support
5498 # interlibrary dependencies.
5499 # 'none' -- dependencies not supported.
5500 # `unknown' -- same as none, but documents that we really don't know.
5501 # 'pass_all' -- all dependencies passed with no checks.
5502 # 'test_compile' -- check by making test program.
5503 # 'file_magic [[regex]]' -- check by looking for files in library path
5504 # which responds to the $file_magic_cmd with a given extended regex.
5505 # If you have `file' or equivalent on your system and you're not sure
5506 # whether `pass_all' will *always* work, you probably want this one.
5507
5508 case $host_os in
5509 aix[4-9]*)
5510   lt_cv_deplibs_check_method=pass_all
5511   ;;
5512
5513 beos*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 bsdi[45]*)
5518   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5519   lt_cv_file_magic_cmd='/usr/bin/file -L'
5520   lt_cv_file_magic_test_file=/shlib/libc.so
5521   ;;
5522
5523 cygwin*)
5524   # func_win32_libid is a shell function defined in ltmain.sh
5525   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5526   lt_cv_file_magic_cmd='func_win32_libid'
5527   ;;
5528
5529 mingw* | pw32*)
5530   # Base MSYS/MinGW do not provide the 'file' command needed by
5531   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5532   # unless we find 'file', for example because we are cross-compiling.
5533   if ( file / ) >/dev/null 2>&1; then
5534     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5535     lt_cv_file_magic_cmd='func_win32_libid'
5536   else
5537     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5538     lt_cv_file_magic_cmd='$OBJDUMP -f'
5539   fi
5540   ;;
5541
5542 cegcc)
5543   # use the weaker test based on 'objdump'. See mingw*.
5544   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5545   lt_cv_file_magic_cmd='$OBJDUMP -f'
5546   ;;
5547
5548 darwin* | rhapsody*)
5549   lt_cv_deplibs_check_method=pass_all
5550   ;;
5551
5552 freebsd* | dragonfly*)
5553   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5554     case $host_cpu in
5555     i*86 )
5556       # Not sure whether the presence of OpenBSD here was a mistake.
5557       # Let's accept both of them until this is cleared up.
5558       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5559       lt_cv_file_magic_cmd=/usr/bin/file
5560       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5561       ;;
5562     esac
5563   else
5564     lt_cv_deplibs_check_method=pass_all
5565   fi
5566   ;;
5567
5568 gnu*)
5569   lt_cv_deplibs_check_method=pass_all
5570   ;;
5571
5572 hpux10.20* | hpux11*)
5573   lt_cv_file_magic_cmd=/usr/bin/file
5574   case $host_cpu in
5575   ia64*)
5576     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5577     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5578     ;;
5579   hppa*64*)
5580     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]'
5581     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5582     ;;
5583   *)
5584     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5585     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5586     ;;
5587   esac
5588   ;;
5589
5590 interix[3-9]*)
5591   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5592   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5593   ;;
5594
5595 irix5* | irix6* | nonstopux*)
5596   case $LD in
5597   *-32|*"-32 ") libmagic=32-bit;;
5598   *-n32|*"-n32 ") libmagic=N32;;
5599   *-64|*"-64 ") libmagic=64-bit;;
5600   *) libmagic=never-match;;
5601   esac
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 # This must be Linux ELF.
5606 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 netbsd* | netbsdelf*-gnu)
5611   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5613   else
5614     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5615   fi
5616   ;;
5617
5618 newos6*)
5619   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5620   lt_cv_file_magic_cmd=/usr/bin/file
5621   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5622   ;;
5623
5624 *nto* | *qnx*)
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627
5628 openbsd*)
5629   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5631   else
5632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5633   fi
5634   ;;
5635
5636 osf3* | osf4* | osf5*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639
5640 rdos*)
5641   lt_cv_deplibs_check_method=pass_all
5642   ;;
5643
5644 solaris*)
5645   lt_cv_deplibs_check_method=pass_all
5646   ;;
5647
5648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5649   lt_cv_deplibs_check_method=pass_all
5650   ;;
5651
5652 sysv4 | sysv4.3*)
5653   case $host_vendor in
5654   motorola)
5655     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]'
5656     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5657     ;;
5658   ncr)
5659     lt_cv_deplibs_check_method=pass_all
5660     ;;
5661   sequent)
5662     lt_cv_file_magic_cmd='/bin/file'
5663     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5664     ;;
5665   sni)
5666     lt_cv_file_magic_cmd='/bin/file'
5667     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5668     lt_cv_file_magic_test_file=/lib/libc.so
5669     ;;
5670   siemens)
5671     lt_cv_deplibs_check_method=pass_all
5672     ;;
5673   pc)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676   esac
5677   ;;
5678
5679 tpf*)
5680   lt_cv_deplibs_check_method=pass_all
5681   ;;
5682 esac
5683
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5686 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5687 file_magic_cmd=$lt_cv_file_magic_cmd
5688 deplibs_check_method=$lt_cv_deplibs_check_method
5689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 if test -n "$ac_tool_prefix"; then
5703   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ar; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_prog_AR+set}" = set; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -n "$AR"; then
5711   ac_cv_prog_AR="$AR" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720     ac_cv_prog_AR="${ac_tool_prefix}ar"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 AR=$ac_cv_prog_AR
5731 if test -n "$AR"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5733 $as_echo "$AR" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 fi
5741 if test -z "$ac_cv_prog_AR"; then
5742   ac_ct_AR=$AR
5743   # Extract the first word of "ar", so it can be a program name with args.
5744 set dummy ar; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -n "$ac_ct_AR"; then
5751   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_prog_ac_ct_AR="ar"
5761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765   done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5771 if test -n "$ac_ct_AR"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5773 $as_echo "$ac_ct_AR" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779   if test "x$ac_ct_AR" = x; then
5780     AR="false"
5781   else
5782     case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788     AR=$ac_ct_AR
5789   fi
5790 else
5791   AR="$ac_cv_prog_AR"
5792 fi
5793
5794 test -z "$AR" && AR=ar
5795 test -z "$AR_FLAGS" && AR_FLAGS=cru
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_prog_STRIP+set}" = set; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   if test -n "$STRIP"; then
5816   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 STRIP=$ac_cv_prog_STRIP
5836 if test -n "$STRIP"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5838 $as_echo "$STRIP" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 fi
5846 if test -z "$ac_cv_prog_STRIP"; then
5847   ac_ct_STRIP=$STRIP
5848   # Extract the first word of "strip", so it can be a program name with args.
5849 set dummy strip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   if test -n "$ac_ct_STRIP"; then
5856   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863     for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_ac_ct_STRIP="strip"
5866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870   done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876 if test -n "$ac_ct_STRIP"; then
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5878 $as_echo "$ac_ct_STRIP" >&6; }
5879 else
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884   if test "x$ac_ct_STRIP" = x; then
5885     STRIP=":"
5886   else
5887     case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893     STRIP=$ac_ct_STRIP
5894   fi
5895 else
5896   STRIP="$ac_cv_prog_STRIP"
5897 fi
5898
5899 test -z "$STRIP" && STRIP=:
5900
5901
5902
5903
5904
5905
5906 if test -n "$ac_tool_prefix"; then
5907   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   if test -n "$RANLIB"; then
5915   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922     for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929   done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 RANLIB=$ac_cv_prog_RANLIB
5935 if test -n "$RANLIB"; then
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5937 $as_echo "$RANLIB" >&6; }
5938 else
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_RANLIB"; then
5946   ac_ct_RANLIB=$RANLIB
5947   # Extract the first word of "ranlib", so it can be a program name with args.
5948 set dummy ranlib; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   if test -n "$ac_ct_RANLIB"; then
5955   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960   IFS=$as_save_IFS
5961   test -z "$as_dir" && as_dir=.
5962     for ac_exec_ext in '' $ac_executable_extensions; do
5963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964     ac_cv_prog_ac_ct_RANLIB="ranlib"
5965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966     break 2
5967   fi
5968 done
5969   done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975 if test -n "$ac_ct_RANLIB"; then
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5977 $as_echo "$ac_ct_RANLIB" >&6; }
5978 else
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983   if test "x$ac_ct_RANLIB" = x; then
5984     RANLIB=":"
5985   else
5986     case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992     RANLIB=$ac_ct_RANLIB
5993   fi
5994 else
5995   RANLIB="$ac_cv_prog_RANLIB"
5996 fi
5997
5998 test -z "$RANLIB" && RANLIB=:
5999
6000
6001
6002
6003
6004
6005 # Determine commands to create old-style static archives.
6006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6007 old_postinstall_cmds='chmod 644 $oldlib'
6008 old_postuninstall_cmds=
6009
6010 if test -n "$RANLIB"; then
6011   case $host_os in
6012   openbsd*)
6013     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6014     ;;
6015   *)
6016     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6017     ;;
6018   esac
6019   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6020 fi
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 # If no C compiler was specified, use CC.
6056 LTCC=${LTCC-"$CC"}
6057
6058 # If no C compiler flags were specified, use CFLAGS.
6059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6060
6061 # Allow CC to be a program name with arguments.
6062 compiler=$CC
6063
6064
6065 # Check for command to grab the raw symbol name followed by C symbol from nm.
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6067 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6068 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071
6072 # These are sane defaults that work on at least a few old systems.
6073 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6074
6075 # Character class describing NM global symbol codes.
6076 symcode='[BCDEGRST]'
6077
6078 # Regexp to match symbols that can be accessed directly from C.
6079 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6080
6081 # Define system-specific variables.
6082 case $host_os in
6083 aix*)
6084   symcode='[BCDT]'
6085   ;;
6086 cygwin* | mingw* | pw32* | cegcc*)
6087   symcode='[ABCDGISTW]'
6088   ;;
6089 hpux*)
6090   if test "$host_cpu" = ia64; then
6091     symcode='[ABCDEGRST]'
6092   fi
6093   ;;
6094 irix* | nonstopux*)
6095   symcode='[BCDEGRST]'
6096   ;;
6097 osf*)
6098   symcode='[BCDEGQRST]'
6099   ;;
6100 solaris*)
6101   symcode='[BDRT]'
6102   ;;
6103 sco3.2v5*)
6104   symcode='[DT]'
6105   ;;
6106 sysv4.2uw2*)
6107   symcode='[DT]'
6108   ;;
6109 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6110   symcode='[ABDT]'
6111   ;;
6112 sysv4)
6113   symcode='[DFNSTU]'
6114   ;;
6115 esac
6116
6117 # If we're using GNU nm, then use its standard symbol codes.
6118 case `$NM -V 2>&1` in
6119 *GNU* | *'with BFD'*)
6120   symcode='[ABCDGIRSTW]' ;;
6121 esac
6122
6123 # Transform an extracted symbol line into a proper C declaration.
6124 # Some systems (esp. on ia64) link data and code symbols differently,
6125 # so use this general approach.
6126 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6127
6128 # Transform an extracted symbol line into symbol name and symbol address
6129 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6130 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'"
6131
6132 # Handle CRLF in mingw tool chain
6133 opt_cr=
6134 case $build_os in
6135 mingw*)
6136   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6137   ;;
6138 esac
6139
6140 # Try without a prefix underscore, then with it.
6141 for ac_symprfx in "" "_"; do
6142
6143   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6144   symxfrm="\\1 $ac_symprfx\\2 \\2"
6145
6146   # Write the raw and C identifiers.
6147   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6148     # Fake it for dumpbin and say T for any non-static function
6149     # and D for any global variable.
6150     # Also find C++ and __fastcall symbols from MSVC++,
6151     # which start with @ or ?.
6152     lt_cv_sys_global_symbol_pipe="$AWK '"\
6153 "     {last_section=section; section=\$ 3};"\
6154 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6155 "     \$ 0!~/External *\|/{next};"\
6156 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6157 "     {if(hide[section]) next};"\
6158 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6159 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6160 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6161 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6162 "     ' prfx=^$ac_symprfx"
6163   else
6164     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6165   fi
6166
6167   # Check to see that the pipe works correctly.
6168   pipe_works=no
6169
6170   rm -f conftest*
6171   cat > conftest.$ac_ext <<_LT_EOF
6172 #ifdef __cplusplus
6173 extern "C" {
6174 #endif
6175 char nm_test_var;
6176 void nm_test_func(void);
6177 void nm_test_func(void){}
6178 #ifdef __cplusplus
6179 }
6180 #endif
6181 int main(){nm_test_var='a';nm_test_func();return(0);}
6182 _LT_EOF
6183
6184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6185   (eval $ac_compile) 2>&5
6186   ac_status=$?
6187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188   test $ac_status = 0; }; then
6189     # Now try to grab the symbols.
6190     nlist=conftest.nm
6191     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6192   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6193   ac_status=$?
6194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6195   test $ac_status = 0; } && test -s "$nlist"; then
6196       # Try sorting and uniquifying the output.
6197       if sort "$nlist" | uniq > "$nlist"T; then
6198         mv -f "$nlist"T "$nlist"
6199       else
6200         rm -f "$nlist"T
6201       fi
6202
6203       # Make sure that we snagged all the symbols we need.
6204       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6205         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6206           cat <<_LT_EOF > conftest.$ac_ext
6207 #ifdef __cplusplus
6208 extern "C" {
6209 #endif
6210
6211 _LT_EOF
6212           # Now generate the symbol file.
6213           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6214
6215           cat <<_LT_EOF >> conftest.$ac_ext
6216
6217 /* The mapping between symbol names and symbols.  */
6218 const struct {
6219   const char *name;
6220   void       *address;
6221 }
6222 lt__PROGRAM__LTX_preloaded_symbols[] =
6223 {
6224   { "@PROGRAM@", (void *) 0 },
6225 _LT_EOF
6226           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6227           cat <<\_LT_EOF >> conftest.$ac_ext
6228   {0, (void *) 0}
6229 };
6230
6231 /* This works around a problem in FreeBSD linker */
6232 #ifdef FREEBSD_WORKAROUND
6233 static const void *lt_preloaded_setup() {
6234   return lt__PROGRAM__LTX_preloaded_symbols;
6235 }
6236 #endif
6237
6238 #ifdef __cplusplus
6239 }
6240 #endif
6241 _LT_EOF
6242           # Now try linking the two files.
6243           mv conftest.$ac_objext conftstm.$ac_objext
6244           lt_save_LIBS="$LIBS"
6245           lt_save_CFLAGS="$CFLAGS"
6246           LIBS="conftstm.$ac_objext"
6247           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6248           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6249   (eval $ac_link) 2>&5
6250   ac_status=$?
6251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6253             pipe_works=yes
6254           fi
6255           LIBS="$lt_save_LIBS"
6256           CFLAGS="$lt_save_CFLAGS"
6257         else
6258           echo "cannot find nm_test_func in $nlist" >&5
6259         fi
6260       else
6261         echo "cannot find nm_test_var in $nlist" >&5
6262       fi
6263     else
6264       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6265     fi
6266   else
6267     echo "$progname: failed program was:" >&5
6268     cat conftest.$ac_ext >&5
6269   fi
6270   rm -rf conftest* conftst*
6271
6272   # Do not use the global_symbol_pipe unless it works.
6273   if test "$pipe_works" = yes; then
6274     break
6275   else
6276     lt_cv_sys_global_symbol_pipe=
6277   fi
6278 done
6279
6280 fi
6281
6282 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6283   lt_cv_sys_global_symbol_to_cdecl=
6284 fi
6285 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6287 $as_echo "failed" >&6; }
6288 else
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6290 $as_echo "ok" >&6; }
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 # Check whether --enable-libtool-lock was given.
6316 if test "${enable_libtool_lock+set}" = set; then :
6317   enableval=$enable_libtool_lock;
6318 fi
6319
6320 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6321
6322 # Some flags need to be propagated to the compiler or linker for good
6323 # libtool support.
6324 case $host in
6325 ia64-*-hpux*)
6326   # Find out which ABI we are using.
6327   echo 'int i;' > conftest.$ac_ext
6328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329   (eval $ac_compile) 2>&5
6330   ac_status=$?
6331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332   test $ac_status = 0; }; then
6333     case `/usr/bin/file conftest.$ac_objext` in
6334       *ELF-32*)
6335         HPUX_IA64_MODE="32"
6336         ;;
6337       *ELF-64*)
6338         HPUX_IA64_MODE="64"
6339         ;;
6340     esac
6341   fi
6342   rm -rf conftest*
6343   ;;
6344 *-*-irix6*)
6345   # Find out which ABI we are using.
6346   echo '#line 6346 "configure"' > conftest.$ac_ext
6347   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348   (eval $ac_compile) 2>&5
6349   ac_status=$?
6350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351   test $ac_status = 0; }; then
6352     if test "$lt_cv_prog_gnu_ld" = yes; then
6353       case `/usr/bin/file conftest.$ac_objext` in
6354         *32-bit*)
6355           LD="${LD-ld} -melf32bsmip"
6356           ;;
6357         *N32*)
6358           LD="${LD-ld} -melf32bmipn32"
6359           ;;
6360         *64-bit*)
6361           LD="${LD-ld} -melf64bmip"
6362         ;;
6363       esac
6364     else
6365       case `/usr/bin/file conftest.$ac_objext` in
6366         *32-bit*)
6367           LD="${LD-ld} -32"
6368           ;;
6369         *N32*)
6370           LD="${LD-ld} -n32"
6371           ;;
6372         *64-bit*)
6373           LD="${LD-ld} -64"
6374           ;;
6375       esac
6376     fi
6377   fi
6378   rm -rf conftest*
6379   ;;
6380
6381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6383   # Find out which ABI we are using.
6384   echo 'int i;' > 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     case `/usr/bin/file conftest.o` in
6391       *32-bit*)
6392         case $host in
6393           x86_64-*kfreebsd*-gnu)
6394             LD="${LD-ld} -m elf_i386_fbsd"
6395             ;;
6396           x86_64-*linux*)
6397             LD="${LD-ld} -m elf_i386"
6398             ;;
6399           ppc64-*linux*|powerpc64-*linux*)
6400             LD="${LD-ld} -m elf32ppclinux"
6401             ;;
6402           s390x-*linux*)
6403             LD="${LD-ld} -m elf_s390"
6404             ;;
6405           sparc64-*linux*)
6406             LD="${LD-ld} -m elf32_sparc"
6407             ;;
6408         esac
6409         ;;
6410       *64-bit*)
6411         case $host in
6412           x86_64-*kfreebsd*-gnu)
6413             LD="${LD-ld} -m elf_x86_64_fbsd"
6414             ;;
6415           x86_64-*linux*)
6416             LD="${LD-ld} -m elf_x86_64"
6417             ;;
6418           ppc*-*linux*|powerpc*-*linux*)
6419             LD="${LD-ld} -m elf64ppc"
6420             ;;
6421           s390*-*linux*|s390*-*tpf*)
6422             LD="${LD-ld} -m elf64_s390"
6423             ;;
6424           sparc*-*linux*)
6425             LD="${LD-ld} -m elf64_sparc"
6426             ;;
6427         esac
6428         ;;
6429     esac
6430   fi
6431   rm -rf conftest*
6432   ;;
6433
6434 *-*-sco3.2v5*)
6435   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6436   SAVE_CFLAGS="$CFLAGS"
6437   CFLAGS="$CFLAGS -belf"
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6439 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6440 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
6449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451
6452 int
6453 main ()
6454 {
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_link "$LINENO"; then :
6461   lt_cv_cc_needs_belf=yes
6462 else
6463   lt_cv_cc_needs_belf=no
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext \
6466     conftest$ac_exeext conftest.$ac_ext
6467      ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6475 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6476   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6477     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6478     CFLAGS="$SAVE_CFLAGS"
6479   fi
6480   ;;
6481 sparc*-*solaris*)
6482   # Find out which ABI we are using.
6483   echo 'int i;' > conftest.$ac_ext
6484   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485   (eval $ac_compile) 2>&5
6486   ac_status=$?
6487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488   test $ac_status = 0; }; then
6489     case `/usr/bin/file conftest.o` in
6490     *64-bit*)
6491       case $lt_cv_prog_gnu_ld in
6492       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6493       *)
6494         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6495           LD="${LD-ld} -64"
6496         fi
6497         ;;
6498       esac
6499       ;;
6500     esac
6501   fi
6502   rm -rf conftest*
6503   ;;
6504 esac
6505
6506 need_locks="$enable_libtool_lock"
6507
6508
6509   case $host_os in
6510     rhapsody* | darwin*)
6511     if test -n "$ac_tool_prefix"; then
6512   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$DSYMUTIL"; then
6520   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527     for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534   done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6540 if test -n "$DSYMUTIL"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6542 $as_echo "$DSYMUTIL" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548
6549 fi
6550 if test -z "$ac_cv_prog_DSYMUTIL"; then
6551   ac_ct_DSYMUTIL=$DSYMUTIL
6552   # Extract the first word of "dsymutil", so it can be a program name with args.
6553 set dummy dsymutil; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   if test -n "$ac_ct_DSYMUTIL"; then
6560   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567     for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574   done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6580 if test -n "$ac_ct_DSYMUTIL"; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6582 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6583 else
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6586 fi
6587
6588   if test "x$ac_ct_DSYMUTIL" = x; then
6589     DSYMUTIL=":"
6590   else
6591     case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597     DSYMUTIL=$ac_ct_DSYMUTIL
6598   fi
6599 else
6600   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6601 fi
6602
6603     if test -n "$ac_tool_prefix"; then
6604   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$NMEDIT"; then
6612   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 NMEDIT=$ac_cv_prog_NMEDIT
6632 if test -n "$NMEDIT"; then
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6634 $as_echo "$NMEDIT" >&6; }
6635 else
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640
6641 fi
6642 if test -z "$ac_cv_prog_NMEDIT"; then
6643   ac_ct_NMEDIT=$NMEDIT
6644   # Extract the first word of "nmedit", so it can be a program name with args.
6645 set dummy nmedit; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651   if test -n "$ac_ct_NMEDIT"; then
6652   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659     for ac_exec_ext in '' $ac_executable_extensions; do
6660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666   done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6672 if test -n "$ac_ct_NMEDIT"; then
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6674 $as_echo "$ac_ct_NMEDIT" >&6; }
6675 else
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680   if test "x$ac_ct_NMEDIT" = x; then
6681     NMEDIT=":"
6682   else
6683     case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689     NMEDIT=$ac_ct_NMEDIT
6690   fi
6691 else
6692   NMEDIT="$ac_cv_prog_NMEDIT"
6693 fi
6694
6695     if test -n "$ac_tool_prefix"; then
6696   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if test "${ac_cv_prog_LIPO+set}" = set; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   if test -n "$LIPO"; then
6704   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 LIPO=$ac_cv_prog_LIPO
6724 if test -n "$LIPO"; then
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6726 $as_echo "$LIPO" >&6; }
6727 else
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732
6733 fi
6734 if test -z "$ac_cv_prog_LIPO"; then
6735   ac_ct_LIPO=$LIPO
6736   # Extract the first word of "lipo", so it can be a program name with args.
6737 set dummy lipo; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   if test -n "$ac_ct_LIPO"; then
6744   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749   IFS=$as_save_IFS
6750   test -z "$as_dir" && as_dir=.
6751     for ac_exec_ext in '' $ac_executable_extensions; do
6752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753     ac_cv_prog_ac_ct_LIPO="lipo"
6754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755     break 2
6756   fi
6757 done
6758   done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6764 if test -n "$ac_ct_LIPO"; then
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6766 $as_echo "$ac_ct_LIPO" >&6; }
6767 else
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772   if test "x$ac_ct_LIPO" = x; then
6773     LIPO=":"
6774   else
6775     case $cross_compiling:$ac_tool_warned in
6776 yes:)
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6780 esac
6781     LIPO=$ac_ct_LIPO
6782   fi
6783 else
6784   LIPO="$ac_cv_prog_LIPO"
6785 fi
6786
6787     if test -n "$ac_tool_prefix"; then
6788   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}otool; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795   if test -n "$OTOOL"; then
6796   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803     for ac_exec_ext in '' $ac_executable_extensions; do
6804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810   done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 OTOOL=$ac_cv_prog_OTOOL
6816 if test -n "$OTOOL"; then
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6818 $as_echo "$OTOOL" >&6; }
6819 else
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_OTOOL"; then
6827   ac_ct_OTOOL=$OTOOL
6828   # Extract the first word of "otool", so it can be a program name with args.
6829 set dummy otool; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6833   $as_echo_n "(cached) " >&6
6834 else
6835   if test -n "$ac_ct_OTOOL"; then
6836   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843     for ac_exec_ext in '' $ac_executable_extensions; do
6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845     ac_cv_prog_ac_ct_OTOOL="otool"
6846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850   done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6856 if test -n "$ac_ct_OTOOL"; then
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6858 $as_echo "$ac_ct_OTOOL" >&6; }
6859 else
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864   if test "x$ac_ct_OTOOL" = x; then
6865     OTOOL=":"
6866   else
6867     case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873     OTOOL=$ac_ct_OTOOL
6874   fi
6875 else
6876   OTOOL="$ac_cv_prog_OTOOL"
6877 fi
6878
6879     if test -n "$ac_tool_prefix"; then
6880   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6881 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   if test -n "$OTOOL64"; then
6888   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895     for ac_exec_ext in '' $ac_executable_extensions; do
6896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899     break 2
6900   fi
6901 done
6902   done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 OTOOL64=$ac_cv_prog_OTOOL64
6908 if test -n "$OTOOL64"; then
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6910 $as_echo "$OTOOL64" >&6; }
6911 else
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916
6917 fi
6918 if test -z "$ac_cv_prog_OTOOL64"; then
6919   ac_ct_OTOOL64=$OTOOL64
6920   # Extract the first word of "otool64", so it can be a program name with args.
6921 set dummy otool64; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   if test -n "$ac_ct_OTOOL64"; then
6928   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935     for ac_exec_ext in '' $ac_executable_extensions; do
6936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937     ac_cv_prog_ac_ct_OTOOL64="otool64"
6938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942   done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6948 if test -n "$ac_ct_OTOOL64"; then
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6950 $as_echo "$ac_ct_OTOOL64" >&6; }
6951 else
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955
6956   if test "x$ac_ct_OTOOL64" = x; then
6957     OTOOL64=":"
6958   else
6959     case $cross_compiling:$ac_tool_warned in
6960 yes:)
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963 ac_tool_warned=yes ;;
6964 esac
6965     OTOOL64=$ac_ct_OTOOL64
6966   fi
6967 else
6968   OTOOL64="$ac_cv_prog_OTOOL64"
6969 fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6998 $as_echo_n "checking for -single_module linker flag... " >&6; }
6999 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   lt_cv_apple_cc_single_mod=no
7003       if test -z "${LT_MULTI_MODULE}"; then
7004         # By default we will add the -single_module flag. You can override
7005         # by either setting the environment variable LT_MULTI_MODULE
7006         # non-empty at configure time, or by adding -multi_module to the
7007         # link flags.
7008         rm -rf libconftest.dylib*
7009         echo "int foo(void){return 1;}" > conftest.c
7010         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7011 -dynamiclib -Wl,-single_module conftest.c" >&5
7012         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7013           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7014         _lt_result=$?
7015         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7016           lt_cv_apple_cc_single_mod=yes
7017         else
7018           cat conftest.err >&5
7019         fi
7020         rm -rf libconftest.dylib*
7021         rm -f conftest.*
7022       fi
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7025 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7027 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7028 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   lt_cv_ld_exported_symbols_list=no
7032       save_LDFLAGS=$LDFLAGS
7033       echo "_main" > conftest.sym
7034       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7035       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h.  */
7037
7038 int
7039 main ()
7040 {
7041
7042   ;
7043   return 0;
7044 }
7045 _ACEOF
7046 if ac_fn_c_try_link "$LINENO"; then :
7047   lt_cv_ld_exported_symbols_list=yes
7048 else
7049   lt_cv_ld_exported_symbols_list=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext \
7052     conftest$ac_exeext conftest.$ac_ext
7053         LDFLAGS="$save_LDFLAGS"
7054
7055 fi
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7057 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7058     case $host_os in
7059     rhapsody* | darwin1.[012])
7060       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7061     darwin1.*)
7062       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063     darwin*) # darwin 5.x on
7064       # if running on 10.5 or later, the deployment target defaults
7065       # to the OS version, if on x86, and 10.4, the deployment
7066       # target defaults to 10.4. Don't you love it?
7067       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7070         10.[012]*)
7071           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072         10.*)
7073           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7074       esac
7075     ;;
7076   esac
7077     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078       _lt_dar_single_mod='$single_module'
7079     fi
7080     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7082     else
7083       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7084     fi
7085     if test "$DSYMUTIL" != ":"; then
7086       _lt_dsymutil='~$DSYMUTIL $lib || :'
7087     else
7088       _lt_dsymutil=
7089     fi
7090     ;;
7091   esac
7092
7093 ac_ext=c
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7099 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7100 # On Suns, sometimes $CPP names a directory.
7101 if test -n "$CPP" && test -d "$CPP"; then
7102   CPP=
7103 fi
7104 if test -z "$CPP"; then
7105   if test "${ac_cv_prog_CPP+set}" = set; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108       # Double quotes because CPP needs to be expanded
7109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7110     do
7111       ac_preproc_ok=false
7112 for ac_c_preproc_warn_flag in '' yes
7113 do
7114   # Use a header file that comes with gcc, so configuring glibc
7115   # with a fresh cross-compiler works.
7116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117   # <limits.h> exists even on freestanding compilers.
7118   # On the NeXT, cc -E runs the code through the compiler's parser,
7119   # not just through cpp. "Syntax error" is here to catch this case.
7120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h.  */
7122 #ifdef __STDC__
7123 # include <limits.h>
7124 #else
7125 # include <assert.h>
7126 #endif
7127                      Syntax error
7128 _ACEOF
7129 if ac_fn_c_try_cpp "$LINENO"; then :
7130
7131 else
7132   # Broken: fails on valid input.
7133 continue
7134 fi
7135 rm -f conftest.err conftest.i conftest.$ac_ext
7136
7137   # OK, works on sane cases.  Now check whether nonexistent headers
7138   # can be detected and how.
7139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h.  */
7141 #include <ac_nonexistent.h>
7142 _ACEOF
7143 if ac_fn_c_try_cpp "$LINENO"; then :
7144   # Broken: success on invalid input.
7145 continue
7146 else
7147   # Passes both tests.
7148 ac_preproc_ok=:
7149 break
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153 done
7154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7155 rm -f conftest.i conftest.err conftest.$ac_ext
7156 if $ac_preproc_ok; then :
7157   break
7158 fi
7159
7160     done
7161     ac_cv_prog_CPP=$CPP
7162
7163 fi
7164   CPP=$ac_cv_prog_CPP
7165 else
7166   ac_cv_prog_CPP=$CPP
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7169 $as_echo "$CPP" >&6; }
7170 ac_preproc_ok=false
7171 for ac_c_preproc_warn_flag in '' yes
7172 do
7173   # Use a header file that comes with gcc, so configuring glibc
7174   # with a fresh cross-compiler works.
7175   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176   # <limits.h> exists even on freestanding compilers.
7177   # On the NeXT, cc -E runs the code through the compiler's parser,
7178   # not just through cpp. "Syntax error" is here to catch this case.
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 #ifdef __STDC__
7182 # include <limits.h>
7183 #else
7184 # include <assert.h>
7185 #endif
7186                      Syntax error
7187 _ACEOF
7188 if ac_fn_c_try_cpp "$LINENO"; then :
7189
7190 else
7191   # Broken: fails on valid input.
7192 continue
7193 fi
7194 rm -f conftest.err conftest.i conftest.$ac_ext
7195
7196   # OK, works on sane cases.  Now check whether nonexistent headers
7197   # can be detected and how.
7198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h.  */
7200 #include <ac_nonexistent.h>
7201 _ACEOF
7202 if ac_fn_c_try_cpp "$LINENO"; then :
7203   # Broken: success on invalid input.
7204 continue
7205 else
7206   # Passes both tests.
7207 ac_preproc_ok=:
7208 break
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212 done
7213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7214 rm -f conftest.i conftest.err conftest.$ac_ext
7215 if $ac_preproc_ok; then :
7216
7217 else
7218   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7220 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7221 See \`config.log' for more details" "$LINENO" 5 ; }
7222 fi
7223
7224 ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7232 $as_echo_n "checking for ANSI C header files... " >&6; }
7233 if test "${ac_cv_header_stdc+set}" = set; then :
7234   $as_echo_n "(cached) " >&6
7235 else
7236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h.  */
7238 #include <stdlib.h>
7239 #include <stdarg.h>
7240 #include <string.h>
7241 #include <float.h>
7242
7243 int
7244 main ()
7245 {
7246
7247   ;
7248   return 0;
7249 }
7250 _ACEOF
7251 if ac_fn_c_try_compile "$LINENO"; then :
7252   ac_cv_header_stdc=yes
7253 else
7254   ac_cv_header_stdc=no
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257
7258 if test $ac_cv_header_stdc = yes; then
7259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h.  */
7262 #include <string.h>
7263
7264 _ACEOF
7265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266   $EGREP "memchr" >/dev/null 2>&1; then :
7267
7268 else
7269   ac_cv_header_stdc=no
7270 fi
7271 rm -f conftest*
7272
7273 fi
7274
7275 if test $ac_cv_header_stdc = yes; then
7276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h.  */
7279 #include <stdlib.h>
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   $EGREP "free" >/dev/null 2>&1; then :
7284
7285 else
7286   ac_cv_header_stdc=no
7287 fi
7288 rm -f conftest*
7289
7290 fi
7291
7292 if test $ac_cv_header_stdc = yes; then
7293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7294   if test "$cross_compiling" = yes; then :
7295   :
7296 else
7297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h.  */
7299 #include <ctype.h>
7300 #include <stdlib.h>
7301 #if ((' ' & 0x0FF) == 0x020)
7302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7304 #else
7305 # define ISLOWER(c) \
7306                    (('a' <= (c) && (c) <= 'i') \
7307                      || ('j' <= (c) && (c) <= 'r') \
7308                      || ('s' <= (c) && (c) <= 'z'))
7309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7310 #endif
7311
7312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313 int
7314 main ()
7315 {
7316   int i;
7317   for (i = 0; i < 256; i++)
7318     if (XOR (islower (i), ISLOWER (i))
7319         || toupper (i) != TOUPPER (i))
7320       return 2;
7321   return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_run "$LINENO"; then :
7325
7326 else
7327   ac_cv_header_stdc=no
7328 fi
7329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7330   conftest.$ac_objext conftest.beam conftest.$ac_ext
7331 fi
7332
7333 fi
7334 fi
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7336 $as_echo "$ac_cv_header_stdc" >&6; }
7337 if test $ac_cv_header_stdc = yes; then
7338
7339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7340
7341 fi
7342
7343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7345                   inttypes.h stdint.h unistd.h
7346 do :
7347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7349 "
7350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7351   cat >>confdefs.h <<_ACEOF
7352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353 _ACEOF
7354
7355 fi
7356
7357 done
7358
7359
7360 for ac_header in dlfcn.h
7361 do :
7362   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7363 "
7364 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7365   cat >>confdefs.h <<_ACEOF
7366 #define HAVE_DLFCN_H 1
7367 _ACEOF
7368
7369 fi
7370
7371 done
7372
7373
7374
7375 # Set options
7376
7377
7378
7379         enable_dlopen=no
7380
7381
7382   enable_win32_dll=no
7383
7384
7385             # Check whether --enable-shared was given.
7386 if test "${enable_shared+set}" = set; then :
7387   enableval=$enable_shared; p=${PACKAGE-default}
7388     case $enableval in
7389     yes) enable_shared=yes ;;
7390     no) enable_shared=no ;;
7391     *)
7392       enable_shared=no
7393       # Look at the argument we got.  We use all the common list separators.
7394       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7395       for pkg in $enableval; do
7396         IFS="$lt_save_ifs"
7397         if test "X$pkg" = "X$p"; then
7398           enable_shared=yes
7399         fi
7400       done
7401       IFS="$lt_save_ifs"
7402       ;;
7403     esac
7404 else
7405   enable_shared=yes
7406 fi
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416   # Check whether --enable-static was given.
7417 if test "${enable_static+set}" = set; then :
7418   enableval=$enable_static; p=${PACKAGE-default}
7419     case $enableval in
7420     yes) enable_static=yes ;;
7421     no) enable_static=no ;;
7422     *)
7423      enable_static=no
7424       # Look at the argument we got.  We use all the common list separators.
7425       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426       for pkg in $enableval; do
7427         IFS="$lt_save_ifs"
7428         if test "X$pkg" = "X$p"; then
7429           enable_static=yes
7430         fi
7431       done
7432       IFS="$lt_save_ifs"
7433       ;;
7434     esac
7435 else
7436   enable_static=yes
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 # Check whether --with-pic was given.
7449 if test "${with_pic+set}" = set; then :
7450   withval=$with_pic; pic_mode="$withval"
7451 else
7452   pic_mode=default
7453 fi
7454
7455
7456 test -z "$pic_mode" && pic_mode=default
7457
7458
7459
7460
7461
7462
7463
7464   # Check whether --enable-fast-install was given.
7465 if test "${enable_fast_install+set}" = set; then :
7466   enableval=$enable_fast_install; p=${PACKAGE-default}
7467     case $enableval in
7468     yes) enable_fast_install=yes ;;
7469     no) enable_fast_install=no ;;
7470     *)
7471       enable_fast_install=no
7472       # Look at the argument we got.  We use all the common list separators.
7473       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7474       for pkg in $enableval; do
7475         IFS="$lt_save_ifs"
7476         if test "X$pkg" = "X$p"; then
7477           enable_fast_install=yes
7478         fi
7479       done
7480       IFS="$lt_save_ifs"
7481       ;;
7482     esac
7483 else
7484   enable_fast_install=yes
7485 fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497 # This can be used to rebuild libtool when needed
7498 LIBTOOL_DEPS="$ltmain"
7499
7500 # Always use our own libtool.
7501 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527 test -z "$LN_S" && LN_S="ln -s"
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542 if test -n "${ZSH_VERSION+set}" ; then
7543    setopt NO_GLOB_SUBST
7544 fi
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7547 $as_echo_n "checking for objdir... " >&6; }
7548 if test "${lt_cv_objdir+set}" = set; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551   rm -f .libs 2>/dev/null
7552 mkdir .libs 2>/dev/null
7553 if test -d .libs; then
7554   lt_cv_objdir=.libs
7555 else
7556   # MS-DOS does not allow filenames that begin with a dot.
7557   lt_cv_objdir=_libs
7558 fi
7559 rmdir .libs 2>/dev/null
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7562 $as_echo "$lt_cv_objdir" >&6; }
7563 objdir=$lt_cv_objdir
7564
7565
7566
7567
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define LT_OBJDIR "$lt_cv_objdir/"
7571 _ACEOF
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589 case $host_os in
7590 aix3*)
7591   # AIX sometimes has problems with the GCC collect2 program.  For some
7592   # reason, if we set the COLLECT_NAMES environment variable, the problems
7593   # vanish in a puff of smoke.
7594   if test "X${COLLECT_NAMES+set}" != Xset; then
7595     COLLECT_NAMES=
7596     export COLLECT_NAMES
7597   fi
7598   ;;
7599 esac
7600
7601 # Sed substitution that helps us do robust quoting.  It backslashifies
7602 # metacharacters that are still active within double-quoted strings.
7603 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7604
7605 # Same as above, but do not quote variable references.
7606 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7607
7608 # Sed substitution to delay expansion of an escaped shell variable in a
7609 # double_quote_subst'ed string.
7610 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7611
7612 # Sed substitution to delay expansion of an escaped single quote.
7613 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7614
7615 # Sed substitution to avoid accidental globbing in evaled expressions
7616 no_glob_subst='s/\*/\\\*/g'
7617
7618 # Global variables:
7619 ofile=libtool
7620 can_build_shared=yes
7621
7622 # All known linkers require a `.a' archive for static linking (except MSVC,
7623 # which needs '.lib').
7624 libext=a
7625
7626 with_gnu_ld="$lt_cv_prog_gnu_ld"
7627
7628 old_CC="$CC"
7629 old_CFLAGS="$CFLAGS"
7630
7631 # Set sane defaults for various variables
7632 test -z "$CC" && CC=cc
7633 test -z "$LTCC" && LTCC=$CC
7634 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7635 test -z "$LD" && LD=ld
7636 test -z "$ac_objext" && ac_objext=o
7637
7638 for cc_temp in $compiler""; do
7639   case $cc_temp in
7640     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7641     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7642     \-*) ;;
7643     *) break;;
7644   esac
7645 done
7646 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7647
7648
7649 # Only perform the check for file, if the check method requires it
7650 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7651 case $deplibs_check_method in
7652 file_magic*)
7653   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7655 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7656 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   case $MAGIC_CMD in
7660 [\\/*] |  ?:[\\/]*)
7661   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7662   ;;
7663 *)
7664   lt_save_MAGIC_CMD="$MAGIC_CMD"
7665   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7666   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7667   for ac_dir in $ac_dummy; do
7668     IFS="$lt_save_ifs"
7669     test -z "$ac_dir" && ac_dir=.
7670     if test -f $ac_dir/${ac_tool_prefix}file; then
7671       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7672       if test -n "$file_magic_test_file"; then
7673         case $deplibs_check_method in
7674         "file_magic "*)
7675           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7676           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7678             $EGREP "$file_magic_regex" > /dev/null; then
7679             :
7680           else
7681             cat <<_LT_EOF 1>&2
7682
7683 *** Warning: the command libtool uses to detect shared libraries,
7684 *** $file_magic_cmd, produces output that libtool cannot recognize.
7685 *** The result is that libtool may fail to recognize shared libraries
7686 *** as such.  This will affect the creation of libtool libraries that
7687 *** depend on shared libraries, but programs linked with such libtool
7688 *** libraries will work regardless of this problem.  Nevertheless, you
7689 *** may want to report the problem to your system manager and/or to
7690 *** bug-libtool@gnu.org
7691
7692 _LT_EOF
7693           fi ;;
7694         esac
7695       fi
7696       break
7697     fi
7698   done
7699   IFS="$lt_save_ifs"
7700   MAGIC_CMD="$lt_save_MAGIC_CMD"
7701   ;;
7702 esac
7703 fi
7704
7705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7706 if test -n "$MAGIC_CMD"; then
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7708 $as_echo "$MAGIC_CMD" >&6; }
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715
7716
7717
7718 if test -z "$lt_cv_path_MAGIC_CMD"; then
7719   if test -n "$ac_tool_prefix"; then
7720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7721 $as_echo_n "checking for file... " >&6; }
7722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   case $MAGIC_CMD in
7726 [\\/*] |  ?:[\\/]*)
7727   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7728   ;;
7729 *)
7730   lt_save_MAGIC_CMD="$MAGIC_CMD"
7731   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7732   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7733   for ac_dir in $ac_dummy; do
7734     IFS="$lt_save_ifs"
7735     test -z "$ac_dir" && ac_dir=.
7736     if test -f $ac_dir/file; then
7737       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7738       if test -n "$file_magic_test_file"; then
7739         case $deplibs_check_method in
7740         "file_magic "*)
7741           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7742           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7744             $EGREP "$file_magic_regex" > /dev/null; then
7745             :
7746           else
7747             cat <<_LT_EOF 1>&2
7748
7749 *** Warning: the command libtool uses to detect shared libraries,
7750 *** $file_magic_cmd, produces output that libtool cannot recognize.
7751 *** The result is that libtool may fail to recognize shared libraries
7752 *** as such.  This will affect the creation of libtool libraries that
7753 *** depend on shared libraries, but programs linked with such libtool
7754 *** libraries will work regardless of this problem.  Nevertheless, you
7755 *** may want to report the problem to your system manager and/or to
7756 *** bug-libtool@gnu.org
7757
7758 _LT_EOF
7759           fi ;;
7760         esac
7761       fi
7762       break
7763     fi
7764   done
7765   IFS="$lt_save_ifs"
7766   MAGIC_CMD="$lt_save_MAGIC_CMD"
7767   ;;
7768 esac
7769 fi
7770
7771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772 if test -n "$MAGIC_CMD"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7774 $as_echo "$MAGIC_CMD" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781   else
7782     MAGIC_CMD=:
7783   fi
7784 fi
7785
7786   fi
7787   ;;
7788 esac
7789
7790 # Use C for the default configuration in the libtool script
7791
7792 lt_save_CC="$CC"
7793 ac_ext=c
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799
7800 # Source file extension for C test sources.
7801 ac_ext=c
7802
7803 # Object file extension for compiled C test sources.
7804 objext=o
7805 objext=$objext
7806
7807 # Code to be used in simple compile tests
7808 lt_simple_compile_test_code="int some_variable = 0;"
7809
7810 # Code to be used in simple link tests
7811 lt_simple_link_test_code='int main(){return(0);}'
7812
7813
7814
7815
7816
7817
7818
7819 # If no C compiler was specified, use CC.
7820 LTCC=${LTCC-"$CC"}
7821
7822 # If no C compiler flags were specified, use CFLAGS.
7823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7824
7825 # Allow CC to be a program name with arguments.
7826 compiler=$CC
7827
7828 # Save the default compiler, since it gets overwritten when the other
7829 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7830 compiler_DEFAULT=$CC
7831
7832 # save warnings/boilerplate of simple test code
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7835 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7836 _lt_compiler_boilerplate=`cat conftest.err`
7837 $RM conftest*
7838
7839 ac_outfile=conftest.$ac_objext
7840 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7841 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7842 _lt_linker_boilerplate=`cat conftest.err`
7843 $RM -r conftest*
7844
7845
7846 ## CAVEAT EMPTOR:
7847 ## There is no encapsulation within the following macros, do not change
7848 ## the running order or otherwise move them around unless you know exactly
7849 ## what you are doing...
7850 if test -n "$compiler"; then
7851
7852 lt_prog_compiler_no_builtin_flag=
7853
7854 if test "$GCC" = yes; then
7855   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7856
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7858 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7859 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7860   $as_echo_n "(cached) " >&6
7861 else
7862   lt_cv_prog_compiler_rtti_exceptions=no
7863    ac_outfile=conftest.$ac_objext
7864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7865    lt_compiler_flag="-fno-rtti -fno-exceptions"
7866    # Insert the option either (1) after the last *FLAGS variable, or
7867    # (2) before a word containing "conftest.", or (3) at the end.
7868    # Note that $ac_compile itself does not contain backslashes and begins
7869    # with a dollar sign (not a hyphen), so the echo should work correctly.
7870    # The option is referenced via a variable to avoid confusing sed.
7871    lt_compile=`echo "$ac_compile" | $SED \
7872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7874    -e 's:$: $lt_compiler_flag:'`
7875    (eval echo "\"\$as_me:7875: $lt_compile\"" >&5)
7876    (eval "$lt_compile" 2>conftest.err)
7877    ac_status=$?
7878    cat conftest.err >&5
7879    echo "$as_me:7879: \$? = $ac_status" >&5
7880    if (exit $ac_status) && test -s "$ac_outfile"; then
7881      # The compiler can only warn and ignore the option if not recognized
7882      # So say no if there are warnings other than the usual output.
7883      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7884      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7885      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7886        lt_cv_prog_compiler_rtti_exceptions=yes
7887      fi
7888    fi
7889    $RM conftest*
7890
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7893 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7894
7895 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7896     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7897 else
7898     :
7899 fi
7900
7901 fi
7902
7903
7904
7905
7906
7907
7908   lt_prog_compiler_wl=
7909 lt_prog_compiler_pic=
7910 lt_prog_compiler_static=
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7913 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7914
7915   if test "$GCC" = yes; then
7916     lt_prog_compiler_wl='-Wl,'
7917     lt_prog_compiler_static='-static'
7918
7919     case $host_os in
7920       aix*)
7921       # All AIX code is PIC.
7922       if test "$host_cpu" = ia64; then
7923         # AIX 5 now supports IA64 processor
7924         lt_prog_compiler_static='-Bstatic'
7925       fi
7926       ;;
7927
7928     amigaos*)
7929       case $host_cpu in
7930       powerpc)
7931             # see comment about AmigaOS4 .so support
7932             lt_prog_compiler_pic='-fPIC'
7933         ;;
7934       m68k)
7935             # FIXME: we need at least 68020 code to build shared libraries, but
7936             # adding the `-m68020' flag to GCC prevents building anything better,
7937             # like `-m68040'.
7938             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7939         ;;
7940       esac
7941       ;;
7942
7943     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7944       # PIC is the default for these OSes.
7945       ;;
7946
7947     mingw* | cygwin* | pw32* | os2* | cegcc*)
7948       # This hack is so that the source file can tell whether it is being
7949       # built for inclusion in a dll (and should export symbols for example).
7950       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7951       # (--disable-auto-import) libraries
7952       lt_prog_compiler_pic='-DDLL_EXPORT'
7953       ;;
7954
7955     darwin* | rhapsody*)
7956       # PIC is the default on this platform
7957       # Common symbols not allowed in MH_DYLIB files
7958       lt_prog_compiler_pic='-fno-common'
7959       ;;
7960
7961     hpux*)
7962       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7963       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7964       # sets the default TLS model and affects inlining.
7965       case $host_cpu in
7966       hppa*64*)
7967         # +Z the default
7968         ;;
7969       *)
7970         lt_prog_compiler_pic='-fPIC'
7971         ;;
7972       esac
7973       ;;
7974
7975     interix[3-9]*)
7976       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7977       # Instead, we relocate shared libraries at runtime.
7978       ;;
7979
7980     msdosdjgpp*)
7981       # Just because we use GCC doesn't mean we suddenly get shared libraries
7982       # on systems that don't support them.
7983       lt_prog_compiler_can_build_shared=no
7984       enable_shared=no
7985       ;;
7986
7987     *nto* | *qnx*)
7988       # QNX uses GNU C++, but need to define -shared option too, otherwise
7989       # it will coredump.
7990       lt_prog_compiler_pic='-fPIC -shared'
7991       ;;
7992
7993     sysv4*MP*)
7994       if test -d /usr/nec; then
7995         lt_prog_compiler_pic=-Kconform_pic
7996       fi
7997       ;;
7998
7999     *)
8000       lt_prog_compiler_pic='-fPIC'
8001       ;;
8002     esac
8003   else
8004     # PORTME Check for flag to pass linker flags through the system compiler.
8005     case $host_os in
8006     aix*)
8007       lt_prog_compiler_wl='-Wl,'
8008       if test "$host_cpu" = ia64; then
8009         # AIX 5 now supports IA64 processor
8010         lt_prog_compiler_static='-Bstatic'
8011       else
8012         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8013       fi
8014       ;;
8015
8016     mingw* | cygwin* | pw32* | os2* | cegcc*)
8017       # This hack is so that the source file can tell whether it is being
8018       # built for inclusion in a dll (and should export symbols for example).
8019       lt_prog_compiler_pic='-DDLL_EXPORT'
8020       ;;
8021
8022     hpux9* | hpux10* | hpux11*)
8023       lt_prog_compiler_wl='-Wl,'
8024       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8025       # not for PA HP-UX.
8026       case $host_cpu in
8027       hppa*64*|ia64*)
8028         # +Z the default
8029         ;;
8030       *)
8031         lt_prog_compiler_pic='+Z'
8032         ;;
8033       esac
8034       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8035       lt_prog_compiler_static='${wl}-a ${wl}archive'
8036       ;;
8037
8038     irix5* | irix6* | nonstopux*)
8039       lt_prog_compiler_wl='-Wl,'
8040       # PIC (with -KPIC) is the default.
8041       lt_prog_compiler_static='-non_shared'
8042       ;;
8043
8044     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8045       case $cc_basename in
8046       # old Intel for x86_64 which still supported -KPIC.
8047       ecc*)
8048         lt_prog_compiler_wl='-Wl,'
8049         lt_prog_compiler_pic='-KPIC'
8050         lt_prog_compiler_static='-static'
8051         ;;
8052       # icc used to be incompatible with GCC.
8053       # ICC 10 doesn't accept -KPIC any more.
8054       icc* | ifort*)
8055         lt_prog_compiler_wl='-Wl,'
8056         lt_prog_compiler_pic='-fPIC'
8057         lt_prog_compiler_static='-static'
8058         ;;
8059       # Lahey Fortran 8.1.
8060       lf95*)
8061         lt_prog_compiler_wl='-Wl,'
8062         lt_prog_compiler_pic='--shared'
8063         lt_prog_compiler_static='--static'
8064         ;;
8065       pgcc* | pgf77* | pgf90* | pgf95*)
8066         # Portland Group compilers (*not* the Pentium gcc compiler,
8067         # which looks to be a dead project)
8068         lt_prog_compiler_wl='-Wl,'
8069         lt_prog_compiler_pic='-fpic'
8070         lt_prog_compiler_static='-Bstatic'
8071         ;;
8072       ccc*)
8073         lt_prog_compiler_wl='-Wl,'
8074         # All Alpha code is PIC.
8075         lt_prog_compiler_static='-non_shared'
8076         ;;
8077       xl*)
8078         # IBM XL C 8.0/Fortran 10.1 on PPC
8079         lt_prog_compiler_wl='-Wl,'
8080         lt_prog_compiler_pic='-qpic'
8081         lt_prog_compiler_static='-qstaticlink'
8082         ;;
8083       *)
8084         case `$CC -V 2>&1 | sed 5q` in
8085         *Sun\ C*)
8086           # Sun C 5.9
8087           lt_prog_compiler_pic='-KPIC'
8088           lt_prog_compiler_static='-Bstatic'
8089           lt_prog_compiler_wl='-Wl,'
8090           ;;
8091         *Sun\ F*)
8092           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8093           lt_prog_compiler_pic='-KPIC'
8094           lt_prog_compiler_static='-Bstatic'
8095           lt_prog_compiler_wl=''
8096           ;;
8097         esac
8098         ;;
8099       esac
8100       ;;
8101
8102     newsos6)
8103       lt_prog_compiler_pic='-KPIC'
8104       lt_prog_compiler_static='-Bstatic'
8105       ;;
8106
8107     *nto* | *qnx*)
8108       # QNX uses GNU C++, but need to define -shared option too, otherwise
8109       # it will coredump.
8110       lt_prog_compiler_pic='-fPIC -shared'
8111       ;;
8112
8113     osf3* | osf4* | osf5*)
8114       lt_prog_compiler_wl='-Wl,'
8115       # All OSF/1 code is PIC.
8116       lt_prog_compiler_static='-non_shared'
8117       ;;
8118
8119     rdos*)
8120       lt_prog_compiler_static='-non_shared'
8121       ;;
8122
8123     solaris*)
8124       lt_prog_compiler_pic='-KPIC'
8125       lt_prog_compiler_static='-Bstatic'
8126       case $cc_basename in
8127       f77* | f90* | f95*)
8128         lt_prog_compiler_wl='-Qoption ld ';;
8129       *)
8130         lt_prog_compiler_wl='-Wl,';;
8131       esac
8132       ;;
8133
8134     sunos4*)
8135       lt_prog_compiler_wl='-Qoption ld '
8136       lt_prog_compiler_pic='-PIC'
8137       lt_prog_compiler_static='-Bstatic'
8138       ;;
8139
8140     sysv4 | sysv4.2uw2* | sysv4.3*)
8141       lt_prog_compiler_wl='-Wl,'
8142       lt_prog_compiler_pic='-KPIC'
8143       lt_prog_compiler_static='-Bstatic'
8144       ;;
8145
8146     sysv4*MP*)
8147       if test -d /usr/nec ;then
8148         lt_prog_compiler_pic='-Kconform_pic'
8149         lt_prog_compiler_static='-Bstatic'
8150       fi
8151       ;;
8152
8153     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8154       lt_prog_compiler_wl='-Wl,'
8155       lt_prog_compiler_pic='-KPIC'
8156       lt_prog_compiler_static='-Bstatic'
8157       ;;
8158
8159     unicos*)
8160       lt_prog_compiler_wl='-Wl,'
8161       lt_prog_compiler_can_build_shared=no
8162       ;;
8163
8164     uts4*)
8165       lt_prog_compiler_pic='-pic'
8166       lt_prog_compiler_static='-Bstatic'
8167       ;;
8168
8169     *)
8170       lt_prog_compiler_can_build_shared=no
8171       ;;
8172     esac
8173   fi
8174
8175 case $host_os in
8176   # For platforms which do not support PIC, -DPIC is meaningless:
8177   *djgpp*)
8178     lt_prog_compiler_pic=
8179     ;;
8180   *)
8181     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8182     ;;
8183 esac
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8185 $as_echo "$lt_prog_compiler_pic" >&6; }
8186
8187
8188
8189
8190
8191
8192 #
8193 # Check to make sure the PIC flag actually works.
8194 #
8195 if test -n "$lt_prog_compiler_pic"; then
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8197 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8198 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   lt_cv_prog_compiler_pic_works=no
8202    ac_outfile=conftest.$ac_objext
8203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8204    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8205    # Insert the option either (1) after the last *FLAGS variable, or
8206    # (2) before a word containing "conftest.", or (3) at the end.
8207    # Note that $ac_compile itself does not contain backslashes and begins
8208    # with a dollar sign (not a hyphen), so the echo should work correctly.
8209    # The option is referenced via a variable to avoid confusing sed.
8210    lt_compile=`echo "$ac_compile" | $SED \
8211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8213    -e 's:$: $lt_compiler_flag:'`
8214    (eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
8215    (eval "$lt_compile" 2>conftest.err)
8216    ac_status=$?
8217    cat conftest.err >&5
8218    echo "$as_me:8218: \$? = $ac_status" >&5
8219    if (exit $ac_status) && test -s "$ac_outfile"; then
8220      # The compiler can only warn and ignore the option if not recognized
8221      # So say no if there are warnings other than the usual output.
8222      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8223      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8224      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8225        lt_cv_prog_compiler_pic_works=yes
8226      fi
8227    fi
8228    $RM conftest*
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8232 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8233
8234 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8235     case $lt_prog_compiler_pic in
8236      "" | " "*) ;;
8237      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8238      esac
8239 else
8240     lt_prog_compiler_pic=
8241      lt_prog_compiler_can_build_shared=no
8242 fi
8243
8244 fi
8245
8246
8247
8248
8249
8250
8251 #
8252 # Check to make sure the static flag actually works.
8253 #
8254 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8256 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8257 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   lt_cv_prog_compiler_static_works=no
8261    save_LDFLAGS="$LDFLAGS"
8262    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8263    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8264    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8265      # The linker can only warn and ignore the option if not recognized
8266      # So say no if there are warnings
8267      if test -s conftest.err; then
8268        # Append any errors to the config.log.
8269        cat conftest.err 1>&5
8270        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8271        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8272        if diff conftest.exp conftest.er2 >/dev/null; then
8273          lt_cv_prog_compiler_static_works=yes
8274        fi
8275      else
8276        lt_cv_prog_compiler_static_works=yes
8277      fi
8278    fi
8279    $RM -r conftest*
8280    LDFLAGS="$save_LDFLAGS"
8281
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8284 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8285
8286 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8287     :
8288 else
8289     lt_prog_compiler_static=
8290 fi
8291
8292
8293
8294
8295
8296
8297
8298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8300 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   lt_cv_prog_compiler_c_o=no
8304    $RM -r conftest 2>/dev/null
8305    mkdir conftest
8306    cd conftest
8307    mkdir out
8308    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309
8310    lt_compiler_flag="-o out/conftest2.$ac_objext"
8311    # Insert the option either (1) after the last *FLAGS variable, or
8312    # (2) before a word containing "conftest.", or (3) at the end.
8313    # Note that $ac_compile itself does not contain backslashes and begins
8314    # with a dollar sign (not a hyphen), so the echo should work correctly.
8315    lt_compile=`echo "$ac_compile" | $SED \
8316    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318    -e 's:$: $lt_compiler_flag:'`
8319    (eval echo "\"\$as_me:8319: $lt_compile\"" >&5)
8320    (eval "$lt_compile" 2>out/conftest.err)
8321    ac_status=$?
8322    cat out/conftest.err >&5
8323    echo "$as_me:8323: \$? = $ac_status" >&5
8324    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8325    then
8326      # The compiler can only warn and ignore the option if not recognized
8327      # So say no if there are warnings
8328      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8329      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8330      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8331        lt_cv_prog_compiler_c_o=yes
8332      fi
8333    fi
8334    chmod u+w . 2>&5
8335    $RM conftest*
8336    # SGI C++ compiler will create directory out/ii_files/ for
8337    # template instantiation
8338    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8339    $RM out/* && rmdir out
8340    cd ..
8341    $RM -r conftest
8342    $RM conftest*
8343
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8347
8348
8349
8350
8351
8352
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8354 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8355 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8356   $as_echo_n "(cached) " >&6
8357 else
8358   lt_cv_prog_compiler_c_o=no
8359    $RM -r conftest 2>/dev/null
8360    mkdir conftest
8361    cd conftest
8362    mkdir out
8363    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8364
8365    lt_compiler_flag="-o out/conftest2.$ac_objext"
8366    # Insert the option either (1) after the last *FLAGS variable, or
8367    # (2) before a word containing "conftest.", or (3) at the end.
8368    # Note that $ac_compile itself does not contain backslashes and begins
8369    # with a dollar sign (not a hyphen), so the echo should work correctly.
8370    lt_compile=`echo "$ac_compile" | $SED \
8371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373    -e 's:$: $lt_compiler_flag:'`
8374    (eval echo "\"\$as_me:8374: $lt_compile\"" >&5)
8375    (eval "$lt_compile" 2>out/conftest.err)
8376    ac_status=$?
8377    cat out/conftest.err >&5
8378    echo "$as_me:8378: \$? = $ac_status" >&5
8379    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8380    then
8381      # The compiler can only warn and ignore the option if not recognized
8382      # So say no if there are warnings
8383      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8384      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8385      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8386        lt_cv_prog_compiler_c_o=yes
8387      fi
8388    fi
8389    chmod u+w . 2>&5
8390    $RM conftest*
8391    # SGI C++ compiler will create directory out/ii_files/ for
8392    # template instantiation
8393    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8394    $RM out/* && rmdir out
8395    cd ..
8396    $RM -r conftest
8397    $RM conftest*
8398
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8401 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8402
8403
8404
8405
8406 hard_links="nottested"
8407 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8408   # do not overwrite the value of need_locks provided by the user
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8410 $as_echo_n "checking if we can lock with hard links... " >&6; }
8411   hard_links=yes
8412   $RM conftest*
8413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8414   touch conftest.a
8415   ln conftest.a conftest.b 2>&5 || hard_links=no
8416   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8418 $as_echo "$hard_links" >&6; }
8419   if test "$hard_links" = no; then
8420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8421 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8422     need_locks=warn
8423   fi
8424 else
8425   need_locks=no
8426 fi
8427
8428
8429
8430
8431
8432
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8434 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8435
8436   runpath_var=
8437   allow_undefined_flag=
8438   always_export_symbols=no
8439   archive_cmds=
8440   archive_expsym_cmds=
8441   compiler_needs_object=no
8442   enable_shared_with_static_runtimes=no
8443   export_dynamic_flag_spec=
8444   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8445   hardcode_automatic=no
8446   hardcode_direct=no
8447   hardcode_direct_absolute=no
8448   hardcode_libdir_flag_spec=
8449   hardcode_libdir_flag_spec_ld=
8450   hardcode_libdir_separator=
8451   hardcode_minus_L=no
8452   hardcode_shlibpath_var=unsupported
8453   inherit_rpath=no
8454   link_all_deplibs=unknown
8455   module_cmds=
8456   module_expsym_cmds=
8457   old_archive_from_new_cmds=
8458   old_archive_from_expsyms_cmds=
8459   thread_safe_flag_spec=
8460   whole_archive_flag_spec=
8461   # include_expsyms should be a list of space-separated symbols to be *always*
8462   # included in the symbol list
8463   include_expsyms=
8464   # exclude_expsyms can be an extended regexp of symbols to exclude
8465   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8466   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8467   # as well as any symbol that contains `d'.
8468   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8469   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8470   # platforms (ab)use it in PIC code, but their linkers get confused if
8471   # the symbol is explicitly referenced.  Since portable code cannot
8472   # rely on this symbol name, it's probably fine to never include it in
8473   # preloaded symbol tables.
8474   # Exclude shared library initialization/finalization symbols.
8475   extract_expsyms_cmds=
8476
8477   case $host_os in
8478   cygwin* | mingw* | pw32* | cegcc*)
8479     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8480     # When not using gcc, we currently assume that we are using
8481     # Microsoft Visual C++.
8482     if test "$GCC" != yes; then
8483       with_gnu_ld=no
8484     fi
8485     ;;
8486   interix*)
8487     # we just hope/assume this is gcc and not c89 (= MSVC++)
8488     with_gnu_ld=yes
8489     ;;
8490   openbsd*)
8491     with_gnu_ld=no
8492     ;;
8493   linux* | k*bsd*-gnu)
8494     link_all_deplibs=no
8495     ;;
8496   esac
8497
8498   ld_shlibs=yes
8499   if test "$with_gnu_ld" = yes; then
8500     # If archive_cmds runs LD, not CC, wlarc should be empty
8501     wlarc='${wl}'
8502
8503     # Set some defaults for GNU ld with shared library support. These
8504     # are reset later if shared libraries are not supported. Putting them
8505     # here allows them to be overridden if necessary.
8506     runpath_var=LD_RUN_PATH
8507     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8508     export_dynamic_flag_spec='${wl}--export-dynamic'
8509     # ancient GNU ld didn't support --whole-archive et. al.
8510     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8511       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8512     else
8513       whole_archive_flag_spec=
8514     fi
8515     supports_anon_versioning=no
8516     case `$LD -v 2>&1` in
8517       *GNU\ gold*) supports_anon_versioning=yes ;;
8518       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8519       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8520       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8521       *\ 2.11.*) ;; # other 2.11 versions
8522       *) supports_anon_versioning=yes ;;
8523     esac
8524
8525     # See if GNU ld supports shared libraries.
8526     case $host_os in
8527     aix[3-9]*)
8528       # On AIX/PPC, the GNU linker is very broken
8529       if test "$host_cpu" != ia64; then
8530         ld_shlibs=no
8531         cat <<_LT_EOF 1>&2
8532
8533 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8534 *** to be unable to reliably create shared libraries on AIX.
8535 *** Therefore, libtool is disabling shared libraries support.  If you
8536 *** really care for shared libraries, you may want to modify your PATH
8537 *** so that a non-GNU linker is found, and then restart.
8538
8539 _LT_EOF
8540       fi
8541       ;;
8542
8543     amigaos*)
8544       case $host_cpu in
8545       powerpc)
8546             # see comment about AmigaOS4 .so support
8547             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548             archive_expsym_cmds=''
8549         ;;
8550       m68k)
8551             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)'
8552             hardcode_libdir_flag_spec='-L$libdir'
8553             hardcode_minus_L=yes
8554         ;;
8555       esac
8556       ;;
8557
8558     beos*)
8559       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8560         allow_undefined_flag=unsupported
8561         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8562         # support --undefined.  This deserves some investigation.  FIXME
8563         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564       else
8565         ld_shlibs=no
8566       fi
8567       ;;
8568
8569     cygwin* | mingw* | pw32* | cegcc*)
8570       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8571       # as there is no search path for DLLs.
8572       hardcode_libdir_flag_spec='-L$libdir'
8573       allow_undefined_flag=unsupported
8574       always_export_symbols=no
8575       enable_shared_with_static_runtimes=yes
8576       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8577
8578       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8579         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8580         # If the export-symbols file already is a .def file (1st line
8581         # is EXPORTS), use it as is; otherwise, prepend...
8582         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8583           cp $export_symbols $output_objdir/$soname.def;
8584         else
8585           echo EXPORTS > $output_objdir/$soname.def;
8586           cat $export_symbols >> $output_objdir/$soname.def;
8587         fi~
8588         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589       else
8590         ld_shlibs=no
8591       fi
8592       ;;
8593
8594     interix[3-9]*)
8595       hardcode_direct=no
8596       hardcode_shlibpath_var=no
8597       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8598       export_dynamic_flag_spec='${wl}-E'
8599       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8600       # Instead, shared libraries are loaded at an image base (0x10000000 by
8601       # default) and relocated if they conflict, which is a slow very memory
8602       # consuming and fragmenting process.  To avoid this, we pick a random,
8603       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8604       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8605       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8606       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'
8607       ;;
8608
8609     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8610       tmp_diet=no
8611       if test "$host_os" = linux-dietlibc; then
8612         case $cc_basename in
8613           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8614         esac
8615       fi
8616       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8617          && test "$tmp_diet" = no
8618       then
8619         tmp_addflag=
8620         tmp_sharedflag='-shared'
8621         case $cc_basename,$host_cpu in
8622         pgcc*)                          # Portland Group C compiler
8623           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'
8624           tmp_addflag=' $pic_flag'
8625           ;;
8626         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8627           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'
8628           tmp_addflag=' $pic_flag -Mnomain' ;;
8629         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8630           tmp_addflag=' -i_dynamic' ;;
8631         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8632           tmp_addflag=' -i_dynamic -nofor_main' ;;
8633         ifc* | ifort*)                  # Intel Fortran compiler
8634           tmp_addflag=' -nofor_main' ;;
8635         lf95*)                          # Lahey Fortran 8.1
8636           whole_archive_flag_spec=
8637           tmp_sharedflag='--shared' ;;
8638         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8639           tmp_sharedflag='-qmkshrobj'
8640           tmp_addflag= ;;
8641         esac
8642         case `$CC -V 2>&1 | sed 5q` in
8643         *Sun\ C*)                       # Sun C 5.9
8644           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'
8645           compiler_needs_object=yes
8646           tmp_sharedflag='-G' ;;
8647         *Sun\ F*)                       # Sun Fortran 8.3
8648           tmp_sharedflag='-G' ;;
8649         esac
8650         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651
8652         if test "x$supports_anon_versioning" = xyes; then
8653           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8654             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8655             echo "local: *; };" >> $output_objdir/$libname.ver~
8656             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8657         fi
8658
8659         case $cc_basename in
8660         xlf*)
8661           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8662           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8663           hardcode_libdir_flag_spec=
8664           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8665           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8666           if test "x$supports_anon_versioning" = xyes; then
8667             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8668               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8669               echo "local: *; };" >> $output_objdir/$libname.ver~
8670               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8671           fi
8672           ;;
8673         esac
8674       else
8675         ld_shlibs=no
8676       fi
8677       ;;
8678
8679     netbsd* | netbsdelf*-gnu)
8680       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8681         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8682         wlarc=
8683       else
8684         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686       fi
8687       ;;
8688
8689     solaris*)
8690       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8691         ld_shlibs=no
8692         cat <<_LT_EOF 1>&2
8693
8694 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8695 *** create shared libraries on Solaris systems.  Therefore, libtool
8696 *** is disabling shared libraries support.  We urge you to upgrade GNU
8697 *** binutils to release 2.9.1 or newer.  Another option is to modify
8698 *** your PATH or compiler configuration so that the native linker is
8699 *** used, and then restart.
8700
8701 _LT_EOF
8702       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705       else
8706         ld_shlibs=no
8707       fi
8708       ;;
8709
8710     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8711       case `$LD -v 2>&1` in
8712         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8713         ld_shlibs=no
8714         cat <<_LT_EOF 1>&2
8715
8716 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8717 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8718 *** is disabling shared libraries support.  We urge you to upgrade GNU
8719 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8720 *** your PATH or compiler configuration so that the native linker is
8721 *** used, and then restart.
8722
8723 _LT_EOF
8724         ;;
8725         *)
8726           # For security reasons, it is highly recommended that you always
8727           # use absolute paths for naming shared libraries, and exclude the
8728           # DT_RUNPATH tag from executables and libraries.  But doing so
8729           # requires that you compile everything twice, which is a pain.
8730           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8734           else
8735             ld_shlibs=no
8736           fi
8737         ;;
8738       esac
8739       ;;
8740
8741     sunos4*)
8742       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8743       wlarc=
8744       hardcode_direct=yes
8745       hardcode_shlibpath_var=no
8746       ;;
8747
8748     *)
8749       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752       else
8753         ld_shlibs=no
8754       fi
8755       ;;
8756     esac
8757
8758     if test "$ld_shlibs" = no; then
8759       runpath_var=
8760       hardcode_libdir_flag_spec=
8761       export_dynamic_flag_spec=
8762       whole_archive_flag_spec=
8763     fi
8764   else
8765     # PORTME fill in a description of your system's linker (not GNU ld)
8766     case $host_os in
8767     aix3*)
8768       allow_undefined_flag=unsupported
8769       always_export_symbols=yes
8770       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'
8771       # Note: this linker hardcodes the directories in LIBPATH if there
8772       # are no directories specified by -L.
8773       hardcode_minus_L=yes
8774       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8775         # Neither direct hardcoding nor static linking is supported with a
8776         # broken collect2.
8777         hardcode_direct=unsupported
8778       fi
8779       ;;
8780
8781     aix[4-9]*)
8782       if test "$host_cpu" = ia64; then
8783         # On IA64, the linker does run time linking by default, so we don't
8784         # have to do anything special.
8785         aix_use_runtimelinking=no
8786         exp_sym_flag='-Bexport'
8787         no_entry_flag=""
8788       else
8789         # If we're using GNU nm, then we don't want the "-C" option.
8790         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8791         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8792           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'
8793         else
8794           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'
8795         fi
8796         aix_use_runtimelinking=no
8797
8798         # Test if we are trying to use run time linking or normal
8799         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8800         # need to do runtime linking.
8801         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8802           for ld_flag in $LDFLAGS; do
8803           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8804             aix_use_runtimelinking=yes
8805             break
8806           fi
8807           done
8808           ;;
8809         esac
8810
8811         exp_sym_flag='-bexport'
8812         no_entry_flag='-bnoentry'
8813       fi
8814
8815       # When large executables or shared objects are built, AIX ld can
8816       # have problems creating the table of contents.  If linking a library
8817       # or program results in "error TOC overflow" add -mminimal-toc to
8818       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8819       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8820
8821       archive_cmds=''
8822       hardcode_direct=yes
8823       hardcode_direct_absolute=yes
8824       hardcode_libdir_separator=':'
8825       link_all_deplibs=yes
8826       file_list_spec='${wl}-f,'
8827
8828       if test "$GCC" = yes; then
8829         case $host_os in aix4.[012]|aix4.[012].*)
8830         # We only want to do this on AIX 4.2 and lower, the check
8831         # below for broken collect2 doesn't work under 4.3+
8832           collect2name=`${CC} -print-prog-name=collect2`
8833           if test -f "$collect2name" &&
8834            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8835           then
8836           # We have reworked collect2
8837           :
8838           else
8839           # We have old collect2
8840           hardcode_direct=unsupported
8841           # It fails to find uninstalled libraries when the uninstalled
8842           # path is not listed in the libpath.  Setting hardcode_minus_L
8843           # to unsupported forces relinking
8844           hardcode_minus_L=yes
8845           hardcode_libdir_flag_spec='-L$libdir'
8846           hardcode_libdir_separator=
8847           fi
8848           ;;
8849         esac
8850         shared_flag='-shared'
8851         if test "$aix_use_runtimelinking" = yes; then
8852           shared_flag="$shared_flag "'${wl}-G'
8853         fi
8854         link_all_deplibs=no
8855       else
8856         # not using gcc
8857         if test "$host_cpu" = ia64; then
8858         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8859         # chokes on -Wl,-G. The following line is correct:
8860           shared_flag='-G'
8861         else
8862           if test "$aix_use_runtimelinking" = yes; then
8863             shared_flag='${wl}-G'
8864           else
8865             shared_flag='${wl}-bM:SRE'
8866           fi
8867         fi
8868       fi
8869
8870       export_dynamic_flag_spec='${wl}-bexpall'
8871       # It seems that -bexpall does not export symbols beginning with
8872       # underscore (_), so it is better to generate a list of symbols to export.
8873       always_export_symbols=yes
8874       if test "$aix_use_runtimelinking" = yes; then
8875         # Warning - without using the other runtime loading flags (-brtl),
8876         # -berok will link without error, but may produce a broken library.
8877         allow_undefined_flag='-berok'
8878         # Determine the default libpath from the value encoded in an
8879         # empty executable.
8880         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h.  */
8882
8883 int
8884 main ()
8885 {
8886
8887   ;
8888   return 0;
8889 }
8890 _ACEOF
8891 if ac_fn_c_try_link "$LINENO"; then :
8892
8893 lt_aix_libpath_sed='
8894     /Import File Strings/,/^$/ {
8895         /^0/ {
8896             s/^0  *\(.*\)$/\1/
8897             p
8898         }
8899     }'
8900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 # Check for a 64-bit object if we didn't find anything.
8902 if test -z "$aix_libpath"; then
8903   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8904 fi
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext \
8907     conftest$ac_exeext conftest.$ac_ext
8908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8909
8910         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8911         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"
8912       else
8913         if test "$host_cpu" = ia64; then
8914           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8915           allow_undefined_flag="-z nodefs"
8916           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"
8917         else
8918          # Determine the default libpath from the value encoded in an
8919          # empty executable.
8920          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h.  */
8922
8923 int
8924 main ()
8925 {
8926
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"; then :
8932
8933 lt_aix_libpath_sed='
8934     /Import File Strings/,/^$/ {
8935         /^0/ {
8936             s/^0  *\(.*\)$/\1/
8937             p
8938         }
8939     }'
8940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 # Check for a 64-bit object if we didn't find anything.
8942 if test -z "$aix_libpath"; then
8943   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 fi
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext \
8947     conftest$ac_exeext conftest.$ac_ext
8948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
8950          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951           # Warning - without using the other run time loading flags,
8952           # -berok will link without error, but may produce a broken library.
8953           no_undefined_flag=' ${wl}-bernotok'
8954           allow_undefined_flag=' ${wl}-berok'
8955           # Exported symbols can be pulled into shared objects from archives
8956           whole_archive_flag_spec='$convenience'
8957           archive_cmds_need_lc=yes
8958           # This is similar to how AIX traditionally builds its shared libraries.
8959           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'
8960         fi
8961       fi
8962       ;;
8963
8964     amigaos*)
8965       case $host_cpu in
8966       powerpc)
8967             # see comment about AmigaOS4 .so support
8968             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969             archive_expsym_cmds=''
8970         ;;
8971       m68k)
8972             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)'
8973             hardcode_libdir_flag_spec='-L$libdir'
8974             hardcode_minus_L=yes
8975         ;;
8976       esac
8977       ;;
8978
8979     bsdi[45]*)
8980       export_dynamic_flag_spec=-rdynamic
8981       ;;
8982
8983     cygwin* | mingw* | pw32* | cegcc*)
8984       # When not using gcc, we currently assume that we are using
8985       # Microsoft Visual C++.
8986       # hardcode_libdir_flag_spec is actually meaningless, as there is
8987       # no search path for DLLs.
8988       hardcode_libdir_flag_spec=' '
8989       allow_undefined_flag=unsupported
8990       # Tell ltmain to make .lib files, not .a files.
8991       libext=lib
8992       # Tell ltmain to make .dll files, not .so files.
8993       shrext_cmds=".dll"
8994       # FIXME: Setting linknames here is a bad hack.
8995       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8996       # The linker will automatically build a .lib file if we build a DLL.
8997       old_archive_from_new_cmds='true'
8998       # FIXME: Should let the user specify the lib program.
8999       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9000       fix_srcfile_path='`cygpath -w "$srcfile"`'
9001       enable_shared_with_static_runtimes=yes
9002       ;;
9003
9004     darwin* | rhapsody*)
9005
9006
9007   archive_cmds_need_lc=no
9008   hardcode_direct=no
9009   hardcode_automatic=yes
9010   hardcode_shlibpath_var=unsupported
9011   whole_archive_flag_spec=''
9012   link_all_deplibs=yes
9013   allow_undefined_flag="$_lt_dar_allow_undefined"
9014   case $cc_basename in
9015      ifort*) _lt_dar_can_shared=yes ;;
9016      *) _lt_dar_can_shared=$GCC ;;
9017   esac
9018   if test "$_lt_dar_can_shared" = "yes"; then
9019     output_verbose_link_cmd=echo
9020     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9021     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9022     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}"
9023     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}"
9024
9025   else
9026   ld_shlibs=no
9027   fi
9028
9029       ;;
9030
9031     dgux*)
9032       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033       hardcode_libdir_flag_spec='-L$libdir'
9034       hardcode_shlibpath_var=no
9035       ;;
9036
9037     freebsd1*)
9038       ld_shlibs=no
9039       ;;
9040
9041     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9042     # support.  Future versions do this automatically, but an explicit c++rt0.o
9043     # does not break anything, and helps significantly (at the cost of a little
9044     # extra space).
9045     freebsd2.2*)
9046       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9047       hardcode_libdir_flag_spec='-R$libdir'
9048       hardcode_direct=yes
9049       hardcode_shlibpath_var=no
9050       ;;
9051
9052     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9053     freebsd2*)
9054       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9055       hardcode_direct=yes
9056       hardcode_minus_L=yes
9057       hardcode_shlibpath_var=no
9058       ;;
9059
9060     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9061     freebsd* | dragonfly*)
9062       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9063       hardcode_libdir_flag_spec='-R$libdir'
9064       hardcode_direct=yes
9065       hardcode_shlibpath_var=no
9066       ;;
9067
9068     hpux9*)
9069       if test "$GCC" = yes; then
9070         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'
9071       else
9072         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'
9073       fi
9074       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075       hardcode_libdir_separator=:
9076       hardcode_direct=yes
9077
9078       # hardcode_minus_L: Not really in the search PATH,
9079       # but as the default location of the library.
9080       hardcode_minus_L=yes
9081       export_dynamic_flag_spec='${wl}-E'
9082       ;;
9083
9084     hpux10*)
9085       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9086         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087       else
9088         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9089       fi
9090       if test "$with_gnu_ld" = no; then
9091         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092         hardcode_libdir_flag_spec_ld='+b $libdir'
9093         hardcode_libdir_separator=:
9094         hardcode_direct=yes
9095         hardcode_direct_absolute=yes
9096         export_dynamic_flag_spec='${wl}-E'
9097         # hardcode_minus_L: Not really in the search PATH,
9098         # but as the default location of the library.
9099         hardcode_minus_L=yes
9100       fi
9101       ;;
9102
9103     hpux11*)
9104       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9105         case $host_cpu in
9106         hppa*64*)
9107           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108           ;;
9109         ia64*)
9110           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9111           ;;
9112         *)
9113           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9114           ;;
9115         esac
9116       else
9117         case $host_cpu in
9118         hppa*64*)
9119           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9120           ;;
9121         ia64*)
9122           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9123           ;;
9124         *)
9125           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9126           ;;
9127         esac
9128       fi
9129       if test "$with_gnu_ld" = no; then
9130         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9131         hardcode_libdir_separator=:
9132
9133         case $host_cpu in
9134         hppa*64*|ia64*)
9135           hardcode_direct=no
9136           hardcode_shlibpath_var=no
9137           ;;
9138         *)
9139           hardcode_direct=yes
9140           hardcode_direct_absolute=yes
9141           export_dynamic_flag_spec='${wl}-E'
9142
9143           # hardcode_minus_L: Not really in the search PATH,
9144           # but as the default location of the library.
9145           hardcode_minus_L=yes
9146           ;;
9147         esac
9148       fi
9149       ;;
9150
9151     irix5* | irix6* | nonstopux*)
9152       if test "$GCC" = yes; then
9153         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'
9154         # Try to use the -exported_symbol ld option, if it does not
9155         # work, assume that -exports_file does not work either and
9156         # implicitly export all symbols.
9157         save_LDFLAGS="$LDFLAGS"
9158         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h.  */
9161 int foo(void) {}
9162 _ACEOF
9163 if ac_fn_c_try_link "$LINENO"; then :
9164   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'
9165
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168     conftest$ac_exeext conftest.$ac_ext
9169         LDFLAGS="$save_LDFLAGS"
9170       else
9171         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'
9172         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'
9173       fi
9174       archive_cmds_need_lc='no'
9175       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176       hardcode_libdir_separator=:
9177       inherit_rpath=yes
9178       link_all_deplibs=yes
9179       ;;
9180
9181     netbsd* | netbsdelf*-gnu)
9182       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9183         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9184       else
9185         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9186       fi
9187       hardcode_libdir_flag_spec='-R$libdir'
9188       hardcode_direct=yes
9189       hardcode_shlibpath_var=no
9190       ;;
9191
9192     newsos6)
9193       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194       hardcode_direct=yes
9195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196       hardcode_libdir_separator=:
9197       hardcode_shlibpath_var=no
9198       ;;
9199
9200     *nto* | *qnx*)
9201       ;;
9202
9203     openbsd*)
9204       if test -f /usr/libexec/ld.so; then
9205         hardcode_direct=yes
9206         hardcode_shlibpath_var=no
9207         hardcode_direct_absolute=yes
9208         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9209           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9210           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9211           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9212           export_dynamic_flag_spec='${wl}-E'
9213         else
9214           case $host_os in
9215            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9216              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9217              hardcode_libdir_flag_spec='-R$libdir'
9218              ;;
9219            *)
9220              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9221              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9222              ;;
9223           esac
9224         fi
9225       else
9226         ld_shlibs=no
9227       fi
9228       ;;
9229
9230     os2*)
9231       hardcode_libdir_flag_spec='-L$libdir'
9232       hardcode_minus_L=yes
9233       allow_undefined_flag=unsupported
9234       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'
9235       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9236       ;;
9237
9238     osf3*)
9239       if test "$GCC" = yes; then
9240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9241         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'
9242       else
9243         allow_undefined_flag=' -expect_unresolved \*'
9244         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'
9245       fi
9246       archive_cmds_need_lc='no'
9247       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248       hardcode_libdir_separator=:
9249       ;;
9250
9251     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9252       if test "$GCC" = yes; then
9253         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9254         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'
9255         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256       else
9257         allow_undefined_flag=' -expect_unresolved \*'
9258         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'
9259         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~
9260         $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'
9261
9262         # Both c and cxx compiler support -rpath directly
9263         hardcode_libdir_flag_spec='-rpath $libdir'
9264       fi
9265       archive_cmds_need_lc='no'
9266       hardcode_libdir_separator=:
9267       ;;
9268
9269     solaris*)
9270       no_undefined_flag=' -z defs'
9271       if test "$GCC" = yes; then
9272         wlarc='${wl}'
9273         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9276       else
9277         case `$CC -V 2>&1` in
9278         *"Compilers 5.0"*)
9279           wlarc=''
9280           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9281           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9282           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9283           ;;
9284         *)
9285           wlarc='${wl}'
9286           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9287           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9288           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9289           ;;
9290         esac
9291       fi
9292       hardcode_libdir_flag_spec='-R$libdir'
9293       hardcode_shlibpath_var=no
9294       case $host_os in
9295       solaris2.[0-5] | solaris2.[0-5].*) ;;
9296       *)
9297         # The compiler driver will combine and reorder linker options,
9298         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9299         # but is careful enough not to reorder.
9300         # Supported since Solaris 2.6 (maybe 2.5.1?)
9301         if test "$GCC" = yes; then
9302           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9303         else
9304           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9305         fi
9306         ;;
9307       esac
9308       link_all_deplibs=yes
9309       ;;
9310
9311     sunos4*)
9312       if test "x$host_vendor" = xsequent; then
9313         # Use $CC to link under sequent, because it throws in some extra .o
9314         # files that make .init and .fini sections work.
9315         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9316       else
9317         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9318       fi
9319       hardcode_libdir_flag_spec='-L$libdir'
9320       hardcode_direct=yes
9321       hardcode_minus_L=yes
9322       hardcode_shlibpath_var=no
9323       ;;
9324
9325     sysv4)
9326       case $host_vendor in
9327         sni)
9328           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329           hardcode_direct=yes # is this really true???
9330         ;;
9331         siemens)
9332           ## LD is ld it makes a PLAMLIB
9333           ## CC just makes a GrossModule.
9334           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9335           reload_cmds='$CC -r -o $output$reload_objs'
9336           hardcode_direct=no
9337         ;;
9338         motorola)
9339           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9341         ;;
9342       esac
9343       runpath_var='LD_RUN_PATH'
9344       hardcode_shlibpath_var=no
9345       ;;
9346
9347     sysv4.3*)
9348       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349       hardcode_shlibpath_var=no
9350       export_dynamic_flag_spec='-Bexport'
9351       ;;
9352
9353     sysv4*MP*)
9354       if test -d /usr/nec; then
9355         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356         hardcode_shlibpath_var=no
9357         runpath_var=LD_RUN_PATH
9358         hardcode_runpath_var=yes
9359         ld_shlibs=yes
9360       fi
9361       ;;
9362
9363     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9364       no_undefined_flag='${wl}-z,text'
9365       archive_cmds_need_lc=no
9366       hardcode_shlibpath_var=no
9367       runpath_var='LD_RUN_PATH'
9368
9369       if test "$GCC" = yes; then
9370         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372       else
9373         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375       fi
9376       ;;
9377
9378     sysv5* | sco3.2v5* | sco5v6*)
9379       # Note: We can NOT use -z defs as we might desire, because we do not
9380       # link with -lc, and that would cause any symbols used from libc to
9381       # always be unresolved, which means just about no library would
9382       # ever link correctly.  If we're not using GNU ld we use -z text
9383       # though, which does catch some bad symbols but isn't as heavy-handed
9384       # as -z defs.
9385       no_undefined_flag='${wl}-z,text'
9386       allow_undefined_flag='${wl}-z,nodefs'
9387       archive_cmds_need_lc=no
9388       hardcode_shlibpath_var=no
9389       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9390       hardcode_libdir_separator=':'
9391       link_all_deplibs=yes
9392       export_dynamic_flag_spec='${wl}-Bexport'
9393       runpath_var='LD_RUN_PATH'
9394
9395       if test "$GCC" = yes; then
9396         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398       else
9399         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401       fi
9402       ;;
9403
9404     uts4*)
9405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406       hardcode_libdir_flag_spec='-L$libdir'
9407       hardcode_shlibpath_var=no
9408       ;;
9409
9410     *)
9411       ld_shlibs=no
9412       ;;
9413     esac
9414
9415     if test x$host_vendor = xsni; then
9416       case $host in
9417       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9418         export_dynamic_flag_spec='${wl}-Blargedynsym'
9419         ;;
9420       esac
9421     fi
9422   fi
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9425 $as_echo "$ld_shlibs" >&6; }
9426 test "$ld_shlibs" = no && can_build_shared=no
9427
9428 with_gnu_ld=$with_gnu_ld
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 #
9445 # Do we need to explicitly link libc?
9446 #
9447 case "x$archive_cmds_need_lc" in
9448 x|xyes)
9449   # Assume -lc should be added
9450   archive_cmds_need_lc=yes
9451
9452   if test "$enable_shared" = yes && test "$GCC" = yes; then
9453     case $archive_cmds in
9454     *'~'*)
9455       # FIXME: we may have to deal with multi-command sequences.
9456       ;;
9457     '$CC '*)
9458       # Test whether the compiler implicitly links with -lc since on some
9459       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9460       # to ld, don't add -lc before -lgcc.
9461       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9462 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9463       $RM conftest*
9464       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9465
9466       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9467   (eval $ac_compile) 2>&5
9468   ac_status=$?
9469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9470   test $ac_status = 0; } 2>conftest.err; then
9471         soname=conftest
9472         lib=conftest
9473         libobjs=conftest.$ac_objext
9474         deplibs=
9475         wl=$lt_prog_compiler_wl
9476         pic_flag=$lt_prog_compiler_pic
9477         compiler_flags=-v
9478         linker_flags=-v
9479         verstring=
9480         output_objdir=.
9481         libname=conftest
9482         lt_save_allow_undefined_flag=$allow_undefined_flag
9483         allow_undefined_flag=
9484         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9485   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9486   ac_status=$?
9487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488   test $ac_status = 0; }
9489         then
9490           archive_cmds_need_lc=no
9491         else
9492           archive_cmds_need_lc=yes
9493         fi
9494         allow_undefined_flag=$lt_save_allow_undefined_flag
9495       else
9496         cat conftest.err 1>&5
9497       fi
9498       $RM conftest*
9499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9500 $as_echo "$archive_cmds_need_lc" >&6; }
9501       ;;
9502     esac
9503   fi
9504   ;;
9505 esac
9506
9507
9508
9509
9510
9511
9512
9513
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9664 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9665
9666 if test "$GCC" = yes; then
9667   case $host_os in
9668     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9669     *) lt_awk_arg="/^libraries:/" ;;
9670   esac
9671   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9672   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9673     # if the path contains ";" then we assume it to be the separator
9674     # otherwise default to the standard path separator (i.e. ":") - it is
9675     # assumed that no part of a normal pathname contains ";" but that should
9676     # okay in the real world where ";" in dirpaths is itself problematic.
9677     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9678   else
9679     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9680   fi
9681   # Ok, now we have the path, separated by spaces, we can step through it
9682   # and add multilib dir if necessary.
9683   lt_tmp_lt_search_path_spec=
9684   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685   for lt_sys_path in $lt_search_path_spec; do
9686     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9688     else
9689       test -d "$lt_sys_path" && \
9690         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9691     fi
9692   done
9693   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9695   lt_foo="";
9696   lt_count=0;
9697   for (lt_i = NF; lt_i > 0; lt_i--) {
9698     if ($lt_i != "" && $lt_i != ".") {
9699       if ($lt_i == "..") {
9700         lt_count++;
9701       } else {
9702         if (lt_count == 0) {
9703           lt_foo="/" $lt_i lt_foo;
9704         } else {
9705           lt_count--;
9706         }
9707       }
9708     }
9709   }
9710   if (lt_foo != "") { lt_freq[lt_foo]++; }
9711   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9712 }'`
9713   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9714 else
9715   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9716 fi
9717 library_names_spec=
9718 libname_spec='lib$name'
9719 soname_spec=
9720 shrext_cmds=".so"
9721 postinstall_cmds=
9722 postuninstall_cmds=
9723 finish_cmds=
9724 finish_eval=
9725 shlibpath_var=
9726 shlibpath_overrides_runpath=unknown
9727 version_type=none
9728 dynamic_linker="$host_os ld.so"
9729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9730 need_lib_prefix=unknown
9731 hardcode_into_libs=no
9732
9733 # when you set need_version to no, make sure it does not cause -set_version
9734 # flags to be left without arguments
9735 need_version=unknown
9736
9737 case $host_os in
9738 aix3*)
9739   version_type=linux
9740   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9741   shlibpath_var=LIBPATH
9742
9743   # AIX 3 has no versioning support, so we append a major version to the name.
9744   soname_spec='${libname}${release}${shared_ext}$major'
9745   ;;
9746
9747 aix[4-9]*)
9748   version_type=linux
9749   need_lib_prefix=no
9750   need_version=no
9751   hardcode_into_libs=yes
9752   if test "$host_cpu" = ia64; then
9753     # AIX 5 supports IA64
9754     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9755     shlibpath_var=LD_LIBRARY_PATH
9756   else
9757     # With GCC up to 2.95.x, collect2 would create an import file
9758     # for dependence libraries.  The import file would start with
9759     # the line `#! .'.  This would cause the generated library to
9760     # depend on `.', always an invalid library.  This was fixed in
9761     # development snapshots of GCC prior to 3.0.
9762     case $host_os in
9763       aix4 | aix4.[01] | aix4.[01].*)
9764       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9765            echo ' yes '
9766            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9767         :
9768       else
9769         can_build_shared=no
9770       fi
9771       ;;
9772     esac
9773     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9774     # soname into executable. Probably we can add versioning support to
9775     # collect2, so additional links can be useful in future.
9776     if test "$aix_use_runtimelinking" = yes; then
9777       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9778       # instead of lib<name>.a to let people know that these are not
9779       # typical AIX shared libraries.
9780       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781     else
9782       # We preserve .a as extension for shared libraries through AIX4.2
9783       # and later when we are not doing run time linking.
9784       library_names_spec='${libname}${release}.a $libname.a'
9785       soname_spec='${libname}${release}${shared_ext}$major'
9786     fi
9787     shlibpath_var=LIBPATH
9788   fi
9789   ;;
9790
9791 amigaos*)
9792   case $host_cpu in
9793   powerpc)
9794     # Since July 2007 AmigaOS4 officially supports .so libraries.
9795     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797     ;;
9798   m68k)
9799     library_names_spec='$libname.ixlibrary $libname.a'
9800     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9801     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'
9802     ;;
9803   esac
9804   ;;
9805
9806 beos*)
9807   library_names_spec='${libname}${shared_ext}'
9808   dynamic_linker="$host_os ld.so"
9809   shlibpath_var=LIBRARY_PATH
9810   ;;
9811
9812 bsdi[45]*)
9813   version_type=linux
9814   need_version=no
9815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816   soname_spec='${libname}${release}${shared_ext}$major'
9817   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9818   shlibpath_var=LD_LIBRARY_PATH
9819   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9820   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9821   # the default ld.so.conf also contains /usr/contrib/lib and
9822   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9823   # libtool to hard-code these into programs
9824   ;;
9825
9826 cygwin* | mingw* | pw32* | cegcc*)
9827   version_type=windows
9828   shrext_cmds=".dll"
9829   need_version=no
9830   need_lib_prefix=no
9831
9832   case $GCC,$host_os in
9833   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9834     library_names_spec='$libname.dll.a'
9835     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9836     postinstall_cmds='base_file=`basename \${file}`~
9837       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9838       dldir=$destdir/`dirname \$dlpath`~
9839       test -d \$dldir || mkdir -p \$dldir~
9840       $install_prog $dir/$dlname \$dldir/$dlname~
9841       chmod a+x \$dldir/$dlname~
9842       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9843         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9844       fi'
9845     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9846       dlpath=$dir/\$dldll~
9847        $RM \$dlpath'
9848     shlibpath_overrides_runpath=yes
9849
9850     case $host_os in
9851     cygwin*)
9852       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9853       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9854       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9855       ;;
9856     mingw* | cegcc*)
9857       # MinGW DLLs use traditional 'lib' prefix
9858       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9860       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9861         # It is most probably a Windows format PATH printed by
9862         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9863         # path with ; separators, and with drive letters. We can handle the
9864         # drive letters (cygwin fileutils understands them), so leave them,
9865         # especially as we might pass files found there to a mingw objdump,
9866         # which wouldn't understand a cygwinified path. Ahh.
9867         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9868       else
9869         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9870       fi
9871       ;;
9872     pw32*)
9873       # pw32 DLLs use 'pw' prefix rather than 'lib'
9874       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875       ;;
9876     esac
9877     ;;
9878
9879   *)
9880     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9881     ;;
9882   esac
9883   dynamic_linker='Win32 ld.exe'
9884   # FIXME: first we should search . and the directory the executable is in
9885   shlibpath_var=PATH
9886   ;;
9887
9888 darwin* | rhapsody*)
9889   dynamic_linker="$host_os dyld"
9890   version_type=darwin
9891   need_lib_prefix=no
9892   need_version=no
9893   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9894   soname_spec='${libname}${release}${major}$shared_ext'
9895   shlibpath_overrides_runpath=yes
9896   shlibpath_var=DYLD_LIBRARY_PATH
9897   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9898
9899   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9900   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9901   ;;
9902
9903 dgux*)
9904   version_type=linux
9905   need_lib_prefix=no
9906   need_version=no
9907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9908   soname_spec='${libname}${release}${shared_ext}$major'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   ;;
9911
9912 freebsd1*)
9913   dynamic_linker=no
9914   ;;
9915
9916 freebsd* | dragonfly*)
9917   # DragonFly does not have aout.  When/if they implement a new
9918   # versioning mechanism, adjust this.
9919   if test -x /usr/bin/objformat; then
9920     objformat=`/usr/bin/objformat`
9921   else
9922     case $host_os in
9923     freebsd[123]*) objformat=aout ;;
9924     *) objformat=elf ;;
9925     esac
9926   fi
9927   version_type=freebsd-$objformat
9928   case $version_type in
9929     freebsd-elf*)
9930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9931       need_version=no
9932       need_lib_prefix=no
9933       ;;
9934     freebsd-*)
9935       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9936       need_version=yes
9937       ;;
9938   esac
9939   shlibpath_var=LD_LIBRARY_PATH
9940   case $host_os in
9941   freebsd2*)
9942     shlibpath_overrides_runpath=yes
9943     ;;
9944   freebsd3.[01]* | freebsdelf3.[01]*)
9945     shlibpath_overrides_runpath=yes
9946     hardcode_into_libs=yes
9947     ;;
9948   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9949   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9950     shlibpath_overrides_runpath=no
9951     hardcode_into_libs=yes
9952     ;;
9953   *) # from 4.6 on, and DragonFly
9954     shlibpath_overrides_runpath=yes
9955     hardcode_into_libs=yes
9956     ;;
9957   esac
9958   ;;
9959
9960 gnu*)
9961   version_type=linux
9962   need_lib_prefix=no
9963   need_version=no
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   shlibpath_var=LD_LIBRARY_PATH
9967   hardcode_into_libs=yes
9968   ;;
9969
9970 hpux9* | hpux10* | hpux11*)
9971   # Give a soname corresponding to the major version so that dld.sl refuses to
9972   # link against other versions.
9973   version_type=sunos
9974   need_lib_prefix=no
9975   need_version=no
9976   case $host_cpu in
9977   ia64*)
9978     shrext_cmds='.so'
9979     hardcode_into_libs=yes
9980     dynamic_linker="$host_os dld.so"
9981     shlibpath_var=LD_LIBRARY_PATH
9982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984     soname_spec='${libname}${release}${shared_ext}$major'
9985     if test "X$HPUX_IA64_MODE" = X32; then
9986       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9987     else
9988       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9989     fi
9990     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9991     ;;
9992   hppa*64*)
9993     shrext_cmds='.sl'
9994     hardcode_into_libs=yes
9995     dynamic_linker="$host_os dld.sl"
9996     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9997     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10001     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10002     ;;
10003   *)
10004     shrext_cmds='.sl'
10005     dynamic_linker="$host_os dld.sl"
10006     shlibpath_var=SHLIB_PATH
10007     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009     soname_spec='${libname}${release}${shared_ext}$major'
10010     ;;
10011   esac
10012   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10013   postinstall_cmds='chmod 555 $lib'
10014   ;;
10015
10016 interix[3-9]*)
10017   version_type=linux
10018   need_lib_prefix=no
10019   need_version=no
10020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10021   soname_spec='${libname}${release}${shared_ext}$major'
10022   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10023   shlibpath_var=LD_LIBRARY_PATH
10024   shlibpath_overrides_runpath=no
10025   hardcode_into_libs=yes
10026   ;;
10027
10028 irix5* | irix6* | nonstopux*)
10029   case $host_os in
10030     nonstopux*) version_type=nonstopux ;;
10031     *)
10032         if test "$lt_cv_prog_gnu_ld" = yes; then
10033                 version_type=linux
10034         else
10035                 version_type=irix
10036         fi ;;
10037   esac
10038   need_lib_prefix=no
10039   need_version=no
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10042   case $host_os in
10043   irix5* | nonstopux*)
10044     libsuff= shlibsuff=
10045     ;;
10046   *)
10047     case $LD in # libtool.m4 will add one of these switches to LD
10048     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10049       libsuff= shlibsuff= libmagic=32-bit;;
10050     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10051       libsuff=32 shlibsuff=N32 libmagic=N32;;
10052     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10053       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10054     *) libsuff= shlibsuff= libmagic=never-match;;
10055     esac
10056     ;;
10057   esac
10058   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10059   shlibpath_overrides_runpath=no
10060   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10061   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10062   hardcode_into_libs=yes
10063   ;;
10064
10065 # No shared lib support for Linux oldld, aout, or coff.
10066 linux*oldld* | linux*aout* | linux*coff*)
10067   dynamic_linker=no
10068   ;;
10069
10070 # This must be Linux ELF.
10071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10072   version_type=linux
10073   need_lib_prefix=no
10074   need_version=no
10075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076   soname_spec='${libname}${release}${shared_ext}$major'
10077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   shlibpath_overrides_runpath=no
10080   # Some binutils ld are patched to set DT_RUNPATH
10081   save_LDFLAGS=$LDFLAGS
10082   save_libdir=$libdir
10083   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10084        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h.  */
10087
10088 int
10089 main ()
10090 {
10091
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10098   shlibpath_overrides_runpath=yes
10099 fi
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102     conftest$ac_exeext conftest.$ac_ext
10103   LDFLAGS=$save_LDFLAGS
10104   libdir=$save_libdir
10105
10106   # This implies no fast_install, which is unacceptable.
10107   # Some rework will be needed to allow for fast_install
10108   # before this can be enabled.
10109   hardcode_into_libs=yes
10110
10111   # Append ld.so.conf contents to the search path
10112   if test -f /etc/ld.so.conf; then
10113     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' ' '`
10114     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10115   fi
10116
10117   # We used to test for /lib/ld.so.1 and disable shared libraries on
10118   # powerpc, because MkLinux only supported shared libraries with the
10119   # GNU dynamic linker.  Since this was broken with cross compilers,
10120   # most powerpc-linux boxes support dynamic linking these days and
10121   # people can always --disable-shared, the test was removed, and we
10122   # assume the GNU/Linux dynamic linker is in use.
10123   dynamic_linker='GNU/Linux ld.so'
10124   ;;
10125
10126 netbsdelf*-gnu)
10127   version_type=linux
10128   need_lib_prefix=no
10129   need_version=no
10130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10131   soname_spec='${libname}${release}${shared_ext}$major'
10132   shlibpath_var=LD_LIBRARY_PATH
10133   shlibpath_overrides_runpath=no
10134   hardcode_into_libs=yes
10135   dynamic_linker='NetBSD ld.elf_so'
10136   ;;
10137
10138 netbsd*)
10139   version_type=sunos
10140   need_lib_prefix=no
10141   need_version=no
10142   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10145     dynamic_linker='NetBSD (a.out) ld.so'
10146   else
10147     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10148     soname_spec='${libname}${release}${shared_ext}$major'
10149     dynamic_linker='NetBSD ld.elf_so'
10150   fi
10151   shlibpath_var=LD_LIBRARY_PATH
10152   shlibpath_overrides_runpath=yes
10153   hardcode_into_libs=yes
10154   ;;
10155
10156 newsos6)
10157   version_type=linux
10158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159   shlibpath_var=LD_LIBRARY_PATH
10160   shlibpath_overrides_runpath=yes
10161   ;;
10162
10163 *nto* | *qnx*)
10164   version_type=qnx
10165   need_lib_prefix=no
10166   need_version=no
10167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168   soname_spec='${libname}${release}${shared_ext}$major'
10169   shlibpath_var=LD_LIBRARY_PATH
10170   shlibpath_overrides_runpath=no
10171   hardcode_into_libs=yes
10172   dynamic_linker='ldqnx.so'
10173   ;;
10174
10175 openbsd*)
10176   version_type=sunos
10177   sys_lib_dlsearch_path_spec="/usr/lib"
10178   need_lib_prefix=no
10179   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10180   case $host_os in
10181     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10182     *)                          need_version=no  ;;
10183   esac
10184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10185   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10186   shlibpath_var=LD_LIBRARY_PATH
10187   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10188     case $host_os in
10189       openbsd2.[89] | openbsd2.[89].*)
10190         shlibpath_overrides_runpath=no
10191         ;;
10192       *)
10193         shlibpath_overrides_runpath=yes
10194         ;;
10195       esac
10196   else
10197     shlibpath_overrides_runpath=yes
10198   fi
10199   ;;
10200
10201 os2*)
10202   libname_spec='$name'
10203   shrext_cmds=".dll"
10204   need_lib_prefix=no
10205   library_names_spec='$libname${shared_ext} $libname.a'
10206   dynamic_linker='OS/2 ld.exe'
10207   shlibpath_var=LIBPATH
10208   ;;
10209
10210 osf3* | osf4* | osf5*)
10211   version_type=osf
10212   need_lib_prefix=no
10213   need_version=no
10214   soname_spec='${libname}${release}${shared_ext}$major'
10215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216   shlibpath_var=LD_LIBRARY_PATH
10217   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10218   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10219   ;;
10220
10221 rdos*)
10222   dynamic_linker=no
10223   ;;
10224
10225 solaris*)
10226   version_type=linux
10227   need_lib_prefix=no
10228   need_version=no
10229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230   soname_spec='${libname}${release}${shared_ext}$major'
10231   shlibpath_var=LD_LIBRARY_PATH
10232   shlibpath_overrides_runpath=yes
10233   hardcode_into_libs=yes
10234   # ldd complains unless libraries are executable
10235   postinstall_cmds='chmod +x $lib'
10236   ;;
10237
10238 sunos4*)
10239   version_type=sunos
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10241   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10242   shlibpath_var=LD_LIBRARY_PATH
10243   shlibpath_overrides_runpath=yes
10244   if test "$with_gnu_ld" = yes; then
10245     need_lib_prefix=no
10246   fi
10247   need_version=yes
10248   ;;
10249
10250 sysv4 | sysv4.3*)
10251   version_type=linux
10252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253   soname_spec='${libname}${release}${shared_ext}$major'
10254   shlibpath_var=LD_LIBRARY_PATH
10255   case $host_vendor in
10256     sni)
10257       shlibpath_overrides_runpath=no
10258       need_lib_prefix=no
10259       runpath_var=LD_RUN_PATH
10260       ;;
10261     siemens)
10262       need_lib_prefix=no
10263       ;;
10264     motorola)
10265       need_lib_prefix=no
10266       need_version=no
10267       shlibpath_overrides_runpath=no
10268       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10269       ;;
10270   esac
10271   ;;
10272
10273 sysv4*MP*)
10274   if test -d /usr/nec ;then
10275     version_type=linux
10276     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10277     soname_spec='$libname${shared_ext}.$major'
10278     shlibpath_var=LD_LIBRARY_PATH
10279   fi
10280   ;;
10281
10282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10283   version_type=freebsd-elf
10284   need_lib_prefix=no
10285   need_version=no
10286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   shlibpath_var=LD_LIBRARY_PATH
10289   shlibpath_overrides_runpath=yes
10290   hardcode_into_libs=yes
10291   if test "$with_gnu_ld" = yes; then
10292     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10293   else
10294     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10295     case $host_os in
10296       sco3.2v5*)
10297         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10298         ;;
10299     esac
10300   fi
10301   sys_lib_dlsearch_path_spec='/usr/lib'
10302   ;;
10303
10304 tpf*)
10305   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10306   version_type=linux
10307   need_lib_prefix=no
10308   need_version=no
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310   shlibpath_var=LD_LIBRARY_PATH
10311   shlibpath_overrides_runpath=no
10312   hardcode_into_libs=yes
10313   ;;
10314
10315 uts4*)
10316   version_type=linux
10317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318   soname_spec='${libname}${release}${shared_ext}$major'
10319   shlibpath_var=LD_LIBRARY_PATH
10320   ;;
10321
10322 *)
10323   dynamic_linker=no
10324   ;;
10325 esac
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10327 $as_echo "$dynamic_linker" >&6; }
10328 test "$dynamic_linker" = no && can_build_shared=no
10329
10330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10331 if test "$GCC" = yes; then
10332   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10333 fi
10334
10335 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10336   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10337 fi
10338 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10339   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10340 fi
10341
10342
10343
10344
10345
10346
10347
10348
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10429 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10430 hardcode_action=
10431 if test -n "$hardcode_libdir_flag_spec" ||
10432    test -n "$runpath_var" ||
10433    test "X$hardcode_automatic" = "Xyes" ; then
10434
10435   # We can hardcode non-existent directories.
10436   if test "$hardcode_direct" != no &&
10437      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10438      # have to relink, otherwise we might link with an installed library
10439      # when we should be linking with a yet-to-be-installed one
10440      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10441      test "$hardcode_minus_L" != no; then
10442     # Linking always hardcodes the temporary library directory.
10443     hardcode_action=relink
10444   else
10445     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10446     hardcode_action=immediate
10447   fi
10448 else
10449   # We cannot hardcode anything, or else we can only hardcode existing
10450   # directories.
10451   hardcode_action=unsupported
10452 fi
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10454 $as_echo "$hardcode_action" >&6; }
10455
10456 if test "$hardcode_action" = relink ||
10457    test "$inherit_rpath" = yes; then
10458   # Fast installation is not supported
10459   enable_fast_install=no
10460 elif test "$shlibpath_overrides_runpath" = yes ||
10461      test "$enable_shared" = no; then
10462   # Fast installation is not necessary
10463   enable_fast_install=needless
10464 fi
10465
10466
10467
10468
10469
10470
10471   if test "x$enable_dlopen" != xyes; then
10472   enable_dlopen=unknown
10473   enable_dlopen_self=unknown
10474   enable_dlopen_self_static=unknown
10475 else
10476   lt_cv_dlopen=no
10477   lt_cv_dlopen_libs=
10478
10479   case $host_os in
10480   beos*)
10481     lt_cv_dlopen="load_add_on"
10482     lt_cv_dlopen_libs=
10483     lt_cv_dlopen_self=yes
10484     ;;
10485
10486   mingw* | pw32* | cegcc*)
10487     lt_cv_dlopen="LoadLibrary"
10488     lt_cv_dlopen_libs=
10489     ;;
10490
10491   cygwin*)
10492     lt_cv_dlopen="dlopen"
10493     lt_cv_dlopen_libs=
10494     ;;
10495
10496   darwin*)
10497   # if libdl is installed we need to link against it
10498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10501   $as_echo_n "(cached) " >&6
10502 else
10503   ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-ldl  $LIBS"
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h.  */
10507
10508 /* Override any GCC internal prototype to avoid an error.
10509    Use char because int might match the return type of a GCC
10510    builtin and then its argument prototype would still apply.  */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 char dlopen ();
10515 int
10516 main ()
10517 {
10518 return dlopen ();
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"; then :
10524   ac_cv_lib_dl_dlopen=yes
10525 else
10526   ac_cv_lib_dl_dlopen=no
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext \
10529     conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10531 fi
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10533 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10534 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10535   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10536 else
10537
10538     lt_cv_dlopen="dyld"
10539     lt_cv_dlopen_libs=
10540     lt_cv_dlopen_self=yes
10541
10542 fi
10543
10544     ;;
10545
10546   *)
10547     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10548 if test "x$ac_cv_func_shl_load" = x""yes; then :
10549   lt_cv_dlopen="shl_load"
10550 else
10551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10552 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10553 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556   ac_check_lib_save_LIBS=$LIBS
10557 LIBS="-ldld  $LIBS"
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h.  */
10560
10561 /* Override any GCC internal prototype to avoid an error.
10562    Use char because int might match the return type of a GCC
10563    builtin and then its argument prototype would still apply.  */
10564 #ifdef __cplusplus
10565 extern "C"
10566 #endif
10567 char shl_load ();
10568 int
10569 main ()
10570 {
10571 return shl_load ();
10572   ;
10573   return 0;
10574 }
10575 _ACEOF
10576 if ac_fn_c_try_link "$LINENO"; then :
10577   ac_cv_lib_dld_shl_load=yes
10578 else
10579   ac_cv_lib_dld_shl_load=no
10580 fi
10581 rm -f core conftest.err conftest.$ac_objext \
10582     conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10584 fi
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10586 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10587 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10588   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10589 else
10590   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10591 if test "x$ac_cv_func_dlopen" = x""yes; then :
10592   lt_cv_dlopen="dlopen"
10593 else
10594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10595 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10597   $as_echo_n "(cached) " >&6
10598 else
10599   ac_check_lib_save_LIBS=$LIBS
10600 LIBS="-ldl  $LIBS"
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h.  */
10603
10604 /* Override any GCC internal prototype to avoid an error.
10605    Use char because int might match the return type of a GCC
10606    builtin and then its argument prototype would still apply.  */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char dlopen ();
10611 int
10612 main ()
10613 {
10614 return dlopen ();
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"; then :
10620   ac_cv_lib_dl_dlopen=yes
10621 else
10622   ac_cv_lib_dl_dlopen=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10629 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10630 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10632 else
10633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10634 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10635 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lsvld  $LIBS"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h.  */
10642
10643 /* Override any GCC internal prototype to avoid an error.
10644    Use char because int might match the return type of a GCC
10645    builtin and then its argument prototype would still apply.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char dlopen ();
10650 int
10651 main ()
10652 {
10653 return dlopen ();
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659   ac_cv_lib_svld_dlopen=yes
10660 else
10661   ac_cv_lib_svld_dlopen=no
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664     conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10668 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10669 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10671 else
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10673 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10674 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-ldld  $LIBS"
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h.  */
10681
10682 /* Override any GCC internal prototype to avoid an error.
10683    Use char because int might match the return type of a GCC
10684    builtin and then its argument prototype would still apply.  */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 char dld_link ();
10689 int
10690 main ()
10691 {
10692 return dld_link ();
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10698   ac_cv_lib_dld_dld_link=yes
10699 else
10700   ac_cv_lib_dld_dld_link=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext \
10703     conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10705 fi
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10707 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10708 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10709   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10710 fi
10711
10712
10713 fi
10714
10715
10716 fi
10717
10718
10719 fi
10720
10721
10722 fi
10723
10724
10725 fi
10726
10727     ;;
10728   esac
10729
10730   if test "x$lt_cv_dlopen" != xno; then
10731     enable_dlopen=yes
10732   else
10733     enable_dlopen=no
10734   fi
10735
10736   case $lt_cv_dlopen in
10737   dlopen)
10738     save_CPPFLAGS="$CPPFLAGS"
10739     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10740
10741     save_LDFLAGS="$LDFLAGS"
10742     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10743
10744     save_LIBS="$LIBS"
10745     LIBS="$lt_cv_dlopen_libs $LIBS"
10746
10747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10748 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10749 if test "${lt_cv_dlopen_self+set}" = set; then :
10750   $as_echo_n "(cached) " >&6
10751 else
10752           if test "$cross_compiling" = yes; then :
10753   lt_cv_dlopen_self=cross
10754 else
10755   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10756   lt_status=$lt_dlunknown
10757   cat > conftest.$ac_ext <<_LT_EOF
10758 #line 10758 "configure"
10759 #include "confdefs.h"
10760
10761 #if HAVE_DLFCN_H
10762 #include <dlfcn.h>
10763 #endif
10764
10765 #include <stdio.h>
10766
10767 #ifdef RTLD_GLOBAL
10768 #  define LT_DLGLOBAL           RTLD_GLOBAL
10769 #else
10770 #  ifdef DL_GLOBAL
10771 #    define LT_DLGLOBAL         DL_GLOBAL
10772 #  else
10773 #    define LT_DLGLOBAL         0
10774 #  endif
10775 #endif
10776
10777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10778    find out it does not work in some platform. */
10779 #ifndef LT_DLLAZY_OR_NOW
10780 #  ifdef RTLD_LAZY
10781 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10782 #  else
10783 #    ifdef DL_LAZY
10784 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10785 #    else
10786 #      ifdef RTLD_NOW
10787 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10788 #      else
10789 #        ifdef DL_NOW
10790 #          define LT_DLLAZY_OR_NOW      DL_NOW
10791 #        else
10792 #          define LT_DLLAZY_OR_NOW      0
10793 #        endif
10794 #      endif
10795 #    endif
10796 #  endif
10797 #endif
10798
10799 void fnord() { int i=42;}
10800 int main ()
10801 {
10802   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10803   int status = $lt_dlunknown;
10804
10805   if (self)
10806     {
10807       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10808       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10809       /* dlclose (self); */
10810     }
10811   else
10812     puts (dlerror ());
10813
10814   return status;
10815 }
10816 _LT_EOF
10817   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10818   (eval $ac_link) 2>&5
10819   ac_status=$?
10820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10821   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10822     (./conftest; exit; ) >&5 2>/dev/null
10823     lt_status=$?
10824     case x$lt_status in
10825       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10826       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10827       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10828     esac
10829   else :
10830     # compilation failed
10831     lt_cv_dlopen_self=no
10832   fi
10833 fi
10834 rm -fr conftest*
10835
10836
10837 fi
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10839 $as_echo "$lt_cv_dlopen_self" >&6; }
10840
10841     if test "x$lt_cv_dlopen_self" = xyes; then
10842       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10844 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10845 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848           if test "$cross_compiling" = yes; then :
10849   lt_cv_dlopen_self_static=cross
10850 else
10851   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10852   lt_status=$lt_dlunknown
10853   cat > conftest.$ac_ext <<_LT_EOF
10854 #line 10854 "configure"
10855 #include "confdefs.h"
10856
10857 #if HAVE_DLFCN_H
10858 #include <dlfcn.h>
10859 #endif
10860
10861 #include <stdio.h>
10862
10863 #ifdef RTLD_GLOBAL
10864 #  define LT_DLGLOBAL           RTLD_GLOBAL
10865 #else
10866 #  ifdef DL_GLOBAL
10867 #    define LT_DLGLOBAL         DL_GLOBAL
10868 #  else
10869 #    define LT_DLGLOBAL         0
10870 #  endif
10871 #endif
10872
10873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10874    find out it does not work in some platform. */
10875 #ifndef LT_DLLAZY_OR_NOW
10876 #  ifdef RTLD_LAZY
10877 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10878 #  else
10879 #    ifdef DL_LAZY
10880 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10881 #    else
10882 #      ifdef RTLD_NOW
10883 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10884 #      else
10885 #        ifdef DL_NOW
10886 #          define LT_DLLAZY_OR_NOW      DL_NOW
10887 #        else
10888 #          define LT_DLLAZY_OR_NOW      0
10889 #        endif
10890 #      endif
10891 #    endif
10892 #  endif
10893 #endif
10894
10895 void fnord() { int i=42;}
10896 int main ()
10897 {
10898   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10899   int status = $lt_dlunknown;
10900
10901   if (self)
10902     {
10903       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10904       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10905       /* dlclose (self); */
10906     }
10907   else
10908     puts (dlerror ());
10909
10910   return status;
10911 }
10912 _LT_EOF
10913   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10914   (eval $ac_link) 2>&5
10915   ac_status=$?
10916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10917   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10918     (./conftest; exit; ) >&5 2>/dev/null
10919     lt_status=$?
10920     case x$lt_status in
10921       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10922       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10923       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10924     esac
10925   else :
10926     # compilation failed
10927     lt_cv_dlopen_self_static=no
10928   fi
10929 fi
10930 rm -fr conftest*
10931
10932
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10935 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10936     fi
10937
10938     CPPFLAGS="$save_CPPFLAGS"
10939     LDFLAGS="$save_LDFLAGS"
10940     LIBS="$save_LIBS"
10941     ;;
10942   esac
10943
10944   case $lt_cv_dlopen_self in
10945   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10946   *) enable_dlopen_self=unknown ;;
10947   esac
10948
10949   case $lt_cv_dlopen_self_static in
10950   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10951   *) enable_dlopen_self_static=unknown ;;
10952   esac
10953 fi
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971 striplib=
10972 old_striplib=
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10974 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10975 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10976   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10977   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10979 $as_echo "yes" >&6; }
10980 else
10981 # FIXME - insert some real tests, host_os isn't really good enough
10982   case $host_os in
10983   darwin*)
10984     if test -n "$STRIP" ; then
10985       striplib="$STRIP -x"
10986       old_striplib="$STRIP -S"
10987       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10988 $as_echo "yes" >&6; }
10989     else
10990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992     fi
10993     ;;
10994   *)
10995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10997     ;;
10998   esac
10999 fi
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012   # Report which library types will actually be built
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11014 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11016 $as_echo "$can_build_shared" >&6; }
11017
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11019 $as_echo_n "checking whether to build shared libraries... " >&6; }
11020   test "$can_build_shared" = "no" && enable_shared=no
11021
11022   # On AIX, shared libraries and static libraries use the same namespace, and
11023   # are all built from PIC.
11024   case $host_os in
11025   aix3*)
11026     test "$enable_shared" = yes && enable_static=no
11027     if test -n "$RANLIB"; then
11028       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11029       postinstall_cmds='$RANLIB $lib'
11030     fi
11031     ;;
11032
11033   aix[4-9]*)
11034     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11035       test "$enable_shared" = yes && enable_static=no
11036     fi
11037     ;;
11038   esac
11039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11040 $as_echo "$enable_shared" >&6; }
11041
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11043 $as_echo_n "checking whether to build static libraries... " >&6; }
11044   # Make sure either enable_shared or enable_static is yes.
11045   test "$enable_shared" = yes || enable_static=yes
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11047 $as_echo "$enable_static" >&6; }
11048
11049
11050
11051
11052 fi
11053 ac_ext=c
11054 ac_cpp='$CPP $CPPFLAGS'
11055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11058
11059 CC="$lt_save_CC"
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073         ac_config_commands="$ac_config_commands libtool"
11074
11075
11076
11077
11078 # Only expand once:
11079
11080
11081
11082 # Docygen features
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093 # Files:
11094 DX_PROJECT=xmltooling
11095
11096 DX_CONFIG=doxygen.cfg
11097
11098 DX_DOCDIR=doc/api
11099
11100
11101 # Environment variables used inside doxygen.cfg:
11102 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11103
11104 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11105
11106 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11107
11108 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11109
11110
11111 # Doxygen itself:
11112
11113
11114
11115     # Check whether --enable-doxygen-doc was given.
11116 if test "${enable_doxygen_doc+set}" = set; then :
11117   enableval=$enable_doxygen_doc;
11118 case "$enableval" in
11119 #(
11120 y|Y|yes|Yes|YES)
11121     DX_FLAG_doc=1
11122
11123
11124 ;; #(
11125 n|N|no|No|NO)
11126     DX_FLAG_doc=0
11127
11128 ;; #(
11129 *)
11130     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11131 ;;
11132 esac
11133
11134 else
11135
11136 DX_FLAG_doc=1
11137
11138
11139
11140 fi
11141
11142 if test "$DX_FLAG_doc" = 1; then
11143
11144 if test -n "$ac_tool_prefix"; then
11145   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11146 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11150   $as_echo_n "(cached) " >&6
11151 else
11152   case $DX_DOXYGEN in
11153   [\\/]* | ?:[\\/]*)
11154   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11155   ;;
11156   *)
11157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160   IFS=$as_save_IFS
11161   test -z "$as_dir" && as_dir=.
11162     for ac_exec_ext in '' $ac_executable_extensions; do
11163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166     break 2
11167   fi
11168 done
11169   done
11170 IFS=$as_save_IFS
11171
11172   ;;
11173 esac
11174 fi
11175 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11176 if test -n "$DX_DOXYGEN"; then
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11178 $as_echo "$DX_DOXYGEN" >&6; }
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 fi
11183
11184
11185 fi
11186 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11187   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11188   # Extract the first word of "doxygen", so it can be a program name with args.
11189 set dummy doxygen; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   case $ac_pt_DX_DOXYGEN in
11196   [\\/]* | ?:[\\/]*)
11197   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11198   ;;
11199   *)
11200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203   IFS=$as_save_IFS
11204   test -z "$as_dir" && as_dir=.
11205     for ac_exec_ext in '' $ac_executable_extensions; do
11206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209     break 2
11210   fi
11211 done
11212   done
11213 IFS=$as_save_IFS
11214
11215   ;;
11216 esac
11217 fi
11218 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11219 if test -n "$ac_pt_DX_DOXYGEN"; then
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11221 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11222 else
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225 fi
11226
11227   if test "x$ac_pt_DX_DOXYGEN" = x; then
11228     DX_DOXYGEN=""
11229   else
11230     case $cross_compiling:$ac_tool_warned in
11231 yes:)
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11234 ac_tool_warned=yes ;;
11235 esac
11236     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11237   fi
11238 else
11239   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11240 fi
11241
11242 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11243     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11244 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11245     DX_FLAG_doc=0
11246
11247 fi
11248
11249
11250 if test -n "$ac_tool_prefix"; then
11251   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11252 set dummy ${ac_tool_prefix}perl; ac_word=$2
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if test "${ac_cv_path_DX_PERL+set}" = set; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   case $DX_PERL in
11259   [\\/]* | ?:[\\/]*)
11260   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11261   ;;
11262   *)
11263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266   IFS=$as_save_IFS
11267   test -z "$as_dir" && as_dir=.
11268     for ac_exec_ext in '' $ac_executable_extensions; do
11269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272     break 2
11273   fi
11274 done
11275   done
11276 IFS=$as_save_IFS
11277
11278   ;;
11279 esac
11280 fi
11281 DX_PERL=$ac_cv_path_DX_PERL
11282 if test -n "$DX_PERL"; then
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11284 $as_echo "$DX_PERL" >&6; }
11285 else
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11288 fi
11289
11290
11291 fi
11292 if test -z "$ac_cv_path_DX_PERL"; then
11293   ac_pt_DX_PERL=$DX_PERL
11294   # Extract the first word of "perl", so it can be a program name with args.
11295 set dummy perl; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   case $ac_pt_DX_PERL in
11302   [\\/]* | ?:[\\/]*)
11303   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11304   ;;
11305   *)
11306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11308 do
11309   IFS=$as_save_IFS
11310   test -z "$as_dir" && as_dir=.
11311     for ac_exec_ext in '' $ac_executable_extensions; do
11312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315     break 2
11316   fi
11317 done
11318   done
11319 IFS=$as_save_IFS
11320
11321   ;;
11322 esac
11323 fi
11324 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11325 if test -n "$ac_pt_DX_PERL"; then
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11327 $as_echo "$ac_pt_DX_PERL" >&6; }
11328 else
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11331 fi
11332
11333   if test "x$ac_pt_DX_PERL" = x; then
11334     DX_PERL=""
11335   else
11336     case $cross_compiling:$ac_tool_warned in
11337 yes:)
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11340 ac_tool_warned=yes ;;
11341 esac
11342     DX_PERL=$ac_pt_DX_PERL
11343   fi
11344 else
11345   DX_PERL="$ac_cv_path_DX_PERL"
11346 fi
11347
11348 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11349     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11350 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11351     DX_FLAG_doc=0
11352
11353 fi
11354
11355     :
11356 fi
11357 if test "$DX_FLAG_doc" = 1; then
11358      if :; then
11359   DX_COND_doc_TRUE=
11360   DX_COND_doc_FALSE='#'
11361 else
11362   DX_COND_doc_TRUE='#'
11363   DX_COND_doc_FALSE=
11364 fi
11365
11366     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
11367
11368     :
11369 else
11370      if false; then
11371   DX_COND_doc_TRUE=
11372   DX_COND_doc_FALSE='#'
11373 else
11374   DX_COND_doc_TRUE='#'
11375   DX_COND_doc_FALSE=
11376 fi
11377
11378
11379     :
11380 fi
11381
11382
11383 # Dot for graphics:
11384
11385
11386
11387     # Check whether --enable-doxygen-dot was given.
11388 if test "${enable_doxygen_dot+set}" = set; then :
11389   enableval=$enable_doxygen_dot;
11390 case "$enableval" in
11391 #(
11392 y|Y|yes|Yes|YES)
11393     DX_FLAG_dot=1
11394
11395
11396 test "$DX_FLAG_doc" = "1" \
11397 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
11398
11399 ;; #(
11400 n|N|no|No|NO)
11401     DX_FLAG_dot=0
11402
11403 ;; #(
11404 *)
11405     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
11406 ;;
11407 esac
11408
11409 else
11410
11411 DX_FLAG_dot=1
11412
11413
11414 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
11415
11416
11417
11418 fi
11419
11420 if test "$DX_FLAG_dot" = 1; then
11421
11422 if test -n "$ac_tool_prefix"; then
11423   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
11424 set dummy ${ac_tool_prefix}dot; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if test "${ac_cv_path_DX_DOT+set}" = set; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   case $DX_DOT in
11431   [\\/]* | ?:[\\/]*)
11432   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
11433   ;;
11434   *)
11435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438   IFS=$as_save_IFS
11439   test -z "$as_dir" && as_dir=.
11440     for ac_exec_ext in '' $ac_executable_extensions; do
11441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444     break 2
11445   fi
11446 done
11447   done
11448 IFS=$as_save_IFS
11449
11450   ;;
11451 esac
11452 fi
11453 DX_DOT=$ac_cv_path_DX_DOT
11454 if test -n "$DX_DOT"; then
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
11456 $as_echo "$DX_DOT" >&6; }
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461
11462
11463 fi
11464 if test -z "$ac_cv_path_DX_DOT"; then
11465   ac_pt_DX_DOT=$DX_DOT
11466   # Extract the first word of "dot", so it can be a program name with args.
11467 set dummy dot; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   case $ac_pt_DX_DOT in
11474   [\\/]* | ?:[\\/]*)
11475   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
11476   ;;
11477   *)
11478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481   IFS=$as_save_IFS
11482   test -z "$as_dir" && as_dir=.
11483     for ac_exec_ext in '' $ac_executable_extensions; do
11484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487     break 2
11488   fi
11489 done
11490   done
11491 IFS=$as_save_IFS
11492
11493   ;;
11494 esac
11495 fi
11496 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
11497 if test -n "$ac_pt_DX_DOT"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
11499 $as_echo "$ac_pt_DX_DOT" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505   if test "x$ac_pt_DX_DOT" = x; then
11506     DX_DOT=""
11507   else
11508     case $cross_compiling:$ac_tool_warned in
11509 yes:)
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512 ac_tool_warned=yes ;;
11513 esac
11514     DX_DOT=$ac_pt_DX_DOT
11515   fi
11516 else
11517   DX_DOT="$ac_cv_path_DX_DOT"
11518 fi
11519
11520 if test "$DX_FLAG_dot$DX_DOT" = 1; then
11521     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
11522 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
11523     DX_FLAG_dot=0
11524
11525 fi
11526
11527     :
11528 fi
11529 if test "$DX_FLAG_dot" = 1; then
11530      if :; then
11531   DX_COND_dot_TRUE=
11532   DX_COND_dot_FALSE='#'
11533 else
11534   DX_COND_dot_TRUE='#'
11535   DX_COND_dot_FALSE=
11536 fi
11537
11538     DX_ENV="$DX_ENV HAVE_DOT='YES'"
11539
11540              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
11541
11542     :
11543 else
11544      if false; then
11545   DX_COND_dot_TRUE=
11546   DX_COND_dot_FALSE='#'
11547 else
11548   DX_COND_dot_TRUE='#'
11549   DX_COND_dot_FALSE=
11550 fi
11551
11552     DX_ENV="$DX_ENV HAVE_DOT='NO'"
11553
11554     :
11555 fi
11556
11557
11558 # Man pages generation:
11559
11560
11561
11562     # Check whether --enable-doxygen-man was given.
11563 if test "${enable_doxygen_man+set}" = set; then :
11564   enableval=$enable_doxygen_man;
11565 case "$enableval" in
11566 #(
11567 y|Y|yes|Yes|YES)
11568     DX_FLAG_man=1
11569
11570
11571 test "$DX_FLAG_doc" = "1" \
11572 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
11573
11574 ;; #(
11575 n|N|no|No|NO)
11576     DX_FLAG_man=0
11577
11578 ;; #(
11579 *)
11580     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
11581 ;;
11582 esac
11583
11584 else
11585
11586 DX_FLAG_man=0
11587
11588
11589 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
11590
11591
11592
11593 fi
11594
11595 if test "$DX_FLAG_man" = 1; then
11596
11597     :
11598 fi
11599 if test "$DX_FLAG_man" = 1; then
11600      if :; then
11601   DX_COND_man_TRUE=
11602   DX_COND_man_FALSE='#'
11603 else
11604   DX_COND_man_TRUE='#'
11605   DX_COND_man_FALSE=
11606 fi
11607
11608     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
11609
11610     :
11611 else
11612      if false; then
11613   DX_COND_man_TRUE=
11614   DX_COND_man_FALSE='#'
11615 else
11616   DX_COND_man_TRUE='#'
11617   DX_COND_man_FALSE=
11618 fi
11619
11620     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
11621
11622     :
11623 fi
11624
11625
11626 # RTF file generation:
11627
11628
11629
11630     # Check whether --enable-doxygen-rtf was given.
11631 if test "${enable_doxygen_rtf+set}" = set; then :
11632   enableval=$enable_doxygen_rtf;
11633 case "$enableval" in
11634 #(
11635 y|Y|yes|Yes|YES)
11636     DX_FLAG_rtf=1
11637
11638
11639 test "$DX_FLAG_doc" = "1" \
11640 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
11641
11642 ;; #(
11643 n|N|no|No|NO)
11644     DX_FLAG_rtf=0
11645
11646 ;; #(
11647 *)
11648     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
11649 ;;
11650 esac
11651
11652 else
11653
11654 DX_FLAG_rtf=0
11655
11656
11657 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
11658
11659
11660
11661 fi
11662
11663 if test "$DX_FLAG_rtf" = 1; then
11664
11665     :
11666 fi
11667 if test "$DX_FLAG_rtf" = 1; then
11668      if :; then
11669   DX_COND_rtf_TRUE=
11670   DX_COND_rtf_FALSE='#'
11671 else
11672   DX_COND_rtf_TRUE='#'
11673   DX_COND_rtf_FALSE=
11674 fi
11675
11676     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
11677
11678     :
11679 else
11680      if false; then
11681   DX_COND_rtf_TRUE=
11682   DX_COND_rtf_FALSE='#'
11683 else
11684   DX_COND_rtf_TRUE='#'
11685   DX_COND_rtf_FALSE=
11686 fi
11687
11688     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
11689
11690     :
11691 fi
11692
11693
11694 # XML file generation:
11695
11696
11697
11698     # Check whether --enable-doxygen-xml was given.
11699 if test "${enable_doxygen_xml+set}" = set; then :
11700   enableval=$enable_doxygen_xml;
11701 case "$enableval" in
11702 #(
11703 y|Y|yes|Yes|YES)
11704     DX_FLAG_xml=1
11705
11706
11707 test "$DX_FLAG_doc" = "1" \
11708 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
11709
11710 ;; #(
11711 n|N|no|No|NO)
11712     DX_FLAG_xml=0
11713
11714 ;; #(
11715 *)
11716     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
11717 ;;
11718 esac
11719
11720 else
11721
11722 DX_FLAG_xml=0
11723
11724
11725 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
11726
11727
11728
11729 fi
11730
11731 if test "$DX_FLAG_xml" = 1; then
11732
11733     :
11734 fi
11735 if test "$DX_FLAG_xml" = 1; then
11736      if :; then
11737   DX_COND_xml_TRUE=
11738   DX_COND_xml_FALSE='#'
11739 else
11740   DX_COND_xml_TRUE='#'
11741   DX_COND_xml_FALSE=
11742 fi
11743
11744     DX_ENV="$DX_ENV GENERATE_XML='YES'"
11745
11746     :
11747 else
11748      if false; then
11749   DX_COND_xml_TRUE=
11750   DX_COND_xml_FALSE='#'
11751 else
11752   DX_COND_xml_TRUE='#'
11753   DX_COND_xml_FALSE=
11754 fi
11755
11756     DX_ENV="$DX_ENV GENERATE_XML='NO'"
11757
11758     :
11759 fi
11760
11761
11762 # (Compressed) HTML help generation:
11763
11764
11765
11766     # Check whether --enable-doxygen-chm was given.
11767 if test "${enable_doxygen_chm+set}" = set; then :
11768   enableval=$enable_doxygen_chm;
11769 case "$enableval" in
11770 #(
11771 y|Y|yes|Yes|YES)
11772     DX_FLAG_chm=1
11773
11774
11775 test "$DX_FLAG_doc" = "1" \
11776 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
11777
11778 ;; #(
11779 n|N|no|No|NO)
11780     DX_FLAG_chm=0
11781
11782 ;; #(
11783 *)
11784     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
11785 ;;
11786 esac
11787
11788 else
11789
11790 DX_FLAG_chm=0
11791
11792
11793 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
11794
11795
11796
11797 fi
11798
11799 if test "$DX_FLAG_chm" = 1; then
11800
11801 if test -n "$ac_tool_prefix"; then
11802   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
11803 set dummy ${ac_tool_prefix}hhc; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if test "${ac_cv_path_DX_HHC+set}" = set; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   case $DX_HHC in
11810   [\\/]* | ?:[\\/]*)
11811   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
11812   ;;
11813   *)
11814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11816 do
11817   IFS=$as_save_IFS
11818   test -z "$as_dir" && as_dir=.
11819     for ac_exec_ext in '' $ac_executable_extensions; do
11820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823     break 2
11824   fi
11825 done
11826   done
11827 IFS=$as_save_IFS
11828
11829   ;;
11830 esac
11831 fi
11832 DX_HHC=$ac_cv_path_DX_HHC
11833 if test -n "$DX_HHC"; then
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
11835 $as_echo "$DX_HHC" >&6; }
11836 else
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841
11842 fi
11843 if test -z "$ac_cv_path_DX_HHC"; then
11844   ac_pt_DX_HHC=$DX_HHC
11845   # Extract the first word of "hhc", so it can be a program name with args.
11846 set dummy hhc; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   case $ac_pt_DX_HHC in
11853   [\\/]* | ?:[\\/]*)
11854   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
11855   ;;
11856   *)
11857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860   IFS=$as_save_IFS
11861   test -z "$as_dir" && as_dir=.
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866     break 2
11867   fi
11868 done
11869   done
11870 IFS=$as_save_IFS
11871
11872   ;;
11873 esac
11874 fi
11875 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
11876 if test -n "$ac_pt_DX_HHC"; then
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
11878 $as_echo "$ac_pt_DX_HHC" >&6; }
11879 else
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883
11884   if test "x$ac_pt_DX_HHC" = x; then
11885     DX_HHC=""
11886   else
11887     case $cross_compiling:$ac_tool_warned in
11888 yes:)
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11891 ac_tool_warned=yes ;;
11892 esac
11893     DX_HHC=$ac_pt_DX_HHC
11894   fi
11895 else
11896   DX_HHC="$ac_cv_path_DX_HHC"
11897 fi
11898
11899 if test "$DX_FLAG_chm$DX_HHC" = 1; then
11900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
11901 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
11902     DX_FLAG_chm=0
11903
11904 fi
11905
11906     :
11907 fi
11908 if test "$DX_FLAG_chm" = 1; then
11909      if :; then
11910   DX_COND_chm_TRUE=
11911   DX_COND_chm_FALSE='#'
11912 else
11913   DX_COND_chm_TRUE='#'
11914   DX_COND_chm_FALSE=
11915 fi
11916
11917     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
11918
11919              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11920
11921              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
11922
11923     :
11924 else
11925      if false; then
11926   DX_COND_chm_TRUE=
11927   DX_COND_chm_FALSE='#'
11928 else
11929   DX_COND_chm_TRUE='#'
11930   DX_COND_chm_FALSE=
11931 fi
11932
11933     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
11934
11935     :
11936 fi
11937
11938
11939 # Seperate CHI file generation.
11940
11941
11942
11943     # Check whether --enable-doxygen-chi was given.
11944 if test "${enable_doxygen_chi+set}" = set; then :
11945   enableval=$enable_doxygen_chi;
11946 case "$enableval" in
11947 #(
11948 y|Y|yes|Yes|YES)
11949     DX_FLAG_chi=1
11950
11951
11952 test "$DX_FLAG_chm" = "1" \
11953 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
11954
11955 ;; #(
11956 n|N|no|No|NO)
11957     DX_FLAG_chi=0
11958
11959 ;; #(
11960 *)
11961     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
11962 ;;
11963 esac
11964
11965 else
11966
11967 DX_FLAG_chi=0
11968
11969
11970 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
11971
11972
11973
11974 fi
11975
11976 if test "$DX_FLAG_chi" = 1; then
11977
11978     :
11979 fi
11980 if test "$DX_FLAG_chi" = 1; then
11981      if :; then
11982   DX_COND_chi_TRUE=
11983   DX_COND_chi_FALSE='#'
11984 else
11985   DX_COND_chi_TRUE='#'
11986   DX_COND_chi_FALSE=
11987 fi
11988
11989     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
11990
11991     :
11992 else
11993      if false; then
11994   DX_COND_chi_TRUE=
11995   DX_COND_chi_FALSE='#'
11996 else
11997   DX_COND_chi_TRUE='#'
11998   DX_COND_chi_FALSE=
11999 fi
12000
12001     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12002
12003     :
12004 fi
12005
12006
12007 # Plain HTML pages generation:
12008
12009
12010
12011     # Check whether --enable-doxygen-html was given.
12012 if test "${enable_doxygen_html+set}" = set; then :
12013   enableval=$enable_doxygen_html;
12014 case "$enableval" in
12015 #(
12016 y|Y|yes|Yes|YES)
12017     DX_FLAG_html=1
12018
12019
12020 test "$DX_FLAG_doc" = "1" \
12021 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12022
12023 test "$DX_FLAG_chm" = "0" \
12024 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12025
12026 ;; #(
12027 n|N|no|No|NO)
12028     DX_FLAG_html=0
12029
12030 ;; #(
12031 *)
12032     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12033 ;;
12034 esac
12035
12036 else
12037
12038 DX_FLAG_html=1
12039
12040
12041 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12042
12043
12044 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12045
12046
12047
12048 fi
12049
12050 if test "$DX_FLAG_html" = 1; then
12051
12052     :
12053 fi
12054 if test "$DX_FLAG_html" = 1; then
12055      if :; then
12056   DX_COND_html_TRUE=
12057   DX_COND_html_FALSE='#'
12058 else
12059   DX_COND_html_TRUE='#'
12060   DX_COND_html_FALSE=
12061 fi
12062
12063     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12064
12065     :
12066 else
12067      if false; then
12068   DX_COND_html_TRUE=
12069   DX_COND_html_FALSE='#'
12070 else
12071   DX_COND_html_TRUE='#'
12072   DX_COND_html_FALSE=
12073 fi
12074
12075     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12076
12077     :
12078 fi
12079
12080
12081 # PostScript file generation:
12082
12083
12084
12085     # Check whether --enable-doxygen-ps was given.
12086 if test "${enable_doxygen_ps+set}" = set; then :
12087   enableval=$enable_doxygen_ps;
12088 case "$enableval" in
12089 #(
12090 y|Y|yes|Yes|YES)
12091     DX_FLAG_ps=1
12092
12093
12094 test "$DX_FLAG_doc" = "1" \
12095 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12096
12097 ;; #(
12098 n|N|no|No|NO)
12099     DX_FLAG_ps=0
12100
12101 ;; #(
12102 *)
12103     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12104 ;;
12105 esac
12106
12107 else
12108
12109 DX_FLAG_ps=0
12110
12111
12112 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12113
12114
12115
12116 fi
12117
12118 if test "$DX_FLAG_ps" = 1; then
12119
12120 if test -n "$ac_tool_prefix"; then
12121   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12122 set dummy ${ac_tool_prefix}latex; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   case $DX_LATEX in
12129   [\\/]* | ?:[\\/]*)
12130   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12131   ;;
12132   *)
12133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136   IFS=$as_save_IFS
12137   test -z "$as_dir" && as_dir=.
12138     for ac_exec_ext in '' $ac_executable_extensions; do
12139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142     break 2
12143   fi
12144 done
12145   done
12146 IFS=$as_save_IFS
12147
12148   ;;
12149 esac
12150 fi
12151 DX_LATEX=$ac_cv_path_DX_LATEX
12152 if test -n "$DX_LATEX"; then
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12154 $as_echo "$DX_LATEX" >&6; }
12155 else
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159
12160
12161 fi
12162 if test -z "$ac_cv_path_DX_LATEX"; then
12163   ac_pt_DX_LATEX=$DX_LATEX
12164   # Extract the first word of "latex", so it can be a program name with args.
12165 set dummy latex; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12169   $as_echo_n "(cached) " >&6
12170 else
12171   case $ac_pt_DX_LATEX in
12172   [\\/]* | ?:[\\/]*)
12173   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12174   ;;
12175   *)
12176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12178 do
12179   IFS=$as_save_IFS
12180   test -z "$as_dir" && as_dir=.
12181     for ac_exec_ext in '' $ac_executable_extensions; do
12182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185     break 2
12186   fi
12187 done
12188   done
12189 IFS=$as_save_IFS
12190
12191   ;;
12192 esac
12193 fi
12194 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12195 if test -n "$ac_pt_DX_LATEX"; then
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12197 $as_echo "$ac_pt_DX_LATEX" >&6; }
12198 else
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201 fi
12202
12203   if test "x$ac_pt_DX_LATEX" = x; then
12204     DX_LATEX=""
12205   else
12206     case $cross_compiling:$ac_tool_warned in
12207 yes:)
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12210 ac_tool_warned=yes ;;
12211 esac
12212     DX_LATEX=$ac_pt_DX_LATEX
12213   fi
12214 else
12215   DX_LATEX="$ac_cv_path_DX_LATEX"
12216 fi
12217
12218 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12219     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12220 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12221     DX_FLAG_ps=0
12222
12223 fi
12224
12225
12226 if test -n "$ac_tool_prefix"; then
12227   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12228 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   case $DX_MAKEINDEX in
12235   [\\/]* | ?:[\\/]*)
12236   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12237   ;;
12238   *)
12239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244     for ac_exec_ext in '' $ac_executable_extensions; do
12245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248     break 2
12249   fi
12250 done
12251   done
12252 IFS=$as_save_IFS
12253
12254   ;;
12255 esac
12256 fi
12257 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12258 if test -n "$DX_MAKEINDEX"; then
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12260 $as_echo "$DX_MAKEINDEX" >&6; }
12261 else
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265
12266
12267 fi
12268 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12269   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12270   # Extract the first word of "makeindex", so it can be a program name with args.
12271 set dummy makeindex; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   case $ac_pt_DX_MAKEINDEX in
12278   [\\/]* | ?:[\\/]*)
12279   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12280   ;;
12281   *)
12282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12284 do
12285   IFS=$as_save_IFS
12286   test -z "$as_dir" && as_dir=.
12287     for ac_exec_ext in '' $ac_executable_extensions; do
12288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291     break 2
12292   fi
12293 done
12294   done
12295 IFS=$as_save_IFS
12296
12297   ;;
12298 esac
12299 fi
12300 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12301 if test -n "$ac_pt_DX_MAKEINDEX"; then
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12303 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12304 else
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12307 fi
12308
12309   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12310     DX_MAKEINDEX=""
12311   else
12312     case $cross_compiling:$ac_tool_warned in
12313 yes:)
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12316 ac_tool_warned=yes ;;
12317 esac
12318     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12319   fi
12320 else
12321   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12322 fi
12323
12324 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12326 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12327     DX_FLAG_ps=0
12328
12329 fi
12330
12331
12332 if test -n "$ac_tool_prefix"; then
12333   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12334 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   case $DX_DVIPS in
12341   [\\/]* | ?:[\\/]*)
12342   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12343   ;;
12344   *)
12345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12347 do
12348   IFS=$as_save_IFS
12349   test -z "$as_dir" && as_dir=.
12350     for ac_exec_ext in '' $ac_executable_extensions; do
12351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354     break 2
12355   fi
12356 done
12357   done
12358 IFS=$as_save_IFS
12359
12360   ;;
12361 esac
12362 fi
12363 DX_DVIPS=$ac_cv_path_DX_DVIPS
12364 if test -n "$DX_DVIPS"; then
12365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
12366 $as_echo "$DX_DVIPS" >&6; }
12367 else
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12370 fi
12371
12372
12373 fi
12374 if test -z "$ac_cv_path_DX_DVIPS"; then
12375   ac_pt_DX_DVIPS=$DX_DVIPS
12376   # Extract the first word of "dvips", so it can be a program name with args.
12377 set dummy dvips; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   case $ac_pt_DX_DVIPS in
12384   [\\/]* | ?:[\\/]*)
12385   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
12386   ;;
12387   *)
12388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12390 do
12391   IFS=$as_save_IFS
12392   test -z "$as_dir" && as_dir=.
12393     for ac_exec_ext in '' $ac_executable_extensions; do
12394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12395     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397     break 2
12398   fi
12399 done
12400   done
12401 IFS=$as_save_IFS
12402
12403   ;;
12404 esac
12405 fi
12406 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
12407 if test -n "$ac_pt_DX_DVIPS"; then
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
12409 $as_echo "$ac_pt_DX_DVIPS" >&6; }
12410 else
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413 fi
12414
12415   if test "x$ac_pt_DX_DVIPS" = x; then
12416     DX_DVIPS=""
12417   else
12418     case $cross_compiling:$ac_tool_warned in
12419 yes:)
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12422 ac_tool_warned=yes ;;
12423 esac
12424     DX_DVIPS=$ac_pt_DX_DVIPS
12425   fi
12426 else
12427   DX_DVIPS="$ac_cv_path_DX_DVIPS"
12428 fi
12429
12430 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
12431     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
12432 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
12433     DX_FLAG_ps=0
12434
12435 fi
12436
12437
12438 if test -n "$ac_tool_prefix"; then
12439   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12440 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   case $DX_EGREP in
12447   [\\/]* | ?:[\\/]*)
12448   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12449   ;;
12450   *)
12451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452 for as_dir in $PATH
12453 do
12454   IFS=$as_save_IFS
12455   test -z "$as_dir" && as_dir=.
12456     for ac_exec_ext in '' $ac_executable_extensions; do
12457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12458     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460     break 2
12461   fi
12462 done
12463   done
12464 IFS=$as_save_IFS
12465
12466   ;;
12467 esac
12468 fi
12469 DX_EGREP=$ac_cv_path_DX_EGREP
12470 if test -n "$DX_EGREP"; then
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12472 $as_echo "$DX_EGREP" >&6; }
12473 else
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 fi
12477
12478
12479 fi
12480 if test -z "$ac_cv_path_DX_EGREP"; then
12481   ac_pt_DX_EGREP=$DX_EGREP
12482   # Extract the first word of "egrep", so it can be a program name with args.
12483 set dummy egrep; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   case $ac_pt_DX_EGREP in
12490   [\\/]* | ?:[\\/]*)
12491   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12492   ;;
12493   *)
12494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497   IFS=$as_save_IFS
12498   test -z "$as_dir" && as_dir=.
12499     for ac_exec_ext in '' $ac_executable_extensions; do
12500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503     break 2
12504   fi
12505 done
12506   done
12507 IFS=$as_save_IFS
12508
12509   ;;
12510 esac
12511 fi
12512 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12513 if test -n "$ac_pt_DX_EGREP"; then
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12515 $as_echo "$ac_pt_DX_EGREP" >&6; }
12516 else
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521   if test "x$ac_pt_DX_EGREP" = x; then
12522     DX_EGREP=""
12523   else
12524     case $cross_compiling:$ac_tool_warned in
12525 yes:)
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528 ac_tool_warned=yes ;;
12529 esac
12530     DX_EGREP=$ac_pt_DX_EGREP
12531   fi
12532 else
12533   DX_EGREP="$ac_cv_path_DX_EGREP"
12534 fi
12535
12536 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
12537     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
12538 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
12539     DX_FLAG_ps=0
12540
12541 fi
12542
12543     :
12544 fi
12545 if test "$DX_FLAG_ps" = 1; then
12546      if :; then
12547   DX_COND_ps_TRUE=
12548   DX_COND_ps_FALSE='#'
12549 else
12550   DX_COND_ps_TRUE='#'
12551   DX_COND_ps_FALSE=
12552 fi
12553
12554
12555     :
12556 else
12557      if false; then
12558   DX_COND_ps_TRUE=
12559   DX_COND_ps_FALSE='#'
12560 else
12561   DX_COND_ps_TRUE='#'
12562   DX_COND_ps_FALSE=
12563 fi
12564
12565
12566     :
12567 fi
12568
12569
12570 # PDF file generation:
12571
12572
12573
12574     # Check whether --enable-doxygen-pdf was given.
12575 if test "${enable_doxygen_pdf+set}" = set; then :
12576   enableval=$enable_doxygen_pdf;
12577 case "$enableval" in
12578 #(
12579 y|Y|yes|Yes|YES)
12580     DX_FLAG_pdf=1
12581
12582
12583 test "$DX_FLAG_doc" = "1" \
12584 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
12585
12586 ;; #(
12587 n|N|no|No|NO)
12588     DX_FLAG_pdf=0
12589
12590 ;; #(
12591 *)
12592     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
12593 ;;
12594 esac
12595
12596 else
12597
12598 DX_FLAG_pdf=0
12599
12600
12601 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
12602
12603
12604
12605 fi
12606
12607 if test "$DX_FLAG_pdf" = 1; then
12608
12609 if test -n "$ac_tool_prefix"; then
12610   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
12611 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
12615   $as_echo_n "(cached) " >&6
12616 else
12617   case $DX_PDFLATEX in
12618   [\\/]* | ?:[\\/]*)
12619   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
12620   ;;
12621   *)
12622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625   IFS=$as_save_IFS
12626   test -z "$as_dir" && as_dir=.
12627     for ac_exec_ext in '' $ac_executable_extensions; do
12628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12629     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631     break 2
12632   fi
12633 done
12634   done
12635 IFS=$as_save_IFS
12636
12637   ;;
12638 esac
12639 fi
12640 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
12641 if test -n "$DX_PDFLATEX"; then
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
12643 $as_echo "$DX_PDFLATEX" >&6; }
12644 else
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 fi
12648
12649
12650 fi
12651 if test -z "$ac_cv_path_DX_PDFLATEX"; then
12652   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
12653   # Extract the first word of "pdflatex", so it can be a program name with args.
12654 set dummy pdflatex; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   case $ac_pt_DX_PDFLATEX in
12661   [\\/]* | ?:[\\/]*)
12662   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
12663   ;;
12664   *)
12665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12667 do
12668   IFS=$as_save_IFS
12669   test -z "$as_dir" && as_dir=.
12670     for ac_exec_ext in '' $ac_executable_extensions; do
12671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12672     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674     break 2
12675   fi
12676 done
12677   done
12678 IFS=$as_save_IFS
12679
12680   ;;
12681 esac
12682 fi
12683 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
12684 if test -n "$ac_pt_DX_PDFLATEX"; then
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
12686 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
12687 else
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691
12692   if test "x$ac_pt_DX_PDFLATEX" = x; then
12693     DX_PDFLATEX=""
12694   else
12695     case $cross_compiling:$ac_tool_warned in
12696 yes:)
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12699 ac_tool_warned=yes ;;
12700 esac
12701     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
12702   fi
12703 else
12704   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
12705 fi
12706
12707 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
12708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
12709 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
12710     DX_FLAG_pdf=0
12711
12712 fi
12713
12714
12715 if test -n "$ac_tool_prefix"; then
12716   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12717 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723   case $DX_MAKEINDEX in
12724   [\\/]* | ?:[\\/]*)
12725   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12726   ;;
12727   *)
12728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12730 do
12731   IFS=$as_save_IFS
12732   test -z "$as_dir" && as_dir=.
12733     for ac_exec_ext in '' $ac_executable_extensions; do
12734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12735     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737     break 2
12738   fi
12739 done
12740   done
12741 IFS=$as_save_IFS
12742
12743   ;;
12744 esac
12745 fi
12746 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12747 if test -n "$DX_MAKEINDEX"; then
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12749 $as_echo "$DX_MAKEINDEX" >&6; }
12750 else
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 fi
12754
12755
12756 fi
12757 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12758   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12759   # Extract the first word of "makeindex", so it can be a program name with args.
12760 set dummy makeindex; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12764   $as_echo_n "(cached) " >&6
12765 else
12766   case $ac_pt_DX_MAKEINDEX in
12767   [\\/]* | ?:[\\/]*)
12768   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12769   ;;
12770   *)
12771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12773 do
12774   IFS=$as_save_IFS
12775   test -z "$as_dir" && as_dir=.
12776     for ac_exec_ext in '' $ac_executable_extensions; do
12777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780     break 2
12781   fi
12782 done
12783   done
12784 IFS=$as_save_IFS
12785
12786   ;;
12787 esac
12788 fi
12789 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12790 if test -n "$ac_pt_DX_MAKEINDEX"; then
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12792 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12793 else
12794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797
12798   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12799     DX_MAKEINDEX=""
12800   else
12801     case $cross_compiling:$ac_tool_warned in
12802 yes:)
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12805 ac_tool_warned=yes ;;
12806 esac
12807     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12808   fi
12809 else
12810   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12811 fi
12812
12813 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
12814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
12815 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
12816     DX_FLAG_pdf=0
12817
12818 fi
12819
12820
12821 if test -n "$ac_tool_prefix"; then
12822   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12823 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12825 $as_echo_n "checking for $ac_word... " >&6; }
12826 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   case $DX_EGREP in
12830   [\\/]* | ?:[\\/]*)
12831   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12832   ;;
12833   *)
12834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12836 do
12837   IFS=$as_save_IFS
12838   test -z "$as_dir" && as_dir=.
12839     for ac_exec_ext in '' $ac_executable_extensions; do
12840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12841     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12843     break 2
12844   fi
12845 done
12846   done
12847 IFS=$as_save_IFS
12848
12849   ;;
12850 esac
12851 fi
12852 DX_EGREP=$ac_cv_path_DX_EGREP
12853 if test -n "$DX_EGREP"; then
12854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12855 $as_echo "$DX_EGREP" >&6; }
12856 else
12857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861
12862 fi
12863 if test -z "$ac_cv_path_DX_EGREP"; then
12864   ac_pt_DX_EGREP=$DX_EGREP
12865   # Extract the first word of "egrep", so it can be a program name with args.
12866 set dummy egrep; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872   case $ac_pt_DX_EGREP in
12873   [\\/]* | ?:[\\/]*)
12874   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12875   ;;
12876   *)
12877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12879 do
12880   IFS=$as_save_IFS
12881   test -z "$as_dir" && as_dir=.
12882     for ac_exec_ext in '' $ac_executable_extensions; do
12883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12884     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886     break 2
12887   fi
12888 done
12889   done
12890 IFS=$as_save_IFS
12891
12892   ;;
12893 esac
12894 fi
12895 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12896 if test -n "$ac_pt_DX_EGREP"; then
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12898 $as_echo "$ac_pt_DX_EGREP" >&6; }
12899 else
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902 fi
12903
12904   if test "x$ac_pt_DX_EGREP" = x; then
12905     DX_EGREP=""
12906   else
12907     case $cross_compiling:$ac_tool_warned in
12908 yes:)
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12911 ac_tool_warned=yes ;;
12912 esac
12913     DX_EGREP=$ac_pt_DX_EGREP
12914   fi
12915 else
12916   DX_EGREP="$ac_cv_path_DX_EGREP"
12917 fi
12918
12919 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
12920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
12921 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
12922     DX_FLAG_pdf=0
12923
12924 fi
12925
12926     :
12927 fi
12928 if test "$DX_FLAG_pdf" = 1; then
12929      if :; then
12930   DX_COND_pdf_TRUE=
12931   DX_COND_pdf_FALSE='#'
12932 else
12933   DX_COND_pdf_TRUE='#'
12934   DX_COND_pdf_FALSE=
12935 fi
12936
12937
12938     :
12939 else
12940      if false; then
12941   DX_COND_pdf_TRUE=
12942   DX_COND_pdf_FALSE='#'
12943 else
12944   DX_COND_pdf_TRUE='#'
12945   DX_COND_pdf_FALSE=
12946 fi
12947
12948
12949     :
12950 fi
12951
12952
12953 # LaTeX generation for PS and/or PDF:
12954 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
12955      if :; then
12956   DX_COND_latex_TRUE=
12957   DX_COND_latex_FALSE='#'
12958 else
12959   DX_COND_latex_TRUE='#'
12960   DX_COND_latex_FALSE=
12961 fi
12962
12963     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
12964
12965 else
12966      if false; then
12967   DX_COND_latex_TRUE=
12968   DX_COND_latex_FALSE='#'
12969 else
12970   DX_COND_latex_TRUE='#'
12971   DX_COND_latex_FALSE=
12972 fi
12973
12974     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
12975
12976 fi
12977
12978 # Paper size for PS and/or PDF:
12979
12980 case "$DOXYGEN_PAPER_SIZE" in
12981 #(
12982 "")
12983     DOXYGEN_PAPER_SIZE=""
12984
12985 ;; #(
12986 a4wide|a4|letter|legal|executive)
12987     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
12988
12989 ;; #(
12990 *)
12991     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
12992 ;;
12993 esac
12994
12995 #For debugging:
12996 #echo DX_FLAG_doc=$DX_FLAG_doc
12997 #echo DX_FLAG_dot=$DX_FLAG_dot
12998 #echo DX_FLAG_man=$DX_FLAG_man
12999 #echo DX_FLAG_html=$DX_FLAG_html
13000 #echo DX_FLAG_chm=$DX_FLAG_chm
13001 #echo DX_FLAG_chi=$DX_FLAG_chi
13002 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13003 #echo DX_FLAG_xml=$DX_FLAG_xml
13004 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13005 #echo DX_FLAG_ps=$DX_FLAG_ps
13006 #echo DX_ENV=$DX_ENV
13007
13008
13009 # Check whether --enable-debug was given.
13010 if test "${enable_debug+set}" = set; then :
13011   enableval=$enable_debug; enable_debug=$enableval
13012 else
13013   enable_debug=no
13014 fi
13015
13016
13017 if test "$enable_debug" = "yes" ; then
13018     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13019     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13020 else
13021     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13022     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13023 fi
13024
13025 ac_config_headers="$ac_config_headers config.h xmltooling/config_pub.h"
13026
13027 ac_config_files="$ac_config_files xmltooling.spec pkginfo Portfile"
13028
13029 ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
13030
13031
13032 ac_ext=c
13033 ac_cpp='$CPP $CPPFLAGS'
13034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13037 if test -n "$ac_tool_prefix"; then
13038   for ac_prog in gcc gcc3 cc
13039   do
13040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if test "${ac_cv_prog_CC+set}" = set; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   if test -n "$CC"; then
13048   ac_cv_prog_CC="$CC" # Let the user override the test.
13049 else
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053   IFS=$as_save_IFS
13054   test -z "$as_dir" && as_dir=.
13055     for ac_exec_ext in '' $ac_executable_extensions; do
13056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059     break 2
13060   fi
13061 done
13062   done
13063 IFS=$as_save_IFS
13064
13065 fi
13066 fi
13067 CC=$ac_cv_prog_CC
13068 if test -n "$CC"; then
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13070 $as_echo "$CC" >&6; }
13071 else
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13074 fi
13075
13076
13077     test -n "$CC" && break
13078   done
13079 fi
13080 if test -z "$CC"; then
13081   ac_ct_CC=$CC
13082   for ac_prog in gcc gcc3 cc
13083 do
13084   # Extract the first word of "$ac_prog", so it can be a program name with args.
13085 set dummy $ac_prog; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13089   $as_echo_n "(cached) " >&6
13090 else
13091   if test -n "$ac_ct_CC"; then
13092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097   IFS=$as_save_IFS
13098   test -z "$as_dir" && as_dir=.
13099     for ac_exec_ext in '' $ac_executable_extensions; do
13100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101     ac_cv_prog_ac_ct_CC="$ac_prog"
13102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103     break 2
13104   fi
13105 done
13106   done
13107 IFS=$as_save_IFS
13108
13109 fi
13110 fi
13111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13112 if test -n "$ac_ct_CC"; then
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13114 $as_echo "$ac_ct_CC" >&6; }
13115 else
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13118 fi
13119
13120
13121   test -n "$ac_ct_CC" && break
13122 done
13123
13124   if test "x$ac_ct_CC" = x; then
13125     CC=""
13126   else
13127     case $cross_compiling:$ac_tool_warned in
13128 yes:)
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131 ac_tool_warned=yes ;;
13132 esac
13133     CC=$ac_ct_CC
13134   fi
13135 fi
13136
13137
13138 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13140 as_fn_error $? "no acceptable C compiler found in \$PATH
13141 See \`config.log' for more details" "$LINENO" 5 ; }
13142
13143 # Provide some information about the compiler.
13144 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13145 set X $ac_compile
13146 ac_compiler=$2
13147 for ac_option in --version -v -V -qversion; do
13148   { { ac_try="$ac_compiler $ac_option >&5"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13154 $as_echo "$ac_try_echo"; } >&5
13155   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13156   ac_status=$?
13157   if test -s conftest.err; then
13158     sed '10a\
13159 ... rest of stderr output deleted ...
13160          10q' conftest.err >conftest.er1
13161     cat conftest.er1 >&5
13162   fi
13163   rm -f conftest.er1 conftest.err
13164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165   test $ac_status = 0; }
13166 done
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13169 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13170 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h.  */
13175
13176 int
13177 main ()
13178 {
13179 #ifndef __GNUC__
13180        choke me
13181 #endif
13182
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188   ac_compiler_gnu=yes
13189 else
13190   ac_compiler_gnu=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13194
13195 fi
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13197 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13198 if test $ac_compiler_gnu = yes; then
13199   GCC=yes
13200 else
13201   GCC=
13202 fi
13203 ac_test_CFLAGS=${CFLAGS+set}
13204 ac_save_CFLAGS=$CFLAGS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13206 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13207 if test "${ac_cv_prog_cc_g+set}" = set; then :
13208   $as_echo_n "(cached) " >&6
13209 else
13210   ac_save_c_werror_flag=$ac_c_werror_flag
13211    ac_c_werror_flag=yes
13212    ac_cv_prog_cc_g=no
13213    CFLAGS="-g"
13214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h.  */
13216
13217 int
13218 main ()
13219 {
13220
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 if ac_fn_c_try_compile "$LINENO"; then :
13226   ac_cv_prog_cc_g=yes
13227 else
13228   CFLAGS=""
13229       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h.  */
13231
13232 int
13233 main ()
13234 {
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241
13242 else
13243   ac_c_werror_flag=$ac_save_c_werror_flag
13244          CFLAGS="-g"
13245          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h.  */
13247
13248 int
13249 main ()
13250 {
13251
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_c_try_compile "$LINENO"; then :
13257   ac_cv_prog_cc_g=yes
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264    ac_c_werror_flag=$ac_save_c_werror_flag
13265 fi
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13267 $as_echo "$ac_cv_prog_cc_g" >&6; }
13268 if test "$ac_test_CFLAGS" = set; then
13269   CFLAGS=$ac_save_CFLAGS
13270 elif test $ac_cv_prog_cc_g = yes; then
13271   if test "$GCC" = yes; then
13272     CFLAGS="-g -O2"
13273   else
13274     CFLAGS="-g"
13275   fi
13276 else
13277   if test "$GCC" = yes; then
13278     CFLAGS="-O2"
13279   else
13280     CFLAGS=
13281   fi
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13284 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13285 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13286   $as_echo_n "(cached) " >&6
13287 else
13288   ac_cv_prog_cc_c89=no
13289 ac_save_CC=$CC
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292 #include <stdarg.h>
13293 #include <stdio.h>
13294 #include <sys/types.h>
13295 #include <sys/stat.h>
13296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13297 struct buf { int x; };
13298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13299 static char *e (p, i)
13300      char **p;
13301      int i;
13302 {
13303   return p[i];
13304 }
13305 static char *f (char * (*g) (char **, int), char **p, ...)
13306 {
13307   char *s;
13308   va_list v;
13309   va_start (v,p);
13310   s = g (p, va_arg (v,int));
13311   va_end (v);
13312   return s;
13313 }
13314
13315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13316    function prototypes and stuff, but not '\xHH' hex character constants.
13317    These don't provoke an error unfortunately, instead are silently treated
13318    as 'x'.  The following induces an error, until -std is added to get
13319    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13320    array size at least.  It's necessary to write '\x00'==0 to get something
13321    that's true only with -std.  */
13322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13323
13324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13325    inside strings and character constants.  */
13326 #define FOO(x) 'x'
13327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13328
13329 int test (int i, double x);
13330 struct s1 {int (*f) (int a);};
13331 struct s2 {int (*f) (double a);};
13332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13333 int argc;
13334 char **argv;
13335 int
13336 main ()
13337 {
13338 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13344         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13345 do
13346   CC="$ac_save_CC $ac_arg"
13347   if ac_fn_c_try_compile "$LINENO"; then :
13348   ac_cv_prog_cc_c89=$ac_arg
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext
13351   test "x$ac_cv_prog_cc_c89" != "xno" && break
13352 done
13353 rm -f conftest.$ac_ext
13354 CC=$ac_save_CC
13355
13356 fi
13357 # AC_CACHE_VAL
13358 case "x$ac_cv_prog_cc_c89" in
13359   x)
13360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13361 $as_echo "none needed" >&6; } ;;
13362   xno)
13363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13364 $as_echo "unsupported" >&6; } ;;
13365   *)
13366     CC="$CC $ac_cv_prog_cc_c89"
13367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13369 esac
13370 if test "x$ac_cv_prog_cc_c89" != xno; then :
13371
13372 fi
13373
13374 ac_ext=c
13375 ac_cpp='$CPP $CPPFLAGS'
13376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13379
13380 depcc="$CC"   am_compiler_list=
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13383 $as_echo_n "checking dependency style of $depcc... " >&6; }
13384 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13385   $as_echo_n "(cached) " >&6
13386 else
13387   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13388   # We make a subdir and do the tests there.  Otherwise we can end up
13389   # making bogus files that we don't know about and never remove.  For
13390   # instance it was reported that on HP-UX the gcc test will end up
13391   # making a dummy file named `D' -- because `-MD' means `put the output
13392   # in D'.
13393   mkdir conftest.dir
13394   # Copy depcomp to subdir because otherwise we won't find it if we're
13395   # using a relative directory.
13396   cp "$am_depcomp" conftest.dir
13397   cd conftest.dir
13398   # We will build objects and dependencies in a subdirectory because
13399   # it helps to detect inapplicable dependency modes.  For instance
13400   # both Tru64's cc and ICC support -MD to output dependencies as a
13401   # side effect of compilation, but ICC will put the dependencies in
13402   # the current directory while Tru64 will put them in the object
13403   # directory.
13404   mkdir sub
13405
13406   am_cv_CC_dependencies_compiler_type=none
13407   if test "$am_compiler_list" = ""; then
13408      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13409   fi
13410   am__universal=false
13411   case " $depcc " in #(
13412      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13413      esac
13414
13415   for depmode in $am_compiler_list; do
13416     # Setup a source with many dependencies, because some compilers
13417     # like to wrap large dependency lists on column 80 (with \), and
13418     # we should not choose a depcomp mode which is confused by this.
13419     #
13420     # We need to recreate these files for each test, as the compiler may
13421     # overwrite some of them when testing with obscure command lines.
13422     # This happens at least with the AIX C compiler.
13423     : > sub/conftest.c
13424     for i in 1 2 3 4 5 6; do
13425       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13426       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13427       # Solaris 8's {/usr,}/bin/sh.
13428       touch sub/conftst$i.h
13429     done
13430     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13431
13432     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13433     # mode.  It turns out that the SunPro C++ compiler does not properly
13434     # handle `-M -o', and we need to detect this.  Also, some Intel
13435     # versions had trouble with output in subdirs
13436     am__obj=sub/conftest.${OBJEXT-o}
13437     am__minus_obj="-o $am__obj"
13438     case $depmode in
13439     gcc)
13440       # This depmode causes a compiler race in universal mode.
13441       test "$am__universal" = false || continue
13442       ;;
13443     nosideeffect)
13444       # after this tag, mechanisms are not by side-effect, so they'll
13445       # only be used when explicitly requested
13446       if test "x$enable_dependency_tracking" = xyes; then
13447         continue
13448       else
13449         break
13450       fi
13451       ;;
13452     msvisualcpp | msvcmsys)
13453       # This compiler won't grok `-c -o', but also, the minuso test has
13454       # not run yet.  These depmodes are late enough in the game, and
13455       # so weak that their functioning should not be impacted.
13456       am__obj=conftest.${OBJEXT-o}
13457       am__minus_obj=
13458       ;;
13459     none) break ;;
13460     esac
13461     if depmode=$depmode \
13462        source=sub/conftest.c object=$am__obj \
13463        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13464        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13465          >/dev/null 2>conftest.err &&
13466        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13467        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13468        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13469        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13470       # icc doesn't choke on unknown options, it will just issue warnings
13471       # or remarks (even with -Werror).  So we grep stderr for any message
13472       # that says an option was ignored or not supported.
13473       # When given -MP, icc 7.0 and 7.1 complain thusly:
13474       #   icc: Command line warning: ignoring option '-M'; no argument required
13475       # The diagnosis changed in icc 8.0:
13476       #   icc: Command line remark: option '-MP' not supported
13477       if (grep 'ignoring option' conftest.err ||
13478           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13479         am_cv_CC_dependencies_compiler_type=$depmode
13480         break
13481       fi
13482     fi
13483   done
13484
13485   cd ..
13486   rm -rf conftest.dir
13487 else
13488   am_cv_CC_dependencies_compiler_type=none
13489 fi
13490
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13493 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13494 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13495
13496  if
13497   test "x$enable_dependency_tracking" != xno \
13498   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13499   am__fastdepCC_TRUE=
13500   am__fastdepCC_FALSE='#'
13501 else
13502   am__fastdepCC_TRUE='#'
13503   am__fastdepCC_FALSE=
13504 fi
13505
13506
13507 ac_ext=cpp
13508 ac_cpp='$CXXCPP $CPPFLAGS'
13509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13512 if test -z "$CXX"; then
13513   if test -n "$CCC"; then
13514     CXX=$CCC
13515   else
13516     if test -n "$ac_tool_prefix"; then
13517   for ac_prog in g++ g++3 c++ CC
13518   do
13519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13522 $as_echo_n "checking for $ac_word... " >&6; }
13523 if test "${ac_cv_prog_CXX+set}" = set; then :
13524   $as_echo_n "(cached) " >&6
13525 else
13526   if test -n "$CXX"; then
13527   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13528 else
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13531 do
13532   IFS=$as_save_IFS
13533   test -z "$as_dir" && as_dir=.
13534     for ac_exec_ext in '' $ac_executable_extensions; do
13535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13536     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13538     break 2
13539   fi
13540 done
13541   done
13542 IFS=$as_save_IFS
13543
13544 fi
13545 fi
13546 CXX=$ac_cv_prog_CXX
13547 if test -n "$CXX"; then
13548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13549 $as_echo "$CXX" >&6; }
13550 else
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13553 fi
13554
13555
13556     test -n "$CXX" && break
13557   done
13558 fi
13559 if test -z "$CXX"; then
13560   ac_ct_CXX=$CXX
13561   for ac_prog in g++ g++3 c++ CC
13562 do
13563   # Extract the first word of "$ac_prog", so it can be a program name with args.
13564 set dummy $ac_prog; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13568   $as_echo_n "(cached) " >&6
13569 else
13570   if test -n "$ac_ct_CXX"; then
13571   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576   IFS=$as_save_IFS
13577   test -z "$as_dir" && as_dir=.
13578     for ac_exec_ext in '' $ac_executable_extensions; do
13579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13580     ac_cv_prog_ac_ct_CXX="$ac_prog"
13581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582     break 2
13583   fi
13584 done
13585   done
13586 IFS=$as_save_IFS
13587
13588 fi
13589 fi
13590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13591 if test -n "$ac_ct_CXX"; then
13592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13593 $as_echo "$ac_ct_CXX" >&6; }
13594 else
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 fi
13598
13599
13600   test -n "$ac_ct_CXX" && break
13601 done
13602
13603   if test "x$ac_ct_CXX" = x; then
13604     CXX="g++"
13605   else
13606     case $cross_compiling:$ac_tool_warned in
13607 yes:)
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13610 ac_tool_warned=yes ;;
13611 esac
13612     CXX=$ac_ct_CXX
13613   fi
13614 fi
13615
13616   fi
13617 fi
13618 # Provide some information about the compiler.
13619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13620 set X $ac_compile
13621 ac_compiler=$2
13622 for ac_option in --version -v -V -qversion; do
13623   { { ac_try="$ac_compiler $ac_option >&5"
13624 case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13629 $as_echo "$ac_try_echo"; } >&5
13630   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13631   ac_status=$?
13632   if test -s conftest.err; then
13633     sed '10a\
13634 ... rest of stderr output deleted ...
13635          10q' conftest.err >conftest.er1
13636     cat conftest.er1 >&5
13637   fi
13638   rm -f conftest.er1 conftest.err
13639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640   test $ac_status = 0; }
13641 done
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13644 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13645 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13646   $as_echo_n "(cached) " >&6
13647 else
13648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h.  */
13650
13651 int
13652 main ()
13653 {
13654 #ifndef __GNUC__
13655        choke me
13656 #endif
13657
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 if ac_fn_cxx_try_compile "$LINENO"; then :
13663   ac_compiler_gnu=yes
13664 else
13665   ac_compiler_gnu=no
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13669
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13672 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13673 if test $ac_compiler_gnu = yes; then
13674   GXX=yes
13675 else
13676   GXX=
13677 fi
13678 ac_test_CXXFLAGS=${CXXFLAGS+set}
13679 ac_save_CXXFLAGS=$CXXFLAGS
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13681 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13682 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13686    ac_cxx_werror_flag=yes
13687    ac_cv_prog_cxx_g=no
13688    CXXFLAGS="-g"
13689    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h.  */
13691
13692 int
13693 main ()
13694 {
13695
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_cxx_try_compile "$LINENO"; then :
13701   ac_cv_prog_cxx_g=yes
13702 else
13703   CXXFLAGS=""
13704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h.  */
13706
13707 int
13708 main ()
13709 {
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 if ac_fn_cxx_try_compile "$LINENO"; then :
13716
13717 else
13718   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13719          CXXFLAGS="-g"
13720          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h.  */
13722
13723 int
13724 main ()
13725 {
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_cxx_try_compile "$LINENO"; then :
13732   ac_cv_prog_cxx_g=yes
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13742 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13743 if test "$ac_test_CXXFLAGS" = set; then
13744   CXXFLAGS=$ac_save_CXXFLAGS
13745 elif test $ac_cv_prog_cxx_g = yes; then
13746   if test "$GXX" = yes; then
13747     CXXFLAGS="-g -O2"
13748   else
13749     CXXFLAGS="-g"
13750   fi
13751 else
13752   if test "$GXX" = yes; then
13753     CXXFLAGS="-O2"
13754   else
13755     CXXFLAGS=
13756   fi
13757 fi
13758 ac_ext=c
13759 ac_cpp='$CPP $CPPFLAGS'
13760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13763
13764 depcc="$CXX"  am_compiler_list=
13765
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13767 $as_echo_n "checking dependency style of $depcc... " >&6; }
13768 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13769   $as_echo_n "(cached) " >&6
13770 else
13771   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13772   # We make a subdir and do the tests there.  Otherwise we can end up
13773   # making bogus files that we don't know about and never remove.  For
13774   # instance it was reported that on HP-UX the gcc test will end up
13775   # making a dummy file named `D' -- because `-MD' means `put the output
13776   # in D'.
13777   mkdir conftest.dir
13778   # Copy depcomp to subdir because otherwise we won't find it if we're
13779   # using a relative directory.
13780   cp "$am_depcomp" conftest.dir
13781   cd conftest.dir
13782   # We will build objects and dependencies in a subdirectory because
13783   # it helps to detect inapplicable dependency modes.  For instance
13784   # both Tru64's cc and ICC support -MD to output dependencies as a
13785   # side effect of compilation, but ICC will put the dependencies in
13786   # the current directory while Tru64 will put them in the object
13787   # directory.
13788   mkdir sub
13789
13790   am_cv_CXX_dependencies_compiler_type=none
13791   if test "$am_compiler_list" = ""; then
13792      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13793   fi
13794   am__universal=false
13795   case " $depcc " in #(
13796      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13797      esac
13798
13799   for depmode in $am_compiler_list; do
13800     # Setup a source with many dependencies, because some compilers
13801     # like to wrap large dependency lists on column 80 (with \), and
13802     # we should not choose a depcomp mode which is confused by this.
13803     #
13804     # We need to recreate these files for each test, as the compiler may
13805     # overwrite some of them when testing with obscure command lines.
13806     # This happens at least with the AIX C compiler.
13807     : > sub/conftest.c
13808     for i in 1 2 3 4 5 6; do
13809       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13810       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13811       # Solaris 8's {/usr,}/bin/sh.
13812       touch sub/conftst$i.h
13813     done
13814     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13815
13816     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13817     # mode.  It turns out that the SunPro C++ compiler does not properly
13818     # handle `-M -o', and we need to detect this.  Also, some Intel
13819     # versions had trouble with output in subdirs
13820     am__obj=sub/conftest.${OBJEXT-o}
13821     am__minus_obj="-o $am__obj"
13822     case $depmode in
13823     gcc)
13824       # This depmode causes a compiler race in universal mode.
13825       test "$am__universal" = false || continue
13826       ;;
13827     nosideeffect)
13828       # after this tag, mechanisms are not by side-effect, so they'll
13829       # only be used when explicitly requested
13830       if test "x$enable_dependency_tracking" = xyes; then
13831         continue
13832       else
13833         break
13834       fi
13835       ;;
13836     msvisualcpp | msvcmsys)
13837       # This compiler won't grok `-c -o', but also, the minuso test has
13838       # not run yet.  These depmodes are late enough in the game, and
13839       # so weak that their functioning should not be impacted.
13840       am__obj=conftest.${OBJEXT-o}
13841       am__minus_obj=
13842       ;;
13843     none) break ;;
13844     esac
13845     if depmode=$depmode \
13846        source=sub/conftest.c object=$am__obj \
13847        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13848        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13849          >/dev/null 2>conftest.err &&
13850        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13851        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13852        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13853        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13854       # icc doesn't choke on unknown options, it will just issue warnings
13855       # or remarks (even with -Werror).  So we grep stderr for any message
13856       # that says an option was ignored or not supported.
13857       # When given -MP, icc 7.0 and 7.1 complain thusly:
13858       #   icc: Command line warning: ignoring option '-M'; no argument required
13859       # The diagnosis changed in icc 8.0:
13860       #   icc: Command line remark: option '-MP' not supported
13861       if (grep 'ignoring option' conftest.err ||
13862           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13863         am_cv_CXX_dependencies_compiler_type=$depmode
13864         break
13865       fi
13866     fi
13867   done
13868
13869   cd ..
13870   rm -rf conftest.dir
13871 else
13872   am_cv_CXX_dependencies_compiler_type=none
13873 fi
13874
13875 fi
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13877 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13878 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13879
13880  if
13881   test "x$enable_dependency_tracking" != xno \
13882   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13883   am__fastdepCXX_TRUE=
13884   am__fastdepCXX_FALSE='#'
13885 else
13886   am__fastdepCXX_TRUE='#'
13887   am__fastdepCXX_FALSE=
13888 fi
13889
13890
13891
13892 ac_ext=cpp
13893 ac_cpp='$CXXCPP $CPPFLAGS'
13894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13897 if test -z "$CXX"; then
13898   if test -n "$CCC"; then
13899     CXX=$CCC
13900   else
13901     if test -n "$ac_tool_prefix"; then
13902   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13903   do
13904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907 $as_echo_n "checking for $ac_word... " >&6; }
13908 if test "${ac_cv_prog_CXX+set}" = set; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   if test -n "$CXX"; then
13912   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13913 else
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13916 do
13917   IFS=$as_save_IFS
13918   test -z "$as_dir" && as_dir=.
13919     for ac_exec_ext in '' $ac_executable_extensions; do
13920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13921     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923     break 2
13924   fi
13925 done
13926   done
13927 IFS=$as_save_IFS
13928
13929 fi
13930 fi
13931 CXX=$ac_cv_prog_CXX
13932 if test -n "$CXX"; then
13933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13934 $as_echo "$CXX" >&6; }
13935 else
13936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938 fi
13939
13940
13941     test -n "$CXX" && break
13942   done
13943 fi
13944 if test -z "$CXX"; then
13945   ac_ct_CXX=$CXX
13946   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13947 do
13948   # Extract the first word of "$ac_prog", so it can be a program name with args.
13949 set dummy $ac_prog; ac_word=$2
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13951 $as_echo_n "checking for $ac_word... " >&6; }
13952 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13953   $as_echo_n "(cached) " >&6
13954 else
13955   if test -n "$ac_ct_CXX"; then
13956   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13957 else
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13960 do
13961   IFS=$as_save_IFS
13962   test -z "$as_dir" && as_dir=.
13963     for ac_exec_ext in '' $ac_executable_extensions; do
13964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13965     ac_cv_prog_ac_ct_CXX="$ac_prog"
13966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13967     break 2
13968   fi
13969 done
13970   done
13971 IFS=$as_save_IFS
13972
13973 fi
13974 fi
13975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13976 if test -n "$ac_ct_CXX"; then
13977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13978 $as_echo "$ac_ct_CXX" >&6; }
13979 else
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13982 fi
13983
13984
13985   test -n "$ac_ct_CXX" && break
13986 done
13987
13988   if test "x$ac_ct_CXX" = x; then
13989     CXX="g++"
13990   else
13991     case $cross_compiling:$ac_tool_warned in
13992 yes:)
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13995 ac_tool_warned=yes ;;
13996 esac
13997     CXX=$ac_ct_CXX
13998   fi
13999 fi
14000
14001   fi
14002 fi
14003 # Provide some information about the compiler.
14004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14005 set X $ac_compile
14006 ac_compiler=$2
14007 for ac_option in --version -v -V -qversion; do
14008   { { ac_try="$ac_compiler $ac_option >&5"
14009 case "(($ac_try" in
14010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011   *) ac_try_echo=$ac_try;;
14012 esac
14013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14014 $as_echo "$ac_try_echo"; } >&5
14015   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14016   ac_status=$?
14017   if test -s conftest.err; then
14018     sed '10a\
14019 ... rest of stderr output deleted ...
14020          10q' conftest.err >conftest.er1
14021     cat conftest.er1 >&5
14022   fi
14023   rm -f conftest.er1 conftest.err
14024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025   test $ac_status = 0; }
14026 done
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14029 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h.  */
14035
14036 int
14037 main ()
14038 {
14039 #ifndef __GNUC__
14040        choke me
14041 #endif
14042
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 if ac_fn_cxx_try_compile "$LINENO"; then :
14048   ac_compiler_gnu=yes
14049 else
14050   ac_compiler_gnu=no
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14054
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14057 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14058 if test $ac_compiler_gnu = yes; then
14059   GXX=yes
14060 else
14061   GXX=
14062 fi
14063 ac_test_CXXFLAGS=${CXXFLAGS+set}
14064 ac_save_CXXFLAGS=$CXXFLAGS
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14066 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14067 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14068   $as_echo_n "(cached) " >&6
14069 else
14070   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14071    ac_cxx_werror_flag=yes
14072    ac_cv_prog_cxx_g=no
14073    CXXFLAGS="-g"
14074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h.  */
14076
14077 int
14078 main ()
14079 {
14080
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_cxx_try_compile "$LINENO"; then :
14086   ac_cv_prog_cxx_g=yes
14087 else
14088   CXXFLAGS=""
14089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h.  */
14091
14092 int
14093 main ()
14094 {
14095
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_cxx_try_compile "$LINENO"; then :
14101
14102 else
14103   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14104          CXXFLAGS="-g"
14105          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h.  */
14107
14108 int
14109 main ()
14110 {
14111
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_cxx_try_compile "$LINENO"; then :
14117   ac_cv_prog_cxx_g=yes
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 fi
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14127 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14128 if test "$ac_test_CXXFLAGS" = set; then
14129   CXXFLAGS=$ac_save_CXXFLAGS
14130 elif test $ac_cv_prog_cxx_g = yes; then
14131   if test "$GXX" = yes; then
14132     CXXFLAGS="-g -O2"
14133   else
14134     CXXFLAGS="-g"
14135   fi
14136 else
14137   if test "$GXX" = yes; then
14138     CXXFLAGS="-O2"
14139   else
14140     CXXFLAGS=
14141   fi
14142 fi
14143 ac_ext=c
14144 ac_cpp='$CPP $CPPFLAGS'
14145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14148
14149 depcc="$CXX"  am_compiler_list=
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14152 $as_echo_n "checking dependency style of $depcc... " >&6; }
14153 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14154   $as_echo_n "(cached) " >&6
14155 else
14156   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14157   # We make a subdir and do the tests there.  Otherwise we can end up
14158   # making bogus files that we don't know about and never remove.  For
14159   # instance it was reported that on HP-UX the gcc test will end up
14160   # making a dummy file named `D' -- because `-MD' means `put the output
14161   # in D'.
14162   mkdir conftest.dir
14163   # Copy depcomp to subdir because otherwise we won't find it if we're
14164   # using a relative directory.
14165   cp "$am_depcomp" conftest.dir
14166   cd conftest.dir
14167   # We will build objects and dependencies in a subdirectory because
14168   # it helps to detect inapplicable dependency modes.  For instance
14169   # both Tru64's cc and ICC support -MD to output dependencies as a
14170   # side effect of compilation, but ICC will put the dependencies in
14171   # the current directory while Tru64 will put them in the object
14172   # directory.
14173   mkdir sub
14174
14175   am_cv_CXX_dependencies_compiler_type=none
14176   if test "$am_compiler_list" = ""; then
14177      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14178   fi
14179   am__universal=false
14180   case " $depcc " in #(
14181      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14182      esac
14183
14184   for depmode in $am_compiler_list; do
14185     # Setup a source with many dependencies, because some compilers
14186     # like to wrap large dependency lists on column 80 (with \), and
14187     # we should not choose a depcomp mode which is confused by this.
14188     #
14189     # We need to recreate these files for each test, as the compiler may
14190     # overwrite some of them when testing with obscure command lines.
14191     # This happens at least with the AIX C compiler.
14192     : > sub/conftest.c
14193     for i in 1 2 3 4 5 6; do
14194       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14195       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14196       # Solaris 8's {/usr,}/bin/sh.
14197       touch sub/conftst$i.h
14198     done
14199     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14200
14201     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14202     # mode.  It turns out that the SunPro C++ compiler does not properly
14203     # handle `-M -o', and we need to detect this.  Also, some Intel
14204     # versions had trouble with output in subdirs
14205     am__obj=sub/conftest.${OBJEXT-o}
14206     am__minus_obj="-o $am__obj"
14207     case $depmode in
14208     gcc)
14209       # This depmode causes a compiler race in universal mode.
14210       test "$am__universal" = false || continue
14211       ;;
14212     nosideeffect)
14213       # after this tag, mechanisms are not by side-effect, so they'll
14214       # only be used when explicitly requested
14215       if test "x$enable_dependency_tracking" = xyes; then
14216         continue
14217       else
14218         break
14219       fi
14220       ;;
14221     msvisualcpp | msvcmsys)
14222       # This compiler won't grok `-c -o', but also, the minuso test has
14223       # not run yet.  These depmodes are late enough in the game, and
14224       # so weak that their functioning should not be impacted.
14225       am__obj=conftest.${OBJEXT-o}
14226       am__minus_obj=
14227       ;;
14228     none) break ;;
14229     esac
14230     if depmode=$depmode \
14231        source=sub/conftest.c object=$am__obj \
14232        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14233        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14234          >/dev/null 2>conftest.err &&
14235        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14236        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14237        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14238        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14239       # icc doesn't choke on unknown options, it will just issue warnings
14240       # or remarks (even with -Werror).  So we grep stderr for any message
14241       # that says an option was ignored or not supported.
14242       # When given -MP, icc 7.0 and 7.1 complain thusly:
14243       #   icc: Command line warning: ignoring option '-M'; no argument required
14244       # The diagnosis changed in icc 8.0:
14245       #   icc: Command line remark: option '-MP' not supported
14246       if (grep 'ignoring option' conftest.err ||
14247           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14248         am_cv_CXX_dependencies_compiler_type=$depmode
14249         break
14250       fi
14251     fi
14252   done
14253
14254   cd ..
14255   rm -rf conftest.dir
14256 else
14257   am_cv_CXX_dependencies_compiler_type=none
14258 fi
14259
14260 fi
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14262 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14263 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14264
14265  if
14266   test "x$enable_dependency_tracking" != xno \
14267   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14268   am__fastdepCXX_TRUE=
14269   am__fastdepCXX_FALSE='#'
14270 else
14271   am__fastdepCXX_TRUE='#'
14272   am__fastdepCXX_FALSE=
14273 fi
14274
14275
14276 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14277     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14278     (test "X$CXX" != "Xg++"))) ; then
14279   ac_ext=cpp
14280 ac_cpp='$CXXCPP $CPPFLAGS'
14281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14285 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14286 if test -z "$CXXCPP"; then
14287   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14288   $as_echo_n "(cached) " >&6
14289 else
14290       # Double quotes because CXXCPP needs to be expanded
14291     for CXXCPP in "$CXX -E" "/lib/cpp"
14292     do
14293       ac_preproc_ok=false
14294 for ac_cxx_preproc_warn_flag in '' yes
14295 do
14296   # Use a header file that comes with gcc, so configuring glibc
14297   # with a fresh cross-compiler works.
14298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14299   # <limits.h> exists even on freestanding compilers.
14300   # On the NeXT, cc -E runs the code through the compiler's parser,
14301   # not just through cpp. "Syntax error" is here to catch this case.
14302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h.  */
14304 #ifdef __STDC__
14305 # include <limits.h>
14306 #else
14307 # include <assert.h>
14308 #endif
14309                      Syntax error
14310 _ACEOF
14311 if ac_fn_cxx_try_cpp "$LINENO"; then :
14312
14313 else
14314   # Broken: fails on valid input.
14315 continue
14316 fi
14317 rm -f conftest.err conftest.i conftest.$ac_ext
14318
14319   # OK, works on sane cases.  Now check whether nonexistent headers
14320   # can be detected and how.
14321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h.  */
14323 #include <ac_nonexistent.h>
14324 _ACEOF
14325 if ac_fn_cxx_try_cpp "$LINENO"; then :
14326   # Broken: success on invalid input.
14327 continue
14328 else
14329   # Passes both tests.
14330 ac_preproc_ok=:
14331 break
14332 fi
14333 rm -f conftest.err conftest.i conftest.$ac_ext
14334
14335 done
14336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14337 rm -f conftest.i conftest.err conftest.$ac_ext
14338 if $ac_preproc_ok; then :
14339   break
14340 fi
14341
14342     done
14343     ac_cv_prog_CXXCPP=$CXXCPP
14344
14345 fi
14346   CXXCPP=$ac_cv_prog_CXXCPP
14347 else
14348   ac_cv_prog_CXXCPP=$CXXCPP
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14351 $as_echo "$CXXCPP" >&6; }
14352 ac_preproc_ok=false
14353 for ac_cxx_preproc_warn_flag in '' yes
14354 do
14355   # Use a header file that comes with gcc, so configuring glibc
14356   # with a fresh cross-compiler works.
14357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14358   # <limits.h> exists even on freestanding compilers.
14359   # On the NeXT, cc -E runs the code through the compiler's parser,
14360   # not just through cpp. "Syntax error" is here to catch this case.
14361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363 #ifdef __STDC__
14364 # include <limits.h>
14365 #else
14366 # include <assert.h>
14367 #endif
14368                      Syntax error
14369 _ACEOF
14370 if ac_fn_cxx_try_cpp "$LINENO"; then :
14371
14372 else
14373   # Broken: fails on valid input.
14374 continue
14375 fi
14376 rm -f conftest.err conftest.i conftest.$ac_ext
14377
14378   # OK, works on sane cases.  Now check whether nonexistent headers
14379   # can be detected and how.
14380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h.  */
14382 #include <ac_nonexistent.h>
14383 _ACEOF
14384 if ac_fn_cxx_try_cpp "$LINENO"; then :
14385   # Broken: success on invalid input.
14386 continue
14387 else
14388   # Passes both tests.
14389 ac_preproc_ok=:
14390 break
14391 fi
14392 rm -f conftest.err conftest.i conftest.$ac_ext
14393
14394 done
14395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14396 rm -f conftest.i conftest.err conftest.$ac_ext
14397 if $ac_preproc_ok; then :
14398
14399 else
14400   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14402 _lt_caught_CXX_error=yes; }
14403 fi
14404
14405 ac_ext=c
14406 ac_cpp='$CPP $CPPFLAGS'
14407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411 else
14412   _lt_caught_CXX_error=yes
14413 fi
14414
14415
14416
14417
14418 ac_ext=cpp
14419 ac_cpp='$CXXCPP $CPPFLAGS'
14420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14423
14424 archive_cmds_need_lc_CXX=no
14425 allow_undefined_flag_CXX=
14426 always_export_symbols_CXX=no
14427 archive_expsym_cmds_CXX=
14428 compiler_needs_object_CXX=no
14429 export_dynamic_flag_spec_CXX=
14430 hardcode_direct_CXX=no
14431 hardcode_direct_absolute_CXX=no
14432 hardcode_libdir_flag_spec_CXX=
14433 hardcode_libdir_flag_spec_ld_CXX=
14434 hardcode_libdir_separator_CXX=
14435 hardcode_minus_L_CXX=no
14436 hardcode_shlibpath_var_CXX=unsupported
14437 hardcode_automatic_CXX=no
14438 inherit_rpath_CXX=no
14439 module_cmds_CXX=
14440 module_expsym_cmds_CXX=
14441 link_all_deplibs_CXX=unknown
14442 old_archive_cmds_CXX=$old_archive_cmds
14443 no_undefined_flag_CXX=
14444 whole_archive_flag_spec_CXX=
14445 enable_shared_with_static_runtimes_CXX=no
14446
14447 # Source file extension for C++ test sources.
14448 ac_ext=cpp
14449
14450 # Object file extension for compiled C++ test sources.
14451 objext=o
14452 objext_CXX=$objext
14453
14454 # No sense in running all these tests if we already determined that
14455 # the CXX compiler isn't working.  Some variables (like enable_shared)
14456 # are currently assumed to apply to all compilers on this platform,
14457 # and will be corrupted by setting them based on a non-working compiler.
14458 if test "$_lt_caught_CXX_error" != yes; then
14459   # Code to be used in simple compile tests
14460   lt_simple_compile_test_code="int some_variable = 0;"
14461
14462   # Code to be used in simple link tests
14463   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14464
14465   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14466
14467
14468
14469
14470
14471
14472 # If no C compiler was specified, use CC.
14473 LTCC=${LTCC-"$CC"}
14474
14475 # If no C compiler flags were specified, use CFLAGS.
14476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14477
14478 # Allow CC to be a program name with arguments.
14479 compiler=$CC
14480
14481
14482   # save warnings/boilerplate of simple test code
14483   ac_outfile=conftest.$ac_objext
14484 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14486 _lt_compiler_boilerplate=`cat conftest.err`
14487 $RM conftest*
14488
14489   ac_outfile=conftest.$ac_objext
14490 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14492 _lt_linker_boilerplate=`cat conftest.err`
14493 $RM -r conftest*
14494
14495
14496   # Allow CC to be a program name with arguments.
14497   lt_save_CC=$CC
14498   lt_save_LD=$LD
14499   lt_save_GCC=$GCC
14500   GCC=$GXX
14501   lt_save_with_gnu_ld=$with_gnu_ld
14502   lt_save_path_LD=$lt_cv_path_LD
14503   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14504     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14505   else
14506     $as_unset lt_cv_prog_gnu_ld
14507   fi
14508   if test -n "${lt_cv_path_LDCXX+set}"; then
14509     lt_cv_path_LD=$lt_cv_path_LDCXX
14510   else
14511     $as_unset lt_cv_path_LD
14512   fi
14513   test -z "${LDCXX+set}" || LD=$LDCXX
14514   CC=${CXX-"c++"}
14515   compiler=$CC
14516   compiler_CXX=$CC
14517   for cc_temp in $compiler""; do
14518   case $cc_temp in
14519     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14520     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14521     \-*) ;;
14522     *) break;;
14523   esac
14524 done
14525 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14526
14527
14528   if test -n "$compiler"; then
14529     # We don't want -fno-exception when compiling C++ code, so set the
14530     # no_builtin_flag separately
14531     if test "$GXX" = yes; then
14532       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14533     else
14534       lt_prog_compiler_no_builtin_flag_CXX=
14535     fi
14536
14537     if test "$GXX" = yes; then
14538       # Set up default GNU C++ configuration
14539
14540
14541
14542 # Check whether --with-gnu-ld was given.
14543 if test "${with_gnu_ld+set}" = set; then :
14544   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14545 else
14546   with_gnu_ld=no
14547 fi
14548
14549 ac_prog=ld
14550 if test "$GCC" = yes; then
14551   # Check if gcc -print-prog-name=ld gives a path.
14552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14553 $as_echo_n "checking for ld used by $CC... " >&6; }
14554   case $host in
14555   *-*-mingw*)
14556     # gcc leaves a trailing carriage return which upsets mingw
14557     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14558   *)
14559     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14560   esac
14561   case $ac_prog in
14562     # Accept absolute paths.
14563     [\\/]* | ?:[\\/]*)
14564       re_direlt='/[^/][^/]*/\.\./'
14565       # Canonicalize the pathname of ld
14566       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14567       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14568         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14569       done
14570       test -z "$LD" && LD="$ac_prog"
14571       ;;
14572   "")
14573     # If it fails, then pretend we aren't using GCC.
14574     ac_prog=ld
14575     ;;
14576   *)
14577     # If it is relative, then search for the first ld in PATH.
14578     with_gnu_ld=unknown
14579     ;;
14580   esac
14581 elif test "$with_gnu_ld" = yes; then
14582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14583 $as_echo_n "checking for GNU ld... " >&6; }
14584 else
14585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14586 $as_echo_n "checking for non-GNU ld... " >&6; }
14587 fi
14588 if test "${lt_cv_path_LD+set}" = set; then :
14589   $as_echo_n "(cached) " >&6
14590 else
14591   if test -z "$LD"; then
14592   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14593   for ac_dir in $PATH; do
14594     IFS="$lt_save_ifs"
14595     test -z "$ac_dir" && ac_dir=.
14596     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14597       lt_cv_path_LD="$ac_dir/$ac_prog"
14598       # Check to see if the program is GNU ld.  I'd rather use --version,
14599       # but apparently some variants of GNU ld only accept -v.
14600       # Break only if it was the GNU/non-GNU ld that we prefer.
14601       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14602       *GNU* | *'with BFD'*)
14603         test "$with_gnu_ld" != no && break
14604         ;;
14605       *)
14606         test "$with_gnu_ld" != yes && break
14607         ;;
14608       esac
14609     fi
14610   done
14611   IFS="$lt_save_ifs"
14612 else
14613   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14614 fi
14615 fi
14616
14617 LD="$lt_cv_path_LD"
14618 if test -n "$LD"; then
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14620 $as_echo "$LD" >&6; }
14621 else
14622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14623 $as_echo "no" >&6; }
14624 fi
14625 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14627 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14628 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14629   $as_echo_n "(cached) " >&6
14630 else
14631   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14632 case `$LD -v 2>&1 </dev/null` in
14633 *GNU* | *'with BFD'*)
14634   lt_cv_prog_gnu_ld=yes
14635   ;;
14636 *)
14637   lt_cv_prog_gnu_ld=no
14638   ;;
14639 esac
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14642 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14643 with_gnu_ld=$lt_cv_prog_gnu_ld
14644
14645
14646
14647
14648
14649
14650
14651       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14652       # archiving commands below assume that GNU ld is being used.
14653       if test "$with_gnu_ld" = yes; then
14654         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14655         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'
14656
14657         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14658         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14659
14660         # If archive_cmds runs LD, not CC, wlarc should be empty
14661         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14662         #     investigate it a little bit more. (MM)
14663         wlarc='${wl}'
14664
14665         # ancient GNU ld didn't support --whole-archive et. al.
14666         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14667           $GREP 'no-whole-archive' > /dev/null; then
14668           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14669         else
14670           whole_archive_flag_spec_CXX=
14671         fi
14672       else
14673         with_gnu_ld=no
14674         wlarc=
14675
14676         # A generic and very simple default shared library creation
14677         # command for GNU C++ for the case where it uses the native
14678         # linker, instead of GNU ld.  If possible, this setting should
14679         # overridden to take advantage of the native linker features on
14680         # the platform it is being used on.
14681         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14682       fi
14683
14684       # Commands to make compiler produce verbose output that lists
14685       # what "hidden" libraries, object files and flags are used when
14686       # linking a shared library.
14687       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14688
14689     else
14690       GXX=no
14691       with_gnu_ld=no
14692       wlarc=
14693     fi
14694
14695     # PORTME: fill in a description of your system's C++ link characteristics
14696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14698     ld_shlibs_CXX=yes
14699     case $host_os in
14700       aix3*)
14701         # FIXME: insert proper C++ library support
14702         ld_shlibs_CXX=no
14703         ;;
14704       aix[4-9]*)
14705         if test "$host_cpu" = ia64; then
14706           # On IA64, the linker does run time linking by default, so we don't
14707           # have to do anything special.
14708           aix_use_runtimelinking=no
14709           exp_sym_flag='-Bexport'
14710           no_entry_flag=""
14711         else
14712           aix_use_runtimelinking=no
14713
14714           # Test if we are trying to use run time linking or normal
14715           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14716           # need to do runtime linking.
14717           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14718             for ld_flag in $LDFLAGS; do
14719               case $ld_flag in
14720               *-brtl*)
14721                 aix_use_runtimelinking=yes
14722                 break
14723                 ;;
14724               esac
14725             done
14726             ;;
14727           esac
14728
14729           exp_sym_flag='-bexport'
14730           no_entry_flag='-bnoentry'
14731         fi
14732
14733         # When large executables or shared objects are built, AIX ld can
14734         # have problems creating the table of contents.  If linking a library
14735         # or program results in "error TOC overflow" add -mminimal-toc to
14736         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14737         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14738
14739         archive_cmds_CXX=''
14740         hardcode_direct_CXX=yes
14741         hardcode_direct_absolute_CXX=yes
14742         hardcode_libdir_separator_CXX=':'
14743         link_all_deplibs_CXX=yes
14744         file_list_spec_CXX='${wl}-f,'
14745
14746         if test "$GXX" = yes; then
14747           case $host_os in aix4.[012]|aix4.[012].*)
14748           # We only want to do this on AIX 4.2 and lower, the check
14749           # below for broken collect2 doesn't work under 4.3+
14750           collect2name=`${CC} -print-prog-name=collect2`
14751           if test -f "$collect2name" &&
14752              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14753           then
14754             # We have reworked collect2
14755             :
14756           else
14757             # We have old collect2
14758             hardcode_direct_CXX=unsupported
14759             # It fails to find uninstalled libraries when the uninstalled
14760             # path is not listed in the libpath.  Setting hardcode_minus_L
14761             # to unsupported forces relinking
14762             hardcode_minus_L_CXX=yes
14763             hardcode_libdir_flag_spec_CXX='-L$libdir'
14764             hardcode_libdir_separator_CXX=
14765           fi
14766           esac
14767           shared_flag='-shared'
14768           if test "$aix_use_runtimelinking" = yes; then
14769             shared_flag="$shared_flag "'${wl}-G'
14770           fi
14771         else
14772           # not using gcc
14773           if test "$host_cpu" = ia64; then
14774           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14775           # chokes on -Wl,-G. The following line is correct:
14776           shared_flag='-G'
14777           else
14778             if test "$aix_use_runtimelinking" = yes; then
14779               shared_flag='${wl}-G'
14780             else
14781               shared_flag='${wl}-bM:SRE'
14782             fi
14783           fi
14784         fi
14785
14786         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14787         # It seems that -bexpall does not export symbols beginning with
14788         # underscore (_), so it is better to generate a list of symbols to
14789         # export.
14790         always_export_symbols_CXX=yes
14791         if test "$aix_use_runtimelinking" = yes; then
14792           # Warning - without using the other runtime loading flags (-brtl),
14793           # -berok will link without error, but may produce a broken library.
14794           allow_undefined_flag_CXX='-berok'
14795           # Determine the default libpath from the value encoded in an empty
14796           # executable.
14797           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h.  */
14799
14800 int
14801 main ()
14802 {
14803
14804   ;
14805   return 0;
14806 }
14807 _ACEOF
14808 if ac_fn_cxx_try_link "$LINENO"; then :
14809
14810 lt_aix_libpath_sed='
14811     /Import File Strings/,/^$/ {
14812         /^0/ {
14813             s/^0  *\(.*\)$/\1/
14814             p
14815         }
14816     }'
14817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14818 # Check for a 64-bit object if we didn't find anything.
14819 if test -z "$aix_libpath"; then
14820   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14821 fi
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext \
14824     conftest$ac_exeext conftest.$ac_ext
14825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14826
14827           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14828
14829           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"
14830         else
14831           if test "$host_cpu" = ia64; then
14832             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14833             allow_undefined_flag_CXX="-z nodefs"
14834             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"
14835           else
14836             # Determine the default libpath from the value encoded in an
14837             # empty executable.
14838             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h.  */
14840
14841 int
14842 main ()
14843 {
14844
14845   ;
14846   return 0;
14847 }
14848 _ACEOF
14849 if ac_fn_cxx_try_link "$LINENO"; then :
14850
14851 lt_aix_libpath_sed='
14852     /Import File Strings/,/^$/ {
14853         /^0/ {
14854             s/^0  *\(.*\)$/\1/
14855             p
14856         }
14857     }'
14858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14859 # Check for a 64-bit object if we didn't find anything.
14860 if test -z "$aix_libpath"; then
14861   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14862 fi
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext \
14865     conftest$ac_exeext conftest.$ac_ext
14866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14867
14868             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14869             # Warning - without using the other run time loading flags,
14870             # -berok will link without error, but may produce a broken library.
14871             no_undefined_flag_CXX=' ${wl}-bernotok'
14872             allow_undefined_flag_CXX=' ${wl}-berok'
14873             # Exported symbols can be pulled into shared objects from archives
14874             whole_archive_flag_spec_CXX='$convenience'
14875             archive_cmds_need_lc_CXX=yes
14876             # This is similar to how AIX traditionally builds its shared
14877             # libraries.
14878             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'
14879           fi
14880         fi
14881         ;;
14882
14883       beos*)
14884         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14885           allow_undefined_flag_CXX=unsupported
14886           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14887           # support --undefined.  This deserves some investigation.  FIXME
14888           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14889         else
14890           ld_shlibs_CXX=no
14891         fi
14892         ;;
14893
14894       chorus*)
14895         case $cc_basename in
14896           *)
14897           # FIXME: insert proper C++ library support
14898           ld_shlibs_CXX=no
14899           ;;
14900         esac
14901         ;;
14902
14903       cygwin* | mingw* | pw32* | cegcc*)
14904         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14905         # as there is no search path for DLLs.
14906         hardcode_libdir_flag_spec_CXX='-L$libdir'
14907         allow_undefined_flag_CXX=unsupported
14908         always_export_symbols_CXX=no
14909         enable_shared_with_static_runtimes_CXX=yes
14910
14911         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14912           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'
14913           # If the export-symbols file already is a .def file (1st line
14914           # is EXPORTS), use it as is; otherwise, prepend...
14915           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14916             cp $export_symbols $output_objdir/$soname.def;
14917           else
14918             echo EXPORTS > $output_objdir/$soname.def;
14919             cat $export_symbols >> $output_objdir/$soname.def;
14920           fi~
14921           $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'
14922         else
14923           ld_shlibs_CXX=no
14924         fi
14925         ;;
14926       darwin* | rhapsody*)
14927
14928
14929   archive_cmds_need_lc_CXX=no
14930   hardcode_direct_CXX=no
14931   hardcode_automatic_CXX=yes
14932   hardcode_shlibpath_var_CXX=unsupported
14933   whole_archive_flag_spec_CXX=''
14934   link_all_deplibs_CXX=yes
14935   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14936   case $cc_basename in
14937      ifort*) _lt_dar_can_shared=yes ;;
14938      *) _lt_dar_can_shared=$GCC ;;
14939   esac
14940   if test "$_lt_dar_can_shared" = "yes"; then
14941     output_verbose_link_cmd=echo
14942     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}"
14943     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14944     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}"
14945     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}"
14946        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14947       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}"
14948       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}"
14949     fi
14950
14951   else
14952   ld_shlibs_CXX=no
14953   fi
14954
14955         ;;
14956
14957       dgux*)
14958         case $cc_basename in
14959           ec++*)
14960             # FIXME: insert proper C++ library support
14961             ld_shlibs_CXX=no
14962             ;;
14963           ghcx*)
14964             # Green Hills C++ Compiler
14965             # FIXME: insert proper C++ library support
14966             ld_shlibs_CXX=no
14967             ;;
14968           *)
14969             # FIXME: insert proper C++ library support
14970             ld_shlibs_CXX=no
14971             ;;
14972         esac
14973         ;;
14974
14975       freebsd[12]*)
14976         # C++ shared libraries reported to be fairly broken before
14977         # switch to ELF
14978         ld_shlibs_CXX=no
14979         ;;
14980
14981       freebsd-elf*)
14982         archive_cmds_need_lc_CXX=no
14983         ;;
14984
14985       freebsd* | dragonfly*)
14986         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14987         # conventions
14988         ld_shlibs_CXX=yes
14989         ;;
14990
14991       gnu*)
14992         ;;
14993
14994       hpux9*)
14995         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14996         hardcode_libdir_separator_CXX=:
14997         export_dynamic_flag_spec_CXX='${wl}-E'
14998         hardcode_direct_CXX=yes
14999         hardcode_minus_L_CXX=yes # Not in the search PATH,
15000                                              # but as the default
15001                                              # location of the library.
15002
15003         case $cc_basename in
15004           CC*)
15005             # FIXME: insert proper C++ library support
15006             ld_shlibs_CXX=no
15007             ;;
15008           aCC*)
15009             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'
15010             # Commands to make compiler produce verbose output that lists
15011             # what "hidden" libraries, object files and flags are used when
15012             # linking a shared library.
15013             #
15014             # There doesn't appear to be a way to prevent this compiler from
15015             # explicitly linking system object files so we need to strip them
15016             # from the output so that they don't get included in the library
15017             # dependencies.
15018             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'
15019             ;;
15020           *)
15021             if test "$GXX" = yes; then
15022               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'
15023             else
15024               # FIXME: insert proper C++ library support
15025               ld_shlibs_CXX=no
15026             fi
15027             ;;
15028         esac
15029         ;;
15030
15031       hpux10*|hpux11*)
15032         if test $with_gnu_ld = no; then
15033           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15034           hardcode_libdir_separator_CXX=:
15035
15036           case $host_cpu in
15037             hppa*64*|ia64*)
15038               ;;
15039             *)
15040               export_dynamic_flag_spec_CXX='${wl}-E'
15041               ;;
15042           esac
15043         fi
15044         case $host_cpu in
15045           hppa*64*|ia64*)
15046             hardcode_direct_CXX=no
15047             hardcode_shlibpath_var_CXX=no
15048             ;;
15049           *)
15050             hardcode_direct_CXX=yes
15051             hardcode_direct_absolute_CXX=yes
15052             hardcode_minus_L_CXX=yes # Not in the search PATH,
15053                                                  # but as the default
15054                                                  # location of the library.
15055             ;;
15056         esac
15057
15058         case $cc_basename in
15059           CC*)
15060             # FIXME: insert proper C++ library support
15061             ld_shlibs_CXX=no
15062             ;;
15063           aCC*)
15064             case $host_cpu in
15065               hppa*64*)
15066                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15067                 ;;
15068               ia64*)
15069                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15070                 ;;
15071               *)
15072                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15073                 ;;
15074             esac
15075             # Commands to make compiler produce verbose output that lists
15076             # what "hidden" libraries, object files and flags are used when
15077             # linking a shared library.
15078             #
15079             # There doesn't appear to be a way to prevent this compiler from
15080             # explicitly linking system object files so we need to strip them
15081             # from the output so that they don't get included in the library
15082             # dependencies.
15083             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'
15084             ;;
15085           *)
15086             if test "$GXX" = yes; then
15087               if test $with_gnu_ld = no; then
15088                 case $host_cpu in
15089                   hppa*64*)
15090                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15091                     ;;
15092                   ia64*)
15093                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15094                     ;;
15095                   *)
15096                     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'
15097                     ;;
15098                 esac
15099               fi
15100             else
15101               # FIXME: insert proper C++ library support
15102               ld_shlibs_CXX=no
15103             fi
15104             ;;
15105         esac
15106         ;;
15107
15108       interix[3-9]*)
15109         hardcode_direct_CXX=no
15110         hardcode_shlibpath_var_CXX=no
15111         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15112         export_dynamic_flag_spec_CXX='${wl}-E'
15113         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15114         # Instead, shared libraries are loaded at an image base (0x10000000 by
15115         # default) and relocated if they conflict, which is a slow very memory
15116         # consuming and fragmenting process.  To avoid this, we pick a random,
15117         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15118         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15119         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'
15120         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'
15121         ;;
15122       irix5* | irix6*)
15123         case $cc_basename in
15124           CC*)
15125             # SGI C++
15126             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'
15127
15128             # Archives containing C++ object files must be created using
15129             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15130             # necessary to make sure instantiated templates are included
15131             # in the archive.
15132             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15133             ;;
15134           *)
15135             if test "$GXX" = yes; then
15136               if test "$with_gnu_ld" = no; then
15137                 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'
15138               else
15139                 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'
15140               fi
15141             fi
15142             link_all_deplibs_CXX=yes
15143             ;;
15144         esac
15145         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15146         hardcode_libdir_separator_CXX=:
15147         inherit_rpath_CXX=yes
15148         ;;
15149
15150       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15151         case $cc_basename in
15152           KCC*)
15153             # Kuck and Associates, Inc. (KAI) C++ Compiler
15154
15155             # KCC will only create a shared library if the output file
15156             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15157             # to its proper name (with version) after linking.
15158             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'
15159             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'
15160             # Commands to make compiler produce verbose output that lists
15161             # what "hidden" libraries, object files and flags are used when
15162             # linking a shared library.
15163             #
15164             # There doesn't appear to be a way to prevent this compiler from
15165             # explicitly linking system object files so we need to strip them
15166             # from the output so that they don't get included in the library
15167             # dependencies.
15168             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'
15169
15170             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15171             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15172
15173             # Archives containing C++ object files must be created using
15174             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15175             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15176             ;;
15177           icpc* | ecpc* )
15178             # Intel C++
15179             with_gnu_ld=yes
15180             # version 8.0 and above of icpc choke on multiply defined symbols
15181             # if we add $predep_objects and $postdep_objects, however 7.1 and
15182             # earlier do not add the objects themselves.
15183             case `$CC -V 2>&1` in
15184               *"Version 7."*)
15185                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15186                 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'
15187                 ;;
15188               *)  # Version 8.0 or newer
15189                 tmp_idyn=
15190                 case $host_cpu in
15191                   ia64*) tmp_idyn=' -i_dynamic';;
15192                 esac
15193                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15194                 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'
15195                 ;;
15196             esac
15197             archive_cmds_need_lc_CXX=no
15198             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15199             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15200             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15201             ;;
15202           pgCC* | pgcpp*)
15203             # Portland Group C++ compiler
15204             case `$CC -V` in
15205             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15206               prelink_cmds_CXX='tpldir=Template.dir~
15207                 rm -rf $tpldir~
15208                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15209                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15210               old_archive_cmds_CXX='tpldir=Template.dir~
15211                 rm -rf $tpldir~
15212                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15213                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15214                 $RANLIB $oldlib'
15215               archive_cmds_CXX='tpldir=Template.dir~
15216                 rm -rf $tpldir~
15217                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15218                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15219               archive_expsym_cmds_CXX='tpldir=Template.dir~
15220                 rm -rf $tpldir~
15221                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15222                 $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'
15223               ;;
15224             *) # Version 6 will use weak symbols
15225               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15226               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'
15227               ;;
15228             esac
15229
15230             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15231             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15232             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'
15233             ;;
15234           cxx*)
15235             # Compaq C++
15236             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15237             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'
15238
15239             runpath_var=LD_RUN_PATH
15240             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15241             hardcode_libdir_separator_CXX=:
15242
15243             # Commands to make compiler produce verbose output that lists
15244             # what "hidden" libraries, object files and flags are used when
15245             # linking a shared library.
15246             #
15247             # There doesn't appear to be a way to prevent this compiler from
15248             # explicitly linking system object files so we need to strip them
15249             # from the output so that they don't get included in the library
15250             # dependencies.
15251             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'
15252             ;;
15253           xl*)
15254             # IBM XL 8.0 on PPC, with GNU ld
15255             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15256             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15257             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258             if test "x$supports_anon_versioning" = xyes; then
15259               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15260                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15261                 echo "local: *; };" >> $output_objdir/$libname.ver~
15262                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15263             fi
15264             ;;
15265           *)
15266             case `$CC -V 2>&1 | sed 5q` in
15267             *Sun\ C*)
15268               # Sun C++ 5.9
15269               no_undefined_flag_CXX=' -zdefs'
15270               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15271               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'
15272               hardcode_libdir_flag_spec_CXX='-R$libdir'
15273               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'
15274               compiler_needs_object_CXX=yes
15275
15276               # Not sure whether something based on
15277               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15278               # would be better.
15279               output_verbose_link_cmd='echo'
15280
15281               # Archives containing C++ object files must be created using
15282               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15283               # necessary to make sure instantiated templates are included
15284               # in the archive.
15285               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15286               ;;
15287             esac
15288             ;;
15289         esac
15290         ;;
15291
15292       lynxos*)
15293         # FIXME: insert proper C++ library support
15294         ld_shlibs_CXX=no
15295         ;;
15296
15297       m88k*)
15298         # FIXME: insert proper C++ library support
15299         ld_shlibs_CXX=no
15300         ;;
15301
15302       mvs*)
15303         case $cc_basename in
15304           cxx*)
15305             # FIXME: insert proper C++ library support
15306             ld_shlibs_CXX=no
15307             ;;
15308           *)
15309             # FIXME: insert proper C++ library support
15310             ld_shlibs_CXX=no
15311             ;;
15312         esac
15313         ;;
15314
15315       netbsd*)
15316         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15317           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15318           wlarc=
15319           hardcode_libdir_flag_spec_CXX='-R$libdir'
15320           hardcode_direct_CXX=yes
15321           hardcode_shlibpath_var_CXX=no
15322         fi
15323         # Workaround some broken pre-1.5 toolchains
15324         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15325         ;;
15326
15327       *nto* | *qnx*)
15328         ld_shlibs_CXX=yes
15329         ;;
15330
15331       openbsd2*)
15332         # C++ shared libraries are fairly broken
15333         ld_shlibs_CXX=no
15334         ;;
15335
15336       openbsd*)
15337         if test -f /usr/libexec/ld.so; then
15338           hardcode_direct_CXX=yes
15339           hardcode_shlibpath_var_CXX=no
15340           hardcode_direct_absolute_CXX=yes
15341           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15342           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15343           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15344             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15345             export_dynamic_flag_spec_CXX='${wl}-E'
15346             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15347           fi
15348           output_verbose_link_cmd=echo
15349         else
15350           ld_shlibs_CXX=no
15351         fi
15352         ;;
15353
15354       osf3* | osf4* | osf5*)
15355         case $cc_basename in
15356           KCC*)
15357             # Kuck and Associates, Inc. (KAI) C++ Compiler
15358
15359             # KCC will only create a shared library if the output file
15360             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15361             # to its proper name (with version) after linking.
15362             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'
15363
15364             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15365             hardcode_libdir_separator_CXX=:
15366
15367             # Archives containing C++ object files must be created using
15368             # the KAI C++ compiler.
15369             case $host in
15370               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15371               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15372             esac
15373             ;;
15374           RCC*)
15375             # Rational C++ 2.4.1
15376             # FIXME: insert proper C++ library support
15377             ld_shlibs_CXX=no
15378             ;;
15379           cxx*)
15380             case $host in
15381               osf3*)
15382                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15383                 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'
15384                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15385                 ;;
15386               *)
15387                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15388                 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'
15389                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15390                   echo "-hidden">> $lib.exp~
15391                   $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~
15392                   $RM $lib.exp'
15393                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15394                 ;;
15395             esac
15396
15397             hardcode_libdir_separator_CXX=:
15398
15399             # Commands to make compiler produce verbose output that lists
15400             # what "hidden" libraries, object files and flags are used when
15401             # linking a shared library.
15402             #
15403             # There doesn't appear to be a way to prevent this compiler from
15404             # explicitly linking system object files so we need to strip them
15405             # from the output so that they don't get included in the library
15406             # dependencies.
15407             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'
15408             ;;
15409           *)
15410             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15411               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15412               case $host in
15413                 osf3*)
15414                   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'
15415                   ;;
15416                 *)
15417                   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'
15418                   ;;
15419               esac
15420
15421               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15422               hardcode_libdir_separator_CXX=:
15423
15424               # Commands to make compiler produce verbose output that lists
15425               # what "hidden" libraries, object files and flags are used when
15426               # linking a shared library.
15427               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15428
15429             else
15430               # FIXME: insert proper C++ library support
15431               ld_shlibs_CXX=no
15432             fi
15433             ;;
15434         esac
15435         ;;
15436
15437       psos*)
15438         # FIXME: insert proper C++ library support
15439         ld_shlibs_CXX=no
15440         ;;
15441
15442       sunos4*)
15443         case $cc_basename in
15444           CC*)
15445             # Sun C++ 4.x
15446             # FIXME: insert proper C++ library support
15447             ld_shlibs_CXX=no
15448             ;;
15449           lcc*)
15450             # Lucid
15451             # FIXME: insert proper C++ library support
15452             ld_shlibs_CXX=no
15453             ;;
15454           *)
15455             # FIXME: insert proper C++ library support
15456             ld_shlibs_CXX=no
15457             ;;
15458         esac
15459         ;;
15460
15461       solaris*)
15462         case $cc_basename in
15463           CC*)
15464             # Sun C++ 4.2, 5.x and Centerline C++
15465             archive_cmds_need_lc_CXX=yes
15466             no_undefined_flag_CXX=' -zdefs'
15467             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15468             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15469               $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'
15470
15471             hardcode_libdir_flag_spec_CXX='-R$libdir'
15472             hardcode_shlibpath_var_CXX=no
15473             case $host_os in
15474               solaris2.[0-5] | solaris2.[0-5].*) ;;
15475               *)
15476                 # The compiler driver will combine and reorder linker options,
15477                 # but understands `-z linker_flag'.
15478                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15479                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15480                 ;;
15481             esac
15482             link_all_deplibs_CXX=yes
15483
15484             output_verbose_link_cmd='echo'
15485
15486             # Archives containing C++ object files must be created using
15487             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15488             # necessary to make sure instantiated templates are included
15489             # in the archive.
15490             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15491             ;;
15492           gcx*)
15493             # Green Hills C++ Compiler
15494             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15495
15496             # The C++ compiler must be used to create the archive.
15497             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15498             ;;
15499           *)
15500             # GNU C++ compiler with Solaris linker
15501             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15502               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15503               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15504                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15505                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15506                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15507
15508                 # Commands to make compiler produce verbose output that lists
15509                 # what "hidden" libraries, object files and flags are used when
15510                 # linking a shared library.
15511                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15512               else
15513                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15514                 # platform.
15515                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15516                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15517                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15518
15519                 # Commands to make compiler produce verbose output that lists
15520                 # what "hidden" libraries, object files and flags are used when
15521                 # linking a shared library.
15522                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15523               fi
15524
15525               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15526               case $host_os in
15527                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15528                 *)
15529                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15530                   ;;
15531               esac
15532             fi
15533             ;;
15534         esac
15535         ;;
15536
15537     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15538       no_undefined_flag_CXX='${wl}-z,text'
15539       archive_cmds_need_lc_CXX=no
15540       hardcode_shlibpath_var_CXX=no
15541       runpath_var='LD_RUN_PATH'
15542
15543       case $cc_basename in
15544         CC*)
15545           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15546           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15547           ;;
15548         *)
15549           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15550           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15551           ;;
15552       esac
15553       ;;
15554
15555       sysv5* | sco3.2v5* | sco5v6*)
15556         # Note: We can NOT use -z defs as we might desire, because we do not
15557         # link with -lc, and that would cause any symbols used from libc to
15558         # always be unresolved, which means just about no library would
15559         # ever link correctly.  If we're not using GNU ld we use -z text
15560         # though, which does catch some bad symbols but isn't as heavy-handed
15561         # as -z defs.
15562         no_undefined_flag_CXX='${wl}-z,text'
15563         allow_undefined_flag_CXX='${wl}-z,nodefs'
15564         archive_cmds_need_lc_CXX=no
15565         hardcode_shlibpath_var_CXX=no
15566         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15567         hardcode_libdir_separator_CXX=':'
15568         link_all_deplibs_CXX=yes
15569         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15570         runpath_var='LD_RUN_PATH'
15571
15572         case $cc_basename in
15573           CC*)
15574             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15575             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576             ;;
15577           *)
15578             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15580             ;;
15581         esac
15582       ;;
15583
15584       tandem*)
15585         case $cc_basename in
15586           NCC*)
15587             # NonStop-UX NCC 3.20
15588             # FIXME: insert proper C++ library support
15589             ld_shlibs_CXX=no
15590             ;;
15591           *)
15592             # FIXME: insert proper C++ library support
15593             ld_shlibs_CXX=no
15594             ;;
15595         esac
15596         ;;
15597
15598       vxworks*)
15599         # FIXME: insert proper C++ library support
15600         ld_shlibs_CXX=no
15601         ;;
15602
15603       *)
15604         # FIXME: insert proper C++ library support
15605         ld_shlibs_CXX=no
15606         ;;
15607     esac
15608
15609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15610 $as_echo "$ld_shlibs_CXX" >&6; }
15611     test "$ld_shlibs_CXX" = no && can_build_shared=no
15612
15613     GCC_CXX="$GXX"
15614     LD_CXX="$LD"
15615
15616     ## CAVEAT EMPTOR:
15617     ## There is no encapsulation within the following macros, do not change
15618     ## the running order or otherwise move them around unless you know exactly
15619     ## what you are doing...
15620     # Dependencies to place before and after the object being linked:
15621 predep_objects_CXX=
15622 postdep_objects_CXX=
15623 predeps_CXX=
15624 postdeps_CXX=
15625 compiler_lib_search_path_CXX=
15626
15627 cat > conftest.$ac_ext <<_LT_EOF
15628 class Foo
15629 {
15630 public:
15631   Foo (void) { a = 0; }
15632 private:
15633   int a;
15634 };
15635 _LT_EOF
15636
15637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15638   (eval $ac_compile) 2>&5
15639   ac_status=$?
15640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641   test $ac_status = 0; }; then
15642   # Parse the compiler output and extract the necessary
15643   # objects, libraries and library flags.
15644
15645   # Sentinel used to keep track of whether or not we are before
15646   # the conftest object file.
15647   pre_test_object_deps_done=no
15648
15649   for p in `eval "$output_verbose_link_cmd"`; do
15650     case $p in
15651
15652     -L* | -R* | -l*)
15653        # Some compilers place space between "-{L,R}" and the path.
15654        # Remove the space.
15655        if test $p = "-L" ||
15656           test $p = "-R"; then
15657          prev=$p
15658          continue
15659        else
15660          prev=
15661        fi
15662
15663        if test "$pre_test_object_deps_done" = no; then
15664          case $p in
15665          -L* | -R*)
15666            # Internal compiler library paths should come after those
15667            # provided the user.  The postdeps already come after the
15668            # user supplied libs so there is no need to process them.
15669            if test -z "$compiler_lib_search_path_CXX"; then
15670              compiler_lib_search_path_CXX="${prev}${p}"
15671            else
15672              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15673            fi
15674            ;;
15675          # The "-l" case would never come before the object being
15676          # linked, so don't bother handling this case.
15677          esac
15678        else
15679          if test -z "$postdeps_CXX"; then
15680            postdeps_CXX="${prev}${p}"
15681          else
15682            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15683          fi
15684        fi
15685        ;;
15686
15687     *.$objext)
15688        # This assumes that the test object file only shows up
15689        # once in the compiler output.
15690        if test "$p" = "conftest.$objext"; then
15691          pre_test_object_deps_done=yes
15692          continue
15693        fi
15694
15695        if test "$pre_test_object_deps_done" = no; then
15696          if test -z "$predep_objects_CXX"; then
15697            predep_objects_CXX="$p"
15698          else
15699            predep_objects_CXX="$predep_objects_CXX $p"
15700          fi
15701        else
15702          if test -z "$postdep_objects_CXX"; then
15703            postdep_objects_CXX="$p"
15704          else
15705            postdep_objects_CXX="$postdep_objects_CXX $p"
15706          fi
15707        fi
15708        ;;
15709
15710     *) ;; # Ignore the rest.
15711
15712     esac
15713   done
15714
15715   # Clean up.
15716   rm -f a.out a.exe
15717 else
15718   echo "libtool.m4: error: problem compiling CXX test program"
15719 fi
15720
15721 $RM -f confest.$objext
15722
15723 # PORTME: override above test on systems where it is broken
15724 case $host_os in
15725 interix[3-9]*)
15726   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15727   # hack all around it, let's just trust "g++" to DTRT.
15728   predep_objects_CXX=
15729   postdep_objects_CXX=
15730   postdeps_CXX=
15731   ;;
15732
15733 linux*)
15734   case `$CC -V 2>&1 | sed 5q` in
15735   *Sun\ C*)
15736     # Sun C++ 5.9
15737
15738     # The more standards-conforming stlport4 library is
15739     # incompatible with the Cstd library. Avoid specifying
15740     # it if it's in CXXFLAGS. Ignore libCrun as
15741     # -library=stlport4 depends on it.
15742     case " $CXX $CXXFLAGS " in
15743     *" -library=stlport4 "*)
15744       solaris_use_stlport4=yes
15745       ;;
15746     esac
15747
15748     if test "$solaris_use_stlport4" != yes; then
15749       postdeps_CXX='-library=Cstd -library=Crun'
15750     fi
15751     ;;
15752   esac
15753   ;;
15754
15755 solaris*)
15756   case $cc_basename in
15757   CC*)
15758     # The more standards-conforming stlport4 library is
15759     # incompatible with the Cstd library. Avoid specifying
15760     # it if it's in CXXFLAGS. Ignore libCrun as
15761     # -library=stlport4 depends on it.
15762     case " $CXX $CXXFLAGS " in
15763     *" -library=stlport4 "*)
15764       solaris_use_stlport4=yes
15765       ;;
15766     esac
15767
15768     # Adding this requires a known-good setup of shared libraries for
15769     # Sun compiler versions before 5.6, else PIC objects from an old
15770     # archive will be linked into the output, leading to subtle bugs.
15771     if test "$solaris_use_stlport4" != yes; then
15772       postdeps_CXX='-library=Cstd -library=Crun'
15773     fi
15774     ;;
15775   esac
15776   ;;
15777 esac
15778
15779
15780 case " $postdeps_CXX " in
15781 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15782 esac
15783  compiler_lib_search_dirs_CXX=
15784 if test -n "${compiler_lib_search_path_CXX}"; then
15785  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15786 fi
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818     lt_prog_compiler_wl_CXX=
15819 lt_prog_compiler_pic_CXX=
15820 lt_prog_compiler_static_CXX=
15821
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15823 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15824
15825   # C++ specific cases for pic, static, wl, etc.
15826   if test "$GXX" = yes; then
15827     lt_prog_compiler_wl_CXX='-Wl,'
15828     lt_prog_compiler_static_CXX='-static'
15829
15830     case $host_os in
15831     aix*)
15832       # All AIX code is PIC.
15833       if test "$host_cpu" = ia64; then
15834         # AIX 5 now supports IA64 processor
15835         lt_prog_compiler_static_CXX='-Bstatic'
15836       fi
15837       ;;
15838
15839     amigaos*)
15840       case $host_cpu in
15841       powerpc)
15842             # see comment about AmigaOS4 .so support
15843             lt_prog_compiler_pic_CXX='-fPIC'
15844         ;;
15845       m68k)
15846             # FIXME: we need at least 68020 code to build shared libraries, but
15847             # adding the `-m68020' flag to GCC prevents building anything better,
15848             # like `-m68040'.
15849             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15850         ;;
15851       esac
15852       ;;
15853
15854     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15855       # PIC is the default for these OSes.
15856       ;;
15857     mingw* | cygwin* | os2* | pw32* | cegcc*)
15858       # This hack is so that the source file can tell whether it is being
15859       # built for inclusion in a dll (and should export symbols for example).
15860       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15861       # (--disable-auto-import) libraries
15862       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15863       ;;
15864     darwin* | rhapsody*)
15865       # PIC is the default on this platform
15866       # Common symbols not allowed in MH_DYLIB files
15867       lt_prog_compiler_pic_CXX='-fno-common'
15868       ;;
15869     *djgpp*)
15870       # DJGPP does not support shared libraries at all
15871       lt_prog_compiler_pic_CXX=
15872       ;;
15873     interix[3-9]*)
15874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15875       # Instead, we relocate shared libraries at runtime.
15876       ;;
15877     sysv4*MP*)
15878       if test -d /usr/nec; then
15879         lt_prog_compiler_pic_CXX=-Kconform_pic
15880       fi
15881       ;;
15882     hpux*)
15883       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15884       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15885       # sets the default TLS model and affects inlining.
15886       case $host_cpu in
15887       hppa*64*)
15888         ;;
15889       *)
15890         lt_prog_compiler_pic_CXX='-fPIC'
15891         ;;
15892       esac
15893       ;;
15894     *qnx* | *nto*)
15895       # QNX uses GNU C++, but need to define -shared option too, otherwise
15896       # it will coredump.
15897       lt_prog_compiler_pic_CXX='-fPIC -shared'
15898       ;;
15899     *)
15900       lt_prog_compiler_pic_CXX='-fPIC'
15901       ;;
15902     esac
15903   else
15904     case $host_os in
15905       aix[4-9]*)
15906         # All AIX code is PIC.
15907         if test "$host_cpu" = ia64; then
15908           # AIX 5 now supports IA64 processor
15909           lt_prog_compiler_static_CXX='-Bstatic'
15910         else
15911           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15912         fi
15913         ;;
15914       chorus*)
15915         case $cc_basename in
15916         cxch68*)
15917           # Green Hills C++ Compiler
15918           # _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"
15919           ;;
15920         esac
15921         ;;
15922       dgux*)
15923         case $cc_basename in
15924           ec++*)
15925             lt_prog_compiler_pic_CXX='-KPIC'
15926             ;;
15927           ghcx*)
15928             # Green Hills C++ Compiler
15929             lt_prog_compiler_pic_CXX='-pic'
15930             ;;
15931           *)
15932             ;;
15933         esac
15934         ;;
15935       freebsd* | dragonfly*)
15936         # FreeBSD uses GNU C++
15937         ;;
15938       hpux9* | hpux10* | hpux11*)
15939         case $cc_basename in
15940           CC*)
15941             lt_prog_compiler_wl_CXX='-Wl,'
15942             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15943             if test "$host_cpu" != ia64; then
15944               lt_prog_compiler_pic_CXX='+Z'
15945             fi
15946             ;;
15947           aCC*)
15948             lt_prog_compiler_wl_CXX='-Wl,'
15949             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15950             case $host_cpu in
15951             hppa*64*|ia64*)
15952               # +Z the default
15953               ;;
15954             *)
15955               lt_prog_compiler_pic_CXX='+Z'
15956               ;;
15957             esac
15958             ;;
15959           *)
15960             ;;
15961         esac
15962         ;;
15963       interix*)
15964         # This is c89, which is MS Visual C++ (no shared libs)
15965         # Anyone wants to do a port?
15966         ;;
15967       irix5* | irix6* | nonstopux*)
15968         case $cc_basename in
15969           CC*)
15970             lt_prog_compiler_wl_CXX='-Wl,'
15971             lt_prog_compiler_static_CXX='-non_shared'
15972             # CC pic flag -KPIC is the default.
15973             ;;
15974           *)
15975             ;;
15976         esac
15977         ;;
15978       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15979         case $cc_basename in
15980           KCC*)
15981             # KAI C++ Compiler
15982             lt_prog_compiler_wl_CXX='--backend -Wl,'
15983             lt_prog_compiler_pic_CXX='-fPIC'
15984             ;;
15985           ecpc* )
15986             # old Intel C++ for x86_64 which still supported -KPIC.
15987             lt_prog_compiler_wl_CXX='-Wl,'
15988             lt_prog_compiler_pic_CXX='-KPIC'
15989             lt_prog_compiler_static_CXX='-static'
15990             ;;
15991           icpc* )
15992             # Intel C++, used to be incompatible with GCC.
15993             # ICC 10 doesn't accept -KPIC any more.
15994             lt_prog_compiler_wl_CXX='-Wl,'
15995             lt_prog_compiler_pic_CXX='-fPIC'
15996             lt_prog_compiler_static_CXX='-static'
15997             ;;
15998           pgCC* | pgcpp*)
15999             # Portland Group C++ compiler
16000             lt_prog_compiler_wl_CXX='-Wl,'
16001             lt_prog_compiler_pic_CXX='-fpic'
16002             lt_prog_compiler_static_CXX='-Bstatic'
16003             ;;
16004           cxx*)
16005             # Compaq C++
16006             # Make sure the PIC flag is empty.  It appears that all Alpha
16007             # Linux and Compaq Tru64 Unix objects are PIC.
16008             lt_prog_compiler_pic_CXX=
16009             lt_prog_compiler_static_CXX='-non_shared'
16010             ;;
16011           xlc* | xlC*)
16012             # IBM XL 8.0 on PPC
16013             lt_prog_compiler_wl_CXX='-Wl,'
16014             lt_prog_compiler_pic_CXX='-qpic'
16015             lt_prog_compiler_static_CXX='-qstaticlink'
16016             ;;
16017           *)
16018             case `$CC -V 2>&1 | sed 5q` in
16019             *Sun\ C*)
16020               # Sun C++ 5.9
16021               lt_prog_compiler_pic_CXX='-KPIC'
16022               lt_prog_compiler_static_CXX='-Bstatic'
16023               lt_prog_compiler_wl_CXX='-Qoption ld '
16024               ;;
16025             esac
16026             ;;
16027         esac
16028         ;;
16029       lynxos*)
16030         ;;
16031       m88k*)
16032         ;;
16033       mvs*)
16034         case $cc_basename in
16035           cxx*)
16036             lt_prog_compiler_pic_CXX='-W c,exportall'
16037             ;;
16038           *)
16039             ;;
16040         esac
16041         ;;
16042       netbsd* | netbsdelf*-gnu)
16043         ;;
16044       *qnx* | *nto*)
16045         # QNX uses GNU C++, but need to define -shared option too, otherwise
16046         # it will coredump.
16047         lt_prog_compiler_pic_CXX='-fPIC -shared'
16048         ;;
16049       osf3* | osf4* | osf5*)
16050         case $cc_basename in
16051           KCC*)
16052             lt_prog_compiler_wl_CXX='--backend -Wl,'
16053             ;;
16054           RCC*)
16055             # Rational C++ 2.4.1
16056             lt_prog_compiler_pic_CXX='-pic'
16057             ;;
16058           cxx*)
16059             # Digital/Compaq C++
16060             lt_prog_compiler_wl_CXX='-Wl,'
16061             # Make sure the PIC flag is empty.  It appears that all Alpha
16062             # Linux and Compaq Tru64 Unix objects are PIC.
16063             lt_prog_compiler_pic_CXX=
16064             lt_prog_compiler_static_CXX='-non_shared'
16065             ;;
16066           *)
16067             ;;
16068         esac
16069         ;;
16070       psos*)
16071         ;;
16072       solaris*)
16073         case $cc_basename in
16074           CC*)
16075             # Sun C++ 4.2, 5.x and Centerline C++
16076             lt_prog_compiler_pic_CXX='-KPIC'
16077             lt_prog_compiler_static_CXX='-Bstatic'
16078             lt_prog_compiler_wl_CXX='-Qoption ld '
16079             ;;
16080           gcx*)
16081             # Green Hills C++ Compiler
16082             lt_prog_compiler_pic_CXX='-PIC'
16083             ;;
16084           *)
16085             ;;
16086         esac
16087         ;;
16088       sunos4*)
16089         case $cc_basename in
16090           CC*)
16091             # Sun C++ 4.x
16092             lt_prog_compiler_pic_CXX='-pic'
16093             lt_prog_compiler_static_CXX='-Bstatic'
16094             ;;
16095           lcc*)
16096             # Lucid
16097             lt_prog_compiler_pic_CXX='-pic'
16098             ;;
16099           *)
16100             ;;
16101         esac
16102         ;;
16103       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16104         case $cc_basename in
16105           CC*)
16106             lt_prog_compiler_wl_CXX='-Wl,'
16107             lt_prog_compiler_pic_CXX='-KPIC'
16108             lt_prog_compiler_static_CXX='-Bstatic'
16109             ;;
16110         esac
16111         ;;
16112       tandem*)
16113         case $cc_basename in
16114           NCC*)
16115             # NonStop-UX NCC 3.20
16116             lt_prog_compiler_pic_CXX='-KPIC'
16117             ;;
16118           *)
16119             ;;
16120         esac
16121         ;;
16122       vxworks*)
16123         ;;
16124       *)
16125         lt_prog_compiler_can_build_shared_CXX=no
16126         ;;
16127     esac
16128   fi
16129
16130 case $host_os in
16131   # For platforms which do not support PIC, -DPIC is meaningless:
16132   *djgpp*)
16133     lt_prog_compiler_pic_CXX=
16134     ;;
16135   *)
16136     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16137     ;;
16138 esac
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16140 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16141
16142
16143
16144 #
16145 # Check to make sure the PIC flag actually works.
16146 #
16147 if test -n "$lt_prog_compiler_pic_CXX"; then
16148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16149 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16150 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16151   $as_echo_n "(cached) " >&6
16152 else
16153   lt_cv_prog_compiler_pic_works_CXX=no
16154    ac_outfile=conftest.$ac_objext
16155    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16156    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16157    # Insert the option either (1) after the last *FLAGS variable, or
16158    # (2) before a word containing "conftest.", or (3) at the end.
16159    # Note that $ac_compile itself does not contain backslashes and begins
16160    # with a dollar sign (not a hyphen), so the echo should work correctly.
16161    # The option is referenced via a variable to avoid confusing sed.
16162    lt_compile=`echo "$ac_compile" | $SED \
16163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16165    -e 's:$: $lt_compiler_flag:'`
16166    (eval echo "\"\$as_me:16166: $lt_compile\"" >&5)
16167    (eval "$lt_compile" 2>conftest.err)
16168    ac_status=$?
16169    cat conftest.err >&5
16170    echo "$as_me:16170: \$? = $ac_status" >&5
16171    if (exit $ac_status) && test -s "$ac_outfile"; then
16172      # The compiler can only warn and ignore the option if not recognized
16173      # So say no if there are warnings other than the usual output.
16174      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16175      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16176      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16177        lt_cv_prog_compiler_pic_works_CXX=yes
16178      fi
16179    fi
16180    $RM conftest*
16181
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16184 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16185
16186 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16187     case $lt_prog_compiler_pic_CXX in
16188      "" | " "*) ;;
16189      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16190      esac
16191 else
16192     lt_prog_compiler_pic_CXX=
16193      lt_prog_compiler_can_build_shared_CXX=no
16194 fi
16195
16196 fi
16197
16198
16199
16200 #
16201 # Check to make sure the static flag actually works.
16202 #
16203 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16205 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16206 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16207   $as_echo_n "(cached) " >&6
16208 else
16209   lt_cv_prog_compiler_static_works_CXX=no
16210    save_LDFLAGS="$LDFLAGS"
16211    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16212    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16213    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16214      # The linker can only warn and ignore the option if not recognized
16215      # So say no if there are warnings
16216      if test -s conftest.err; then
16217        # Append any errors to the config.log.
16218        cat conftest.err 1>&5
16219        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16220        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16221        if diff conftest.exp conftest.er2 >/dev/null; then
16222          lt_cv_prog_compiler_static_works_CXX=yes
16223        fi
16224      else
16225        lt_cv_prog_compiler_static_works_CXX=yes
16226      fi
16227    fi
16228    $RM -r conftest*
16229    LDFLAGS="$save_LDFLAGS"
16230
16231 fi
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16233 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16234
16235 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16236     :
16237 else
16238     lt_prog_compiler_static_CXX=
16239 fi
16240
16241
16242
16243
16244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16245 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16246 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16247   $as_echo_n "(cached) " >&6
16248 else
16249   lt_cv_prog_compiler_c_o_CXX=no
16250    $RM -r conftest 2>/dev/null
16251    mkdir conftest
16252    cd conftest
16253    mkdir out
16254    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16255
16256    lt_compiler_flag="-o out/conftest2.$ac_objext"
16257    # Insert the option either (1) after the last *FLAGS variable, or
16258    # (2) before a word containing "conftest.", or (3) at the end.
16259    # Note that $ac_compile itself does not contain backslashes and begins
16260    # with a dollar sign (not a hyphen), so the echo should work correctly.
16261    lt_compile=`echo "$ac_compile" | $SED \
16262    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16263    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16264    -e 's:$: $lt_compiler_flag:'`
16265    (eval echo "\"\$as_me:16265: $lt_compile\"" >&5)
16266    (eval "$lt_compile" 2>out/conftest.err)
16267    ac_status=$?
16268    cat out/conftest.err >&5
16269    echo "$as_me:16269: \$? = $ac_status" >&5
16270    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16271    then
16272      # The compiler can only warn and ignore the option if not recognized
16273      # So say no if there are warnings
16274      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16275      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16276      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16277        lt_cv_prog_compiler_c_o_CXX=yes
16278      fi
16279    fi
16280    chmod u+w . 2>&5
16281    $RM conftest*
16282    # SGI C++ compiler will create directory out/ii_files/ for
16283    # template instantiation
16284    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16285    $RM out/* && rmdir out
16286    cd ..
16287    $RM -r conftest
16288    $RM conftest*
16289
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16292 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16293
16294
16295
16296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16297 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16298 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16299   $as_echo_n "(cached) " >&6
16300 else
16301   lt_cv_prog_compiler_c_o_CXX=no
16302    $RM -r conftest 2>/dev/null
16303    mkdir conftest
16304    cd conftest
16305    mkdir out
16306    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16307
16308    lt_compiler_flag="-o out/conftest2.$ac_objext"
16309    # Insert the option either (1) after the last *FLAGS variable, or
16310    # (2) before a word containing "conftest.", or (3) at the end.
16311    # Note that $ac_compile itself does not contain backslashes and begins
16312    # with a dollar sign (not a hyphen), so the echo should work correctly.
16313    lt_compile=`echo "$ac_compile" | $SED \
16314    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16316    -e 's:$: $lt_compiler_flag:'`
16317    (eval echo "\"\$as_me:16317: $lt_compile\"" >&5)
16318    (eval "$lt_compile" 2>out/conftest.err)
16319    ac_status=$?
16320    cat out/conftest.err >&5
16321    echo "$as_me:16321: \$? = $ac_status" >&5
16322    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16323    then
16324      # The compiler can only warn and ignore the option if not recognized
16325      # So say no if there are warnings
16326      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16327      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16328      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16329        lt_cv_prog_compiler_c_o_CXX=yes
16330      fi
16331    fi
16332    chmod u+w . 2>&5
16333    $RM conftest*
16334    # SGI C++ compiler will create directory out/ii_files/ for
16335    # template instantiation
16336    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16337    $RM out/* && rmdir out
16338    cd ..
16339    $RM -r conftest
16340    $RM conftest*
16341
16342 fi
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16344 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16345
16346
16347
16348
16349 hard_links="nottested"
16350 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16351   # do not overwrite the value of need_locks provided by the user
16352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16353 $as_echo_n "checking if we can lock with hard links... " >&6; }
16354   hard_links=yes
16355   $RM conftest*
16356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16357   touch conftest.a
16358   ln conftest.a conftest.b 2>&5 || hard_links=no
16359   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16361 $as_echo "$hard_links" >&6; }
16362   if test "$hard_links" = no; then
16363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16364 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16365     need_locks=warn
16366   fi
16367 else
16368   need_locks=no
16369 fi
16370
16371
16372
16373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16374 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16375
16376   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377   case $host_os in
16378   aix[4-9]*)
16379     # If we're using GNU nm, then we don't want the "-C" option.
16380     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16381     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16382       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'
16383     else
16384       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'
16385     fi
16386     ;;
16387   pw32*)
16388     export_symbols_cmds_CXX="$ltdll_cmds"
16389   ;;
16390   cygwin* | mingw* | cegcc*)
16391     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'
16392   ;;
16393   linux* | k*bsd*-gnu)
16394     link_all_deplibs_CXX=no
16395   ;;
16396   *)
16397     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16398   ;;
16399   esac
16400   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16401
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16403 $as_echo "$ld_shlibs_CXX" >&6; }
16404 test "$ld_shlibs_CXX" = no && can_build_shared=no
16405
16406 with_gnu_ld_CXX=$with_gnu_ld
16407
16408
16409
16410
16411
16412
16413 #
16414 # Do we need to explicitly link libc?
16415 #
16416 case "x$archive_cmds_need_lc_CXX" in
16417 x|xyes)
16418   # Assume -lc should be added
16419   archive_cmds_need_lc_CXX=yes
16420
16421   if test "$enable_shared" = yes && test "$GCC" = yes; then
16422     case $archive_cmds_CXX in
16423     *'~'*)
16424       # FIXME: we may have to deal with multi-command sequences.
16425       ;;
16426     '$CC '*)
16427       # Test whether the compiler implicitly links with -lc since on some
16428       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16429       # to ld, don't add -lc before -lgcc.
16430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16431 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16432       $RM conftest*
16433       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16434
16435       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16436   (eval $ac_compile) 2>&5
16437   ac_status=$?
16438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439   test $ac_status = 0; } 2>conftest.err; then
16440         soname=conftest
16441         lib=conftest
16442         libobjs=conftest.$ac_objext
16443         deplibs=
16444         wl=$lt_prog_compiler_wl_CXX
16445         pic_flag=$lt_prog_compiler_pic_CXX
16446         compiler_flags=-v
16447         linker_flags=-v
16448         verstring=
16449         output_objdir=.
16450         libname=conftest
16451         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16452         allow_undefined_flag_CXX=
16453         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16454   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16455   ac_status=$?
16456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16457   test $ac_status = 0; }
16458         then
16459           archive_cmds_need_lc_CXX=no
16460         else
16461           archive_cmds_need_lc_CXX=yes
16462         fi
16463         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16464       else
16465         cat conftest.err 1>&5
16466       fi
16467       $RM conftest*
16468       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16469 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16470       ;;
16471     esac
16472   fi
16473   ;;
16474 esac
16475
16476
16477
16478
16479
16480
16481
16482
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16541
16542 library_names_spec=
16543 libname_spec='lib$name'
16544 soname_spec=
16545 shrext_cmds=".so"
16546 postinstall_cmds=
16547 postuninstall_cmds=
16548 finish_cmds=
16549 finish_eval=
16550 shlibpath_var=
16551 shlibpath_overrides_runpath=unknown
16552 version_type=none
16553 dynamic_linker="$host_os ld.so"
16554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16555 need_lib_prefix=unknown
16556 hardcode_into_libs=no
16557
16558 # when you set need_version to no, make sure it does not cause -set_version
16559 # flags to be left without arguments
16560 need_version=unknown
16561
16562 case $host_os in
16563 aix3*)
16564   version_type=linux
16565   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16566   shlibpath_var=LIBPATH
16567
16568   # AIX 3 has no versioning support, so we append a major version to the name.
16569   soname_spec='${libname}${release}${shared_ext}$major'
16570   ;;
16571
16572 aix[4-9]*)
16573   version_type=linux
16574   need_lib_prefix=no
16575   need_version=no
16576   hardcode_into_libs=yes
16577   if test "$host_cpu" = ia64; then
16578     # AIX 5 supports IA64
16579     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16580     shlibpath_var=LD_LIBRARY_PATH
16581   else
16582     # With GCC up to 2.95.x, collect2 would create an import file
16583     # for dependence libraries.  The import file would start with
16584     # the line `#! .'.  This would cause the generated library to
16585     # depend on `.', always an invalid library.  This was fixed in
16586     # development snapshots of GCC prior to 3.0.
16587     case $host_os in
16588       aix4 | aix4.[01] | aix4.[01].*)
16589       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16590            echo ' yes '
16591            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16592         :
16593       else
16594         can_build_shared=no
16595       fi
16596       ;;
16597     esac
16598     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16599     # soname into executable. Probably we can add versioning support to
16600     # collect2, so additional links can be useful in future.
16601     if test "$aix_use_runtimelinking" = yes; then
16602       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16603       # instead of lib<name>.a to let people know that these are not
16604       # typical AIX shared libraries.
16605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606     else
16607       # We preserve .a as extension for shared libraries through AIX4.2
16608       # and later when we are not doing run time linking.
16609       library_names_spec='${libname}${release}.a $libname.a'
16610       soname_spec='${libname}${release}${shared_ext}$major'
16611     fi
16612     shlibpath_var=LIBPATH
16613   fi
16614   ;;
16615
16616 amigaos*)
16617   case $host_cpu in
16618   powerpc)
16619     # Since July 2007 AmigaOS4 officially supports .so libraries.
16620     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622     ;;
16623   m68k)
16624     library_names_spec='$libname.ixlibrary $libname.a'
16625     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16626     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'
16627     ;;
16628   esac
16629   ;;
16630
16631 beos*)
16632   library_names_spec='${libname}${shared_ext}'
16633   dynamic_linker="$host_os ld.so"
16634   shlibpath_var=LIBRARY_PATH
16635   ;;
16636
16637 bsdi[45]*)
16638   version_type=linux
16639   need_version=no
16640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641   soname_spec='${libname}${release}${shared_ext}$major'
16642   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16643   shlibpath_var=LD_LIBRARY_PATH
16644   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16645   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16646   # the default ld.so.conf also contains /usr/contrib/lib and
16647   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16648   # libtool to hard-code these into programs
16649   ;;
16650
16651 cygwin* | mingw* | pw32* | cegcc*)
16652   version_type=windows
16653   shrext_cmds=".dll"
16654   need_version=no
16655   need_lib_prefix=no
16656
16657   case $GCC,$host_os in
16658   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16659     library_names_spec='$libname.dll.a'
16660     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16661     postinstall_cmds='base_file=`basename \${file}`~
16662       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16663       dldir=$destdir/`dirname \$dlpath`~
16664       test -d \$dldir || mkdir -p \$dldir~
16665       $install_prog $dir/$dlname \$dldir/$dlname~
16666       chmod a+x \$dldir/$dlname~
16667       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16668         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16669       fi'
16670     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16671       dlpath=$dir/\$dldll~
16672        $RM \$dlpath'
16673     shlibpath_overrides_runpath=yes
16674
16675     case $host_os in
16676     cygwin*)
16677       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16678       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16679       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16680       ;;
16681     mingw* | cegcc*)
16682       # MinGW DLLs use traditional 'lib' prefix
16683       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16684       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16685       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16686         # It is most probably a Windows format PATH printed by
16687         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16688         # path with ; separators, and with drive letters. We can handle the
16689         # drive letters (cygwin fileutils understands them), so leave them,
16690         # especially as we might pass files found there to a mingw objdump,
16691         # which wouldn't understand a cygwinified path. Ahh.
16692         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16693       else
16694         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16695       fi
16696       ;;
16697     pw32*)
16698       # pw32 DLLs use 'pw' prefix rather than 'lib'
16699       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16700       ;;
16701     esac
16702     ;;
16703
16704   *)
16705     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16706     ;;
16707   esac
16708   dynamic_linker='Win32 ld.exe'
16709   # FIXME: first we should search . and the directory the executable is in
16710   shlibpath_var=PATH
16711   ;;
16712
16713 darwin* | rhapsody*)
16714   dynamic_linker="$host_os dyld"
16715   version_type=darwin
16716   need_lib_prefix=no
16717   need_version=no
16718   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16719   soname_spec='${libname}${release}${major}$shared_ext'
16720   shlibpath_overrides_runpath=yes
16721   shlibpath_var=DYLD_LIBRARY_PATH
16722   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16723
16724   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16725   ;;
16726
16727 dgux*)
16728   version_type=linux
16729   need_lib_prefix=no
16730   need_version=no
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16732   soname_spec='${libname}${release}${shared_ext}$major'
16733   shlibpath_var=LD_LIBRARY_PATH
16734   ;;
16735
16736 freebsd1*)
16737   dynamic_linker=no
16738   ;;
16739
16740 freebsd* | dragonfly*)
16741   # DragonFly does not have aout.  When/if they implement a new
16742   # versioning mechanism, adjust this.
16743   if test -x /usr/bin/objformat; then
16744     objformat=`/usr/bin/objformat`
16745   else
16746     case $host_os in
16747     freebsd[123]*) objformat=aout ;;
16748     *) objformat=elf ;;
16749     esac
16750   fi
16751   version_type=freebsd-$objformat
16752   case $version_type in
16753     freebsd-elf*)
16754       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16755       need_version=no
16756       need_lib_prefix=no
16757       ;;
16758     freebsd-*)
16759       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16760       need_version=yes
16761       ;;
16762   esac
16763   shlibpath_var=LD_LIBRARY_PATH
16764   case $host_os in
16765   freebsd2*)
16766     shlibpath_overrides_runpath=yes
16767     ;;
16768   freebsd3.[01]* | freebsdelf3.[01]*)
16769     shlibpath_overrides_runpath=yes
16770     hardcode_into_libs=yes
16771     ;;
16772   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16773   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16774     shlibpath_overrides_runpath=no
16775     hardcode_into_libs=yes
16776     ;;
16777   *) # from 4.6 on, and DragonFly
16778     shlibpath_overrides_runpath=yes
16779     hardcode_into_libs=yes
16780     ;;
16781   esac
16782   ;;
16783
16784 gnu*)
16785   version_type=linux
16786   need_lib_prefix=no
16787   need_version=no
16788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16789   soname_spec='${libname}${release}${shared_ext}$major'
16790   shlibpath_var=LD_LIBRARY_PATH
16791   hardcode_into_libs=yes
16792   ;;
16793
16794 hpux9* | hpux10* | hpux11*)
16795   # Give a soname corresponding to the major version so that dld.sl refuses to
16796   # link against other versions.
16797   version_type=sunos
16798   need_lib_prefix=no
16799   need_version=no
16800   case $host_cpu in
16801   ia64*)
16802     shrext_cmds='.so'
16803     hardcode_into_libs=yes
16804     dynamic_linker="$host_os dld.so"
16805     shlibpath_var=LD_LIBRARY_PATH
16806     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808     soname_spec='${libname}${release}${shared_ext}$major'
16809     if test "X$HPUX_IA64_MODE" = X32; then
16810       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16811     else
16812       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16813     fi
16814     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16815     ;;
16816   hppa*64*)
16817     shrext_cmds='.sl'
16818     hardcode_into_libs=yes
16819     dynamic_linker="$host_os dld.sl"
16820     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16821     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823     soname_spec='${libname}${release}${shared_ext}$major'
16824     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16825     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16826     ;;
16827   *)
16828     shrext_cmds='.sl'
16829     dynamic_linker="$host_os dld.sl"
16830     shlibpath_var=SHLIB_PATH
16831     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833     soname_spec='${libname}${release}${shared_ext}$major'
16834     ;;
16835   esac
16836   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16837   postinstall_cmds='chmod 555 $lib'
16838   ;;
16839
16840 interix[3-9]*)
16841   version_type=linux
16842   need_lib_prefix=no
16843   need_version=no
16844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16845   soname_spec='${libname}${release}${shared_ext}$major'
16846   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16847   shlibpath_var=LD_LIBRARY_PATH
16848   shlibpath_overrides_runpath=no
16849   hardcode_into_libs=yes
16850   ;;
16851
16852 irix5* | irix6* | nonstopux*)
16853   case $host_os in
16854     nonstopux*) version_type=nonstopux ;;
16855     *)
16856         if test "$lt_cv_prog_gnu_ld" = yes; then
16857                 version_type=linux
16858         else
16859                 version_type=irix
16860         fi ;;
16861   esac
16862   need_lib_prefix=no
16863   need_version=no
16864   soname_spec='${libname}${release}${shared_ext}$major'
16865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16866   case $host_os in
16867   irix5* | nonstopux*)
16868     libsuff= shlibsuff=
16869     ;;
16870   *)
16871     case $LD in # libtool.m4 will add one of these switches to LD
16872     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16873       libsuff= shlibsuff= libmagic=32-bit;;
16874     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16875       libsuff=32 shlibsuff=N32 libmagic=N32;;
16876     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16877       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16878     *) libsuff= shlibsuff= libmagic=never-match;;
16879     esac
16880     ;;
16881   esac
16882   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16883   shlibpath_overrides_runpath=no
16884   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16885   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16886   hardcode_into_libs=yes
16887   ;;
16888
16889 # No shared lib support for Linux oldld, aout, or coff.
16890 linux*oldld* | linux*aout* | linux*coff*)
16891   dynamic_linker=no
16892   ;;
16893
16894 # This must be Linux ELF.
16895 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16896   version_type=linux
16897   need_lib_prefix=no
16898   need_version=no
16899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16900   soname_spec='${libname}${release}${shared_ext}$major'
16901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16902   shlibpath_var=LD_LIBRARY_PATH
16903   shlibpath_overrides_runpath=no
16904   # Some binutils ld are patched to set DT_RUNPATH
16905   save_LDFLAGS=$LDFLAGS
16906   save_libdir=$libdir
16907   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16908        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h.  */
16911
16912 int
16913 main ()
16914 {
16915
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_cxx_try_link "$LINENO"; then :
16921   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16922   shlibpath_overrides_runpath=yes
16923 fi
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926     conftest$ac_exeext conftest.$ac_ext
16927   LDFLAGS=$save_LDFLAGS
16928   libdir=$save_libdir
16929
16930   # This implies no fast_install, which is unacceptable.
16931   # Some rework will be needed to allow for fast_install
16932   # before this can be enabled.
16933   hardcode_into_libs=yes
16934
16935   # Append ld.so.conf contents to the search path
16936   if test -f /etc/ld.so.conf; then
16937     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' ' '`
16938     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16939   fi
16940
16941   # We used to test for /lib/ld.so.1 and disable shared libraries on
16942   # powerpc, because MkLinux only supported shared libraries with the
16943   # GNU dynamic linker.  Since this was broken with cross compilers,
16944   # most powerpc-linux boxes support dynamic linking these days and
16945   # people can always --disable-shared, the test was removed, and we
16946   # assume the GNU/Linux dynamic linker is in use.
16947   dynamic_linker='GNU/Linux ld.so'
16948   ;;
16949
16950 netbsdelf*-gnu)
16951   version_type=linux
16952   need_lib_prefix=no
16953   need_version=no
16954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16955   soname_spec='${libname}${release}${shared_ext}$major'
16956   shlibpath_var=LD_LIBRARY_PATH
16957   shlibpath_overrides_runpath=no
16958   hardcode_into_libs=yes
16959   dynamic_linker='NetBSD ld.elf_so'
16960   ;;
16961
16962 netbsd*)
16963   version_type=sunos
16964   need_lib_prefix=no
16965   need_version=no
16966   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16968     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16969     dynamic_linker='NetBSD (a.out) ld.so'
16970   else
16971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16972     soname_spec='${libname}${release}${shared_ext}$major'
16973     dynamic_linker='NetBSD ld.elf_so'
16974   fi
16975   shlibpath_var=LD_LIBRARY_PATH
16976   shlibpath_overrides_runpath=yes
16977   hardcode_into_libs=yes
16978   ;;
16979
16980 newsos6)
16981   version_type=linux
16982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983   shlibpath_var=LD_LIBRARY_PATH
16984   shlibpath_overrides_runpath=yes
16985   ;;
16986
16987 *nto* | *qnx*)
16988   version_type=qnx
16989   need_lib_prefix=no
16990   need_version=no
16991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992   soname_spec='${libname}${release}${shared_ext}$major'
16993   shlibpath_var=LD_LIBRARY_PATH
16994   shlibpath_overrides_runpath=no
16995   hardcode_into_libs=yes
16996   dynamic_linker='ldqnx.so'
16997   ;;
16998
16999 openbsd*)
17000   version_type=sunos
17001   sys_lib_dlsearch_path_spec="/usr/lib"
17002   need_lib_prefix=no
17003   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17004   case $host_os in
17005     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17006     *)                          need_version=no  ;;
17007   esac
17008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17010   shlibpath_var=LD_LIBRARY_PATH
17011   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17012     case $host_os in
17013       openbsd2.[89] | openbsd2.[89].*)
17014         shlibpath_overrides_runpath=no
17015         ;;
17016       *)
17017         shlibpath_overrides_runpath=yes
17018         ;;
17019       esac
17020   else
17021     shlibpath_overrides_runpath=yes
17022   fi
17023   ;;
17024
17025 os2*)
17026   libname_spec='$name'
17027   shrext_cmds=".dll"
17028   need_lib_prefix=no
17029   library_names_spec='$libname${shared_ext} $libname.a'
17030   dynamic_linker='OS/2 ld.exe'
17031   shlibpath_var=LIBPATH
17032   ;;
17033
17034 osf3* | osf4* | osf5*)
17035   version_type=osf
17036   need_lib_prefix=no
17037   need_version=no
17038   soname_spec='${libname}${release}${shared_ext}$major'
17039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040   shlibpath_var=LD_LIBRARY_PATH
17041   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17042   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17043   ;;
17044
17045 rdos*)
17046   dynamic_linker=no
17047   ;;
17048
17049 solaris*)
17050   version_type=linux
17051   need_lib_prefix=no
17052   need_version=no
17053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054   soname_spec='${libname}${release}${shared_ext}$major'
17055   shlibpath_var=LD_LIBRARY_PATH
17056   shlibpath_overrides_runpath=yes
17057   hardcode_into_libs=yes
17058   # ldd complains unless libraries are executable
17059   postinstall_cmds='chmod +x $lib'
17060   ;;
17061
17062 sunos4*)
17063   version_type=sunos
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17065   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17066   shlibpath_var=LD_LIBRARY_PATH
17067   shlibpath_overrides_runpath=yes
17068   if test "$with_gnu_ld" = yes; then
17069     need_lib_prefix=no
17070   fi
17071   need_version=yes
17072   ;;
17073
17074 sysv4 | sysv4.3*)
17075   version_type=linux
17076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077   soname_spec='${libname}${release}${shared_ext}$major'
17078   shlibpath_var=LD_LIBRARY_PATH
17079   case $host_vendor in
17080     sni)
17081       shlibpath_overrides_runpath=no
17082       need_lib_prefix=no
17083       runpath_var=LD_RUN_PATH
17084       ;;
17085     siemens)
17086       need_lib_prefix=no
17087       ;;
17088     motorola)
17089       need_lib_prefix=no
17090       need_version=no
17091       shlibpath_overrides_runpath=no
17092       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17093       ;;
17094   esac
17095   ;;
17096
17097 sysv4*MP*)
17098   if test -d /usr/nec ;then
17099     version_type=linux
17100     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17101     soname_spec='$libname${shared_ext}.$major'
17102     shlibpath_var=LD_LIBRARY_PATH
17103   fi
17104   ;;
17105
17106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17107   version_type=freebsd-elf
17108   need_lib_prefix=no
17109   need_version=no
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17111   soname_spec='${libname}${release}${shared_ext}$major'
17112   shlibpath_var=LD_LIBRARY_PATH
17113   shlibpath_overrides_runpath=yes
17114   hardcode_into_libs=yes
17115   if test "$with_gnu_ld" = yes; then
17116     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17117   else
17118     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17119     case $host_os in
17120       sco3.2v5*)
17121         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17122         ;;
17123     esac
17124   fi
17125   sys_lib_dlsearch_path_spec='/usr/lib'
17126   ;;
17127
17128 tpf*)
17129   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17130   version_type=linux
17131   need_lib_prefix=no
17132   need_version=no
17133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134   shlibpath_var=LD_LIBRARY_PATH
17135   shlibpath_overrides_runpath=no
17136   hardcode_into_libs=yes
17137   ;;
17138
17139 uts4*)
17140   version_type=linux
17141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142   soname_spec='${libname}${release}${shared_ext}$major'
17143   shlibpath_var=LD_LIBRARY_PATH
17144   ;;
17145
17146 *)
17147   dynamic_linker=no
17148   ;;
17149 esac
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17151 $as_echo "$dynamic_linker" >&6; }
17152 test "$dynamic_linker" = no && can_build_shared=no
17153
17154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17155 if test "$GCC" = yes; then
17156   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17157 fi
17158
17159 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17160   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17161 fi
17162 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17163   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17164 fi
17165
17166
17167
17168
17169
17170
17171
17172
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17202 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17203 hardcode_action_CXX=
17204 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17205    test -n "$runpath_var_CXX" ||
17206    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17207
17208   # We can hardcode non-existent directories.
17209   if test "$hardcode_direct_CXX" != no &&
17210      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17211      # have to relink, otherwise we might link with an installed library
17212      # when we should be linking with a yet-to-be-installed one
17213      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17214      test "$hardcode_minus_L_CXX" != no; then
17215     # Linking always hardcodes the temporary library directory.
17216     hardcode_action_CXX=relink
17217   else
17218     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17219     hardcode_action_CXX=immediate
17220   fi
17221 else
17222   # We cannot hardcode anything, or else we can only hardcode existing
17223   # directories.
17224   hardcode_action_CXX=unsupported
17225 fi
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17227 $as_echo "$hardcode_action_CXX" >&6; }
17228
17229 if test "$hardcode_action_CXX" = relink ||
17230    test "$inherit_rpath_CXX" = yes; then
17231   # Fast installation is not supported
17232   enable_fast_install=no
17233 elif test "$shlibpath_overrides_runpath" = yes ||
17234      test "$enable_shared" = no; then
17235   # Fast installation is not necessary
17236   enable_fast_install=needless
17237 fi
17238
17239
17240
17241
17242
17243
17244
17245   fi # test -n "$compiler"
17246
17247   CC=$lt_save_CC
17248   LDCXX=$LD
17249   LD=$lt_save_LD
17250   GCC=$lt_save_GCC
17251   with_gnu_ld=$lt_save_with_gnu_ld
17252   lt_cv_path_LDCXX=$lt_cv_path_LD
17253   lt_cv_path_LD=$lt_save_path_LD
17254   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17255   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17256 fi # test "$_lt_caught_CXX_error" != yes
17257
17258 ac_ext=c
17259 ac_cpp='$CPP $CPPFLAGS'
17260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17263
17264
17265 # Check whether --enable-static was given.
17266 if test "${enable_static+set}" = set; then :
17267   enableval=$enable_static; p=${PACKAGE-default}
17268     case $enableval in
17269     yes) enable_static=yes ;;
17270     no) enable_static=no ;;
17271     *)
17272      enable_static=no
17273       # Look at the argument we got.  We use all the common list separators.
17274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17275       for pkg in $enableval; do
17276         IFS="$lt_save_ifs"
17277         if test "X$pkg" = "X$p"; then
17278           enable_static=yes
17279         fi
17280       done
17281       IFS="$lt_save_ifs"
17282       ;;
17283     esac
17284 else
17285   enable_static=no
17286 fi
17287
17288
17289
17290
17291
17292
17293
17294
17295 if test "$GCC" = "yes" ; then
17296 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17297 #        [
17298 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17299 #            [Define to enable class visibility control in gcc.])
17300 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17301 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17302 #        ])
17303     CFLAGS="-Wall $GCC_CFLAGS"
17304     CXXFLAGS="-Wall $GCC_CXXFLAGS"
17305 else
17306 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17307         case "${host_cpu}-${host_os}" in
17308                 *solaris*)
17309                         if test "$CXX" = "CC" ; then
17310                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17311                         fi
17312                 ;;
17313         esac
17314 fi
17315
17316 # Checks for typedefs, structures, and compiler characteristics.
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17318 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17319 if test "${ac_cv_c_const+set}" = set; then :
17320   $as_echo_n "(cached) " >&6
17321 else
17322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h.  */
17324
17325 int
17326 main ()
17327 {
17328 /* FIXME: Include the comments suggested by Paul. */
17329 #ifndef __cplusplus
17330   /* Ultrix mips cc rejects this.  */
17331   typedef int charset[2];
17332   const charset cs;
17333   /* SunOS 4.1.1 cc rejects this.  */
17334   char const *const *pcpcc;
17335   char **ppc;
17336   /* NEC SVR4.0.2 mips cc rejects this.  */
17337   struct point {int x, y;};
17338   static struct point const zero = {0,0};
17339   /* AIX XL C 1.02.0.0 rejects this.
17340      It does not let you subtract one const X* pointer from another in
17341      an arm of an if-expression whose if-part is not a constant
17342      expression */
17343   const char *g = "string";
17344   pcpcc = &g + (g ? g-g : 0);
17345   /* HPUX 7.0 cc rejects these. */
17346   ++pcpcc;
17347   ppc = (char**) pcpcc;
17348   pcpcc = (char const *const *) ppc;
17349   { /* SCO 3.2v4 cc rejects this.  */
17350     char *t;
17351     char const *s = 0 ? (char *) 0 : (char const *) 0;
17352
17353     *t++ = 0;
17354     if (s) return 0;
17355   }
17356   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17357     int x[] = {25, 17};
17358     const int *foo = &x[0];
17359     ++foo;
17360   }
17361   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17362     typedef const int *iptr;
17363     iptr p = 0;
17364     ++p;
17365   }
17366   { /* AIX XL C 1.02.0.0 rejects this saying
17367        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17368     struct s { int j; const int *ap[3]; };
17369     struct s *b; b->j = 5;
17370   }
17371   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17372     const int foo = 10;
17373     if (!foo) return 0;
17374   }
17375   return !cs[0] && !zero.x;
17376 #endif
17377
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_compile "$LINENO"; then :
17383   ac_cv_c_const=yes
17384 else
17385   ac_cv_c_const=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17388 fi
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17390 $as_echo "$ac_cv_c_const" >&6; }
17391 if test $ac_cv_c_const = no; then
17392
17393 $as_echo "#define const /**/" >>confdefs.h
17394
17395 fi
17396
17397 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17398 if test "x$ac_cv_type_size_t" = x""yes; then :
17399
17400 else
17401
17402 cat >>confdefs.h <<_ACEOF
17403 #define size_t unsigned int
17404 _ACEOF
17405
17406 fi
17407
17408 # The cast to long int works around a bug in the HP C Compiler
17409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17411 # This bug is HP SR number 8606223364.
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17413 $as_echo_n "checking size of long... " >&6; }
17414 if test "${ac_cv_sizeof_long+set}" = set; then :
17415   $as_echo_n "(cached) " >&6
17416 else
17417   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17418
17419 else
17420   if test "$ac_cv_type_long" = yes; then
17421      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17423 as_fn_error 77 "cannot compute sizeof (long)
17424 See \`config.log' for more details" "$LINENO" 5 ; }
17425    else
17426      ac_cv_sizeof_long=0
17427    fi
17428 fi
17429
17430 fi
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17432 $as_echo "$ac_cv_sizeof_long" >&6; }
17433
17434
17435
17436 cat >>confdefs.h <<_ACEOF
17437 #define SIZEOF_LONG $ac_cv_sizeof_long
17438 _ACEOF
17439
17440
17441
17442 # Checks for library functions.
17443 for ac_func in strchr strdup strstr timegm strcasecmp
17444 do :
17445   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17448   cat >>confdefs.h <<_ACEOF
17449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450 _ACEOF
17451
17452 fi
17453 done
17454
17455 for ac_header in dlfcn.h
17456 do :
17457   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
17458 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
17459   cat >>confdefs.h <<_ACEOF
17460 #define HAVE_DLFCN_H 1
17461 _ACEOF
17462
17463 fi
17464
17465 done
17466
17467 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
17468 if test "x$ac_cv_func_dlclose" = x""yes; then :
17469
17470 else
17471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17474   $as_echo_n "(cached) " >&6
17475 else
17476   ac_check_lib_save_LIBS=$LIBS
17477 LIBS="-ldl  $LIBS"
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h.  */
17480
17481 /* Override any GCC internal prototype to avoid an error.
17482    Use char because int might match the return type of a GCC
17483    builtin and then its argument prototype would still apply.  */
17484 #ifdef __cplusplus
17485 extern "C"
17486 #endif
17487 char dlopen ();
17488 int
17489 main ()
17490 {
17491 return dlopen ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 if ac_fn_c_try_link "$LINENO"; then :
17497   ac_cv_lib_dl_dlopen=yes
17498 else
17499   ac_cv_lib_dl_dlopen=no
17500 fi
17501 rm -f core conftest.err conftest.$ac_objext \
17502     conftest$ac_exeext conftest.$ac_ext
17503 LIBS=$ac_check_lib_save_LIBS
17504 fi
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17507 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17508   cat >>confdefs.h <<_ACEOF
17509 #define HAVE_LIBDL 1
17510 _ACEOF
17511
17512   LIBS="-ldl $LIBS"
17513
17514 fi
17515
17516 fi
17517
17518
17519 # checks for pthreads
17520
17521
17522 ac_ext=c
17523 ac_cpp='$CPP $CPPFLAGS'
17524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17527
17528 acx_pthread_ok=no
17529
17530 # We used to check for pthread.h first, but this fails if pthread.h
17531 # requires special compiler flags (e.g. on True64 or Sequent).
17532 # It gets checked for in the link test anyway.
17533
17534 # First of all, check if the user has set any of the PTHREAD_LIBS,
17535 # etcetera environment variables, and if threads linking works using
17536 # them:
17537 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17538         save_CFLAGS="$CFLAGS"
17539         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17540         save_LIBS="$LIBS"
17541         LIBS="$PTHREAD_LIBS $LIBS"
17542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17543 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17544         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h.  */
17546
17547 /* Override any GCC internal prototype to avoid an error.
17548    Use char because int might match the return type of a GCC
17549    builtin and then its argument prototype would still apply.  */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 char pthread_join ();
17554 int
17555 main ()
17556 {
17557 return pthread_join ();
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 if ac_fn_c_try_link "$LINENO"; then :
17563   acx_pthread_ok=yes
17564 fi
17565 rm -f core conftest.err conftest.$ac_objext \
17566     conftest$ac_exeext conftest.$ac_ext
17567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17568 $as_echo "$acx_pthread_ok" >&6; }
17569         if test x"$acx_pthread_ok" = xno; then
17570                 PTHREAD_LIBS=""
17571                 PTHREAD_CFLAGS=""
17572         fi
17573         LIBS="$save_LIBS"
17574         CFLAGS="$save_CFLAGS"
17575 fi
17576
17577 # We must check for the threads library under a number of different
17578 # names; the ordering is very important because some systems
17579 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17580 # libraries is broken (non-POSIX).
17581
17582 # Create a list of thread flags to try.  Items starting with a "-" are
17583 # C compiler flags, and other items are library names, except for "none"
17584 # which indicates that we try without any flags at all, and "pthread-config"
17585 # which is a program returning the flags for the Pth emulation library.
17586
17587 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17588
17589 # The ordering *is* (sometimes) important.  Some notes on the
17590 # individual items follow:
17591
17592 # pthreads: AIX (must check this before -lpthread)
17593 # none: in case threads are in libc; should be tried before -Kthread and
17594 #       other compiler flags to prevent continual compiler warnings
17595 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17596 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17597 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17598 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17599 # -pthreads: Solaris/gcc
17600 # -mthreads: Mingw32/gcc, Lynx/gcc
17601 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17602 #      doesn't hurt to check since this sometimes defines pthreads too;
17603 #      also defines -D_REENTRANT)
17604 #      ... -mt is also the pthreads flag for HP/aCC
17605 # pthread: Linux, etcetera
17606 # --thread-safe: KAI C++
17607 # pthread-config: use pthread-config program (for GNU Pth library)
17608
17609 case "${host_cpu}-${host_os}" in
17610         *solaris*)
17611
17612         # On Solaris (at least, for some versions), libc contains stubbed
17613         # (non-functional) versions of the pthreads routines, so link-based
17614         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17615         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17616         # a function called by this macro, so we could check for that, but
17617         # who knows whether they'll stub that too in a future libc.)  So,
17618         # we'll just look for -pthreads and -lpthread first:
17619
17620         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17621         ;;
17622 esac
17623
17624 if test x"$acx_pthread_ok" = xno; then
17625 for flag in $acx_pthread_flags; do
17626
17627         case $flag in
17628                 none)
17629                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17630 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17631                 ;;
17632
17633                 -*)
17634                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17635 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17636                 PTHREAD_CFLAGS="$flag"
17637                 ;;
17638
17639                 pthread-config)
17640                 # Extract the first word of "pthread-config", so it can be a program name with args.
17641 set dummy pthread-config; ac_word=$2
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17643 $as_echo_n "checking for $ac_word... " >&6; }
17644 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17645   $as_echo_n "(cached) " >&6
17646 else
17647   if test -n "$acx_pthread_config"; then
17648   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17649 else
17650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17651 for as_dir in $PATH
17652 do
17653   IFS=$as_save_IFS
17654   test -z "$as_dir" && as_dir=.
17655     for ac_exec_ext in '' $ac_executable_extensions; do
17656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17657     ac_cv_prog_acx_pthread_config="yes"
17658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17659     break 2
17660   fi
17661 done
17662   done
17663 IFS=$as_save_IFS
17664
17665   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17666 fi
17667 fi
17668 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17669 if test -n "$acx_pthread_config"; then
17670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17671 $as_echo "$acx_pthread_config" >&6; }
17672 else
17673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674 $as_echo "no" >&6; }
17675 fi
17676
17677
17678                 if test x"$acx_pthread_config" = xno; then continue; fi
17679                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17680                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17681                 ;;
17682
17683                 *)
17684                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17685 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17686                 PTHREAD_LIBS="-l$flag"
17687                 ;;
17688         esac
17689
17690         save_LIBS="$LIBS"
17691         save_CFLAGS="$CFLAGS"
17692         LIBS="$PTHREAD_LIBS $LIBS"
17693         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17694
17695         # Check for various functions.  We must include pthread.h,
17696         # since some functions may be macros.  (On the Sequent, we
17697         # need a special flag -Kthread to make this header compile.)
17698         # We check for pthread_join because it is in -lpthread on IRIX
17699         # while pthread_create is in libc.  We check for pthread_attr_init
17700         # due to DEC craziness with -lpthreads.  We check for
17701         # pthread_cleanup_push because it is one of the few pthread
17702         # functions on Solaris that doesn't have a non-functional libc stub.
17703         # We try pthread_create on general principles.
17704         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h.  */
17706 #include <pthread.h>
17707 int
17708 main ()
17709 {
17710 pthread_t th; pthread_join(th, 0);
17711                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17712                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 if ac_fn_c_try_link "$LINENO"; then :
17718   acx_pthread_ok=yes
17719 fi
17720 rm -f core conftest.err conftest.$ac_objext \
17721     conftest$ac_exeext conftest.$ac_ext
17722
17723         LIBS="$save_LIBS"
17724         CFLAGS="$save_CFLAGS"
17725
17726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17727 $as_echo "$acx_pthread_ok" >&6; }
17728         if test "x$acx_pthread_ok" = xyes; then
17729                 break;
17730         fi
17731
17732         PTHREAD_LIBS=""
17733         PTHREAD_CFLAGS=""
17734 done
17735 fi
17736
17737 # Various other checks:
17738 if test "x$acx_pthread_ok" = xyes; then
17739         save_LIBS="$LIBS"
17740         LIBS="$PTHREAD_LIBS $LIBS"
17741         save_CFLAGS="$CFLAGS"
17742         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17743
17744         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17746 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17747         attr_name=unknown
17748         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17749             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h.  */
17751 #include <pthread.h>
17752 int
17753 main ()
17754 {
17755 int attr=$attr; return attr;
17756   ;
17757   return 0;
17758 }
17759 _ACEOF
17760 if ac_fn_c_try_link "$LINENO"; then :
17761   attr_name=$attr; break
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext \
17764     conftest$ac_exeext conftest.$ac_ext
17765         done
17766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17767 $as_echo "$attr_name" >&6; }
17768         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17769
17770 cat >>confdefs.h <<_ACEOF
17771 #define PTHREAD_CREATE_JOINABLE $attr_name
17772 _ACEOF
17773
17774         fi
17775
17776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17777 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17778         flag=no
17779         case "${host_cpu}-${host_os}" in
17780                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
17781                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
17782                 *solaris*)
17783                 if test "$GCC" = "yes"; then
17784                     flag="-D_REENTRANT"
17785                 else
17786                     flag="-mt -D_REENTRANT"
17787                 fi
17788                 ;;
17789         esac
17790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17791 $as_echo "${flag}" >&6; }
17792         if test "x$flag" != xno; then
17793             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17794         fi
17795
17796         LIBS="$save_LIBS"
17797         CFLAGS="$save_CFLAGS"
17798
17799         # More AIX lossage: must compile with xlc_r or cc_r
17800         if test x"$GCC" != xyes; then
17801           for ac_prog in xlc_r cc_r
17802 do
17803   # Extract the first word of "$ac_prog", so it can be a program name with args.
17804 set dummy $ac_prog; ac_word=$2
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17806 $as_echo_n "checking for $ac_word... " >&6; }
17807 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17808   $as_echo_n "(cached) " >&6
17809 else
17810   if test -n "$PTHREAD_CC"; then
17811   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17812 else
17813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17814 for as_dir in $PATH
17815 do
17816   IFS=$as_save_IFS
17817   test -z "$as_dir" && as_dir=.
17818     for ac_exec_ext in '' $ac_executable_extensions; do
17819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17820     ac_cv_prog_PTHREAD_CC="$ac_prog"
17821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17822     break 2
17823   fi
17824 done
17825   done
17826 IFS=$as_save_IFS
17827
17828 fi
17829 fi
17830 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17831 if test -n "$PTHREAD_CC"; then
17832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17833 $as_echo "$PTHREAD_CC" >&6; }
17834 else
17835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17836 $as_echo "no" >&6; }
17837 fi
17838
17839
17840   test -n "$PTHREAD_CC" && break
17841 done
17842 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17843
17844         else
17845           PTHREAD_CC=$CC
17846         fi
17847 else
17848         PTHREAD_CC="$CC"
17849 fi
17850
17851
17852
17853
17854
17855 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17856 if test x"$acx_pthread_ok" = xyes; then
17857         enable_threads="pthread"
17858         :
17859 else
17860         acx_pthread_ok=no
17861         enable_threads="no"
17862 fi
17863 ac_ext=c
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868
17869
17870 if test $enable_threads != "pthread"; then
17871     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
17872 else
17873
17874 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17875
17876          if test "$enable_threads" = "pthread"; then
17877   BUILD_PTHREAD_TRUE=
17878   BUILD_PTHREAD_FALSE='#'
17879 else
17880   BUILD_PTHREAD_TRUE='#'
17881   BUILD_PTHREAD_FALSE=
17882 fi
17883
17884     LIBS="$PTHREAD_LIBS $LIBS"
17885     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17886     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
17887 fi
17888
17889 for ac_func in pthread_rwlock_init
17890 do :
17891   ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
17892 if test "x$ac_cv_func_pthread_rwlock_init" = x""yes; then :
17893   cat >>confdefs.h <<_ACEOF
17894 #define HAVE_PTHREAD_RWLOCK_INIT 1
17895 _ACEOF
17896
17897 fi
17898 done
17899
17900
17901 ac_ext=cpp
17902 ac_cpp='$CXXCPP $CPPFLAGS'
17903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17906
17907
17908 # C++ requirements
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17910 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17911 if test "${ac_cv_cxx_namespaces+set}" = set; then :
17912   $as_echo_n "(cached) " >&6
17913 else
17914
17915  ac_ext=cpp
17916 ac_cpp='$CXXCPP $CPPFLAGS'
17917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17920
17921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h.  */
17923 namespace Outer { namespace Inner { int i = 0; }}
17924 int
17925 main ()
17926 {
17927 using namespace Outer::Inner; return i;
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_cxx_try_compile "$LINENO"; then :
17933   ac_cv_cxx_namespaces=yes
17934 else
17935   ac_cv_cxx_namespaces=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938  ac_ext=cpp
17939 ac_cpp='$CXXCPP $CPPFLAGS'
17940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17943
17944
17945 fi
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17947 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17948 if test "$ac_cv_cxx_namespaces" = yes; then
17949
17950 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17951
17952 fi
17953
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
17955 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
17956 if test "${ac_cv_cxx_have_stl+set}" = set; then :
17957   $as_echo_n "(cached) " >&6
17958 else
17959
17960  ac_ext=cpp
17961 ac_cpp='$CXXCPP $CPPFLAGS'
17962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17965
17966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h.  */
17968 #include <list>
17969 #include <deque>
17970 #ifdef HAVE_NAMESPACES
17971 using namespace std;
17972 #endif
17973 int
17974 main ()
17975 {
17976 list<int> x; x.push_back(5);
17977 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 if ac_fn_cxx_try_compile "$LINENO"; then :
17983   ac_cv_cxx_have_stl=yes
17984 else
17985   ac_cv_cxx_have_stl=no
17986 fi
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988  ac_ext=cpp
17989 ac_cpp='$CXXCPP $CPPFLAGS'
17990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17993
17994
17995 fi
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
17997 $as_echo "$ac_cv_cxx_have_stl" >&6; }
17998 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
17999   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
18000 fi
18001
18002
18003 # are covariant methods allowed?
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h.  */
18006
18007 int
18008 main ()
18009 {
18010
18011         class base { public: virtual base *GetPtr( void ) { return this; } };
18012         class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
18013
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 if ac_fn_cxx_try_link "$LINENO"; then :
18019
18020 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
18021
18022 fi
18023 rm -f core conftest.err conftest.$ac_objext \
18024     conftest$ac_exeext conftest.$ac_ext
18025
18026 # is nullptr supported?
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h.  */
18029
18030 int
18031 main ()
18032 {
18033 const char* ptr = nullptr;
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_cxx_try_compile "$LINENO"; then :
18039
18040 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
18041
18042 fi
18043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18044
18045 # log4shib settings (favor this version over the log4cpp code)
18046 # Extract the first word of "log4shib-config", so it can be a program name with args.
18047 set dummy log4shib-config; ac_word=$2
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18049 $as_echo_n "checking for $ac_word... " >&6; }
18050 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18051   $as_echo_n "(cached) " >&6
18052 else
18053   case $LOG4SHIB_CONFIG in
18054   [\\/]* | ?:[\\/]*)
18055   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18056   ;;
18057   *)
18058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18059 for as_dir in $PATH
18060 do
18061   IFS=$as_save_IFS
18062   test -z "$as_dir" && as_dir=.
18063     for ac_exec_ext in '' $ac_executable_extensions; do
18064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18065     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18067     break 2
18068   fi
18069 done
18070   done
18071 IFS=$as_save_IFS
18072
18073   ;;
18074 esac
18075 fi
18076 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18077 if test -n "$LOG4SHIB_CONFIG"; then
18078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18079 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18080 else
18081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082 $as_echo "no" >&6; }
18083 fi
18084
18085
18086
18087 # Check whether --with-log4shib was given.
18088 if test "${with_log4shib+set}" = set; then :
18089   withval=$with_log4shib;
18090     LOG4SHIB_CONFIG="${with_log4shib}"
18091     if ! test -f "${LOG4SHIB_CONFIG}" ; then
18092         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18093     fi
18094
18095 fi
18096
18097 if test -f "${LOG4SHIB_CONFIG}" ; then
18098     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18099     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18100
18101 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18102 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18103
18104 else
18105   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18106 fi
18107
18108
18109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111 #include <log4shib/Category.hh>
18112 #include <log4shib/CategoryStream.hh>
18113 int
18114 main ()
18115 {
18116 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 if ac_fn_cxx_try_link "$LINENO"; then :
18122
18123 $as_echo "#define XMLTOOLING_LOG4SHIB 1" >>confdefs.h
18124
18125 else
18126   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext \
18129     conftest$ac_exeext conftest.$ac_ext
18130 else
18131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18132 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18134 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18135
18136     # log4cpp settings
18137     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18138 set dummy log4cpp-config; ac_word=$2
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18140 $as_echo_n "checking for $ac_word... " >&6; }
18141 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18142   $as_echo_n "(cached) " >&6
18143 else
18144   case $LOG4CPP_CONFIG in
18145   [\\/]* | ?:[\\/]*)
18146   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18147   ;;
18148   *)
18149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18150 for as_dir in $PATH
18151 do
18152   IFS=$as_save_IFS
18153   test -z "$as_dir" && as_dir=.
18154     for ac_exec_ext in '' $ac_executable_extensions; do
18155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18156     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18158     break 2
18159   fi
18160 done
18161   done
18162 IFS=$as_save_IFS
18163
18164   ;;
18165 esac
18166 fi
18167 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18168 if test -n "$LOG4CPP_CONFIG"; then
18169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18170 $as_echo "$LOG4CPP_CONFIG" >&6; }
18171 else
18172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18173 $as_echo "no" >&6; }
18174 fi
18175
18176
18177
18178 # Check whether --with-log4cpp was given.
18179 if test "${with_log4cpp+set}" = set; then :
18180   withval=$with_log4cpp;
18181         LOG4CPP_CONFIG="${with_log4cpp}"
18182         if ! test -f "${LOG4CPP_CONFIG}" ; then
18183                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18184         fi
18185
18186 fi
18187
18188     if test -f "${LOG4CPP_CONFIG}"; then
18189         { $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
18190 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18191         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18192         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18193         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18194 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18195
18196 else
18197   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18198 fi
18199
18200
18201         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h.  */
18203 #include <log4cpp/Category.hh>
18204 #include <log4cpp/CategoryStream.hh>
18205 int
18206 main ()
18207 {
18208 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18209   ;
18210   return 0;
18211 }
18212 _ACEOF
18213 if ac_fn_cxx_try_link "$LINENO"; then :
18214
18215 $as_echo "#define XMLTOOLING_LOG4CPP 1" >>confdefs.h
18216
18217 else
18218   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18219 fi
18220 rm -f core conftest.err conftest.$ac_objext \
18221     conftest$ac_exeext conftest.$ac_ext
18222         else
18223             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18224         fi
18225 fi
18226
18227 # Xerces settings
18228
18229 # Check whether --with-xerces was given.
18230 if test "${with_xerces+set}" = set; then :
18231   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18232         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18233         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18234     fi
18235 fi
18236
18237 LIBS="-lxerces-c $LIBS"
18238 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18239 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18240
18241 else
18242   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18243 fi
18244
18245
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18247 $as_echo_n "checking Xerces version... " >&6; }
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h.  */
18250 #include <xercesc/util/XercesVersion.hpp>
18251 int
18252 main ()
18253 {
18254 #if  _XERCES_VERSION != 20600
18255 int i = 0;
18256 #else
18257 #error cannot use version 2.6.0
18258 #endif
18259   ;
18260   return 0;
18261 }
18262 _ACEOF
18263 if ac_fn_cxx_try_cpp "$LINENO"; then :
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18265 $as_echo "OK" >&6; }
18266 else
18267   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18269 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18270 See \`config.log' for more details" "$LINENO" 5 ; }
18271 fi
18272 rm -f conftest.err conftest.i conftest.$ac_ext
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h.  */
18275 #include <xercesc/util/PlatformUtils.hpp>
18276 int
18277 main ()
18278 {
18279 xercesc::XMLPlatformUtils::Initialize()
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 if ac_fn_cxx_try_link "$LINENO"; then :
18285
18286 else
18287   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext \
18290     conftest$ac_exeext conftest.$ac_ext
18291
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces is 64-bit clean" >&5
18293 $as_echo_n "checking whether Xerces is 64-bit clean... " >&6; }
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h.  */
18296 #include <xercesc/framework/MemBufInputSource.hpp>
18297 int
18298 main ()
18299 {
18300 using namespace XERCES_CPP_NAMESPACE; XMLFilePos testvar;
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 if ac_fn_cxx_try_compile "$LINENO"; then :
18306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18307 $as_echo "yes" >&6; }
18308 $as_echo "#define XMLTOOLING_XERCESC_64BITSAFE 1" >>confdefs.h
18309
18310 else
18311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18312 $as_echo "no" >&6; }
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces BinInputStream requires getContentType" >&5
18317 $as_echo_n "checking whether Xerces BinInputStream requires getContentType... " >&6; }
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h.  */
18320 #include <xercesc/util/BinMemInputStream.hpp>
18321 int
18322 main ()
18323 {
18324 using namespace XERCES_CPP_NAMESPACE; XMLByte buf[1024]; BinMemInputStream in(buf,1024); in.getContentType();
18325   ;
18326   return 0;
18327 }
18328 _ACEOF
18329 if ac_fn_cxx_try_compile "$LINENO"; then :
18330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18332 $as_echo "#define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1" >>confdefs.h
18333
18334 else
18335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18336 $as_echo "no" >&6; }
18337 fi
18338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMLS API is compliant" >&5
18341 $as_echo_n "checking whether Xerces DOMLS API is compliant... " >&6; }
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h.  */
18344 #include <xercesc/dom/DOM.hpp>
18345 int
18346 main ()
18347 {
18348 using namespace XERCES_CPP_NAMESPACE;
18349         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
18350         DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
18351   ;
18352   return 0;
18353 }
18354 _ACEOF
18355 if ac_fn_cxx_try_compile "$LINENO"; then :
18356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357 $as_echo "yes" >&6; }
18358 $as_echo "#define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1" >>confdefs.h
18359
18360 else
18361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 $as_echo "no" >&6; }
18363 fi
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
18367 $as_echo_n "checking whether Xerces has setIdAttribute(XMLCh*, bool)... " >&6; }
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h.  */
18370 #include <xercesc/dom/DOM.hpp>
18371 int
18372 main ()
18373 {
18374 using namespace XERCES_CPP_NAMESPACE; DOMElement * elt; elt->setIdAttribute(NULL, false);
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 if ac_fn_cxx_try_compile "$LINENO"; then :
18380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381 $as_echo "yes" >&6; }
18382 $as_echo "#define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1" >>confdefs.h
18383
18384 else
18385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18389
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18391 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h.  */
18394 #include <xercesc/util/XMLString.hpp>
18395 int
18396 main ()
18397 {
18398 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 if ac_fn_cxx_try_compile "$LINENO"; then :
18404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18405 $as_echo "yes" >&6; }
18406 $as_echo "#define XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18407
18408 else
18409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410 $as_echo "no" >&6; }
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413
18414 # XML-Security settings
18415
18416 # Check whether --with-xmlsec was given.
18417 if test "${with_xmlsec+set}" = set; then :
18418   withval=$with_xmlsec;
18419 else
18420   with_xmlsec=/usr
18421 fi
18422
18423
18424 if test x_$with_xmlsec != x_no; then
18425
18426     # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
18427
18428 # Check whether --with-openssl was given.
18429 if test "${with_openssl+set}" = set; then :
18430   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
18431             SSLFLAGS="-I${with_openssl}/include"
18432             SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
18433         else
18434             SSLLIBS="-lcrypto -lssl"
18435         fi
18436 fi
18437
18438
18439     if test "x$SSLLIBS" = "x" ; then
18440         # Extract the first word of "pkg-config", so it can be a program name with args.
18441 set dummy pkg-config; ac_word=$2
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18443 $as_echo_n "checking for $ac_word... " >&6; }
18444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18445   $as_echo_n "(cached) " >&6
18446 else
18447   case $PKG_CONFIG in
18448   [\\/]* | ?:[\\/]*)
18449   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18450   ;;
18451   *)
18452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18453 for as_dir in $PATH
18454 do
18455   IFS=$as_save_IFS
18456   test -z "$as_dir" && as_dir=.
18457     for ac_exec_ext in '' $ac_executable_extensions; do
18458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18459     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18461     break 2
18462   fi
18463 done
18464   done
18465 IFS=$as_save_IFS
18466
18467   ;;
18468 esac
18469 fi
18470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18471 if test -n "$PKG_CONFIG"; then
18472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18473 $as_echo "$PKG_CONFIG" >&6; }
18474 else
18475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 $as_echo "no" >&6; }
18477 fi
18478
18479
18480         if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
18481             if pkg-config openssl ; then
18482                 SSLLIBS="`$PKG_CONFIG --libs openssl`"
18483                 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
18484             else
18485                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
18486 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
18487             fi
18488         fi
18489     fi
18490
18491     if test "x$SSLLIBS" = "x" ; then
18492         SSLLIBS="-lcrypto -lssl"
18493     fi
18494
18495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
18496 $as_echo_n "checking for OpenSSL cflags... " >&6; }
18497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
18498 $as_echo "$SSLFLAGS" >&6; }
18499     CPPFLAGS="$CPPFLAGS $SSLFLAGS"
18500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
18501 $as_echo_n "checking for OpenSSL libraries... " >&6; }
18502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLLIBS" >&5
18503 $as_echo "$SSLLIBS" >&6; }
18504     XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
18505
18506     # save and append master libs
18507     save_LIBS="$LIBS"
18508     LIBS="$XMLSEC_LIBS $LIBS"
18509
18510     ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
18511 if test "x$ac_cv_header_openssl_pem_h" = x""yes; then :
18512
18513 else
18514   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
18515 fi
18516
18517
18518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_CRYPTO_string" >&5
18519 $as_echo_n "checking for ERR_load_CRYPTO_string... " >&6; }
18520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h.  */
18522
18523 /* Override any GCC internal prototype to avoid an error.
18524    Use char because int might match the return type of a GCC
18525    builtin and then its argument prototype would still apply.  */
18526 #ifdef __cplusplus
18527 extern "C"
18528 #endif
18529 char ERR_load_CRYPTO_strings ();
18530 int
18531 main ()
18532 {
18533 return ERR_load_CRYPTO_strings ();
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 if ac_fn_cxx_try_link "$LINENO"; then :
18539
18540 else
18541   as_fn_error $? "unable to link with openssl libraries" "$LINENO" 5
18542 fi
18543 rm -f core conftest.err conftest.$ac_objext \
18544     conftest$ac_exeext conftest.$ac_ext
18545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18546 $as_echo "yes" >&6; }
18547
18548     ac_fn_cxx_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h>
18549 "
18550 if test "x$ac_cv_have_decl_EVP_sha512" = x""yes; then :
18551
18552 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_SHA2 1" >>confdefs.h
18553
18554 fi
18555
18556
18557     # restore master libs
18558     LIBS="$save_LIBS"
18559
18560     if test x_$with_xmlsec != x_/usr; then
18561         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
18562         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
18563     fi
18564     XMLSEC_LIBS="$XMLSEC_LIBS -lxml-security-c"
18565
18566     # save and append master libs
18567     save_LIBS="$LIBS"
18568     LIBS="$XMLSEC_LIBS $LIBS"
18569
18570     ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
18571 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
18572
18573 else
18574   as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
18575 fi
18576
18577
18578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
18579 $as_echo_n "checking XML-Security version... " >&6; }
18580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h.  */
18582 #include <xsec/utils/XSECPlatformUtils.hpp>
18583 int
18584 main ()
18585 {
18586 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
18587 int i = 0;
18588 #else
18589 #error need version 1.4.0 or later
18590 #endif
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 if ac_fn_cxx_try_cpp "$LINENO"; then :
18596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18597 $as_echo "OK" >&6; }
18598 else
18599   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18601 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
18602 See \`config.log' for more details" "$LINENO" 5 ; }
18603 fi
18604 rm -f conftest.err conftest.i conftest.$ac_ext
18605
18606     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h.  */
18608 #include <xsec/utils/XSECPlatformUtils.hpp>
18609 int
18610 main ()
18611 {
18612 XSECPlatformUtils::Initialise()
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 if ac_fn_cxx_try_link "$LINENO"; then :
18618
18619 else
18620   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext \
18623     conftest$ac_exeext conftest.$ac_ext
18624     ac_fn_cxx_check_type "$LINENO" "xsecsize_t" "ac_cv_type_xsecsize_t" "$ac_includes_default"
18625 if test "x$ac_cv_type_xsecsize_t" = x""yes; then :
18626
18627 $as_echo "#define HAVE_XSECSIZE_T 1" >>confdefs.h
18628
18629 fi
18630
18631
18632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C has multiple CRL support" >&5
18633 $as_echo_n "checking whether XML-Security-C has multiple CRL support... " >&6; }
18634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h.  */
18636 #include <xsec/dsig/DSIGKeyInfoList.hpp>
18637 int
18638 main ()
18639 {
18640 DSIGKeyInfoList* klist; klist->getX509CRLListSize();
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 if ac_fn_cxx_try_compile "$LINENO"; then :
18646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18647 $as_echo "yes" >&6; }
18648 $as_echo "#define XMLTOOLING_XMLSEC_MULTIPLECRL 1" >>confdefs.h
18649
18650 else
18651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652 $as_echo "no" >&6; }
18653 fi
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655
18656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C exposes the signature algorithm URI" >&5
18657 $as_echo_n "checking whether XML-Security-C exposes the signature algorithm URI... " >&6; }
18658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h.  */
18660 #include <xsec/dsig/DSIGSignature.hpp>
18661 int
18662 main ()
18663 {
18664 DSIGSignature* sig; sig->getAlgorithmURI();
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 if ac_fn_cxx_try_compile "$LINENO"; then :
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18671 $as_echo "yes" >&6; }
18672 $as_echo "#define XMLTOOLING_XMLSEC_SIGALGORITHM 1" >>confdefs.h
18673
18674 else
18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677 fi
18678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18679
18680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes ECC support" >&5
18681 $as_echo_n "checking whether XML-Security-C includes ECC support... " >&6; }
18682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h.  */
18684 #include <xsec/dsig/DSIGKeyInfoValue.hpp>
18685 int
18686 main ()
18687 {
18688 DSIGKeyInfoValue* info; info->getECNamedCurve();
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 if ac_fn_cxx_try_compile "$LINENO"; then :
18694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18695 $as_echo "yes" >&6; }
18696 $as_echo "#define XMLTOOLING_XMLSEC_ECC 1" >>confdefs.h
18697
18698 else
18699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700 $as_echo "no" >&6; }
18701 fi
18702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18703
18704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes debug logging support" >&5
18705 $as_echo_n "checking whether XML-Security-C includes debug logging support... " >&6; }
18706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h.  */
18708 #include <xsec/utils/XSECPlatformUtils.hpp>
18709 int
18710 main ()
18711 {
18712 XSECPlatformUtils::SetReferenceLoggingSink(NULL)
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 if ac_fn_cxx_try_compile "$LINENO"; then :
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18719 $as_echo "yes" >&6; }
18720 $as_echo "#define XMLTOOLING_XMLSEC_DEBUGLOGGING 1" >>confdefs.h
18721
18722 else
18723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18724 $as_echo "no" >&6; }
18725 fi
18726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18727
18728     # restore master libs
18729     LIBS="$save_LIBS"
18730
18731     # libcurl settings
18732     # Extract the first word of "curl-config", so it can be a program name with args.
18733 set dummy curl-config; ac_word=$2
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18735 $as_echo_n "checking for $ac_word... " >&6; }
18736 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
18737   $as_echo_n "(cached) " >&6
18738 else
18739   case $CURL_CONFIG in
18740   [\\/]* | ?:[\\/]*)
18741   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
18742   ;;
18743   *)
18744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745 for as_dir in $PATH
18746 do
18747   IFS=$as_save_IFS
18748   test -z "$as_dir" && as_dir=.
18749     for ac_exec_ext in '' $ac_executable_extensions; do
18750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18751     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18753     break 2
18754   fi
18755 done
18756   done
18757 IFS=$as_save_IFS
18758
18759   ;;
18760 esac
18761 fi
18762 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
18763 if test -n "$CURL_CONFIG"; then
18764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
18765 $as_echo "$CURL_CONFIG" >&6; }
18766 else
18767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18768 $as_echo "no" >&6; }
18769 fi
18770
18771
18772
18773 # Check whether --with-curl was given.
18774 if test "${with_curl+set}" = set; then :
18775   withval=$with_curl;
18776         CURL_CONFIG="${with_curl}"
18777         if ! test -f "${CURL_CONFIG}" ; then
18778             CURL_CONFIG="${with_curl}/bin/curl-config"
18779         fi
18780
18781 fi
18782
18783     if test -f "${CURL_CONFIG}" ; then
18784         CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
18785         XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
18786     else
18787         as_fn_error $? "curl-config not found, may need to use --with-curl option" "$LINENO" 5
18788     fi
18789
18790     # save and append master libs
18791     save_LIBS="$LIBS"
18792     LIBS="$XMLSEC_LIBS $LIBS"
18793
18794     ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
18795 if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
18796
18797 else
18798   as_fn_error $? "unable to find libcurl header files" "$LINENO" 5
18799 fi
18800
18801
18802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
18803 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
18804 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then :
18805   $as_echo_n "(cached) " >&6
18806 else
18807   ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lcurl  $LIBS"
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h.  */
18811
18812 /* Override any GCC internal prototype to avoid an error.
18813    Use char because int might match the return type of a GCC
18814    builtin and then its argument prototype would still apply.  */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 char curl_global_init ();
18819 int
18820 main ()
18821 {
18822 return curl_global_init ();
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 if ac_fn_cxx_try_link "$LINENO"; then :
18828   ac_cv_lib_curl_curl_global_init=yes
18829 else
18830   ac_cv_lib_curl_curl_global_init=no
18831 fi
18832 rm -f core conftest.err conftest.$ac_objext \
18833     conftest$ac_exeext conftest.$ac_ext
18834 LIBS=$ac_check_lib_save_LIBS
18835 fi
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
18837 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
18838 if test "x$ac_cv_lib_curl_curl_global_init" = x""yes; then :
18839   cat >>confdefs.h <<_ACEOF
18840 #define HAVE_LIBCURL 1
18841 _ACEOF
18842
18843   LIBS="-lcurl $LIBS"
18844
18845 else
18846   as_fn_error $? "unable to link with libcurl" "$LINENO" 5
18847 fi
18848
18849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
18850 $as_echo_n "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... " >&6; }
18851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h.  */
18853 #include <curl/curl.h>
18854
18855 _ACEOF
18856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18857   $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then :
18858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18859 $as_echo "yes" >&6; }
18860 else
18861   as_fn_error $? "need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" "$LINENO" 5
18862 fi
18863 rm -f conftest*
18864
18865     ac_fn_cxx_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "$ac_includes_default"
18866 if test "x$ac_cv_type_curl_off_t" = x""yes; then :
18867
18868 $as_echo "#define HAVE_CURL_OFF_T 1" >>confdefs.h
18869
18870 fi
18871
18872
18873     # restore master libs
18874     LIBS="$save_LIBS"
18875
18876
18877 else
18878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlsec disabled, building without signature/encryption support" >&5
18879 $as_echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
18880
18881 $as_echo "#define XMLTOOLING_NO_XMLSEC 1" >>confdefs.h
18882
18883 fi
18884  if test x_$with_xmlsec != x_no; then
18885   BUILD_XMLSEC_TRUE=
18886   BUILD_XMLSEC_FALSE='#'
18887 else
18888   BUILD_XMLSEC_TRUE='#'
18889   BUILD_XMLSEC_FALSE=
18890 fi
18891
18892
18893 # Does the STL in use help or screw us?
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h.  */
18896 #include <string>
18897 int
18898 main ()
18899 {
18900 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 if ac_fn_cxx_try_link "$LINENO"; then :
18906
18907 $as_echo "#define HAVE_GOOD_STL 1" >>confdefs.h
18908
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext \
18911     conftest$ac_exeext conftest.$ac_ext
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h.  */
18914 #include <vector>
18915 int
18916 main ()
18917 {
18918 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 if ac_fn_cxx_try_link "$LINENO"; then :
18924
18925 $as_echo "#define HAVE_ITERATOR_TRAITS 1" >>confdefs.h
18926
18927 fi
18928 rm -f core conftest.err conftest.$ac_objext \
18929     conftest$ac_exeext conftest.$ac_ext
18930
18931 # Check for unit test support
18932 CXXTEST="/usr/bin/cxxtestgen.pl"
18933 CXXTESTFLAGS=""
18934
18935 # Check whether --with-cxxtest was given.
18936 if test "${with_cxxtest+set}" = set; then :
18937   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
18938         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
18939         CXXTESTFLAGS="-I${with_cxxtest}"
18940     fi
18941 fi
18942
18943 if ! test -f "${CXXTEST}"; then
18944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
18945 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
18946 fi
18947
18948
18949
18950  if test -f ${CXXTEST}; then
18951   BUILD_UNITTEST_TRUE=
18952   BUILD_UNITTEST_FALSE='#'
18953 else
18954   BUILD_UNITTEST_TRUE='#'
18955   BUILD_UNITTEST_FALSE=
18956 fi
18957
18958
18959
18960 # we need the expanded forms...
18961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18963
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
18965 $as_echo_n "checking our pkgconfig libname... " >&6; }
18966 test ".$ax_create_pkgconfig_libname" != "." || \
18967 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
18968 test ".$ax_create_pkgconfig_libname" != "." || \
18969 ax_create_pkgconfig_libname="$PACKAGE"
18970 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18971 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
18973 $as_echo "$ax_create_pkgconfig_libname" >&6; }
18974
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
18976 $as_echo_n "checking our pkgconfig version... " >&6; }
18977 test ".$ax_create_pkgconfig_version" != "." || \
18978 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
18979 test ".$ax_create_pkgconfig_version" != "." || \
18980 ax_create_pkgconfig_version="$VERSION"
18981 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18982 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
18984 $as_echo "$ax_create_pkgconfig_version" >&6; }
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
18987 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
18988 test ".$pkgconfig_libdir" = "." && \
18989 pkgconfig_libdir='${libdir}/pkgconfig'
18990 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
18991 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18992 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
18994 $as_echo "$pkgconfig_libdir" >&6; }
18995 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
18997 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
18998
18999
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
19001 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
19002 test ".$pkgconfig_libfile" != "." || \
19003 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
19004 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
19005 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
19007 $as_echo "$pkgconfig_libfile" >&6; }
19008 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
19010 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
19011
19012
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
19014 $as_echo_n "checking our package / suffix... " >&6; }
19015 ax_create_pkgconfig_suffix="$program_suffix"
19016 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
19018 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
19019
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
19021 $as_echo_n "checking our pkgconfig description... " >&6; }
19022 ax_create_pkgconfig_description="OpenSAML XMLTooling-C library"
19023 test ".$ax_create_pkgconfig_description" != "." || \
19024 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
19025 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19026 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
19028 $as_echo "$ax_create_pkgconfig_description" >&6; }
19029
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
19031 $as_echo_n "checking our pkgconfig requires... " >&6; }
19032 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
19033 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19034 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
19036 $as_echo "$ax_create_pkgconfig_requires" >&6; }
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
19039 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
19040 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
19041 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
19042 ax_create_pkgconfig_libs="$XMLSEC_LIBS -lxmltooling"
19043 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19044 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
19046 $as_echo "$ax_create_pkgconfig_libs" >&6; }
19047
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
19049 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
19050 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
19051 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19052 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
19054 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
19055
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
19057 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
19058 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
19059 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19060 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
19062 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
19063
19064 test ".$ax_create_pkgconfig_generate" != "." || \
19065 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
19066 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19067 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19068 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
19070 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
19071
19072 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
19073 ax_create_pkgconfig_src_libdir=`pwd`
19074 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
19075 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19076          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
19077          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
19078          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
19079 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
19080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19081             s//\1/
19082             q
19083           }
19084           /^X\(\/\/\)[^/].*/{
19085             s//\1/
19086             q
19087           }
19088           /^X\(\/\/\)$/{
19089             s//\1/
19090             q
19091           }
19092           /^X\(\/\).*/{
19093             s//\1/
19094             q
19095           }
19096           s/.*/./; q'`
19097 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19098 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19099 case ".$objdir" in
19100 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19102 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19103 fi
19104
19105 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19106 ax_create_pkgconfig_src_headers=`pwd`
19107 v="$ac_top_srcdir" ;
19108 test ".$v" != "." || v="$ax_spec_dir"
19109 test ".$v" != "." || v="$srcdir"
19110 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19111 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19112 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19113          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19114          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19115          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19116 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19118             s//\1/
19119             q
19120           }
19121           /^X\(\/\/\)[^/].*/{
19122             s//\1/
19123             q
19124           }
19125           /^X\(\/\/\)$/{
19126             s//\1/
19127             q
19128           }
19129           /^X\(\/\).*/{
19130             s//\1/
19131             q
19132           }
19133           s/.*/./; q'`
19134 test ! -d $ax_create_pkgconfig_src_headers/include || \
19135 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19137 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19138 fi
19139
19140
19141 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19142
19143
19144 LIBTOOL="$LIBTOOL --silent"
19145
19146 # output packaging and makefiles
19147 cat >confcache <<\_ACEOF
19148 # This file is a shell script that caches the results of configure
19149 # tests run on this system so they can be shared between configure
19150 # scripts and configure runs, see configure's option --config-cache.
19151 # It is not useful on other systems.  If it contains results you don't
19152 # want to keep, you may remove or edit it.
19153 #
19154 # config.status only pays attention to the cache file if you give it
19155 # the --recheck option to rerun configure.
19156 #
19157 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19158 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19159 # following values.
19160
19161 _ACEOF
19162
19163 # The following way of writing the cache mishandles newlines in values,
19164 # but we know of no workaround that is simple, portable, and efficient.
19165 # So, we kill variables containing newlines.
19166 # Ultrix sh set writes to stderr and can't be redirected directly,
19167 # and sets the high bit in the cache file unless we assign to the vars.
19168 (
19169   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19170     eval ac_val=\$$ac_var
19171     case $ac_val in #(
19172     *${as_nl}*)
19173       case $ac_var in #(
19174       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19175 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19176       esac
19177       case $ac_var in #(
19178       _ | IFS | as_nl) ;; #(
19179       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19180       *) { eval $ac_var=; unset $ac_var;} ;;
19181       esac ;;
19182     esac
19183   done
19184
19185   (set) 2>&1 |
19186     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19187     *${as_nl}ac_space=\ *)
19188       # `set' does not quote correctly, so add quotes: double-quote
19189       # substitution turns \\\\ into \\, and sed turns \\ into \.
19190       sed -n \
19191         "s/'/'\\\\''/g;
19192           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19193       ;; #(
19194     *)
19195       # `set' quotes correctly as required by POSIX, so do not add quotes.
19196       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19197       ;;
19198     esac |
19199     sort
19200 ) |
19201   sed '
19202      /^ac_cv_env_/b end
19203      t clear
19204      :clear
19205      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19206      t end
19207      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19208      :end' >>confcache
19209 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19210   if test -w "$cache_file"; then
19211     test "x$cache_file" != "x/dev/null" &&
19212       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19213 $as_echo "$as_me: updating cache $cache_file" >&6;}
19214     cat confcache >$cache_file
19215   else
19216     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19218   fi
19219 fi
19220 rm -f confcache
19221
19222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19223 # Let make expand exec_prefix.
19224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19225
19226 DEFS=-DHAVE_CONFIG_H
19227
19228 ac_libobjs=
19229 ac_ltlibobjs=
19230 U=
19231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19232   # 1. Remove the extension, and $U if already installed.
19233   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19234   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19235   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19236   #    will be set to the directory where LIBOBJS objects are built.
19237   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19238   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19239 done
19240 LIBOBJS=$ac_libobjs
19241
19242 LTLIBOBJS=$ac_ltlibobjs
19243
19244
19245  if test -n "$EXEEXT"; then
19246   am__EXEEXT_TRUE=
19247   am__EXEEXT_FALSE='#'
19248 else
19249   am__EXEEXT_TRUE='#'
19250   am__EXEEXT_FALSE=
19251 fi
19252
19253 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19254   as_fn_error $? "conditional \"AMDEP\" was never defined.
19255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19256 fi
19257 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19258   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19260 fi
19261 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19262   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19264 fi
19265 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19266   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19268 fi
19269 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19270   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19272 fi
19273 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19274   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19276 fi
19277 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19278   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19280 fi
19281 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19282   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19284 fi
19285 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19286   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19288 fi
19289 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19290   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19292 fi
19293 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19294   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19296 fi
19297 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19298   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19300 fi
19301 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19302   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19304 fi
19305 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19306   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19308 fi
19309 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19310   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19312 fi
19313 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19314   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19316 fi
19317 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19318   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19320 fi
19321 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19322   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19324 fi
19325 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19326   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19328 fi
19329 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19330   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19332 fi
19333 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19334   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19336 fi
19337 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19338   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19340 fi
19341 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19342   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19344 fi
19345 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19346   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19348 fi
19349 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19350   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19352 fi
19353 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19354   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19356 fi
19357 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19358   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19360 fi
19361 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
19362   as_fn_error $? "conditional \"BUILD_PTHREAD\" was never defined.
19363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19364 fi
19365 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
19366   as_fn_error $? "conditional \"BUILD_XMLSEC\" was never defined.
19367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19368 fi
19369 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19370   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19372 fi
19373
19374 : ${CONFIG_STATUS=./config.status}
19375 ac_write_fail=0
19376 ac_clean_files_save=$ac_clean_files
19377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19379 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19380 as_write_fail=0
19381 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19382 #! $SHELL
19383 # Generated by $as_me.
19384 # Run this file to recreate the current configuration.
19385 # Compiler output produced by configure, useful for debugging
19386 # configure, is in config.log if it exists.
19387
19388 debug=false
19389 ac_cs_recheck=false
19390 ac_cs_silent=false
19391
19392 SHELL=\${CONFIG_SHELL-$SHELL}
19393 export SHELL
19394 _ASEOF
19395 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19396 ## -------------------- ##
19397 ## M4sh Initialization. ##
19398 ## -------------------- ##
19399
19400 # Be more Bourne compatible
19401 DUALCASE=1; export DUALCASE # for MKS sh
19402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19403   emulate sh
19404   NULLCMD=:
19405   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19406   # is contrary to our usage.  Disable this feature.
19407   alias -g '${1+"$@"}'='"$@"'
19408   setopt NO_GLOB_SUBST
19409 else
19410   case `(set -o) 2>/dev/null` in #(
19411   *posix*) :
19412     set -o posix ;; #(
19413   *) :
19414      ;;
19415 esac
19416 fi
19417
19418
19419 as_nl='
19420 '
19421 export as_nl
19422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19426 # Prefer a ksh shell builtin over an external printf program on Solaris,
19427 # but without wasting forks for bash or zsh.
19428 if test -z "$BASH_VERSION$ZSH_VERSION" \
19429     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19430   as_echo='print -r --'
19431   as_echo_n='print -rn --'
19432 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19433   as_echo='printf %s\n'
19434   as_echo_n='printf %s'
19435 else
19436   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19437     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19438     as_echo_n='/usr/ucb/echo -n'
19439   else
19440     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19441     as_echo_n_body='eval
19442       arg=$1;
19443       case $arg in #(
19444       *"$as_nl"*)
19445         expr "X$arg" : "X\\(.*\\)$as_nl";
19446         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19447       esac;
19448       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19449     '
19450     export as_echo_n_body
19451     as_echo_n='sh -c $as_echo_n_body as_echo'
19452   fi
19453   export as_echo_body
19454   as_echo='sh -c $as_echo_body as_echo'
19455 fi
19456
19457 # The user is always right.
19458 if test "${PATH_SEPARATOR+set}" != set; then
19459   PATH_SEPARATOR=:
19460   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19461     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19462       PATH_SEPARATOR=';'
19463   }
19464 fi
19465
19466
19467 # IFS
19468 # We need space, tab and new line, in precisely that order.  Quoting is
19469 # there to prevent editors from complaining about space-tab.
19470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19471 # splitting by setting IFS to empty value.)
19472 IFS=" ""        $as_nl"
19473
19474 # Find who we are.  Look in the path if we contain no directory separator.
19475 case $0 in #((
19476   *[\\/]* ) as_myself=$0 ;;
19477   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19478 for as_dir in $PATH
19479 do
19480   IFS=$as_save_IFS
19481   test -z "$as_dir" && as_dir=.
19482     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19483   done
19484 IFS=$as_save_IFS
19485
19486      ;;
19487 esac
19488 # We did not find ourselves, most probably we were run as `sh COMMAND'
19489 # in which case we are not to be found in the path.
19490 if test "x$as_myself" = x; then
19491   as_myself=$0
19492 fi
19493 if test ! -f "$as_myself"; then
19494   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19495   exit 1
19496 fi
19497
19498 # Unset variables that we do not need and which cause bugs (e.g. in
19499 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19500 # suppresses any "Segmentation fault" message there.  '((' could
19501 # trigger a bug in pdksh 5.2.14.
19502 for as_var in BASH_ENV ENV MAIL MAILPATH
19503 do eval test x\${$as_var+set} = xset \
19504   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19505 done
19506 PS1='$ '
19507 PS2='> '
19508 PS4='+ '
19509
19510 # NLS nuisances.
19511 LC_ALL=C
19512 export LC_ALL
19513 LANGUAGE=C
19514 export LANGUAGE
19515
19516 # CDPATH.
19517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19518
19519
19520 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19521 # ----------------------------------------
19522 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19523 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19524 # script with STATUS, using 1 if that was 0.
19525 as_fn_error ()
19526 {
19527   as_status=$1; test $as_status -eq 0 && as_status=1
19528   if test "$4"; then
19529     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19530     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19531   fi
19532   $as_echo "$as_me: error: $2" >&2
19533   as_fn_exit $as_status
19534 } # as_fn_error
19535
19536
19537 # as_fn_set_status STATUS
19538 # -----------------------
19539 # Set $? to STATUS, without forking.
19540 as_fn_set_status ()
19541 {
19542   return $1
19543 } # as_fn_set_status
19544
19545 # as_fn_exit STATUS
19546 # -----------------
19547 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19548 as_fn_exit ()
19549 {
19550   set +e
19551   as_fn_set_status $1
19552   exit $1
19553 } # as_fn_exit
19554
19555 # as_fn_unset VAR
19556 # ---------------
19557 # Portably unset VAR.
19558 as_fn_unset ()
19559 {
19560   { eval $1=; unset $1;}
19561 }
19562 as_unset=as_fn_unset
19563 # as_fn_append VAR VALUE
19564 # ----------------------
19565 # Append the text in VALUE to the end of the definition contained in VAR. Take
19566 # advantage of any shell optimizations that allow amortized linear growth over
19567 # repeated appends, instead of the typical quadratic growth present in naive
19568 # implementations.
19569 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19570   eval 'as_fn_append ()
19571   {
19572     eval $1+=\$2
19573   }'
19574 else
19575   as_fn_append ()
19576   {
19577     eval $1=\$$1\$2
19578   }
19579 fi # as_fn_append
19580
19581 # as_fn_arith ARG...
19582 # ------------------
19583 # Perform arithmetic evaluation on the ARGs, and store the result in the
19584 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19585 # must be portable across $(()) and expr.
19586 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19587   eval 'as_fn_arith ()
19588   {
19589     as_val=$(( $* ))
19590   }'
19591 else
19592   as_fn_arith ()
19593   {
19594     as_val=`expr "$@" || test $? -eq 1`
19595   }
19596 fi # as_fn_arith
19597
19598
19599 if expr a : '\(a\)' >/dev/null 2>&1 &&
19600    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19601   as_expr=expr
19602 else
19603   as_expr=false
19604 fi
19605
19606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19607   as_basename=basename
19608 else
19609   as_basename=false
19610 fi
19611
19612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19613   as_dirname=dirname
19614 else
19615   as_dirname=false
19616 fi
19617
19618 as_me=`$as_basename -- "$0" ||
19619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19620          X"$0" : 'X\(//\)$' \| \
19621          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19622 $as_echo X/"$0" |
19623     sed '/^.*\/\([^/][^/]*\)\/*$/{
19624             s//\1/
19625             q
19626           }
19627           /^X\/\(\/\/\)$/{
19628             s//\1/
19629             q
19630           }
19631           /^X\/\(\/\).*/{
19632             s//\1/
19633             q
19634           }
19635           s/.*/./; q'`
19636
19637 # Avoid depending upon Character Ranges.
19638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19641 as_cr_digits='0123456789'
19642 as_cr_alnum=$as_cr_Letters$as_cr_digits
19643
19644 ECHO_C= ECHO_N= ECHO_T=
19645 case `echo -n x` in #(((((
19646 -n*)
19647   case `echo 'xy\c'` in
19648   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19649   xy)  ECHO_C='\c';;
19650   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19651        ECHO_T=' ';;
19652   esac;;
19653 *)
19654   ECHO_N='-n';;
19655 esac
19656
19657 rm -f conf$$ conf$$.exe conf$$.file
19658 if test -d conf$$.dir; then
19659   rm -f conf$$.dir/conf$$.file
19660 else
19661   rm -f conf$$.dir
19662   mkdir conf$$.dir 2>/dev/null
19663 fi
19664 if (echo >conf$$.file) 2>/dev/null; then
19665   if ln -s conf$$.file conf$$ 2>/dev/null; then
19666     as_ln_s='ln -s'
19667     # ... but there are two gotchas:
19668     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19669     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19670     # In both cases, we have to default to `cp -p'.
19671     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19672       as_ln_s='cp -p'
19673   elif ln conf$$.file conf$$ 2>/dev/null; then
19674     as_ln_s=ln
19675   else
19676     as_ln_s='cp -p'
19677   fi
19678 else
19679   as_ln_s='cp -p'
19680 fi
19681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19682 rmdir conf$$.dir 2>/dev/null
19683
19684
19685 # as_fn_mkdir_p
19686 # -------------
19687 # Create "$as_dir" as a directory, including parents if necessary.
19688 as_fn_mkdir_p ()
19689 {
19690
19691   case $as_dir in #(
19692   -*) as_dir=./$as_dir;;
19693   esac
19694   test -d "$as_dir" || eval $as_mkdir_p || {
19695     as_dirs=
19696     while :; do
19697       case $as_dir in #(
19698       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19699       *) as_qdir=$as_dir;;
19700       esac
19701       as_dirs="'$as_qdir' $as_dirs"
19702       as_dir=`$as_dirname -- "$as_dir" ||
19703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19704          X"$as_dir" : 'X\(//\)[^/]' \| \
19705          X"$as_dir" : 'X\(//\)$' \| \
19706          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19707 $as_echo X"$as_dir" |
19708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19709             s//\1/
19710             q
19711           }
19712           /^X\(\/\/\)[^/].*/{
19713             s//\1/
19714             q
19715           }
19716           /^X\(\/\/\)$/{
19717             s//\1/
19718             q
19719           }
19720           /^X\(\/\).*/{
19721             s//\1/
19722             q
19723           }
19724           s/.*/./; q'`
19725       test -d "$as_dir" && break
19726     done
19727     test -z "$as_dirs" || eval "mkdir $as_dirs"
19728   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19729
19730
19731 } # as_fn_mkdir_p
19732 if mkdir -p . 2>/dev/null; then
19733   as_mkdir_p='mkdir -p "$as_dir"'
19734 else
19735   test -d ./-p && rmdir ./-p
19736   as_mkdir_p=false
19737 fi
19738
19739 if test -x / >/dev/null 2>&1; then
19740   as_test_x='test -x'
19741 else
19742   if ls -dL / >/dev/null 2>&1; then
19743     as_ls_L_option=L
19744   else
19745     as_ls_L_option=
19746   fi
19747   as_test_x='
19748     eval sh -c '\''
19749       if test -d "$1"; then
19750         test -d "$1/.";
19751       else
19752         case $1 in #(
19753         -*)set "./$1";;
19754         esac;
19755         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19756         ???[sx]*):;;*)false;;esac;fi
19757     '\'' sh
19758   '
19759 fi
19760 as_executable_p=$as_test_x
19761
19762 # Sed expression to map a string onto a valid CPP name.
19763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19764
19765 # Sed expression to map a string onto a valid variable name.
19766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19767
19768
19769 exec 6>&1
19770 ## ----------------------------------- ##
19771 ## Main body of $CONFIG_STATUS script. ##
19772 ## ----------------------------------- ##
19773 _ASEOF
19774 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19775
19776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19777 # Save the log message, to keep $0 and so on meaningful, and to
19778 # report actual input values of CONFIG_FILES etc. instead of their
19779 # values after options handling.
19780 ac_log="
19781 This file was extended by xmltooling $as_me 1.4, which was
19782 generated by GNU Autoconf 2.67.  Invocation command line was
19783
19784   CONFIG_FILES    = $CONFIG_FILES
19785   CONFIG_HEADERS  = $CONFIG_HEADERS
19786   CONFIG_LINKS    = $CONFIG_LINKS
19787   CONFIG_COMMANDS = $CONFIG_COMMANDS
19788   $ $0 $@
19789
19790 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19791 "
19792
19793 _ACEOF
19794
19795 case $ac_config_files in *"
19796 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19797 esac
19798
19799 case $ac_config_headers in *"
19800 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19801 esac
19802
19803
19804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19805 # Files that config.status was made for.
19806 config_files="$ac_config_files"
19807 config_headers="$ac_config_headers"
19808 config_commands="$ac_config_commands"
19809
19810 _ACEOF
19811
19812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19813 ac_cs_usage="\
19814 \`$as_me' instantiates files and other configuration actions
19815 from templates according to the current configuration.  Unless the files
19816 and actions are specified as TAGs, all are instantiated by default.
19817
19818 Usage: $0 [OPTION]... [TAG]...
19819
19820   -h, --help       print this help, then exit
19821   -V, --version    print version number and configuration settings, then exit
19822       --config     print configuration, then exit
19823   -q, --quiet, --silent
19824                    do not print progress messages
19825   -d, --debug      don't remove temporary files
19826       --recheck    update $as_me by reconfiguring in the same conditions
19827       --file=FILE[:TEMPLATE]
19828                    instantiate the configuration file FILE
19829       --header=FILE[:TEMPLATE]
19830                    instantiate the configuration header FILE
19831
19832 Configuration files:
19833 $config_files
19834
19835 Configuration headers:
19836 $config_headers
19837
19838 Configuration commands:
19839 $config_commands
19840
19841 Report bugs to <https://bugs.internet2.edu/>."
19842
19843 _ACEOF
19844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19845 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19846 ac_cs_version="\\
19847 xmltooling config.status 1.4
19848 configured by $0, generated by GNU Autoconf 2.67,
19849   with options \\"\$ac_cs_config\\"
19850
19851 Copyright (C) 2010 Free Software Foundation, Inc.
19852 This config.status script is free software; the Free Software Foundation
19853 gives unlimited permission to copy, distribute and modify it."
19854
19855 ac_pwd='$ac_pwd'
19856 srcdir='$srcdir'
19857 INSTALL='$INSTALL'
19858 MKDIR_P='$MKDIR_P'
19859 AWK='$AWK'
19860 test -n "\$AWK" || AWK=awk
19861 _ACEOF
19862
19863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19864 # The default lists apply if the user does not specify any file.
19865 ac_need_defaults=:
19866 while test $# != 0
19867 do
19868   case $1 in
19869   --*=?*)
19870     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19871     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19872     ac_shift=:
19873     ;;
19874   --*=)
19875     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19876     ac_optarg=
19877     ac_shift=:
19878     ;;
19879   *)
19880     ac_option=$1
19881     ac_optarg=$2
19882     ac_shift=shift
19883     ;;
19884   esac
19885
19886   case $ac_option in
19887   # Handling of the options.
19888   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19889     ac_cs_recheck=: ;;
19890   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19891     $as_echo "$ac_cs_version"; exit ;;
19892   --config | --confi | --conf | --con | --co | --c )
19893     $as_echo "$ac_cs_config"; exit ;;
19894   --debug | --debu | --deb | --de | --d | -d )
19895     debug=: ;;
19896   --file | --fil | --fi | --f )
19897     $ac_shift
19898     case $ac_optarg in
19899     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19900     '') as_fn_error $? "missing file argument" ;;
19901     esac
19902     as_fn_append CONFIG_FILES " '$ac_optarg'"
19903     ac_need_defaults=false;;
19904   --header | --heade | --head | --hea )
19905     $ac_shift
19906     case $ac_optarg in
19907     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19908     esac
19909     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19910     ac_need_defaults=false;;
19911   --he | --h)
19912     # Conflict between --help and --header
19913     as_fn_error $? "ambiguous option: \`$1'
19914 Try \`$0 --help' for more information.";;
19915   --help | --hel | -h )
19916     $as_echo "$ac_cs_usage"; exit ;;
19917   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19918   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19919     ac_cs_silent=: ;;
19920
19921   # This is an error.
19922   -*) as_fn_error $? "unrecognized option: \`$1'
19923 Try \`$0 --help' for more information." ;;
19924
19925   *) as_fn_append ac_config_targets " $1"
19926      ac_need_defaults=false ;;
19927
19928   esac
19929   shift
19930 done
19931
19932 ac_configure_extra_args=
19933
19934 if $ac_cs_silent; then
19935   exec 6>/dev/null
19936   ac_configure_extra_args="$ac_configure_extra_args --silent"
19937 fi
19938
19939 _ACEOF
19940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19941 if \$ac_cs_recheck; then
19942   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19943   shift
19944   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19945   CONFIG_SHELL='$SHELL'
19946   export CONFIG_SHELL
19947   exec "\$@"
19948 fi
19949
19950 _ACEOF
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952 exec 5>>config.log
19953 {
19954   echo
19955   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19956 ## Running $as_me. ##
19957 _ASBOX
19958   $as_echo "$ac_log"
19959 } >&5
19960
19961 _ACEOF
19962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19963 #
19964 # INIT-COMMANDS
19965 #
19966 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19967
19968
19969 # The HP-UX ksh and POSIX shell print the target directory to stdout
19970 # if CDPATH is set.
19971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19972
19973 sed_quote_subst='$sed_quote_subst'
19974 double_quote_subst='$double_quote_subst'
19975 delay_variable_subst='$delay_variable_subst'
19976 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19977 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19978 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19979 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19980 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19981 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19982 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19983 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19984 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19985 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19986 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19987 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19988 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19989 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19990 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19991 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19992 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19993 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19994 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19995 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19996 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19997 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19998 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19999 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20000 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20001 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20002 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20003 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20004 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20005 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20006 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20007 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20008 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20009 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20010 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20011 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20012 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20013 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20014 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20015 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20016 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20017 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20018 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20020 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"`'
20021 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"`'
20022 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20023 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20024 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20025 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20026 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20027 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20028 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20029 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20030 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20031 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20032 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20033 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20034 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20035 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20036 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20037 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20038 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20039 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20040 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20041 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20042 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20043 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20044 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20045 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20046 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20047 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20048 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20049 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20050 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20051 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20052 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20053 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20054 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20055 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20056 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20057 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20058 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20059 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20060 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20061 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20062 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20063 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20064 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20065 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20066 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20067 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20068 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20069 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20070 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20071 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20072 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20073 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20074 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20075 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20076 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20077 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20078 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20079 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20080 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20081 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20082 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20083 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20084 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20085 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20086 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20087 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20088 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20089 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20090 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20091 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20092 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20093 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20094 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20095 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20096 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20097 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20098 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20099 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20100 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20101 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20102 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20103 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20104 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20105 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20106 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20107 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20108 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20109 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20110 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20111 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20112 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20113 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20114 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20115 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20116 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20117 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20118 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20119 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20120 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20121 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20122 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20123 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20124 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20125 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20126 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20127 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20128 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20129 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20130 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20131 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20132 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20133 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20134 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20135 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20136 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20137 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20138 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20139 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20140 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20141 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20142 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20143 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20144 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20145 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20146 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20147
20148 LTCC='$LTCC'
20149 LTCFLAGS='$LTCFLAGS'
20150 compiler='$compiler_DEFAULT'
20151
20152 # Quote evaled strings.
20153 for var in SED \
20154 GREP \
20155 EGREP \
20156 FGREP \
20157 LD \
20158 NM \
20159 LN_S \
20160 lt_SP2NL \
20161 lt_NL2SP \
20162 reload_flag \
20163 OBJDUMP \
20164 deplibs_check_method \
20165 file_magic_cmd \
20166 AR \
20167 AR_FLAGS \
20168 STRIP \
20169 RANLIB \
20170 CC \
20171 CFLAGS \
20172 compiler \
20173 lt_cv_sys_global_symbol_pipe \
20174 lt_cv_sys_global_symbol_to_cdecl \
20175 lt_cv_sys_global_symbol_to_c_name_address \
20176 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20177 SHELL \
20178 ECHO \
20179 lt_prog_compiler_no_builtin_flag \
20180 lt_prog_compiler_wl \
20181 lt_prog_compiler_pic \
20182 lt_prog_compiler_static \
20183 lt_cv_prog_compiler_c_o \
20184 need_locks \
20185 DSYMUTIL \
20186 NMEDIT \
20187 LIPO \
20188 OTOOL \
20189 OTOOL64 \
20190 shrext_cmds \
20191 export_dynamic_flag_spec \
20192 whole_archive_flag_spec \
20193 compiler_needs_object \
20194 with_gnu_ld \
20195 allow_undefined_flag \
20196 no_undefined_flag \
20197 hardcode_libdir_flag_spec \
20198 hardcode_libdir_flag_spec_ld \
20199 hardcode_libdir_separator \
20200 fix_srcfile_path \
20201 exclude_expsyms \
20202 include_expsyms \
20203 file_list_spec \
20204 variables_saved_for_relink \
20205 libname_spec \
20206 library_names_spec \
20207 soname_spec \
20208 finish_eval \
20209 old_striplib \
20210 striplib \
20211 compiler_lib_search_dirs \
20212 predep_objects \
20213 postdep_objects \
20214 predeps \
20215 postdeps \
20216 compiler_lib_search_path \
20217 LD_CXX \
20218 compiler_CXX \
20219 lt_prog_compiler_no_builtin_flag_CXX \
20220 lt_prog_compiler_wl_CXX \
20221 lt_prog_compiler_pic_CXX \
20222 lt_prog_compiler_static_CXX \
20223 lt_cv_prog_compiler_c_o_CXX \
20224 export_dynamic_flag_spec_CXX \
20225 whole_archive_flag_spec_CXX \
20226 compiler_needs_object_CXX \
20227 with_gnu_ld_CXX \
20228 allow_undefined_flag_CXX \
20229 no_undefined_flag_CXX \
20230 hardcode_libdir_flag_spec_CXX \
20231 hardcode_libdir_flag_spec_ld_CXX \
20232 hardcode_libdir_separator_CXX \
20233 fix_srcfile_path_CXX \
20234 exclude_expsyms_CXX \
20235 include_expsyms_CXX \
20236 file_list_spec_CXX \
20237 compiler_lib_search_dirs_CXX \
20238 predep_objects_CXX \
20239 postdep_objects_CXX \
20240 predeps_CXX \
20241 postdeps_CXX \
20242 compiler_lib_search_path_CXX; do
20243     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20244     *[\\\\\\\`\\"\\\$]*)
20245       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20246       ;;
20247     *)
20248       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20249       ;;
20250     esac
20251 done
20252
20253 # Double-quote double-evaled strings.
20254 for var in reload_cmds \
20255 old_postinstall_cmds \
20256 old_postuninstall_cmds \
20257 old_archive_cmds \
20258 extract_expsyms_cmds \
20259 old_archive_from_new_cmds \
20260 old_archive_from_expsyms_cmds \
20261 archive_cmds \
20262 archive_expsym_cmds \
20263 module_cmds \
20264 module_expsym_cmds \
20265 export_symbols_cmds \
20266 prelink_cmds \
20267 postinstall_cmds \
20268 postuninstall_cmds \
20269 finish_cmds \
20270 sys_lib_search_path_spec \
20271 sys_lib_dlsearch_path_spec \
20272 old_archive_cmds_CXX \
20273 old_archive_from_new_cmds_CXX \
20274 old_archive_from_expsyms_cmds_CXX \
20275 archive_cmds_CXX \
20276 archive_expsym_cmds_CXX \
20277 module_cmds_CXX \
20278 module_expsym_cmds_CXX \
20279 export_symbols_cmds_CXX \
20280 prelink_cmds_CXX; do
20281     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20282     *[\\\\\\\`\\"\\\$]*)
20283       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20284       ;;
20285     *)
20286       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20287       ;;
20288     esac
20289 done
20290
20291 # Fix-up fallback echo if it was mangled by the above quoting rules.
20292 case \$lt_ECHO in
20293 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20294   ;;
20295 esac
20296
20297 ac_aux_dir='$ac_aux_dir'
20298 xsi_shell='$xsi_shell'
20299 lt_shell_append='$lt_shell_append'
20300
20301 # See if we are running on zsh, and set the options which allow our
20302 # commands through without removal of \ escapes INIT.
20303 if test -n "\${ZSH_VERSION+set}" ; then
20304    setopt NO_GLOB_SUBST
20305 fi
20306
20307
20308     PACKAGE='$PACKAGE'
20309     VERSION='$VERSION'
20310     TIMESTAMP='$TIMESTAMP'
20311     RM='$RM'
20312     ofile='$ofile'
20313
20314
20315
20316
20317
20318
20319 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20320 pkgconfig_prefix='$prefix'
20321 pkgconfig_execprefix='$exec_prefix'
20322 pkgconfig_bindir='$bindir'
20323 pkgconfig_libdir='$libdir'
20324 pkgconfig_includedir='$includedir'
20325 pkgconfig_datarootdir='$datarootdir'
20326 pkgconfig_datadir='$datadir'
20327 pkgconfig_sysconfdir='$sysconfdir'
20328 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20329 pkgconfig_package='$PACKAGE_NAME'
20330 pkgconfig_libname='$ax_create_pkgconfig_libname'
20331 pkgconfig_description='$ax_create_pkgconfig_description'
20332 pkgconfig_version='$ax_create_pkgconfig_version'
20333 pkgconfig_requires='$ax_create_pkgconfig_requires'
20334 pkgconfig_libs='$ax_create_pkgconfig_libs'
20335 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20336 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20337 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20338 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20339
20340
20341 _ACEOF
20342
20343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20344
20345 # Handling of arguments.
20346 for ac_config_target in $ac_config_targets
20347 do
20348   case $ac_config_target in
20349     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20350     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20351     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20352     "xmltooling/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
20353     "xmltooling.spec") CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
20354     "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
20355     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
20356     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20357     "xmltooling/Makefile") CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
20358     "xmltoolingtest/Makefile") CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
20359     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20360     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20361     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
20362
20363   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20364   esac
20365 done
20366
20367
20368 # If the user did not use the arguments to specify the items to instantiate,
20369 # then the envvar interface is used.  Set only those that are not.
20370 # We use the long form for the default assignment because of an extremely
20371 # bizarre bug on SunOS 4.1.3.
20372 if $ac_need_defaults; then
20373   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20374   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20375   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20376 fi
20377
20378 # Have a temporary directory for convenience.  Make it in the build tree
20379 # simply because there is no reason against having it here, and in addition,
20380 # creating and moving files from /tmp can sometimes cause problems.
20381 # Hook for its removal unless debugging.
20382 # Note that there is a small window in which the directory will not be cleaned:
20383 # after its creation but before its name has been assigned to `$tmp'.
20384 $debug ||
20385 {
20386   tmp=
20387   trap 'exit_status=$?
20388   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20389 ' 0
20390   trap 'as_fn_exit 1' 1 2 13 15
20391 }
20392 # Create a (secure) tmp directory for tmp files.
20393
20394 {
20395   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20396   test -n "$tmp" && test -d "$tmp"
20397 }  ||
20398 {
20399   tmp=./conf$$-$RANDOM
20400   (umask 077 && mkdir "$tmp")
20401 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20402
20403 # Set up the scripts for CONFIG_FILES section.
20404 # No need to generate them if there are no CONFIG_FILES.
20405 # This happens for instance with `./config.status config.h'.
20406 if test -n "$CONFIG_FILES"; then
20407
20408
20409 ac_cr=`echo X | tr X '\015'`
20410 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20411 # But we know of no other shell where ac_cr would be empty at this
20412 # point, so we can use a bashism as a fallback.
20413 if test "x$ac_cr" = x; then
20414   eval ac_cr=\$\'\\r\'
20415 fi
20416 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20417 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20418   ac_cs_awk_cr='\\r'
20419 else
20420   ac_cs_awk_cr=$ac_cr
20421 fi
20422
20423 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20424 _ACEOF
20425
20426
20427 {
20428   echo "cat >conf$$subs.awk <<_ACEOF" &&
20429   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20430   echo "_ACEOF"
20431 } >conf$$subs.sh ||
20432   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20433 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20434 ac_delim='%!_!# '
20435 for ac_last_try in false false false false false :; do
20436   . ./conf$$subs.sh ||
20437     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20438
20439   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20440   if test $ac_delim_n = $ac_delim_num; then
20441     break
20442   elif $ac_last_try; then
20443     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20444   else
20445     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20446   fi
20447 done
20448 rm -f conf$$subs.sh
20449
20450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20451 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20452 _ACEOF
20453 sed -n '
20454 h
20455 s/^/S["/; s/!.*/"]=/
20456 p
20457 g
20458 s/^[^!]*!//
20459 :repl
20460 t repl
20461 s/'"$ac_delim"'$//
20462 t delim
20463 :nl
20464 h
20465 s/\(.\{148\}\)..*/\1/
20466 t more1
20467 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20468 p
20469 n
20470 b repl
20471 :more1
20472 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20473 p
20474 g
20475 s/.\{148\}//
20476 t nl
20477 :delim
20478 h
20479 s/\(.\{148\}\)..*/\1/
20480 t more2
20481 s/["\\]/\\&/g; s/^/"/; s/$/"/
20482 p
20483 b
20484 :more2
20485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20486 p
20487 g
20488 s/.\{148\}//
20489 t delim
20490 ' <conf$$subs.awk | sed '
20491 /^[^""]/{
20492   N
20493   s/\n//
20494 }
20495 ' >>$CONFIG_STATUS || ac_write_fail=1
20496 rm -f conf$$subs.awk
20497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20498 _ACAWK
20499 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20500   for (key in S) S_is_set[key] = 1
20501   FS = "\a"
20502
20503 }
20504 {
20505   line = $ 0
20506   nfields = split(line, field, "@")
20507   substed = 0
20508   len = length(field[1])
20509   for (i = 2; i < nfields; i++) {
20510     key = field[i]
20511     keylen = length(key)
20512     if (S_is_set[key]) {
20513       value = S[key]
20514       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20515       len += length(value) + length(field[++i])
20516       substed = 1
20517     } else
20518       len += 1 + keylen
20519   }
20520
20521   print line
20522 }
20523
20524 _ACAWK
20525 _ACEOF
20526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20527 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20528   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20529 else
20530   cat
20531 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20532   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20533 _ACEOF
20534
20535 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20536 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20537 # trailing colons and then remove the whole line if VPATH becomes empty
20538 # (actually we leave an empty line to preserve line numbers).
20539 if test "x$srcdir" = x.; then
20540   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20541 h
20542 s///
20543 s/^/:/
20544 s/[      ]*$/:/
20545 s/:\$(srcdir):/:/g
20546 s/:\${srcdir}:/:/g
20547 s/:@srcdir@:/:/g
20548 s/^:*//
20549 s/:*$//
20550 x
20551 s/\(=[   ]*\).*/\1/
20552 G
20553 s/\n//
20554 s/^[^=]*=[       ]*$//
20555 }'
20556 fi
20557
20558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20559 fi # test -n "$CONFIG_FILES"
20560
20561 # Set up the scripts for CONFIG_HEADERS section.
20562 # No need to generate them if there are no CONFIG_HEADERS.
20563 # This happens for instance with `./config.status Makefile'.
20564 if test -n "$CONFIG_HEADERS"; then
20565 cat >"$tmp/defines.awk" <<\_ACAWK ||
20566 BEGIN {
20567 _ACEOF
20568
20569 # Transform confdefs.h into an awk script `defines.awk', embedded as
20570 # here-document in config.status, that substitutes the proper values into
20571 # config.h.in to produce config.h.
20572
20573 # Create a delimiter string that does not exist in confdefs.h, to ease
20574 # handling of long lines.
20575 ac_delim='%!_!# '
20576 for ac_last_try in false false :; do
20577   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20578   if test -z "$ac_t"; then
20579     break
20580   elif $ac_last_try; then
20581     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20582   else
20583     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20584   fi
20585 done
20586
20587 # For the awk script, D is an array of macro values keyed by name,
20588 # likewise P contains macro parameters if any.  Preserve backslash
20589 # newline sequences.
20590
20591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20592 sed -n '
20593 s/.\{148\}/&'"$ac_delim"'/g
20594 t rset
20595 :rset
20596 s/^[     ]*#[    ]*define[       ][      ]*/ /
20597 t def
20598 d
20599 :def
20600 s/\\$//
20601 t bsnl
20602 s/["\\]/\\&/g
20603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20604 D["\1"]=" \3"/p
20605 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20606 d
20607 :bsnl
20608 s/["\\]/\\&/g
20609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20610 D["\1"]=" \3\\\\\\n"\\/p
20611 t cont
20612 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20613 t cont
20614 d
20615 :cont
20616 n
20617 s/.\{148\}/&'"$ac_delim"'/g
20618 t clear
20619 :clear
20620 s/\\$//
20621 t bsnlc
20622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20623 d
20624 :bsnlc
20625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20626 b cont
20627 ' <confdefs.h | sed '
20628 s/'"$ac_delim"'/"\\\
20629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20630
20631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20632   for (key in D) D_is_set[key] = 1
20633   FS = "\a"
20634 }
20635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20636   line = \$ 0
20637   split(line, arg, " ")
20638   if (arg[1] == "#") {
20639     defundef = arg[2]
20640     mac1 = arg[3]
20641   } else {
20642     defundef = substr(arg[1], 2)
20643     mac1 = arg[2]
20644   }
20645   split(mac1, mac2, "(") #)
20646   macro = mac2[1]
20647   prefix = substr(line, 1, index(line, defundef) - 1)
20648   if (D_is_set[macro]) {
20649     # Preserve the white space surrounding the "#".
20650     print prefix "define", macro P[macro] D[macro]
20651     next
20652   } else {
20653     # Replace #undef with comments.  This is necessary, for example,
20654     # in the case of _POSIX_SOURCE, which is predefined and required
20655     # on some systems where configure will not decide to define it.
20656     if (defundef == "undef") {
20657       print "/*", prefix defundef, macro, "*/"
20658       next
20659     }
20660   }
20661 }
20662 { print }
20663 _ACAWK
20664 _ACEOF
20665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20666   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20667 fi # test -n "$CONFIG_HEADERS"
20668
20669
20670 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20671 shift
20672 for ac_tag
20673 do
20674   case $ac_tag in
20675   :[FHLC]) ac_mode=$ac_tag; continue;;
20676   esac
20677   case $ac_mode$ac_tag in
20678   :[FHL]*:*);;
20679   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20680   :[FH]-) ac_tag=-:-;;
20681   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20682   esac
20683   ac_save_IFS=$IFS
20684   IFS=:
20685   set x $ac_tag
20686   IFS=$ac_save_IFS
20687   shift
20688   ac_file=$1
20689   shift
20690
20691   case $ac_mode in
20692   :L) ac_source=$1;;
20693   :[FH])
20694     ac_file_inputs=
20695     for ac_f
20696     do
20697       case $ac_f in
20698       -) ac_f="$tmp/stdin";;
20699       *) # Look for the file first in the build tree, then in the source tree
20700          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20701          # because $ac_f cannot contain `:'.
20702          test -f "$ac_f" ||
20703            case $ac_f in
20704            [\\/$]*) false;;
20705            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20706            esac ||
20707            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20708       esac
20709       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20710       as_fn_append ac_file_inputs " '$ac_f'"
20711     done
20712
20713     # Let's still pretend it is `configure' which instantiates (i.e., don't
20714     # use $as_me), people would be surprised to read:
20715     #    /* config.h.  Generated by config.status.  */
20716     configure_input='Generated from '`
20717           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20718         `' by configure.'
20719     if test x"$ac_file" != x-; then
20720       configure_input="$ac_file.  $configure_input"
20721       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20722 $as_echo "$as_me: creating $ac_file" >&6;}
20723     fi
20724     # Neutralize special characters interpreted by sed in replacement strings.
20725     case $configure_input in #(
20726     *\&* | *\|* | *\\* )
20727        ac_sed_conf_input=`$as_echo "$configure_input" |
20728        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20729     *) ac_sed_conf_input=$configure_input;;
20730     esac
20731
20732     case $ac_tag in
20733     *:-:* | *:-) cat >"$tmp/stdin" \
20734       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
20735     esac
20736     ;;
20737   esac
20738
20739   ac_dir=`$as_dirname -- "$ac_file" ||
20740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20741          X"$ac_file" : 'X\(//\)[^/]' \| \
20742          X"$ac_file" : 'X\(//\)$' \| \
20743          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20744 $as_echo X"$ac_file" |
20745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20746             s//\1/
20747             q
20748           }
20749           /^X\(\/\/\)[^/].*/{
20750             s//\1/
20751             q
20752           }
20753           /^X\(\/\/\)$/{
20754             s//\1/
20755             q
20756           }
20757           /^X\(\/\).*/{
20758             s//\1/
20759             q
20760           }
20761           s/.*/./; q'`
20762   as_dir="$ac_dir"; as_fn_mkdir_p
20763   ac_builddir=.
20764
20765 case "$ac_dir" in
20766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20767 *)
20768   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20769   # A ".." for each directory in $ac_dir_suffix.
20770   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20771   case $ac_top_builddir_sub in
20772   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20773   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20774   esac ;;
20775 esac
20776 ac_abs_top_builddir=$ac_pwd
20777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20778 # for backward compatibility:
20779 ac_top_builddir=$ac_top_build_prefix
20780
20781 case $srcdir in
20782   .)  # We are building in place.
20783     ac_srcdir=.
20784     ac_top_srcdir=$ac_top_builddir_sub
20785     ac_abs_top_srcdir=$ac_pwd ;;
20786   [\\/]* | ?:[\\/]* )  # Absolute name.
20787     ac_srcdir=$srcdir$ac_dir_suffix;
20788     ac_top_srcdir=$srcdir
20789     ac_abs_top_srcdir=$srcdir ;;
20790   *) # Relative name.
20791     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20792     ac_top_srcdir=$ac_top_build_prefix$srcdir
20793     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20794 esac
20795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20796
20797
20798   case $ac_mode in
20799   :F)
20800   #
20801   # CONFIG_FILE
20802   #
20803
20804   case $INSTALL in
20805   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20806   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20807   esac
20808   ac_MKDIR_P=$MKDIR_P
20809   case $MKDIR_P in
20810   [\\/$]* | ?:[\\/]* ) ;;
20811   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20812   esac
20813 _ACEOF
20814
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 # If the template does not know about datarootdir, expand it.
20817 # FIXME: This hack should be removed a few years after 2.60.
20818 ac_datarootdir_hack=; ac_datarootdir_seen=
20819 ac_sed_dataroot='
20820 /datarootdir/ {
20821   p
20822   q
20823 }
20824 /@datadir@/p
20825 /@docdir@/p
20826 /@infodir@/p
20827 /@localedir@/p
20828 /@mandir@/p'
20829 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20830 *datarootdir*) ac_datarootdir_seen=yes;;
20831 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20832   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20833 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20834 _ACEOF
20835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20836   ac_datarootdir_hack='
20837   s&@datadir@&$datadir&g
20838   s&@docdir@&$docdir&g
20839   s&@infodir@&$infodir&g
20840   s&@localedir@&$localedir&g
20841   s&@mandir@&$mandir&g
20842   s&\\\${datarootdir}&$datarootdir&g' ;;
20843 esac
20844 _ACEOF
20845
20846 # Neutralize VPATH when `$srcdir' = `.'.
20847 # Shell code in configure.ac might set extrasub.
20848 # FIXME: do we really want to maintain this feature?
20849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20850 ac_sed_extra="$ac_vpsub
20851 $extrasub
20852 _ACEOF
20853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20854 :t
20855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20856 s|@configure_input@|$ac_sed_conf_input|;t t
20857 s&@top_builddir@&$ac_top_builddir_sub&;t t
20858 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20859 s&@srcdir@&$ac_srcdir&;t t
20860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20861 s&@top_srcdir@&$ac_top_srcdir&;t t
20862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20863 s&@builddir@&$ac_builddir&;t t
20864 s&@abs_builddir@&$ac_abs_builddir&;t t
20865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20866 s&@INSTALL@&$ac_INSTALL&;t t
20867 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20868 $ac_datarootdir_hack
20869 "
20870 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20871   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20872
20873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20874   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20875   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20876   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20877 which seems to be undefined.  Please make sure it is defined" >&5
20878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20879 which seems to be undefined.  Please make sure it is defined" >&2;}
20880
20881   rm -f "$tmp/stdin"
20882   case $ac_file in
20883   -) cat "$tmp/out" && rm -f "$tmp/out";;
20884   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20885   esac \
20886   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20887  ;;
20888   :H)
20889   #
20890   # CONFIG_HEADER
20891   #
20892   if test x"$ac_file" != x-; then
20893     {
20894       $as_echo "/* $configure_input  */" \
20895       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20896     } >"$tmp/config.h" \
20897       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20898     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20899       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20901     else
20902       rm -f "$ac_file"
20903       mv "$tmp/config.h" "$ac_file" \
20904         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20905     fi
20906   else
20907     $as_echo "/* $configure_input  */" \
20908       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20909       || as_fn_error $? "could not create -" "$LINENO" 5
20910   fi
20911 # Compute "$ac_file"'s index in $config_headers.
20912 _am_arg="$ac_file"
20913 _am_stamp_count=1
20914 for _am_header in $config_headers :; do
20915   case $_am_header in
20916     $_am_arg | $_am_arg:* )
20917       break ;;
20918     * )
20919       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20920   esac
20921 done
20922 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20923 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20924          X"$_am_arg" : 'X\(//\)[^/]' \| \
20925          X"$_am_arg" : 'X\(//\)$' \| \
20926          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20927 $as_echo X"$_am_arg" |
20928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20929             s//\1/
20930             q
20931           }
20932           /^X\(\/\/\)[^/].*/{
20933             s//\1/
20934             q
20935           }
20936           /^X\(\/\/\)$/{
20937             s//\1/
20938             q
20939           }
20940           /^X\(\/\).*/{
20941             s//\1/
20942             q
20943           }
20944           s/.*/./; q'`/stamp-h$_am_stamp_count
20945  ;;
20946
20947   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20948 $as_echo "$as_me: executing $ac_file commands" >&6;}
20949  ;;
20950   esac
20951
20952
20953   case $ac_file$ac_mode in
20954     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20955   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20956   # are listed without --file.  Let's play safe and only enable the eval
20957   # if we detect the quoting.
20958   case $CONFIG_FILES in
20959   *\'*) eval set x "$CONFIG_FILES" ;;
20960   *)   set x $CONFIG_FILES ;;
20961   esac
20962   shift
20963   for mf
20964   do
20965     # Strip MF so we end up with the name of the file.
20966     mf=`echo "$mf" | sed -e 's/:.*$//'`
20967     # Check whether this is an Automake generated Makefile or not.
20968     # We used to match only the files named `Makefile.in', but
20969     # some people rename them; so instead we look at the file content.
20970     # Grep'ing the first line is not enough: some people post-process
20971     # each Makefile.in and add a new line on top of each file to say so.
20972     # Grep'ing the whole file is not good either: AIX grep has a line
20973     # limit of 2048, but all sed's we know have understand at least 4000.
20974     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20975       dirpart=`$as_dirname -- "$mf" ||
20976 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977          X"$mf" : 'X\(//\)[^/]' \| \
20978          X"$mf" : 'X\(//\)$' \| \
20979          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20980 $as_echo X"$mf" |
20981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20982             s//\1/
20983             q
20984           }
20985           /^X\(\/\/\)[^/].*/{
20986             s//\1/
20987             q
20988           }
20989           /^X\(\/\/\)$/{
20990             s//\1/
20991             q
20992           }
20993           /^X\(\/\).*/{
20994             s//\1/
20995             q
20996           }
20997           s/.*/./; q'`
20998     else
20999       continue
21000     fi
21001     # Extract the definition of DEPDIR, am__include, and am__quote
21002     # from the Makefile without running `make'.
21003     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21004     test -z "$DEPDIR" && continue
21005     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21006     test -z "am__include" && continue
21007     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21008     # When using ansi2knr, U may be empty or an underscore; expand it
21009     U=`sed -n 's/^U = //p' < "$mf"`
21010     # Find all dependency output files, they are included files with
21011     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21012     # simplest approach to changing $(DEPDIR) to its actual value in the
21013     # expansion.
21014     for file in `sed -n "
21015       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21016          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21017       # Make sure the directory exists.
21018       test -f "$dirpart/$file" && continue
21019       fdir=`$as_dirname -- "$file" ||
21020 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21021          X"$file" : 'X\(//\)[^/]' \| \
21022          X"$file" : 'X\(//\)$' \| \
21023          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21024 $as_echo X"$file" |
21025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21026             s//\1/
21027             q
21028           }
21029           /^X\(\/\/\)[^/].*/{
21030             s//\1/
21031             q
21032           }
21033           /^X\(\/\/\)$/{
21034             s//\1/
21035             q
21036           }
21037           /^X\(\/\).*/{
21038             s//\1/
21039             q
21040           }
21041           s/.*/./; q'`
21042       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21043       # echo "creating $dirpart/$file"
21044       echo '# dummy' > "$dirpart/$file"
21045     done
21046   done
21047 }
21048  ;;
21049     "libtool":C)
21050
21051     # See if we are running on zsh, and set the options which allow our
21052     # commands through without removal of \ escapes.
21053     if test -n "${ZSH_VERSION+set}" ; then
21054       setopt NO_GLOB_SUBST
21055     fi
21056
21057     cfgfile="${ofile}T"
21058     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21059     $RM "$cfgfile"
21060
21061     cat <<_LT_EOF >> "$cfgfile"
21062 #! $SHELL
21063
21064 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21065 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21067 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21068 #
21069 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21070 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21071 #   Written by Gordon Matzigkeit, 1996
21072 #
21073 #   This file is part of GNU Libtool.
21074 #
21075 # GNU Libtool is free software; you can redistribute it and/or
21076 # modify it under the terms of the GNU General Public License as
21077 # published by the Free Software Foundation; either version 2 of
21078 # the License, or (at your option) any later version.
21079 #
21080 # As a special exception to the GNU General Public License,
21081 # if you distribute this file as part of a program or library that
21082 # is built using GNU Libtool, you may include this file under the
21083 # same distribution terms that you use for the rest of that program.
21084 #
21085 # GNU Libtool is distributed in the hope that it will be useful,
21086 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21087 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21088 # GNU General Public License for more details.
21089 #
21090 # You should have received a copy of the GNU General Public License
21091 # along with GNU Libtool; see the file COPYING.  If not, a copy
21092 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21093 # obtained by writing to the Free Software Foundation, Inc.,
21094 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21095
21096
21097 # The names of the tagged configurations supported by this script.
21098 available_tags="CXX "
21099
21100 # ### BEGIN LIBTOOL CONFIG
21101
21102 # Which release of libtool.m4 was used?
21103 macro_version=$macro_version
21104 macro_revision=$macro_revision
21105
21106 # Whether or not to build shared libraries.
21107 build_libtool_libs=$enable_shared
21108
21109 # Whether or not to build static libraries.
21110 build_old_libs=$enable_static
21111
21112 # What type of objects to build.
21113 pic_mode=$pic_mode
21114
21115 # Whether or not to optimize for fast installation.
21116 fast_install=$enable_fast_install
21117
21118 # The host system.
21119 host_alias=$host_alias
21120 host=$host
21121 host_os=$host_os
21122
21123 # The build system.
21124 build_alias=$build_alias
21125 build=$build
21126 build_os=$build_os
21127
21128 # A sed program that does not truncate output.
21129 SED=$lt_SED
21130
21131 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21132 Xsed="\$SED -e 1s/^X//"
21133
21134 # A grep program that handles long lines.
21135 GREP=$lt_GREP
21136
21137 # An ERE matcher.
21138 EGREP=$lt_EGREP
21139
21140 # A literal string matcher.
21141 FGREP=$lt_FGREP
21142
21143 # A BSD- or MS-compatible name lister.
21144 NM=$lt_NM
21145
21146 # Whether we need soft or hard links.
21147 LN_S=$lt_LN_S
21148
21149 # What is the maximum length of a command?
21150 max_cmd_len=$max_cmd_len
21151
21152 # Object file suffix (normally "o").
21153 objext=$ac_objext
21154
21155 # Executable file suffix (normally "").
21156 exeext=$exeext
21157
21158 # whether the shell understands "unset".
21159 lt_unset=$lt_unset
21160
21161 # turn spaces into newlines.
21162 SP2NL=$lt_lt_SP2NL
21163
21164 # turn newlines into spaces.
21165 NL2SP=$lt_lt_NL2SP
21166
21167 # How to create reloadable object files.
21168 reload_flag=$lt_reload_flag
21169 reload_cmds=$lt_reload_cmds
21170
21171 # An object symbol dumper.
21172 OBJDUMP=$lt_OBJDUMP
21173
21174 # Method to check whether dependent libraries are shared objects.
21175 deplibs_check_method=$lt_deplibs_check_method
21176
21177 # Command to use when deplibs_check_method == "file_magic".
21178 file_magic_cmd=$lt_file_magic_cmd
21179
21180 # The archiver.
21181 AR=$lt_AR
21182 AR_FLAGS=$lt_AR_FLAGS
21183
21184 # A symbol stripping program.
21185 STRIP=$lt_STRIP
21186
21187 # Commands used to install an old-style archive.
21188 RANLIB=$lt_RANLIB
21189 old_postinstall_cmds=$lt_old_postinstall_cmds
21190 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21191
21192 # A C compiler.
21193 LTCC=$lt_CC
21194
21195 # LTCC compiler flags.
21196 LTCFLAGS=$lt_CFLAGS
21197
21198 # Take the output of nm and produce a listing of raw symbols and C names.
21199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21200
21201 # Transform the output of nm in a proper C declaration.
21202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21203
21204 # Transform the output of nm in a C name address pair.
21205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21206
21207 # Transform the output of nm in a C name address pair when lib prefix is needed.
21208 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21209
21210 # The name of the directory that contains temporary libtool files.
21211 objdir=$objdir
21212
21213 # Shell to use when invoking shell scripts.
21214 SHELL=$lt_SHELL
21215
21216 # An echo program that does not interpret backslashes.
21217 ECHO=$lt_ECHO
21218
21219 # Used to examine libraries when file_magic_cmd begins with "file".
21220 MAGIC_CMD=$MAGIC_CMD
21221
21222 # Must we lock files when doing compilation?
21223 need_locks=$lt_need_locks
21224
21225 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21226 DSYMUTIL=$lt_DSYMUTIL
21227
21228 # Tool to change global to local symbols on Mac OS X.
21229 NMEDIT=$lt_NMEDIT
21230
21231 # Tool to manipulate fat objects and archives on Mac OS X.
21232 LIPO=$lt_LIPO
21233
21234 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21235 OTOOL=$lt_OTOOL
21236
21237 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21238 OTOOL64=$lt_OTOOL64
21239
21240 # Old archive suffix (normally "a").
21241 libext=$libext
21242
21243 # Shared library suffix (normally ".so").
21244 shrext_cmds=$lt_shrext_cmds
21245
21246 # The commands to extract the exported symbol list from a shared archive.
21247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21248
21249 # Variables whose values should be saved in libtool wrapper scripts and
21250 # restored at link time.
21251 variables_saved_for_relink=$lt_variables_saved_for_relink
21252
21253 # Do we need the "lib" prefix for modules?
21254 need_lib_prefix=$need_lib_prefix
21255
21256 # Do we need a version for libraries?
21257 need_version=$need_version
21258
21259 # Library versioning type.
21260 version_type=$version_type
21261
21262 # Shared library runtime path variable.
21263 runpath_var=$runpath_var
21264
21265 # Shared library path variable.
21266 shlibpath_var=$shlibpath_var
21267
21268 # Is shlibpath searched before the hard-coded library search path?
21269 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21270
21271 # Format of library name prefix.
21272 libname_spec=$lt_libname_spec
21273
21274 # List of archive names.  First name is the real one, the rest are links.
21275 # The last name is the one that the linker finds with -lNAME
21276 library_names_spec=$lt_library_names_spec
21277
21278 # The coded name of the library, if different from the real name.
21279 soname_spec=$lt_soname_spec
21280
21281 # Command to use after installation of a shared archive.
21282 postinstall_cmds=$lt_postinstall_cmds
21283
21284 # Command to use after uninstallation of a shared archive.
21285 postuninstall_cmds=$lt_postuninstall_cmds
21286
21287 # Commands used to finish a libtool library installation in a directory.
21288 finish_cmds=$lt_finish_cmds
21289
21290 # As "finish_cmds", except a single script fragment to be evaled but
21291 # not shown.
21292 finish_eval=$lt_finish_eval
21293
21294 # Whether we should hardcode library paths into libraries.
21295 hardcode_into_libs=$hardcode_into_libs
21296
21297 # Compile-time system search path for libraries.
21298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21299
21300 # Run-time system search path for libraries.
21301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21302
21303 # Whether dlopen is supported.
21304 dlopen_support=$enable_dlopen
21305
21306 # Whether dlopen of programs is supported.
21307 dlopen_self=$enable_dlopen_self
21308
21309 # Whether dlopen of statically linked programs is supported.
21310 dlopen_self_static=$enable_dlopen_self_static
21311
21312 # Commands to strip libraries.
21313 old_striplib=$lt_old_striplib
21314 striplib=$lt_striplib
21315
21316
21317 # The linker used to build libraries.
21318 LD=$lt_LD
21319
21320 # Commands used to build an old-style archive.
21321 old_archive_cmds=$lt_old_archive_cmds
21322
21323 # A language specific compiler.
21324 CC=$lt_compiler
21325
21326 # Is the compiler the GNU compiler?
21327 with_gcc=$GCC
21328
21329 # Compiler flag to turn off builtin functions.
21330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21331
21332 # How to pass a linker flag through the compiler.
21333 wl=$lt_lt_prog_compiler_wl
21334
21335 # Additional compiler flags for building library objects.
21336 pic_flag=$lt_lt_prog_compiler_pic
21337
21338 # Compiler flag to prevent dynamic linking.
21339 link_static_flag=$lt_lt_prog_compiler_static
21340
21341 # Does compiler simultaneously support -c and -o options?
21342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21343
21344 # Whether or not to add -lc for building shared libraries.
21345 build_libtool_need_lc=$archive_cmds_need_lc
21346
21347 # Whether or not to disallow shared libs when runtime libs are static.
21348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21349
21350 # Compiler flag to allow reflexive dlopens.
21351 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21352
21353 # Compiler flag to generate shared objects directly from archives.
21354 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21355
21356 # Whether the compiler copes with passing no objects directly.
21357 compiler_needs_object=$lt_compiler_needs_object
21358
21359 # Create an old-style archive from a shared archive.
21360 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21361
21362 # Create a temporary old-style archive to link instead of a shared archive.
21363 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21364
21365 # Commands used to build a shared archive.
21366 archive_cmds=$lt_archive_cmds
21367 archive_expsym_cmds=$lt_archive_expsym_cmds
21368
21369 # Commands used to build a loadable module if different from building
21370 # a shared archive.
21371 module_cmds=$lt_module_cmds
21372 module_expsym_cmds=$lt_module_expsym_cmds
21373
21374 # Whether we are building with GNU ld or not.
21375 with_gnu_ld=$lt_with_gnu_ld
21376
21377 # Flag that allows shared libraries with undefined symbols to be built.
21378 allow_undefined_flag=$lt_allow_undefined_flag
21379
21380 # Flag that enforces no undefined symbols.
21381 no_undefined_flag=$lt_no_undefined_flag
21382
21383 # Flag to hardcode \$libdir into a binary during linking.
21384 # This must work even if \$libdir does not exist
21385 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21386
21387 # If ld is used when linking, flag to hardcode \$libdir into a binary
21388 # during linking.  This must work even if \$libdir does not exist.
21389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21390
21391 # Whether we need a single "-rpath" flag with a separated argument.
21392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21393
21394 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21395 # DIR into the resulting binary.
21396 hardcode_direct=$hardcode_direct
21397
21398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21399 # DIR into the resulting binary and the resulting library dependency is
21400 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21401 # library is relocated.
21402 hardcode_direct_absolute=$hardcode_direct_absolute
21403
21404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21405 # into the resulting binary.
21406 hardcode_minus_L=$hardcode_minus_L
21407
21408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21409 # into the resulting binary.
21410 hardcode_shlibpath_var=$hardcode_shlibpath_var
21411
21412 # Set to "yes" if building a shared library automatically hardcodes DIR
21413 # into the library and all subsequent libraries and executables linked
21414 # against it.
21415 hardcode_automatic=$hardcode_automatic
21416
21417 # Set to yes if linker adds runtime paths of dependent libraries
21418 # to runtime path list.
21419 inherit_rpath=$inherit_rpath
21420
21421 # Whether libtool must link a program against all its dependency libraries.
21422 link_all_deplibs=$link_all_deplibs
21423
21424 # Fix the shell variable \$srcfile for the compiler.
21425 fix_srcfile_path=$lt_fix_srcfile_path
21426
21427 # Set to "yes" if exported symbols are required.
21428 always_export_symbols=$always_export_symbols
21429
21430 # The commands to list exported symbols.
21431 export_symbols_cmds=$lt_export_symbols_cmds
21432
21433 # Symbols that should not be listed in the preloaded symbols.
21434 exclude_expsyms=$lt_exclude_expsyms
21435
21436 # Symbols that must always be exported.
21437 include_expsyms=$lt_include_expsyms
21438
21439 # Commands necessary for linking programs (against libraries) with templates.
21440 prelink_cmds=$lt_prelink_cmds
21441
21442 # Specify filename containing input files.
21443 file_list_spec=$lt_file_list_spec
21444
21445 # How to hardcode a shared library path into an executable.
21446 hardcode_action=$hardcode_action
21447
21448 # The directories searched by this compiler when creating a shared library.
21449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21450
21451 # Dependencies to place before and after the objects being linked to
21452 # create a shared library.
21453 predep_objects=$lt_predep_objects
21454 postdep_objects=$lt_postdep_objects
21455 predeps=$lt_predeps
21456 postdeps=$lt_postdeps
21457
21458 # The library search path used internally by the compiler when linking
21459 # a shared library.
21460 compiler_lib_search_path=$lt_compiler_lib_search_path
21461
21462 # ### END LIBTOOL CONFIG
21463
21464 _LT_EOF
21465
21466   case $host_os in
21467   aix3*)
21468     cat <<\_LT_EOF >> "$cfgfile"
21469 # AIX sometimes has problems with the GCC collect2 program.  For some
21470 # reason, if we set the COLLECT_NAMES environment variable, the problems
21471 # vanish in a puff of smoke.
21472 if test "X${COLLECT_NAMES+set}" != Xset; then
21473   COLLECT_NAMES=
21474   export COLLECT_NAMES
21475 fi
21476 _LT_EOF
21477     ;;
21478   esac
21479
21480
21481 ltmain="$ac_aux_dir/ltmain.sh"
21482
21483
21484   # We use sed instead of cat because bash on DJGPP gets confused if
21485   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21486   # text mode, it properly converts lines to CR/LF.  This bash problem
21487   # is reportedly fixed, but why not run on old versions too?
21488   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21489     || (rm -f "$cfgfile"; exit 1)
21490
21491   case $xsi_shell in
21492   yes)
21493     cat << \_LT_EOF >> "$cfgfile"
21494
21495 # func_dirname file append nondir_replacement
21496 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21497 # otherwise set result to NONDIR_REPLACEMENT.
21498 func_dirname ()
21499 {
21500   case ${1} in
21501     */*) func_dirname_result="${1%/*}${2}" ;;
21502     *  ) func_dirname_result="${3}" ;;
21503   esac
21504 }
21505
21506 # func_basename file
21507 func_basename ()
21508 {
21509   func_basename_result="${1##*/}"
21510 }
21511
21512 # func_dirname_and_basename file append nondir_replacement
21513 # perform func_basename and func_dirname in a single function
21514 # call:
21515 #   dirname:  Compute the dirname of FILE.  If nonempty,
21516 #             add APPEND to the result, otherwise set result
21517 #             to NONDIR_REPLACEMENT.
21518 #             value returned in "$func_dirname_result"
21519 #   basename: Compute filename of FILE.
21520 #             value retuned in "$func_basename_result"
21521 # Implementation must be kept synchronized with func_dirname
21522 # and func_basename. For efficiency, we do not delegate to
21523 # those functions but instead duplicate the functionality here.
21524 func_dirname_and_basename ()
21525 {
21526   case ${1} in
21527     */*) func_dirname_result="${1%/*}${2}" ;;
21528     *  ) func_dirname_result="${3}" ;;
21529   esac
21530   func_basename_result="${1##*/}"
21531 }
21532
21533 # func_stripname prefix suffix name
21534 # strip PREFIX and SUFFIX off of NAME.
21535 # PREFIX and SUFFIX must not contain globbing or regex special
21536 # characters, hashes, percent signs, but SUFFIX may contain a leading
21537 # dot (in which case that matches only a dot).
21538 func_stripname ()
21539 {
21540   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21541   # positional parameters, so assign one to ordinary parameter first.
21542   func_stripname_result=${3}
21543   func_stripname_result=${func_stripname_result#"${1}"}
21544   func_stripname_result=${func_stripname_result%"${2}"}
21545 }
21546
21547 # func_opt_split
21548 func_opt_split ()
21549 {
21550   func_opt_split_opt=${1%%=*}
21551   func_opt_split_arg=${1#*=}
21552 }
21553
21554 # func_lo2o object
21555 func_lo2o ()
21556 {
21557   case ${1} in
21558     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21559     *)    func_lo2o_result=${1} ;;
21560   esac
21561 }
21562
21563 # func_xform libobj-or-source
21564 func_xform ()
21565 {
21566   func_xform_result=${1%.*}.lo
21567 }
21568
21569 # func_arith arithmetic-term...
21570 func_arith ()
21571 {
21572   func_arith_result=$(( $* ))
21573 }
21574
21575 # func_len string
21576 # STRING may not start with a hyphen.
21577 func_len ()
21578 {
21579   func_len_result=${#1}
21580 }
21581
21582 _LT_EOF
21583     ;;
21584   *) # Bourne compatible functions.
21585     cat << \_LT_EOF >> "$cfgfile"
21586
21587 # func_dirname file append nondir_replacement
21588 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21589 # otherwise set result to NONDIR_REPLACEMENT.
21590 func_dirname ()
21591 {
21592   # Extract subdirectory from the argument.
21593   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21594   if test "X$func_dirname_result" = "X${1}"; then
21595     func_dirname_result="${3}"
21596   else
21597     func_dirname_result="$func_dirname_result${2}"
21598   fi
21599 }
21600
21601 # func_basename file
21602 func_basename ()
21603 {
21604   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21605 }
21606
21607
21608 # func_stripname prefix suffix name
21609 # strip PREFIX and SUFFIX off of NAME.
21610 # PREFIX and SUFFIX must not contain globbing or regex special
21611 # characters, hashes, percent signs, but SUFFIX may contain a leading
21612 # dot (in which case that matches only a dot).
21613 # func_strip_suffix prefix name
21614 func_stripname ()
21615 {
21616   case ${2} in
21617     .*) func_stripname_result=`$ECHO "X${3}" \
21618            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21619     *)  func_stripname_result=`$ECHO "X${3}" \
21620            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21621   esac
21622 }
21623
21624 # sed scripts:
21625 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21626 my_sed_long_arg='1s/^-[^=]*=//'
21627
21628 # func_opt_split
21629 func_opt_split ()
21630 {
21631   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21632   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21633 }
21634
21635 # func_lo2o object
21636 func_lo2o ()
21637 {
21638   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21639 }
21640
21641 # func_xform libobj-or-source
21642 func_xform ()
21643 {
21644   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21645 }
21646
21647 # func_arith arithmetic-term...
21648 func_arith ()
21649 {
21650   func_arith_result=`expr "$@"`
21651 }
21652
21653 # func_len string
21654 # STRING may not start with a hyphen.
21655 func_len ()
21656 {
21657   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21658 }
21659
21660 _LT_EOF
21661 esac
21662
21663 case $lt_shell_append in
21664   yes)
21665     cat << \_LT_EOF >> "$cfgfile"
21666
21667 # func_append var value
21668 # Append VALUE to the end of shell variable VAR.
21669 func_append ()
21670 {
21671   eval "$1+=\$2"
21672 }
21673 _LT_EOF
21674     ;;
21675   *)
21676     cat << \_LT_EOF >> "$cfgfile"
21677
21678 # func_append var value
21679 # Append VALUE to the end of shell variable VAR.
21680 func_append ()
21681 {
21682   eval "$1=\$$1\$2"
21683 }
21684
21685 _LT_EOF
21686     ;;
21687   esac
21688
21689
21690   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21691     || (rm -f "$cfgfile"; exit 1)
21692
21693   mv -f "$cfgfile" "$ofile" ||
21694     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21695   chmod +x "$ofile"
21696
21697
21698     cat <<_LT_EOF >> "$ofile"
21699
21700 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21701
21702 # The linker used to build libraries.
21703 LD=$lt_LD_CXX
21704
21705 # Commands used to build an old-style archive.
21706 old_archive_cmds=$lt_old_archive_cmds_CXX
21707
21708 # A language specific compiler.
21709 CC=$lt_compiler_CXX
21710
21711 # Is the compiler the GNU compiler?
21712 with_gcc=$GCC_CXX
21713
21714 # Compiler flag to turn off builtin functions.
21715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21716
21717 # How to pass a linker flag through the compiler.
21718 wl=$lt_lt_prog_compiler_wl_CXX
21719
21720 # Additional compiler flags for building library objects.
21721 pic_flag=$lt_lt_prog_compiler_pic_CXX
21722
21723 # Compiler flag to prevent dynamic linking.
21724 link_static_flag=$lt_lt_prog_compiler_static_CXX
21725
21726 # Does compiler simultaneously support -c and -o options?
21727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21728
21729 # Whether or not to add -lc for building shared libraries.
21730 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21731
21732 # Whether or not to disallow shared libs when runtime libs are static.
21733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21734
21735 # Compiler flag to allow reflexive dlopens.
21736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21737
21738 # Compiler flag to generate shared objects directly from archives.
21739 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21740
21741 # Whether the compiler copes with passing no objects directly.
21742 compiler_needs_object=$lt_compiler_needs_object_CXX
21743
21744 # Create an old-style archive from a shared archive.
21745 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21746
21747 # Create a temporary old-style archive to link instead of a shared archive.
21748 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21749
21750 # Commands used to build a shared archive.
21751 archive_cmds=$lt_archive_cmds_CXX
21752 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21753
21754 # Commands used to build a loadable module if different from building
21755 # a shared archive.
21756 module_cmds=$lt_module_cmds_CXX
21757 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21758
21759 # Whether we are building with GNU ld or not.
21760 with_gnu_ld=$lt_with_gnu_ld_CXX
21761
21762 # Flag that allows shared libraries with undefined symbols to be built.
21763 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21764
21765 # Flag that enforces no undefined symbols.
21766 no_undefined_flag=$lt_no_undefined_flag_CXX
21767
21768 # Flag to hardcode \$libdir into a binary during linking.
21769 # This must work even if \$libdir does not exist
21770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21771
21772 # If ld is used when linking, flag to hardcode \$libdir into a binary
21773 # during linking.  This must work even if \$libdir does not exist.
21774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21775
21776 # Whether we need a single "-rpath" flag with a separated argument.
21777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21778
21779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21780 # DIR into the resulting binary.
21781 hardcode_direct=$hardcode_direct_CXX
21782
21783 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21784 # DIR into the resulting binary and the resulting library dependency is
21785 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21786 # library is relocated.
21787 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21788
21789 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21790 # into the resulting binary.
21791 hardcode_minus_L=$hardcode_minus_L_CXX
21792
21793 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21794 # into the resulting binary.
21795 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21796
21797 # Set to "yes" if building a shared library automatically hardcodes DIR
21798 # into the library and all subsequent libraries and executables linked
21799 # against it.
21800 hardcode_automatic=$hardcode_automatic_CXX
21801
21802 # Set to yes if linker adds runtime paths of dependent libraries
21803 # to runtime path list.
21804 inherit_rpath=$inherit_rpath_CXX
21805
21806 # Whether libtool must link a program against all its dependency libraries.
21807 link_all_deplibs=$link_all_deplibs_CXX
21808
21809 # Fix the shell variable \$srcfile for the compiler.
21810 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21811
21812 # Set to "yes" if exported symbols are required.
21813 always_export_symbols=$always_export_symbols_CXX
21814
21815 # The commands to list exported symbols.
21816 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21817
21818 # Symbols that should not be listed in the preloaded symbols.
21819 exclude_expsyms=$lt_exclude_expsyms_CXX
21820
21821 # Symbols that must always be exported.
21822 include_expsyms=$lt_include_expsyms_CXX
21823
21824 # Commands necessary for linking programs (against libraries) with templates.
21825 prelink_cmds=$lt_prelink_cmds_CXX
21826
21827 # Specify filename containing input files.
21828 file_list_spec=$lt_file_list_spec_CXX
21829
21830 # How to hardcode a shared library path into an executable.
21831 hardcode_action=$hardcode_action_CXX
21832
21833 # The directories searched by this compiler when creating a shared library.
21834 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21835
21836 # Dependencies to place before and after the objects being linked to
21837 # create a shared library.
21838 predep_objects=$lt_predep_objects_CXX
21839 postdep_objects=$lt_postdep_objects_CXX
21840 predeps=$lt_predeps_CXX
21841 postdeps=$lt_postdeps_CXX
21842
21843 # The library search path used internally by the compiler when linking
21844 # a shared library.
21845 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21846
21847 # ### END LIBTOOL TAG CONFIG: CXX
21848 _LT_EOF
21849
21850  ;;
21851     "$ax_create_pkgconfig_generate":C)
21852 pkgconfig_generate="$ax_create_pkgconfig_generate"
21853 if test ! -f "$pkgconfig_generate.in"
21854 then generate="true"
21855 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
21856 then generate="true"
21857 else generate="false";
21858 fi
21859 if $generate ; then
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
21861 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
21862 cat > $pkgconfig_generate.in <<AXEOF
21863 # generated by configure / remove this line to disable regeneration
21864 prefix=@prefix@
21865 exec_prefix=@exec_prefix@
21866 bindir=@bindir@
21867 libdir=@libdir@
21868 datarootdir=@datarootdir@
21869 datadir=@datadir@
21870 sysconfdir=@sysconfdir@
21871 includedir=@includedir@
21872 package=@PACKAGE@
21873 suffix=@suffix@
21874
21875 Name: @PACKAGE_NAME@
21876 Description: @PACKAGE_DESCRIPTION@
21877 Version: @PACKAGE_VERSION@
21878 Requires: @PACKAGE_REQUIRES@
21879 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
21880 Cflags: -I\${includedir} @CPPFLAGS@
21881 AXEOF
21882 fi # DONE generate $pkgconfig_generate.in
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
21884 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
21885 cat >conftest.sed <<AXEOF
21886 s|@prefix@|${pkgconfig_prefix}|
21887 s|@exec_prefix@|${pkgconfig_execprefix}|
21888 s|@bindir@|${pkgconfig_bindir}|
21889 s|@libdir@|${pkgconfig_libdir}|
21890 s|@datarootdir@|${pkgconfig_datarootdir}|
21891 s|@datadir@|${pkgconfig_datadir}|
21892 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21893 s|@includedir@|${pkgconfig_includedir}|
21894 s|@suffix@|${pkgconfig_suffix}|
21895 s|@PACKAGE@|${pkgconfig_package}|
21896 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21897 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21898 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21899 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21900 s|@LIBS@|${pkgconfig_libs}|
21901 s|@LDFLAGS@|${pkgconfig_ldflags}|
21902 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21903 AXEOF
21904 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
21905 if test ! -s $pkgconfig_generate ; then
21906     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
21907 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
21908 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21910 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21911 cat >conftest.sed <<AXEOF
21912 s|@prefix@|${pkgconfig_prefix}|
21913 s|@exec_prefix@|${pkgconfig_execprefix}|
21914 s|@bindir@|${pkgconfig_bindir}|
21915 s|@libdir@|${pkgconfig_src_libdir}|
21916 s|@datarootdir@|${pkgconfig_datarootdir}|
21917 s|@datadir@|${pkgconfig_datadir}|
21918 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21919 s|@includedir@|${pkgconfig_src_headers}|
21920 s|@suffix@|${pkgconfig_suffix}|
21921 s|@PACKAGE@|${pkgconfig_package}|
21922 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21923 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21924 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21925 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21926 s|@LIBS@|${pkgconfig_libs}|
21927 s|@LDFLAGS@|${pkgconfig_ldflags}|
21928 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21929 AXEOF
21930 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
21931 if test ! -s $pkgconfig_uninstalled ; then
21932     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21933 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21934            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
21935 if test ".$pkgconfig_requires_add" != "." ; then
21936            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
21937     else   pkgconfig_requires_add=":" ; fi
21938 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21940 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21941 cat >conftest.sed <<AXEOF
21942 s|@prefix@|\"${pkgconfig_prefix}\"|
21943 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
21944 s|@bindir@|\"${pkgconfig_bindir}\"|
21945 s|@libdir@|\"${pkgconfig_src_libdir}\"|
21946 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
21947 s|@datadir@|\"${pkgconfig_datadir}\"|
21948 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
21949 s|@includedir@|\"${pkgconfig_src_headers}\"|
21950 s|@suffix@|\"${pkgconfig_suffix}\"|
21951 s|@PACKAGE@|\"${pkgconfig_package}\"|
21952 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
21953 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
21954 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
21955 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
21956 s|@LIBS@|\"${pkgconfig_libs}\"|
21957 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
21958 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
21959 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
21960 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
21961 s>Version: *>\\;\\; --modversion|--version) echo >
21962 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
21963 s>Libs: *>\\;\\; --libs) echo >
21964 s>Cflags: *>\\;\\; --cflags) echo >
21965 /--libs)/a\\
21966        $pkgconfig_requires_add
21967 /--cflags)/a\\
21968        $pkgconfig_requires_add\\
21969 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
21970 ;; --uninstalled) exit 0 \\
21971 ;; *) ;; esac done
21972 AXEOF
21973 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
21974 if test ! -s $pkgconfig_uninstalled ; then
21975     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21976 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21977  ;;
21978
21979   esac
21980 done # for ac_tag
21981
21982
21983 as_fn_exit 0
21984 _ACEOF
21985 ac_clean_files=$ac_clean_files_save
21986
21987 test $ac_write_fail = 0 ||
21988   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21989
21990
21991 # configure is writing to config.log, and then calls config.status.
21992 # config.status does its own redirection, appending to config.log.
21993 # Unfortunately, on DOS this fails, as config.log is still kept open
21994 # by configure, so config.status won't be able to write to it; its
21995 # output is simply discarded.  So we exec the FD to /dev/null,
21996 # effectively closing config.log, so it can be properly (re)opened and
21997 # appended to by config.status.  When coming back to configure, we
21998 # need to make the FD available again.
21999 if test "$no_create" != yes; then
22000   ac_cs_success=:
22001   ac_config_status_args=
22002   test "$silent" = yes &&
22003     ac_config_status_args="$ac_config_status_args --quiet"
22004   exec 5>/dev/null
22005   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22006   exec 5>>config.log
22007   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22008   # would make configure fail if this is the last instruction.
22009   $ac_cs_success || as_fn_exit 1
22010 fi
22011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22012   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22013 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22014 fi
22015