Make shared libraries for libshibsp5 not libshibsp4
[shibboleth/sp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for shibboleth 2.4.
4 #
5 # Report bugs to <shibboleth-users@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: shibboleth-users@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='shibboleth'
703 PACKAGE_TARNAME='shibboleth'
704 PACKAGE_VERSION='2.4'
705 PACKAGE_STRING='shibboleth 2.4'
706 PACKAGE_BUGREPORT='shibboleth-users@internet2.edu'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 WANT_SUBDIRS
750 ODBC_LIBS
751 ODBC_CFLAGS
752 ODBC_CONFIG
753 BUILD_AP22_FALSE
754 BUILD_AP22_TRUE
755 BUILD_AP20_FALSE
756 BUILD_AP20_TRUE
757 BUILD_AP13_FALSE
758 BUILD_AP13_TRUE
759 APXS22_INCLUDE
760 APXS22_CFLAGS
761 APU1_CONFIG
762 APR1_CONFIG
763 APXS22
764 APXS2_INCLUDE
765 APXS2_CFLAGS
766 APU_CONFIG
767 APR_CONFIG
768 APXS2
769 APXS_INCLUDE
770 APXS_CFLAGS
771 APXS
772 xs
773 BUILD_MEMCACHED_FALSE
774 BUILD_MEMCACHED_TRUE
775 MEMCACHED_LIBS
776 MEMCACHED_LDFLAGS
777 MEMCACHED_INCLUDE
778 BUILD_FASTCGI_FALSE
779 BUILD_FASTCGI_TRUE
780 FASTCGI_LIBS
781 FASTCGI_LDFLAGS
782 FASTCGI_INCLUDE
783 BUILD_NSAPI_FALSE
784 BUILD_NSAPI_TRUE
785 NSAPI_INCLUDE
786 XMLSEC_LIBS
787 LITE_LIBS
788 OPENSAMLXMLDIR
789 XMLTOOLINGXMLDIR
790 LOG4CPP_CONFIG
791 LOG4SHIB_CONFIG
792 PKG_CONFIG
793 PTHREAD_CFLAGS
794 PTHREAD_LIBS
795 PTHREAD_CC
796 acx_pthread_config
797 CXXCPP
798 CPP
799 OTOOL64
800 OTOOL
801 LIPO
802 NMEDIT
803 DSYMUTIL
804 lt_ECHO
805 RANLIB
806 AR
807 OBJDUMP
808 LN_S
809 NM
810 ac_ct_DUMPBIN
811 DUMPBIN
812 LD
813 FGREP
814 EGREP
815 GREP
816 SED
817 LIBTOOL
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 am__fastdepCXX_FALSE
827 am__fastdepCXX_TRUE
828 CXXDEPMODE
829 ac_ct_CXX
830 CXXFLAGS
831 CXX
832 am__fastdepCC_FALSE
833 am__fastdepCC_TRUE
834 CCDEPMODE
835 AMDEPBACKSLASH
836 AMDEP_FALSE
837 AMDEP_TRUE
838 am__quote
839 am__include
840 DEPDIR
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 DOXYGEN_PAPER_SIZE
849 DX_COND_latex_FALSE
850 DX_COND_latex_TRUE
851 DX_COND_pdf_FALSE
852 DX_COND_pdf_TRUE
853 DX_PDFLATEX
854 DX_FLAG_pdf
855 DX_COND_ps_FALSE
856 DX_COND_ps_TRUE
857 DX_EGREP
858 DX_DVIPS
859 DX_MAKEINDEX
860 DX_LATEX
861 DX_FLAG_ps
862 DX_COND_html_FALSE
863 DX_COND_html_TRUE
864 DX_FLAG_html
865 DX_COND_chi_FALSE
866 DX_COND_chi_TRUE
867 DX_FLAG_chi
868 DX_COND_chm_FALSE
869 DX_COND_chm_TRUE
870 DX_HHC
871 DX_FLAG_chm
872 DX_COND_xml_FALSE
873 DX_COND_xml_TRUE
874 DX_FLAG_xml
875 DX_COND_rtf_FALSE
876 DX_COND_rtf_TRUE
877 DX_FLAG_rtf
878 DX_COND_man_FALSE
879 DX_COND_man_TRUE
880 DX_FLAG_man
881 DX_COND_dot_FALSE
882 DX_COND_dot_TRUE
883 DX_DOT
884 DX_FLAG_dot
885 DX_COND_doc_FALSE
886 DX_COND_doc_TRUE
887 DX_PERL
888 DX_DOXYGEN
889 DX_FLAG_doc
890 DX_ENV
891 DX_DOCDIR
892 DX_CONFIG
893 DX_PROJECT
894 am__untar
895 am__tar
896 AMTAR
897 am__leading_dot
898 SET_MAKE
899 AWK
900 mkdir_p
901 MKDIR_P
902 INSTALL_STRIP_PROGRAM
903 STRIP
904 install_sh
905 MAKEINFO
906 AUTOHEADER
907 AUTOMAKE
908 AUTOCONF
909 ACLOCAL
910 VERSION
911 PACKAGE
912 CYGPATH_W
913 am__isrc
914 INSTALL_DATA
915 INSTALL_SCRIPT
916 INSTALL_PROGRAM
917 target_alias
918 host_alias
919 build_alias
920 LIBS
921 ECHO_T
922 ECHO_N
923 ECHO_C
924 DEFS
925 mandir
926 localedir
927 libdir
928 psdir
929 pdfdir
930 dvidir
931 htmldir
932 infodir
933 docdir
934 oldincludedir
935 includedir
936 localstatedir
937 sharedstatedir
938 sysconfdir
939 datadir
940 datarootdir
941 libexecdir
942 sbindir
943 bindir
944 program_transform_name
945 prefix
946 exec_prefix
947 PACKAGE_URL
948 PACKAGE_BUGREPORT
949 PACKAGE_STRING
950 PACKAGE_VERSION
951 PACKAGE_TARNAME
952 PACKAGE_NAME
953 PATH_SEPARATOR
954 SHELL'
955 ac_subst_files=''
956 ac_user_opts='
957 enable_option_checking
958 enable_doxygen_doc
959 enable_doxygen_dot
960 enable_doxygen_man
961 enable_doxygen_rtf
962 enable_doxygen_xml
963 enable_doxygen_chm
964 enable_doxygen_chi
965 enable_doxygen_html
966 enable_doxygen_ps
967 enable_doxygen_pdf
968 enable_debug
969 enable_dependency_tracking
970 enable_static
971 enable_shared
972 with_pic
973 enable_fast_install
974 with_gnu_ld
975 enable_libtool_lock
976 with_openssl
977 with_log4shib
978 with_log4cpp
979 with_xerces
980 with_xmltooling
981 with_xmlsec
982 with_saml
983 enable_adfs
984 with_nsapi
985 with_fastcgi
986 with_memcached
987 enable_apache_13
988 with_apxs
989 enable_apache_20
990 with_apxs2
991 with_apr
992 with_apu
993 enable_apache_22
994 with_apxs22
995 with_apr1
996 with_apu1
997 enable_odbc
998 with_odbc
999 '
1000       ac_precious_vars='build_alias
1001 host_alias
1002 target_alias
1003 DOXYGEN_PAPER_SIZE
1004 CC
1005 CFLAGS
1006 LDFLAGS
1007 LIBS
1008 CPPFLAGS
1009 CXX
1010 CXXFLAGS
1011 CCC
1012 CPP
1013 CXXCPP'
1014
1015
1016 # Initialize some variables set by options.
1017 ac_init_help=
1018 ac_init_version=false
1019 ac_unrecognized_opts=
1020 ac_unrecognized_sep=
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1024 exec_prefix=NONE
1025 no_create=
1026 no_recursion=
1027 prefix=NONE
1028 program_prefix=NONE
1029 program_suffix=NONE
1030 program_transform_name=s,x,x,
1031 silent=
1032 site=
1033 srcdir=
1034 verbose=
1035 x_includes=NONE
1036 x_libraries=NONE
1037
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1056 htmldir='${docdir}'
1057 dvidir='${docdir}'
1058 pdfdir='${docdir}'
1059 psdir='${docdir}'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1063
1064 ac_prev=
1065 ac_dashdash=
1066 for ac_option
1067 do
1068   # If the previous option needs an argument, assign it.
1069   if test -n "$ac_prev"; then
1070     eval $ac_prev=\$ac_option
1071     ac_prev=
1072     continue
1073   fi
1074
1075   case $ac_option in
1076   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077   *=)   ac_optarg= ;;
1078   *)    ac_optarg=yes ;;
1079   esac
1080
1081   # Accept the important Cygnus configure options, so we can diagnose typos.
1082
1083   case $ac_dashdash$ac_option in
1084   --)
1085     ac_dashdash=yes ;;
1086
1087   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088     ac_prev=bindir ;;
1089   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1090     bindir=$ac_optarg ;;
1091
1092   -build | --build | --buil | --bui | --bu)
1093     ac_prev=build_alias ;;
1094   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1095     build_alias=$ac_optarg ;;
1096
1097   -cache-file | --cache-file | --cache-fil | --cache-fi \
1098   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1099     ac_prev=cache_file ;;
1100   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1101   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1102     cache_file=$ac_optarg ;;
1103
1104   --config-cache | -C)
1105     cache_file=config.cache ;;
1106
1107   -datadir | --datadir | --datadi | --datad)
1108     ac_prev=datadir ;;
1109   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1110     datadir=$ac_optarg ;;
1111
1112   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1113   | --dataroo | --dataro | --datar)
1114     ac_prev=datarootdir ;;
1115   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1116   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1117     datarootdir=$ac_optarg ;;
1118
1119   -disable-* | --disable-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error $? "invalid feature name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "enable_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval enable_$ac_useropt=no ;;
1134
1135   -docdir | --docdir | --docdi | --doc | --do)
1136     ac_prev=docdir ;;
1137   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1138     docdir=$ac_optarg ;;
1139
1140   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141     ac_prev=dvidir ;;
1142   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1143     dvidir=$ac_optarg ;;
1144
1145   -enable-* | --enable-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid feature name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "enable_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval enable_$ac_useropt=\$ac_optarg ;;
1160
1161   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1162   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1163   | --exec | --exe | --ex)
1164     ac_prev=exec_prefix ;;
1165   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1166   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1167   | --exec=* | --exe=* | --ex=*)
1168     exec_prefix=$ac_optarg ;;
1169
1170   -gas | --gas | --ga | --g)
1171     # Obsolete; use --with-gas.
1172     with_gas=yes ;;
1173
1174   -help | --help | --hel | --he | -h)
1175     ac_init_help=long ;;
1176   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1177     ac_init_help=recursive ;;
1178   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1179     ac_init_help=short ;;
1180
1181   -host | --host | --hos | --ho)
1182     ac_prev=host_alias ;;
1183   -host=* | --host=* | --hos=* | --ho=*)
1184     host_alias=$ac_optarg ;;
1185
1186   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1187     ac_prev=htmldir ;;
1188   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1189   | --ht=*)
1190     htmldir=$ac_optarg ;;
1191
1192   -includedir | --includedir | --includedi | --included | --include \
1193   | --includ | --inclu | --incl | --inc)
1194     ac_prev=includedir ;;
1195   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1196   | --includ=* | --inclu=* | --incl=* | --inc=*)
1197     includedir=$ac_optarg ;;
1198
1199   -infodir | --infodir | --infodi | --infod | --info | --inf)
1200     ac_prev=infodir ;;
1201   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1202     infodir=$ac_optarg ;;
1203
1204   -libdir | --libdir | --libdi | --libd)
1205     ac_prev=libdir ;;
1206   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1207     libdir=$ac_optarg ;;
1208
1209   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1210   | --libexe | --libex | --libe)
1211     ac_prev=libexecdir ;;
1212   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1213   | --libexe=* | --libex=* | --libe=*)
1214     libexecdir=$ac_optarg ;;
1215
1216   -localedir | --localedir | --localedi | --localed | --locale)
1217     ac_prev=localedir ;;
1218   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1219     localedir=$ac_optarg ;;
1220
1221   -localstatedir | --localstatedir | --localstatedi | --localstated \
1222   | --localstate | --localstat | --localsta | --localst | --locals)
1223     ac_prev=localstatedir ;;
1224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1225   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1226     localstatedir=$ac_optarg ;;
1227
1228   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1229     ac_prev=mandir ;;
1230   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1231     mandir=$ac_optarg ;;
1232
1233   -nfp | --nfp | --nf)
1234     # Obsolete; use --without-fp.
1235     with_fp=no ;;
1236
1237   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1238   | --no-cr | --no-c | -n)
1239     no_create=yes ;;
1240
1241   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1242   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243     no_recursion=yes ;;
1244
1245   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1246   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1247   | --oldin | --oldi | --old | --ol | --o)
1248     ac_prev=oldincludedir ;;
1249   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1250   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1251   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1252     oldincludedir=$ac_optarg ;;
1253
1254   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1255     ac_prev=prefix ;;
1256   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1257     prefix=$ac_optarg ;;
1258
1259   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1260   | --program-pre | --program-pr | --program-p)
1261     ac_prev=program_prefix ;;
1262   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1263   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1264     program_prefix=$ac_optarg ;;
1265
1266   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1267   | --program-suf | --program-su | --program-s)
1268     ac_prev=program_suffix ;;
1269   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1270   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1271     program_suffix=$ac_optarg ;;
1272
1273   -program-transform-name | --program-transform-name \
1274   | --program-transform-nam | --program-transform-na \
1275   | --program-transform-n | --program-transform- \
1276   | --program-transform | --program-transfor \
1277   | --program-transfo | --program-transf \
1278   | --program-trans | --program-tran \
1279   | --progr-tra | --program-tr | --program-t)
1280     ac_prev=program_transform_name ;;
1281   -program-transform-name=* | --program-transform-name=* \
1282   | --program-transform-nam=* | --program-transform-na=* \
1283   | --program-transform-n=* | --program-transform-=* \
1284   | --program-transform=* | --program-transfor=* \
1285   | --program-transfo=* | --program-transf=* \
1286   | --program-trans=* | --program-tran=* \
1287   | --progr-tra=* | --program-tr=* | --program-t=*)
1288     program_transform_name=$ac_optarg ;;
1289
1290   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1291     ac_prev=pdfdir ;;
1292   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1293     pdfdir=$ac_optarg ;;
1294
1295   -psdir | --psdir | --psdi | --psd | --ps)
1296     ac_prev=psdir ;;
1297   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298     psdir=$ac_optarg ;;
1299
1300   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301   | -silent | --silent | --silen | --sile | --sil)
1302     silent=yes ;;
1303
1304   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305     ac_prev=sbindir ;;
1306   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307   | --sbi=* | --sb=*)
1308     sbindir=$ac_optarg ;;
1309
1310   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1311   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1312   | --sharedst | --shareds | --shared | --share | --shar \
1313   | --sha | --sh)
1314     ac_prev=sharedstatedir ;;
1315   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1316   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1317   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318   | --sha=* | --sh=*)
1319     sharedstatedir=$ac_optarg ;;
1320
1321   -site | --site | --sit)
1322     ac_prev=site ;;
1323   -site=* | --site=* | --sit=*)
1324     site=$ac_optarg ;;
1325
1326   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327     ac_prev=srcdir ;;
1328   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1329     srcdir=$ac_optarg ;;
1330
1331   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1332   | --syscon | --sysco | --sysc | --sys | --sy)
1333     ac_prev=sysconfdir ;;
1334   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1335   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1336     sysconfdir=$ac_optarg ;;
1337
1338   -target | --target | --targe | --targ | --tar | --ta | --t)
1339     ac_prev=target_alias ;;
1340   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1341     target_alias=$ac_optarg ;;
1342
1343   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344     verbose=yes ;;
1345
1346   -version | --version | --versio | --versi | --vers | -V)
1347     ac_init_version=: ;;
1348
1349   -with-* | --with-*)
1350     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1351     # Reject names that are not valid shell variable names.
1352     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353       as_fn_error $? "invalid package name: $ac_useropt"
1354     ac_useropt_orig=$ac_useropt
1355     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356     case $ac_user_opts in
1357       *"
1358 "with_$ac_useropt"
1359 "*) ;;
1360       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1361          ac_unrecognized_sep=', ';;
1362     esac
1363     eval with_$ac_useropt=\$ac_optarg ;;
1364
1365   -without-* | --without-*)
1366     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1367     # Reject names that are not valid shell variable names.
1368     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369       as_fn_error $? "invalid package name: $ac_useropt"
1370     ac_useropt_orig=$ac_useropt
1371     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372     case $ac_user_opts in
1373       *"
1374 "with_$ac_useropt"
1375 "*) ;;
1376       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377          ac_unrecognized_sep=', ';;
1378     esac
1379     eval with_$ac_useropt=no ;;
1380
1381   --x)
1382     # Obsolete; use --with-x.
1383     with_x=yes ;;
1384
1385   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386   | --x-incl | --x-inc | --x-in | --x-i)
1387     ac_prev=x_includes ;;
1388   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390     x_includes=$ac_optarg ;;
1391
1392   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394     ac_prev=x_libraries ;;
1395   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397     x_libraries=$ac_optarg ;;
1398
1399   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1400 Try \`$0 --help' for more information"
1401     ;;
1402
1403   *=*)
1404     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1405     # Reject names that are not valid shell variable names.
1406     case $ac_envvar in #(
1407       '' | [0-9]* | *[!_$as_cr_alnum]* )
1408       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1409     esac
1410     eval $ac_envvar=\$ac_optarg
1411     export $ac_envvar ;;
1412
1413   *)
1414     # FIXME: should be removed in autoconf 3.0.
1415     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1416     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1418     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419     ;;
1420
1421   esac
1422 done
1423
1424 if test -n "$ac_prev"; then
1425   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426   as_fn_error $? "missing argument to $ac_option"
1427 fi
1428
1429 if test -n "$ac_unrecognized_opts"; then
1430   case $enable_option_checking in
1431     no) ;;
1432     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1433     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434   esac
1435 fi
1436
1437 # Check all directory arguments for consistency.
1438 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1439                 datadir sysconfdir sharedstatedir localstatedir includedir \
1440                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1441                 libdir localedir mandir
1442 do
1443   eval ac_val=\$$ac_var
1444   # Remove trailing slashes.
1445   case $ac_val in
1446     */ )
1447       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1448       eval $ac_var=\$ac_val;;
1449   esac
1450   # Be sure to have absolute directory names.
1451   case $ac_val in
1452     [\\/$]* | ?:[\\/]* )  continue;;
1453     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454   esac
1455   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1456 done
1457
1458 # There might be people who depend on the old broken behavior: `$host'
1459 # used to hold the argument of --host etc.
1460 # FIXME: To remove some day.
1461 build=$build_alias
1462 host=$host_alias
1463 target=$target_alias
1464
1465 # FIXME: To remove some day.
1466 if test "x$host_alias" != x; then
1467   if test "x$build_alias" = x; then
1468     cross_compiling=maybe
1469     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1470     If a cross compiler is detected then cross compile mode will be used" >&2
1471   elif test "x$build_alias" != "x$host_alias"; then
1472     cross_compiling=yes
1473   fi
1474 fi
1475
1476 ac_tool_prefix=
1477 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478
1479 test "$silent" = yes && exec 6>/dev/null
1480
1481
1482 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1483 ac_ls_di=`ls -di .` &&
1484 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1485   as_fn_error $? "working directory cannot be determined"
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   as_fn_error $? "pwd does not report name of working directory"
1488
1489
1490 # Find the source files, if location was not specified.
1491 if test -z "$srcdir"; then
1492   ac_srcdir_defaulted=yes
1493   # Try the directory containing this script, then the parent directory.
1494   ac_confdir=`$as_dirname -- "$as_myself" ||
1495 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496          X"$as_myself" : 'X\(//\)[^/]' \| \
1497          X"$as_myself" : 'X\(//\)$' \| \
1498          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499 $as_echo X"$as_myself" |
1500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\/\)[^/].*/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)$/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\).*/{
1513             s//\1/
1514             q
1515           }
1516           s/.*/./; q'`
1517   srcdir=$ac_confdir
1518   if test ! -r "$srcdir/$ac_unique_file"; then
1519     srcdir=..
1520   fi
1521 else
1522   ac_srcdir_defaulted=no
1523 fi
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1527 fi
1528 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 ac_abs_confdir=`(
1530         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1531         pwd)`
1532 # When building in place, set srcdir=.
1533 if test "$ac_abs_confdir" = "$ac_pwd"; then
1534   srcdir=.
1535 fi
1536 # Remove unnecessary trailing slashes from srcdir.
1537 # Double slashes in file names in object file debugging info
1538 # mess up M-x gdb in Emacs.
1539 case $srcdir in
1540 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 esac
1542 for ac_var in $ac_precious_vars; do
1543   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1544   eval ac_env_${ac_var}_value=\$${ac_var}
1545   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1546   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547 done
1548
1549 #
1550 # Report the --help message.
1551 #
1552 if test "$ac_init_help" = "long"; then
1553   # Omit some internal or obsolete options to make the list less imposing.
1554   # This message is too long to be a string in the A/UX 3.1 sh.
1555   cat <<_ACEOF
1556 \`configure' configures shibboleth 2.4 to adapt to many kinds of systems.
1557
1558 Usage: $0 [OPTION]... [VAR=VALUE]...
1559
1560 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1561 VAR=VALUE.  See below for descriptions of some of the useful variables.
1562
1563 Defaults for the options are specified in brackets.
1564
1565 Configuration:
1566   -h, --help              display this help and exit
1567       --help=short        display options specific to this package
1568       --help=recursive    display the short help of all the included packages
1569   -V, --version           display version information and exit
1570   -q, --quiet, --silent   do not print \`checking ...' messages
1571       --cache-file=FILE   cache test results in FILE [disabled]
1572   -C, --config-cache      alias for \`--cache-file=config.cache'
1573   -n, --no-create         do not create output files
1574       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1575
1576 Installation directories:
1577   --prefix=PREFIX         install architecture-independent files in PREFIX
1578                           [$ac_default_prefix]
1579   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1580                           [PREFIX]
1581
1582 By default, \`make install' will install all the files in
1583 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1584 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1585 for instance \`--prefix=\$HOME'.
1586
1587 For better control, use the options below.
1588
1589 Fine tuning of the installation directories:
1590   --bindir=DIR            user executables [EPREFIX/bin]
1591   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1592   --libexecdir=DIR        program executables [EPREFIX/libexec]
1593   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1594   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1595   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1596   --libdir=DIR            object code libraries [EPREFIX/lib]
1597   --includedir=DIR        C header files [PREFIX/include]
1598   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1599   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1600   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1601   --infodir=DIR           info documentation [DATAROOTDIR/info]
1602   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1603   --mandir=DIR            man documentation [DATAROOTDIR/man]
1604   --docdir=DIR            documentation root [DATAROOTDIR/doc/shibboleth]
1605   --htmldir=DIR           html documentation [DOCDIR]
1606   --dvidir=DIR            dvi documentation [DOCDIR]
1607   --pdfdir=DIR            pdf documentation [DOCDIR]
1608   --psdir=DIR             ps documentation [DOCDIR]
1609 _ACEOF
1610
1611   cat <<\_ACEOF
1612
1613 Program names:
1614   --program-prefix=PREFIX            prepend PREFIX to installed program names
1615   --program-suffix=SUFFIX            append SUFFIX to installed program names
1616   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1617
1618 System types:
1619   --build=BUILD     configure for building on BUILD [guessed]
1620   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1621 _ACEOF
1622 fi
1623
1624 if test -n "$ac_init_help"; then
1625   case $ac_init_help in
1626      short | recursive ) echo "Configuration of shibboleth 2.4:";;
1627    esac
1628   cat <<\_ACEOF
1629
1630 Optional Features:
1631   --disable-option-checking  ignore unrecognized --enable/--with options
1632   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1633   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1634   --disable-doxygen-doc   don't generate any doxygen documentation
1635   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1636   --enable-doxygen-man    generate doxygen manual pages
1637   --enable-doxygen-rtf    generate doxygen RTF documentation
1638   --enable-doxygen-xml    generate doxygen XML documentation
1639   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1640   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1641                           file
1642   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1643   --enable-doxygen-ps     generate doxygen PostScript documentation
1644   --enable-doxygen-pdf    generate doxygen PDF documentation
1645   --enable-debug          Have GCC compile with symbols (Default = no)
1646   --disable-dependency-tracking  speeds up one-time build
1647   --enable-dependency-tracking   do not reject slow dependency extractors
1648   --enable-static[=PKGS]  build static libraries [default=no]
1649   --enable-shared[=PKGS]  build shared libraries [default=yes]
1650   --enable-fast-install[=PKGS]
1651                           optimize for fast installation [default=yes]
1652   --disable-libtool-lock  avoid locking (might break parallel builds)
1653   --disable-adfs          don't build the ADFS module
1654   --enable-apache-13      enable the Apache 1.3 module
1655   --enable-apache-20      enable the Apache 2.0 module
1656   --enable-apache-22      enable the Apache 2.2 module
1657   --disable-odbc          disable the ODBC Storage Service
1658
1659 Optional Packages:
1660   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1661   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1662   --with-pic              try to use only PIC/non-PIC objects [default=use
1663                           both]
1664   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1665   --with-openssl=PATH     where openssl is installed
1666   --with-log4shib=PATH    where log4shib-config is installed
1667   --with-log4cpp=PATH     where log4cpp-config is installed
1668   --with-xerces=PATH      where xerces-c is installed
1669   --with-xmltooling=PATH  where xmltooling-c is installed
1670   --with-xmlsec=PATH      where xmlsec is installed
1671   --with-saml=PATH        where saml is installed
1672   --with-nsapi=DIR        Build NSAPI module for Netscape/iPlanet/SunONE
1673   --with-fastcgi=DIR      Build FastCGI support
1674   --with-memcached=DIR    Build Memcached support
1675   --with-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1676   --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1677   --with-apr=PATH         where apr-config is installed
1678   --with-apu=PATH         where apu-config is installed
1679   --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1680   --with-apr1=PATH        where apr-1-config is installed
1681   --with-apu1=PATH        where apu-1-config is installed
1682   --with-odbc=PATH        directory where odbc is installed
1683
1684 Some influential environment variables:
1685   DOXYGEN_PAPER_SIZE
1686               a4wide (default), a4, letter, legal or executive
1687   CC          C compiler command
1688   CFLAGS      C compiler flags
1689   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1690               nonstandard directory <lib dir>
1691   LIBS        libraries to pass to the linker, e.g. -l<library>
1692   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1693               you have headers in a nonstandard directory <include dir>
1694   CXX         C++ compiler command
1695   CXXFLAGS    C++ compiler flags
1696   CPP         C preprocessor
1697   CXXCPP      C++ preprocessor
1698
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1701
1702 Report bugs to <shibboleth-users@internet2.edu>.
1703 _ACEOF
1704 ac_status=$?
1705 fi
1706
1707 if test "$ac_init_help" = "recursive"; then
1708   # If there are subdirs, report their specific --help.
1709   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710     test -d "$ac_dir" ||
1711       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712       continue
1713     ac_builddir=.
1714
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *)
1718   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719   # A ".." for each directory in $ac_dir_suffix.
1720   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721   case $ac_top_builddir_sub in
1722   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724   esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1730
1731 case $srcdir in
1732   .)  # We are building in place.
1733     ac_srcdir=.
1734     ac_top_srcdir=$ac_top_builddir_sub
1735     ac_abs_top_srcdir=$ac_pwd ;;
1736   [\\/]* | ?:[\\/]* )  # Absolute name.
1737     ac_srcdir=$srcdir$ac_dir_suffix;
1738     ac_top_srcdir=$srcdir
1739     ac_abs_top_srcdir=$srcdir ;;
1740   *) # Relative name.
1741     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742     ac_top_srcdir=$ac_top_build_prefix$srcdir
1743     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747     cd "$ac_dir" || { ac_status=$?; continue; }
1748     # Check for guested configure.
1749     if test -f "$ac_srcdir/configure.gnu"; then
1750       echo &&
1751       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752     elif test -f "$ac_srcdir/configure"; then
1753       echo &&
1754       $SHELL "$ac_srcdir/configure" --help=recursive
1755     else
1756       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757     fi || ac_status=$?
1758     cd "$ac_pwd" || { ac_status=$?; break; }
1759   done
1760 fi
1761
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1764   cat <<\_ACEOF
1765 shibboleth configure 2.4
1766 generated by GNU Autoconf 2.67
1767
1768 Copyright (C) 2010 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772   exit
1773 fi
1774
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1778
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   rm -f conftest.$ac_objext
1786   if { { ac_try="$ac_compile"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_compile") 2>conftest.err
1794   ac_status=$?
1795   if test -s conftest.err; then
1796     grep -v '^ *+' conftest.err >conftest.er1
1797     cat conftest.er1 >&5
1798     mv -f conftest.er1 conftest.err
1799   fi
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; } && {
1802          test -z "$ac_c_werror_flag" ||
1803          test ! -s conftest.err
1804        } && test -s conftest.$ac_objext; then :
1805   ac_retval=0
1806 else
1807   $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810         ac_retval=1
1811 fi
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813   as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_compile
1816
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   rm -f conftest.$ac_objext
1824   if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827   *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831   (eval "$ac_compile") 2>conftest.err
1832   ac_status=$?
1833   if test -s conftest.err; then
1834     grep -v '^ *+' conftest.err >conftest.er1
1835     cat conftest.er1 >&5
1836     mv -f conftest.er1 conftest.err
1837   fi
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; } && {
1840          test -z "$ac_cxx_werror_flag" ||
1841          test ! -s conftest.err
1842        } && test -s conftest.$ac_objext; then :
1843   ac_retval=0
1844 else
1845   $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848         ac_retval=1
1849 fi
1850   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851   as_fn_set_status $ac_retval
1852
1853 } # ac_fn_cxx_try_compile
1854
1855 # ac_fn_c_try_link LINENO
1856 # -----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_link ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   rm -f conftest.$ac_objext conftest$ac_exeext
1862   if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_link") 2>conftest.err
1870   ac_status=$?
1871   if test -s conftest.err; then
1872     grep -v '^ *+' conftest.err >conftest.er1
1873     cat conftest.er1 >&5
1874     mv -f conftest.er1 conftest.err
1875   fi
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } && {
1878          test -z "$ac_c_werror_flag" ||
1879          test ! -s conftest.err
1880        } && test -s conftest$ac_exeext && {
1881          test "$cross_compiling" = yes ||
1882          $as_test_x conftest$ac_exeext
1883        }; then :
1884   ac_retval=0
1885 else
1886   $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889         ac_retval=1
1890 fi
1891   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893   # interfere with the next link command; also delete a directory that is
1894   # left behind by Apple's compiler.  We do this before executing the actions.
1895   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_link
1900
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval "test \"\${$3+set}\"" = set; then :
1911   $as_echo_n "(cached) " >&6
1912 else
1913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 $4
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919   eval "$3=yes"
1920 else
1921   eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
1930 } # ac_fn_c_check_header_compile
1931
1932 # ac_fn_c_try_cpp LINENO
1933 # ----------------------
1934 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_cpp ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   if { { ac_try="$ac_cpp conftest.$ac_ext"
1939 case "(($ac_try" in
1940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941   *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1946   ac_status=$?
1947   if test -s conftest.err; then
1948     grep -v '^ *+' conftest.err >conftest.er1
1949     cat conftest.er1 >&5
1950     mv -f conftest.er1 conftest.err
1951   fi
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } > conftest.i && {
1954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1955          test ! -s conftest.err
1956        }; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962     ac_retval=1
1963 fi
1964   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965   as_fn_set_status $ac_retval
1966
1967 } # ac_fn_c_try_cpp
1968
1969 # ac_fn_c_try_run LINENO
1970 # ----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1972 # that executables *can* be run.
1973 ac_fn_c_try_run ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   if { { ac_try="$ac_link"
1977 case "(($ac_try" in
1978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979   *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983   (eval "$ac_link") 2>&5
1984   ac_status=$?
1985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1987   { { case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_try") 2>&5
1994   ac_status=$?
1995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996   test $ac_status = 0; }; }; then :
1997   ac_retval=0
1998 else
1999   $as_echo "$as_me: program exited with status $ac_status" >&5
2000        $as_echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2002
2003        ac_retval=$ac_status
2004 fi
2005   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2007   as_fn_set_status $ac_retval
2008
2009 } # ac_fn_c_try_run
2010
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval "test \"\${$3+set}\"" = set; then :
2020   $as_echo_n "(cached) " >&6
2021 else
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2026 #define $2 innocuous_$2
2027
2028 /* System header to define __stub macros and hopefully few prototypes,
2029     which can conflict with char $2 (); below.
2030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2031     <limits.h> exists even on freestanding compilers.  */
2032
2033 #ifdef __STDC__
2034 # include <limits.h>
2035 #else
2036 # include <assert.h>
2037 #endif
2038
2039 #undef $2
2040
2041 /* Override any GCC internal prototype to avoid an error.
2042    Use char because int might match the return type of a GCC
2043    builtin and then its argument prototype would still apply.  */
2044 #ifdef __cplusplus
2045 extern "C"
2046 #endif
2047 char $2 ();
2048 /* The GNU C library defines this for functions which it implements
2049     to always fail with ENOSYS.  Some functions are actually named
2050     something starting with __ and the normal name is an alias.  */
2051 #if defined __stub_$2 || defined __stub___$2
2052 choke me
2053 #endif
2054
2055 int
2056 main ()
2057 {
2058 return $2 ();
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_link "$LINENO"; then :
2064   eval "$3=yes"
2065 else
2066   eval "$3=no"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext \
2069     conftest$ac_exeext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075
2076 } # ac_fn_c_check_func
2077
2078 # ac_fn_cxx_try_cpp LINENO
2079 # ------------------------
2080 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_cxx_try_cpp ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   if { { ac_try="$ac_cpp conftest.$ac_ext"
2085 case "(($ac_try" in
2086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087   *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2092   ac_status=$?
2093   if test -s conftest.err; then
2094     grep -v '^ *+' conftest.err >conftest.er1
2095     cat conftest.er1 >&5
2096     mv -f conftest.er1 conftest.err
2097   fi
2098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099   test $ac_status = 0; } > conftest.i && {
2100          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2101          test ! -s conftest.err
2102        }; then :
2103   ac_retval=0
2104 else
2105   $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108     ac_retval=1
2109 fi
2110   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111   as_fn_set_status $ac_retval
2112
2113 } # ac_fn_cxx_try_cpp
2114
2115 # ac_fn_cxx_try_link LINENO
2116 # -------------------------
2117 # Try to link conftest.$ac_ext, and return whether this succeeded.
2118 ac_fn_cxx_try_link ()
2119 {
2120   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121   rm -f conftest.$ac_objext conftest$ac_exeext
2122   if { { ac_try="$ac_link"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129   (eval "$ac_link") 2>conftest.err
2130   ac_status=$?
2131   if test -s conftest.err; then
2132     grep -v '^ *+' conftest.err >conftest.er1
2133     cat conftest.er1 >&5
2134     mv -f conftest.er1 conftest.err
2135   fi
2136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137   test $ac_status = 0; } && {
2138          test -z "$ac_cxx_werror_flag" ||
2139          test ! -s conftest.err
2140        } && test -s conftest$ac_exeext && {
2141          test "$cross_compiling" = yes ||
2142          $as_test_x conftest$ac_exeext
2143        }; then :
2144   ac_retval=0
2145 else
2146   $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149         ac_retval=1
2150 fi
2151   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2152   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2153   # interfere with the next link command; also delete a directory that is
2154   # left behind by Apple's compiler.  We do this before executing the actions.
2155   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2156   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157   as_fn_set_status $ac_retval
2158
2159 } # ac_fn_cxx_try_link
2160
2161 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2162 # -------------------------------------------
2163 # Tests whether TYPE exists after having included INCLUDES, setting cache
2164 # variable VAR accordingly.
2165 ac_fn_c_check_type ()
2166 {
2167   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval "test \"\${$3+set}\"" = set; then :
2171   $as_echo_n "(cached) " >&6
2172 else
2173   eval "$3=no"
2174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 if (sizeof ($2))
2181          return 0;
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h.  */
2189 $4
2190 int
2191 main ()
2192 {
2193 if (sizeof (($2)))
2194             return 0;
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200
2201 else
2202   eval "$3=yes"
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 fi
2208 eval ac_res=\$$3
2209                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212
2213 } # ac_fn_c_check_type
2214
2215 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2216 # ---------------------------------------------
2217 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2218 # accordingly.
2219 ac_fn_c_check_decl ()
2220 {
2221   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222   as_decl_name=`echo $2|sed 's/ *(.*//'`
2223   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2225 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2226 if eval "test \"\${$3+set}\"" = set; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int
2233 main ()
2234 {
2235 #ifndef $as_decl_name
2236 #ifdef __cplusplus
2237   (void) $as_decl_use;
2238 #else
2239   (void) $as_decl_name;
2240 #endif
2241 #endif
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248   eval "$3=yes"
2249 else
2250   eval "$3=no"
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 eval ac_res=\$$3
2255                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258
2259 } # ac_fn_c_check_decl
2260
2261 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2262 # -------------------------------------------------------
2263 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2264 # the include files in INCLUDES and setting the cache variable VAR
2265 # accordingly.
2266 ac_fn_c_check_header_mongrel ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   if eval "test \"\${$3+set}\"" = set; then :
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval "test \"\${$3+set}\"" = set; then :
2273   $as_echo_n "(cached) " >&6
2274 fi
2275 eval ac_res=\$$3
2276                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 else
2279   # Is the header compilable?
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2281 $as_echo_n "checking $2 usability... " >&6; }
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $4
2285 #include <$2>
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288   ac_header_compiler=yes
2289 else
2290   ac_header_compiler=no
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2294 $as_echo "$ac_header_compiler" >&6; }
2295
2296 # Is the header present?
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2298 $as_echo_n "checking $2 presence... " >&6; }
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 #include <$2>
2302 _ACEOF
2303 if ac_fn_c_try_cpp "$LINENO"; then :
2304   ac_header_preproc=yes
2305 else
2306   ac_header_preproc=no
2307 fi
2308 rm -f conftest.err conftest.i conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2310 $as_echo "$ac_header_preproc" >&6; }
2311
2312 # So?  What about this header?
2313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2314   yes:no: )
2315     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2316 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2317     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319     ;;
2320   no:yes:* )
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2322 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2324 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2326 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2327     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2328 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2329     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2330 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2331 ( $as_echo "## --------------------------------------------- ##
2332 ## Report this to shibboleth-users@internet2.edu ##
2333 ## --------------------------------------------- ##"
2334      ) | sed "s/^/$as_me: WARNING:     /" >&2
2335     ;;
2336 esac
2337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2338 $as_echo_n "checking for $2... " >&6; }
2339 if eval "test \"\${$3+set}\"" = set; then :
2340   $as_echo_n "(cached) " >&6
2341 else
2342   eval "$3=\$ac_header_compiler"
2343 fi
2344 eval ac_res=\$$3
2345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 fi
2348   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349
2350 } # ac_fn_c_check_header_mongrel
2351
2352 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2353 # ---------------------------------------------------------
2354 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2355 # the include files in INCLUDES and setting the cache variable VAR
2356 # accordingly.
2357 ac_fn_cxx_check_header_mongrel ()
2358 {
2359   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360   if eval "test \"\${$3+set}\"" = set; then :
2361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval "test \"\${$3+set}\"" = set; then :
2364   $as_echo_n "(cached) " >&6
2365 fi
2366 eval ac_res=\$$3
2367                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 else
2370   # Is the header compilable?
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2372 $as_echo_n "checking $2 usability... " >&6; }
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 #include <$2>
2377 _ACEOF
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2379   ac_header_compiler=yes
2380 else
2381   ac_header_compiler=no
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2385 $as_echo "$ac_header_compiler" >&6; }
2386
2387 # Is the header present?
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2389 $as_echo_n "checking $2 presence... " >&6; }
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_cxx_try_cpp "$LINENO"; then :
2395   ac_header_preproc=yes
2396 else
2397   ac_header_preproc=no
2398 fi
2399 rm -f conftest.err conftest.i conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2401 $as_echo "$ac_header_preproc" >&6; }
2402
2403 # So?  What about this header?
2404 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2405   yes:no: )
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2407 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410     ;;
2411   no:yes:* )
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2413 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2415 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2417 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2419 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2421 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2422 ( $as_echo "## --------------------------------------------- ##
2423 ## Report this to shibboleth-users@internet2.edu ##
2424 ## --------------------------------------------- ##"
2425      ) | sed "s/^/$as_me: WARNING:     /" >&2
2426     ;;
2427 esac
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2429 $as_echo_n "checking for $2... " >&6; }
2430 if eval "test \"\${$3+set}\"" = set; then :
2431   $as_echo_n "(cached) " >&6
2432 else
2433   eval "$3=\$ac_header_compiler"
2434 fi
2435 eval ac_res=\$$3
2436                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 fi
2439   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2440
2441 } # ac_fn_cxx_check_header_mongrel
2442
2443 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2444 # ---------------------------------------------------------
2445 # Tests whether HEADER exists and can be compiled using the include files in
2446 # INCLUDES, setting the cache variable VAR accordingly.
2447 ac_fn_cxx_check_header_compile ()
2448 {
2449   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if eval "test \"\${$3+set}\"" = set; then :
2453   $as_echo_n "(cached) " >&6
2454 else
2455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h.  */
2457 $4
2458 #include <$2>
2459 _ACEOF
2460 if ac_fn_cxx_try_compile "$LINENO"; then :
2461   eval "$3=yes"
2462 else
2463   eval "$3=no"
2464 fi
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 fi
2467 eval ac_res=\$$3
2468                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469 $as_echo "$ac_res" >&6; }
2470   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471
2472 } # ac_fn_cxx_check_header_compile
2473 cat >config.log <<_ACEOF
2474 This file contains any messages produced by compilers while
2475 running configure, to aid debugging if configure makes a mistake.
2476
2477 It was created by shibboleth $as_me 2.4, which was
2478 generated by GNU Autoconf 2.67.  Invocation command line was
2479
2480   $ $0 $@
2481
2482 _ACEOF
2483 exec 5>>config.log
2484 {
2485 cat <<_ASUNAME
2486 ## --------- ##
2487 ## Platform. ##
2488 ## --------- ##
2489
2490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2495
2496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2497 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2498
2499 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2500 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2502 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2503 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2504 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2505 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2506
2507 _ASUNAME
2508
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514     $as_echo "PATH: $as_dir"
2515   done
2516 IFS=$as_save_IFS
2517
2518 } >&5
2519
2520 cat >&5 <<_ACEOF
2521
2522
2523 ## ----------- ##
2524 ## Core tests. ##
2525 ## ----------- ##
2526
2527 _ACEOF
2528
2529
2530 # Keep a trace of the command line.
2531 # Strip out --no-create and --no-recursion so they do not pile up.
2532 # Strip out --silent because we don't want to record it for future runs.
2533 # Also quote any args containing shell meta-characters.
2534 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_configure_args=
2536 ac_configure_args0=
2537 ac_configure_args1=
2538 ac_must_keep_next=false
2539 for ac_pass in 1 2
2540 do
2541   for ac_arg
2542   do
2543     case $ac_arg in
2544     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2545     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2546     | -silent | --silent | --silen | --sile | --sil)
2547       continue ;;
2548     *\'*)
2549       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2550     esac
2551     case $ac_pass in
2552     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2553     2)
2554       as_fn_append ac_configure_args1 " '$ac_arg'"
2555       if test $ac_must_keep_next = true; then
2556         ac_must_keep_next=false # Got value, back to normal.
2557       else
2558         case $ac_arg in
2559           *=* | --config-cache | -C | -disable-* | --disable-* \
2560           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2561           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2562           | -with-* | --with-* | -without-* | --without-* | --x)
2563             case "$ac_configure_args0 " in
2564               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2565             esac
2566             ;;
2567           -* ) ac_must_keep_next=true ;;
2568         esac
2569       fi
2570       as_fn_append ac_configure_args " '$ac_arg'"
2571       ;;
2572     esac
2573   done
2574 done
2575 { ac_configure_args0=; unset ac_configure_args0;}
2576 { ac_configure_args1=; unset ac_configure_args1;}
2577
2578 # When interrupted or exit'd, cleanup temporary files, and complete
2579 # config.log.  We remove comments because anyway the quotes in there
2580 # would cause problems or look ugly.
2581 # WARNING: Use '\'' to represent an apostrophe within the trap.
2582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2583 trap 'exit_status=$?
2584   # Save into config.log some information that might help in debugging.
2585   {
2586     echo
2587
2588     $as_echo "## ---------------- ##
2589 ## Cache variables. ##
2590 ## ---------------- ##"
2591     echo
2592     # The following way of writing the cache mishandles newlines in values,
2593 (
2594   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595     eval ac_val=\$$ac_var
2596     case $ac_val in #(
2597     *${as_nl}*)
2598       case $ac_var in #(
2599       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2601       esac
2602       case $ac_var in #(
2603       _ | IFS | as_nl) ;; #(
2604       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605       *) { eval $ac_var=; unset $ac_var;} ;;
2606       esac ;;
2607     esac
2608   done
2609   (set) 2>&1 |
2610     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611     *${as_nl}ac_space=\ *)
2612       sed -n \
2613         "s/'\''/'\''\\\\'\'''\''/g;
2614           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2615       ;; #(
2616     *)
2617       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2618       ;;
2619     esac |
2620     sort
2621 )
2622     echo
2623
2624     $as_echo "## ----------------- ##
2625 ## Output variables. ##
2626 ## ----------------- ##"
2627     echo
2628     for ac_var in $ac_subst_vars
2629     do
2630       eval ac_val=\$$ac_var
2631       case $ac_val in
2632       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633       esac
2634       $as_echo "$ac_var='\''$ac_val'\''"
2635     done | sort
2636     echo
2637
2638     if test -n "$ac_subst_files"; then
2639       $as_echo "## ------------------- ##
2640 ## File substitutions. ##
2641 ## ------------------- ##"
2642       echo
2643       for ac_var in $ac_subst_files
2644       do
2645         eval ac_val=\$$ac_var
2646         case $ac_val in
2647         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648         esac
2649         $as_echo "$ac_var='\''$ac_val'\''"
2650       done | sort
2651       echo
2652     fi
2653
2654     if test -s confdefs.h; then
2655       $as_echo "## ----------- ##
2656 ## confdefs.h. ##
2657 ## ----------- ##"
2658       echo
2659       cat confdefs.h
2660       echo
2661     fi
2662     test "$ac_signal" != 0 &&
2663       $as_echo "$as_me: caught signal $ac_signal"
2664     $as_echo "$as_me: exit $exit_status"
2665   } >&5
2666   rm -f core *.core core.conftest.* &&
2667     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2668     exit $exit_status
2669 ' 0
2670 for ac_signal in 1 2 13 15; do
2671   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 done
2673 ac_signal=0
2674
2675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2676 rm -f -r conftest* confdefs.h
2677
2678 $as_echo "/* confdefs.h */" > confdefs.h
2679
2680 # Predefined preprocessor variables.
2681
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_NAME "$PACKAGE_NAME"
2684 _ACEOF
2685
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2688 _ACEOF
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2692 _ACEOF
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_STRING "$PACKAGE_STRING"
2696 _ACEOF
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2700 _ACEOF
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_URL "$PACKAGE_URL"
2704 _ACEOF
2705
2706
2707 # Let the site file select an alternate cache file if it wants to.
2708 # Prefer an explicitly selected file to automatically selected ones.
2709 ac_site_file1=NONE
2710 ac_site_file2=NONE
2711 if test -n "$CONFIG_SITE"; then
2712   # We do not want a PATH search for config.site.
2713   case $CONFIG_SITE in #((
2714     -*)  ac_site_file1=./$CONFIG_SITE;;
2715     */*) ac_site_file1=$CONFIG_SITE;;
2716     *)   ac_site_file1=./$CONFIG_SITE;;
2717   esac
2718 elif test "x$prefix" != xNONE; then
2719   ac_site_file1=$prefix/share/config.site
2720   ac_site_file2=$prefix/etc/config.site
2721 else
2722   ac_site_file1=$ac_default_prefix/share/config.site
2723   ac_site_file2=$ac_default_prefix/etc/config.site
2724 fi
2725 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2726 do
2727   test "x$ac_site_file" = xNONE && continue
2728   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2729     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2730 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2731     sed 's/^/| /' "$ac_site_file" >&5
2732     . "$ac_site_file" \
2733       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 as_fn_error $? "failed to load site script $ac_site_file
2736 See \`config.log' for more details" "$LINENO" 5 ; }
2737   fi
2738 done
2739
2740 if test -r "$cache_file"; then
2741   # Some versions of bash will fail to source /dev/null (special files
2742   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2743   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2744     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2745 $as_echo "$as_me: loading cache $cache_file" >&6;}
2746     case $cache_file in
2747       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2748       *)                      . "./$cache_file";;
2749     esac
2750   fi
2751 else
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2753 $as_echo "$as_me: creating cache $cache_file" >&6;}
2754   >$cache_file
2755 fi
2756
2757 # Check that the precious variables saved in the cache have kept the same
2758 # value.
2759 ac_cache_corrupted=false
2760 for ac_var in $ac_precious_vars; do
2761   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2762   eval ac_new_set=\$ac_env_${ac_var}_set
2763   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2764   eval ac_new_val=\$ac_env_${ac_var}_value
2765   case $ac_old_set,$ac_new_set in
2766     set,)
2767       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2768 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2769       ac_cache_corrupted=: ;;
2770     ,set)
2771       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2772 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2773       ac_cache_corrupted=: ;;
2774     ,);;
2775     *)
2776       if test "x$ac_old_val" != "x$ac_new_val"; then
2777         # differences in whitespace do not lead to failure.
2778         ac_old_val_w=`echo x $ac_old_val`
2779         ac_new_val_w=`echo x $ac_new_val`
2780         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2781           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2782 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2783           ac_cache_corrupted=:
2784         else
2785           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2786 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2787           eval $ac_var=\$ac_old_val
2788         fi
2789         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2790 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2791         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2792 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2793       fi;;
2794   esac
2795   # Pass precious variables to config.status.
2796   if test "$ac_new_set" = set; then
2797     case $ac_new_val in
2798     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2799     *) ac_arg=$ac_var=$ac_new_val ;;
2800     esac
2801     case " $ac_configure_args " in
2802       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2803       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2804     esac
2805   fi
2806 done
2807 if $ac_cache_corrupted; then
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2811 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2812   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2813 fi
2814 ## -------------------- ##
2815 ## Main body of script. ##
2816 ## -------------------- ##
2817
2818 ac_ext=c
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823
2824
2825 ac_config_headers="$ac_config_headers config.h"
2826
2827 am__api_version='1.11'
2828
2829 ac_aux_dir=
2830 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2831   if test -f "$ac_dir/install-sh"; then
2832     ac_aux_dir=$ac_dir
2833     ac_install_sh="$ac_aux_dir/install-sh -c"
2834     break
2835   elif test -f "$ac_dir/install.sh"; then
2836     ac_aux_dir=$ac_dir
2837     ac_install_sh="$ac_aux_dir/install.sh -c"
2838     break
2839   elif test -f "$ac_dir/shtool"; then
2840     ac_aux_dir=$ac_dir
2841     ac_install_sh="$ac_aux_dir/shtool install -c"
2842     break
2843   fi
2844 done
2845 if test -z "$ac_aux_dir"; then
2846   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2847 fi
2848
2849 # These three variables are undocumented and unsupported,
2850 # and are intended to be withdrawn in a future Autoconf release.
2851 # They can cause serious problems if a builder's source tree is in a directory
2852 # whose full name contains unusual characters.
2853 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2854 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2855 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2856
2857
2858 # Find a good install program.  We prefer a C program (faster),
2859 # so one script is as good as another.  But avoid the broken or
2860 # incompatible versions:
2861 # SysV /etc/install, /usr/sbin/install
2862 # SunOS /usr/etc/install
2863 # IRIX /sbin/install
2864 # AIX /bin/install
2865 # AmigaOS /C/install, which installs bootblocks on floppy discs
2866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2869 # OS/2's system install, which has a completely different semantic
2870 # ./install, which can be erroneously created by make from ./install.sh.
2871 # Reject install programs that cannot install multiple files.
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2873 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2874 if test -z "$INSTALL"; then
2875 if test "${ac_cv_path_install+set}" = set; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     # Account for people who put trailing slashes in PATH elements.
2884 case $as_dir/ in #((
2885   ./ | .// | /[cC]/* | \
2886   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2887   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2888   /usr/ucb/* ) ;;
2889   *)
2890     # OSF1 and SCO ODT 3.0 have their own names for install.
2891     # Don't use installbsd from OSF since it installs stuff as root
2892     # by default.
2893     for ac_prog in ginstall scoinst install; do
2894       for ac_exec_ext in '' $ac_executable_extensions; do
2895         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2896           if test $ac_prog = install &&
2897             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898             # AIX install.  It has an incompatible calling convention.
2899             :
2900           elif test $ac_prog = install &&
2901             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902             # program-specific install script used by HP pwplus--don't use.
2903             :
2904           else
2905             rm -rf conftest.one conftest.two conftest.dir
2906             echo one > conftest.one
2907             echo two > conftest.two
2908             mkdir conftest.dir
2909             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2910               test -s conftest.one && test -s conftest.two &&
2911               test -s conftest.dir/conftest.one &&
2912               test -s conftest.dir/conftest.two
2913             then
2914               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2915               break 3
2916             fi
2917           fi
2918         fi
2919       done
2920     done
2921     ;;
2922 esac
2923
2924   done
2925 IFS=$as_save_IFS
2926
2927 rm -rf conftest.one conftest.two conftest.dir
2928
2929 fi
2930   if test "${ac_cv_path_install+set}" = set; then
2931     INSTALL=$ac_cv_path_install
2932   else
2933     # As a last resort, use the slow shell script.  Don't cache a
2934     # value for INSTALL within a source directory, because that will
2935     # break other packages using the cache if that directory is
2936     # removed, or if the value is a relative name.
2937     INSTALL=$ac_install_sh
2938   fi
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2941 $as_echo "$INSTALL" >&6; }
2942
2943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2944 # It thinks the first close brace ends the variable substitution.
2945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2946
2947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2948
2949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2952 $as_echo_n "checking whether build environment is sane... " >&6; }
2953 # Just in case
2954 sleep 1
2955 echo timestamp > conftest.file
2956 # Reject unsafe characters in $srcdir or the absolute working directory
2957 # name.  Accept space and tab only in the latter.
2958 am_lf='
2959 '
2960 case `pwd` in
2961   *[\\\"\#\$\&\'\`$am_lf]*)
2962     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2963 esac
2964 case $srcdir in
2965   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2966     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2967 esac
2968
2969 # Do `set' in a subshell so we don't clobber the current shell's
2970 # arguments.  Must try -L first in case configure is actually a
2971 # symlink; some systems play weird games with the mod time of symlinks
2972 # (eg FreeBSD returns the mod time of the symlink's containing
2973 # directory).
2974 if (
2975    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2976    if test "$*" = "X"; then
2977       # -L didn't work.
2978       set X `ls -t "$srcdir/configure" conftest.file`
2979    fi
2980    rm -f conftest.file
2981    if test "$*" != "X $srcdir/configure conftest.file" \
2982       && test "$*" != "X conftest.file $srcdir/configure"; then
2983
2984       # If neither matched, then we have a broken ls.  This can happen
2985       # if, for instance, CONFIG_SHELL is bash and it inherits a
2986       # broken ls alias from the environment.  This has actually
2987       # happened.  Such a system could not be considered "sane".
2988       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2989 alias in your environment" "$LINENO" 5
2990    fi
2991
2992    test "$2" = conftest.file
2993    )
2994 then
2995    # Ok.
2996    :
2997 else
2998    as_fn_error $? "newly created file is older than distributed files!
2999 Check your system clock" "$LINENO" 5
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002 $as_echo "yes" >&6; }
3003 test "$program_prefix" != NONE &&
3004   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005 # Use a double $ so make ignores it.
3006 test "$program_suffix" != NONE &&
3007   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008 # Double any \ or $.
3009 # By default was `s,x,x', remove it if useless.
3010 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3012
3013 # expand $ac_aux_dir to an absolute path
3014 am_aux_dir=`cd $ac_aux_dir && pwd`
3015
3016 if test x"${MISSING+set}" != xset; then
3017   case $am_aux_dir in
3018   *\ * | *\     *)
3019     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3020   *)
3021     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3022   esac
3023 fi
3024 # Use eval to expand $SHELL
3025 if eval "$MISSING --run true"; then
3026   am_missing_run="$MISSING --run "
3027 else
3028   am_missing_run=
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3030 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3031 fi
3032
3033 if test x"${install_sh}" != xset; then
3034   case $am_aux_dir in
3035   *\ * | *\     *)
3036     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3037   *)
3038     install_sh="\${SHELL} $am_aux_dir/install-sh"
3039   esac
3040 fi
3041
3042 # Installed binaries are usually stripped using `strip' when the user
3043 # run `make install-strip'.  However `strip' might not be the right
3044 # tool to use in cross-compilation environments, therefore Automake
3045 # will honor the `STRIP' environment variable to overrule this program.
3046 if test "$cross_compiling" != no; then
3047   if test -n "$ac_tool_prefix"; then
3048   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_STRIP+set}" = set; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if test -n "$STRIP"; then
3056   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063     for ac_exec_ext in '' $ac_executable_extensions; do
3064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 STRIP=$ac_cv_prog_STRIP
3076 if test -n "$STRIP"; then
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078 $as_echo "$STRIP" >&6; }
3079 else
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 if test -z "$ac_cv_prog_STRIP"; then
3087   ac_ct_STRIP=$STRIP
3088   # Extract the first word of "strip", so it can be a program name with args.
3089 set dummy strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$ac_ct_STRIP"; then
3096   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103     for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_ac_ct_STRIP="strip"
3106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116 if test -n "$ac_ct_STRIP"; then
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118 $as_echo "$ac_ct_STRIP" >&6; }
3119 else
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124   if test "x$ac_ct_STRIP" = x; then
3125     STRIP=":"
3126   else
3127     case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133     STRIP=$ac_ct_STRIP
3134   fi
3135 else
3136   STRIP="$ac_cv_prog_STRIP"
3137 fi
3138
3139 fi
3140 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3143 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3144 if test -z "$MKDIR_P"; then
3145   if test "${ac_cv_path_mkdir+set}" = set; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_prog in mkdir gmkdir; do
3154          for ac_exec_ext in '' $ac_executable_extensions; do
3155            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3156            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3157              'mkdir (GNU coreutils) '* | \
3158              'mkdir (coreutils) '* | \
3159              'mkdir (fileutils) '4.1*)
3160                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3161                break 3;;
3162            esac
3163          done
3164        done
3165   done
3166 IFS=$as_save_IFS
3167
3168 fi
3169
3170   test -d ./--version && rmdir ./--version
3171   if test "${ac_cv_path_mkdir+set}" = set; then
3172     MKDIR_P="$ac_cv_path_mkdir -p"
3173   else
3174     # As a last resort, use the slow shell script.  Don't cache a
3175     # value for MKDIR_P within a source directory, because that will
3176     # break other packages using the cache if that directory is
3177     # removed, or if the value is a relative name.
3178     MKDIR_P="$ac_install_sh -d"
3179   fi
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3182 $as_echo "$MKDIR_P" >&6; }
3183
3184 mkdir_p="$MKDIR_P"
3185 case $mkdir_p in
3186   [\\/$]* | ?:[\\/]*) ;;
3187   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3188 esac
3189
3190 for ac_prog in gawk mawk nawk awk
3191 do
3192   # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_AWK+set}" = set; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$AWK"; then
3200   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209     ac_cv_prog_AWK="$ac_prog"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 AWK=$ac_cv_prog_AWK
3220 if test -n "$AWK"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3222 $as_echo "$AWK" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229   test -n "$AWK" && break
3230 done
3231
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3233 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3234 set x ${MAKE-make}
3235 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3236 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   cat >conftest.make <<\_ACEOF
3240 SHELL = /bin/sh
3241 all:
3242         @echo '@@@%%%=$(MAKE)=@@@%%%'
3243 _ACEOF
3244 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3245 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3246   *@@@%%%=?*=@@@%%%*)
3247     eval ac_cv_prog_make_${ac_make}_set=yes;;
3248   *)
3249     eval ac_cv_prog_make_${ac_make}_set=no;;
3250 esac
3251 rm -f conftest.make
3252 fi
3253 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256   SET_MAKE=
3257 else
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260   SET_MAKE="MAKE=${MAKE-make}"
3261 fi
3262
3263 rm -rf .tst 2>/dev/null
3264 mkdir .tst 2>/dev/null
3265 if test -d .tst; then
3266   am__leading_dot=.
3267 else
3268   am__leading_dot=_
3269 fi
3270 rmdir .tst 2>/dev/null
3271
3272 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3273   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3274   # is not polluted with repeated "-I."
3275   am__isrc=' -I$(srcdir)'
3276   # test to see if srcdir already configured
3277   if test -f $srcdir/config.status; then
3278     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3279   fi
3280 fi
3281
3282 # test whether we have cygpath
3283 if test -z "$CYGPATH_W"; then
3284   if (cygpath --version) >/dev/null 2>/dev/null; then
3285     CYGPATH_W='cygpath -w'
3286   else
3287     CYGPATH_W=echo
3288   fi
3289 fi
3290
3291
3292 # Define the identity of the package.
3293  PACKAGE=shibboleth
3294  VERSION=2.4
3295
3296
3297 cat >>confdefs.h <<_ACEOF
3298 #define PACKAGE "$PACKAGE"
3299 _ACEOF
3300
3301
3302 cat >>confdefs.h <<_ACEOF
3303 #define VERSION "$VERSION"
3304 _ACEOF
3305
3306 # Some tools Automake needs.
3307
3308 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3309
3310
3311 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3312
3313
3314 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3315
3316
3317 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3318
3319
3320 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3321
3322 # We need awk for the "check" target.  The system "awk" is bad on
3323 # some platforms.
3324 # Always define AMTAR for backward compatibility.
3325
3326 AMTAR=${AMTAR-"${am_missing_run}tar"}
3327
3328 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3329
3330
3331
3332
3333
3334
3335 # This file is part of Autoconf.                       -*- Autoconf -*-
3336
3337 # Copyright (C) 2004 Oren Ben-Kiki
3338 # This file is distributed under the same terms as the Autoconf macro files.
3339
3340 # Generate automatic documentation using Doxygen. Works in concert with the
3341 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
3342 # following public macros:
3343 #
3344 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
3345 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
3346 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
3347 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
3348 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
3349 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
3350 # paper size.
3351 #
3352 # By default, HTML, PDF and PS documentation is generated as this seems to be
3353 # the most popular and portable combination. MAN pages created by Doxygen are
3354 # usually problematic, though by picking an appropriate subset and doing some
3355 # massaging they might be better than nothing. CHM and RTF are specific for MS
3356 # (note that you can't generate both HTML and CHM at the same time). The XML is
3357 # rather useless unless you apply specialized post-processing to it.
3358 #
3359 # The macro mainly controls the default state of the feature. The use can
3360 # override the default by specifying --enable or --disable. The macros ensure
3361 # that contradictory flags are not given (e.g., --enable-doxygen-html and
3362 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
3363 # Finally, each feature will be automatically disabled (with a warning) if the
3364 # required programs are missing.
3365 #
3366 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
3367 # the following parameters: a one-word name for the project for use as a
3368 # filename base etc., an optional configuration file name (the default is
3369 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
3370 # name (the default is 'doxygen-doc').
3371
3372 ## ----------##
3373 ## Defaults. ##
3374 ## ----------##
3375
3376 DX_ENV=""
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388 # Compatibility with older autoconf versions.
3389
3390
3391 ## --------------- ##
3392 ## Private macros. ##
3393 ## --------------- ##
3394
3395 # DX_ENV_APPEND(VARIABLE, VALUE)
3396 # ------------------------------
3397 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
3398
3399
3400 # DX_DIRNAME_EXPR
3401 # ---------------
3402 # Expand into a shell expression prints the directory part of a path.
3403
3404
3405 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
3406 # -------------------------------------
3407 # Expands according to the M4 (static) status of the feature.
3408
3409
3410 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
3411 # ----------------------------------
3412 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
3413
3414
3415 # DX_TEST_FEATURE(FEATURE)
3416 # ------------------------
3417 # Expand to a shell expression testing whether the feature is active.
3418
3419
3420 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
3421 # -------------------------------------------------
3422 # Verify that a required features has the right state before trying to turn on
3423 # the DX_CURRENT_FEATURE.
3424
3425
3426 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
3427 # ----------------------------------------------------------
3428 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
3429
3430
3431 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
3432 #                CHECK_DEPEND, CLEAR_DEPEND,
3433 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
3434 # --------------------------------------------
3435 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
3436 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
3437 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
3438 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
3439 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
3440 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
3441
3442
3443 ## -------------- ##
3444 ## Public macros. ##
3445 ## -------------- ##
3446
3447 # DX_XXX_FEATURE(DEFAULT_STATE)
3448 # -----------------------------
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
3461 # ---------------------------------------------------------
3462 # PROJECT also serves as the base name for the documentation files.
3463 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
3464
3465
3466 ##### http://autoconf-archive.cryp.to/acx_pthread.html
3467 #
3468 # SYNOPSIS
3469 #
3470 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
3471 #
3472 # DESCRIPTION
3473 #
3474 #   This macro figures out how to build C programs using POSIX threads.
3475 #   It sets the PTHREAD_LIBS output variable to the threads library and
3476 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
3477 #   C compiler flags that are needed. (The user can also force certain
3478 #   compiler flags/libs to be tested by setting these environment
3479 #   variables.)
3480 #
3481 #   Also sets PTHREAD_CC to any special C compiler that is needed for
3482 #   multi-threaded programs (defaults to the value of CC otherwise).
3483 #   (This is necessary on AIX to use the special cc_r compiler alias.)
3484 #
3485 #   NOTE: You are assumed to not only compile your program with these
3486 #   flags, but also link it with them as well. e.g. you should link
3487 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
3488 #   $LIBS
3489 #
3490 #   If you are only building threads programs, you may wish to use
3491 #   these variables in your default LIBS, CFLAGS, and CC:
3492 #
3493 #          LIBS="$PTHREAD_LIBS $LIBS"
3494 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3495 #          CC="$PTHREAD_CC"
3496 #
3497 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
3498 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
3499 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
3500 #
3501 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
3502 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
3503 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
3504 #   default action will define HAVE_PTHREAD.
3505 #
3506 #   Please let the authors know if this macro fails on any platform, or
3507 #   if you have any other suggestions or comments. This macro was based
3508 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
3509 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
3510 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
3511 #   repository. We are also grateful for the helpful feedback of
3512 #   numerous users.
3513 #
3514 # LAST MODIFICATION
3515 #
3516 #   2006-05-29
3517 #
3518 # COPYLEFT
3519 #
3520 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
3521 #
3522 #   This program is free software; you can redistribute it and/or
3523 #   modify it under the terms of the GNU General Public License as
3524 #   published by the Free Software Foundation; either version 2 of the
3525 #   License, or (at your option) any later version.
3526 #
3527 #   This program is distributed in the hope that it will be useful, but
3528 #   WITHOUT ANY WARRANTY; without even the implied warranty of
3529 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3530 #   General Public License for more details.
3531 #
3532 #   You should have received a copy of the GNU General Public License
3533 #   along with this program; if not, write to the Free Software
3534 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3535 #   02111-1307, USA.
3536 #
3537 #   As a special exception, the respective Autoconf Macro's copyright
3538 #   owner gives unlimited permission to copy, distribute and modify the
3539 #   configure scripts that are the output of Autoconf when processing
3540 #   the Macro. You need not follow the terms of the GNU General Public
3541 #   License when using or distributing such scripts, even though
3542 #   portions of the text of the Macro appear in them. The GNU General
3543 #   Public License (GPL) does govern all other use of the material that
3544 #   constitutes the Autoconf Macro.
3545 #
3546 #   This special exception to the GPL applies to versions of the
3547 #   Autoconf Macro released by the Autoconf Macro Archive. When you
3548 #   make and distribute a modified version of the Autoconf Macro, you
3549 #   may extend this special exception to the GPL to apply to your
3550 #   modified version as well.
3551
3552
3553
3554 # Docygen features
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565 # Files:
3566 DX_PROJECT=shibboleth
3567
3568 DX_CONFIG=doxygen.cfg
3569
3570 DX_DOCDIR=doc/api
3571
3572
3573 # Environment variables used inside doxygen.cfg:
3574 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
3575
3576 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
3577
3578 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
3579
3580 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
3581
3582
3583 # Doxygen itself:
3584
3585
3586
3587     # Check whether --enable-doxygen-doc was given.
3588 if test "${enable_doxygen_doc+set}" = set; then :
3589   enableval=$enable_doxygen_doc;
3590 case "$enableval" in
3591 #(
3592 y|Y|yes|Yes|YES)
3593     DX_FLAG_doc=1
3594
3595
3596 ;; #(
3597 n|N|no|No|NO)
3598     DX_FLAG_doc=0
3599
3600 ;; #(
3601 *)
3602     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
3603 ;;
3604 esac
3605
3606 else
3607
3608 DX_FLAG_doc=1
3609
3610
3611
3612 fi
3613
3614 if test "$DX_FLAG_doc" = 1; then
3615
3616 if test -n "$ac_tool_prefix"; then
3617   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
3618 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
3622   $as_echo_n "(cached) " >&6
3623 else
3624   case $DX_DOXYGEN in
3625   [\\/]* | ?:[\\/]*)
3626   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
3627   ;;
3628   *)
3629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634     for ac_exec_ext in '' $ac_executable_extensions; do
3635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3636     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
3637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638     break 2
3639   fi
3640 done
3641   done
3642 IFS=$as_save_IFS
3643
3644   ;;
3645 esac
3646 fi
3647 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
3648 if test -n "$DX_DOXYGEN"; then
3649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
3650 $as_echo "$DX_DOXYGEN" >&6; }
3651 else
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 fi
3658 if test -z "$ac_cv_path_DX_DOXYGEN"; then
3659   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
3660   # Extract the first word of "doxygen", so it can be a program name with args.
3661 set dummy doxygen; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
3665   $as_echo_n "(cached) " >&6
3666 else
3667   case $ac_pt_DX_DOXYGEN in
3668   [\\/]* | ?:[\\/]*)
3669   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
3670   ;;
3671   *)
3672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675   IFS=$as_save_IFS
3676   test -z "$as_dir" && as_dir=.
3677     for ac_exec_ext in '' $ac_executable_extensions; do
3678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
3680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681     break 2
3682   fi
3683 done
3684   done
3685 IFS=$as_save_IFS
3686
3687   ;;
3688 esac
3689 fi
3690 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
3691 if test -n "$ac_pt_DX_DOXYGEN"; then
3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
3693 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
3694 else
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699   if test "x$ac_pt_DX_DOXYGEN" = x; then
3700     DX_DOXYGEN=""
3701   else
3702     case $cross_compiling:$ac_tool_warned in
3703 yes:)
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706 ac_tool_warned=yes ;;
3707 esac
3708     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
3709   fi
3710 else
3711   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
3712 fi
3713
3714 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
3715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
3716 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
3717     DX_FLAG_doc=0
3718
3719 fi
3720
3721
3722 if test -n "$ac_tool_prefix"; then
3723   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}perl; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_path_DX_PERL+set}" = set; then :
3728   $as_echo_n "(cached) " >&6
3729 else
3730   case $DX_PERL in
3731   [\\/]* | ?:[\\/]*)
3732   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
3733   ;;
3734   *)
3735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740     for ac_exec_ext in '' $ac_executable_extensions; do
3741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
3743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744     break 2
3745   fi
3746 done
3747   done
3748 IFS=$as_save_IFS
3749
3750   ;;
3751 esac
3752 fi
3753 DX_PERL=$ac_cv_path_DX_PERL
3754 if test -n "$DX_PERL"; then
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
3756 $as_echo "$DX_PERL" >&6; }
3757 else
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3760 fi
3761
3762
3763 fi
3764 if test -z "$ac_cv_path_DX_PERL"; then
3765   ac_pt_DX_PERL=$DX_PERL
3766   # Extract the first word of "perl", so it can be a program name with args.
3767 set dummy perl; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   case $ac_pt_DX_PERL in
3774   [\\/]* | ?:[\\/]*)
3775   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
3776   ;;
3777   *)
3778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783     for ac_exec_ext in '' $ac_executable_extensions; do
3784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
3786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790   done
3791 IFS=$as_save_IFS
3792
3793   ;;
3794 esac
3795 fi
3796 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
3797 if test -n "$ac_pt_DX_PERL"; then
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
3799 $as_echo "$ac_pt_DX_PERL" >&6; }
3800 else
3801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3803 fi
3804
3805   if test "x$ac_pt_DX_PERL" = x; then
3806     DX_PERL=""
3807   else
3808     case $cross_compiling:$ac_tool_warned in
3809 yes:)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3812 ac_tool_warned=yes ;;
3813 esac
3814     DX_PERL=$ac_pt_DX_PERL
3815   fi
3816 else
3817   DX_PERL="$ac_cv_path_DX_PERL"
3818 fi
3819
3820 if test "$DX_FLAG_doc$DX_PERL" = 1; then
3821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
3822 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
3823     DX_FLAG_doc=0
3824
3825 fi
3826
3827     :
3828 fi
3829 if test "$DX_FLAG_doc" = 1; then
3830      if :; then
3831   DX_COND_doc_TRUE=
3832   DX_COND_doc_FALSE='#'
3833 else
3834   DX_COND_doc_TRUE='#'
3835   DX_COND_doc_FALSE=
3836 fi
3837
3838     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
3839
3840     :
3841 else
3842      if false; then
3843   DX_COND_doc_TRUE=
3844   DX_COND_doc_FALSE='#'
3845 else
3846   DX_COND_doc_TRUE='#'
3847   DX_COND_doc_FALSE=
3848 fi
3849
3850
3851     :
3852 fi
3853
3854
3855 # Dot for graphics:
3856
3857
3858
3859     # Check whether --enable-doxygen-dot was given.
3860 if test "${enable_doxygen_dot+set}" = set; then :
3861   enableval=$enable_doxygen_dot;
3862 case "$enableval" in
3863 #(
3864 y|Y|yes|Yes|YES)
3865     DX_FLAG_dot=1
3866
3867
3868 test "$DX_FLAG_doc" = "1" \
3869 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
3870
3871 ;; #(
3872 n|N|no|No|NO)
3873     DX_FLAG_dot=0
3874
3875 ;; #(
3876 *)
3877     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
3878 ;;
3879 esac
3880
3881 else
3882
3883 DX_FLAG_dot=1
3884
3885
3886 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
3887
3888
3889
3890 fi
3891
3892 if test "$DX_FLAG_dot" = 1; then
3893
3894 if test -n "$ac_tool_prefix"; then
3895   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
3896 set dummy ${ac_tool_prefix}dot; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if test "${ac_cv_path_DX_DOT+set}" = set; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   case $DX_DOT in
3903   [\\/]* | ?:[\\/]*)
3904   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
3905   ;;
3906   *)
3907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912     for ac_exec_ext in '' $ac_executable_extensions; do
3913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
3915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919   done
3920 IFS=$as_save_IFS
3921
3922   ;;
3923 esac
3924 fi
3925 DX_DOT=$ac_cv_path_DX_DOT
3926 if test -n "$DX_DOT"; then
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
3928 $as_echo "$DX_DOT" >&6; }
3929 else
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935 fi
3936 if test -z "$ac_cv_path_DX_DOT"; then
3937   ac_pt_DX_DOT=$DX_DOT
3938   # Extract the first word of "dot", so it can be a program name with args.
3939 set dummy dot; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   case $ac_pt_DX_DOT in
3946   [\\/]* | ?:[\\/]*)
3947   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
3948   ;;
3949   *)
3950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955     for ac_exec_ext in '' $ac_executable_extensions; do
3956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
3958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962   done
3963 IFS=$as_save_IFS
3964
3965   ;;
3966 esac
3967 fi
3968 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
3969 if test -n "$ac_pt_DX_DOT"; then
3970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
3971 $as_echo "$ac_pt_DX_DOT" >&6; }
3972 else
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3975 fi
3976
3977   if test "x$ac_pt_DX_DOT" = x; then
3978     DX_DOT=""
3979   else
3980     case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986     DX_DOT=$ac_pt_DX_DOT
3987   fi
3988 else
3989   DX_DOT="$ac_cv_path_DX_DOT"
3990 fi
3991
3992 if test "$DX_FLAG_dot$DX_DOT" = 1; then
3993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
3994 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
3995     DX_FLAG_dot=0
3996
3997 fi
3998
3999     :
4000 fi
4001 if test "$DX_FLAG_dot" = 1; then
4002      if :; then
4003   DX_COND_dot_TRUE=
4004   DX_COND_dot_FALSE='#'
4005 else
4006   DX_COND_dot_TRUE='#'
4007   DX_COND_dot_FALSE=
4008 fi
4009
4010     DX_ENV="$DX_ENV HAVE_DOT='YES'"
4011
4012              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
4013
4014     :
4015 else
4016      if false; then
4017   DX_COND_dot_TRUE=
4018   DX_COND_dot_FALSE='#'
4019 else
4020   DX_COND_dot_TRUE='#'
4021   DX_COND_dot_FALSE=
4022 fi
4023
4024     DX_ENV="$DX_ENV HAVE_DOT='NO'"
4025
4026     :
4027 fi
4028
4029
4030 # Man pages generation:
4031
4032
4033
4034     # Check whether --enable-doxygen-man was given.
4035 if test "${enable_doxygen_man+set}" = set; then :
4036   enableval=$enable_doxygen_man;
4037 case "$enableval" in
4038 #(
4039 y|Y|yes|Yes|YES)
4040     DX_FLAG_man=1
4041
4042
4043 test "$DX_FLAG_doc" = "1" \
4044 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
4045
4046 ;; #(
4047 n|N|no|No|NO)
4048     DX_FLAG_man=0
4049
4050 ;; #(
4051 *)
4052     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
4053 ;;
4054 esac
4055
4056 else
4057
4058 DX_FLAG_man=0
4059
4060
4061 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
4062
4063
4064
4065 fi
4066
4067 if test "$DX_FLAG_man" = 1; then
4068
4069     :
4070 fi
4071 if test "$DX_FLAG_man" = 1; then
4072      if :; then
4073   DX_COND_man_TRUE=
4074   DX_COND_man_FALSE='#'
4075 else
4076   DX_COND_man_TRUE='#'
4077   DX_COND_man_FALSE=
4078 fi
4079
4080     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
4081
4082     :
4083 else
4084      if false; then
4085   DX_COND_man_TRUE=
4086   DX_COND_man_FALSE='#'
4087 else
4088   DX_COND_man_TRUE='#'
4089   DX_COND_man_FALSE=
4090 fi
4091
4092     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
4093
4094     :
4095 fi
4096
4097
4098 # RTF file generation:
4099
4100
4101
4102     # Check whether --enable-doxygen-rtf was given.
4103 if test "${enable_doxygen_rtf+set}" = set; then :
4104   enableval=$enable_doxygen_rtf;
4105 case "$enableval" in
4106 #(
4107 y|Y|yes|Yes|YES)
4108     DX_FLAG_rtf=1
4109
4110
4111 test "$DX_FLAG_doc" = "1" \
4112 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
4113
4114 ;; #(
4115 n|N|no|No|NO)
4116     DX_FLAG_rtf=0
4117
4118 ;; #(
4119 *)
4120     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
4121 ;;
4122 esac
4123
4124 else
4125
4126 DX_FLAG_rtf=0
4127
4128
4129 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
4130
4131
4132
4133 fi
4134
4135 if test "$DX_FLAG_rtf" = 1; then
4136
4137     :
4138 fi
4139 if test "$DX_FLAG_rtf" = 1; then
4140      if :; then
4141   DX_COND_rtf_TRUE=
4142   DX_COND_rtf_FALSE='#'
4143 else
4144   DX_COND_rtf_TRUE='#'
4145   DX_COND_rtf_FALSE=
4146 fi
4147
4148     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
4149
4150     :
4151 else
4152      if false; then
4153   DX_COND_rtf_TRUE=
4154   DX_COND_rtf_FALSE='#'
4155 else
4156   DX_COND_rtf_TRUE='#'
4157   DX_COND_rtf_FALSE=
4158 fi
4159
4160     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
4161
4162     :
4163 fi
4164
4165
4166 # XML file generation:
4167
4168
4169
4170     # Check whether --enable-doxygen-xml was given.
4171 if test "${enable_doxygen_xml+set}" = set; then :
4172   enableval=$enable_doxygen_xml;
4173 case "$enableval" in
4174 #(
4175 y|Y|yes|Yes|YES)
4176     DX_FLAG_xml=1
4177
4178
4179 test "$DX_FLAG_doc" = "1" \
4180 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
4181
4182 ;; #(
4183 n|N|no|No|NO)
4184     DX_FLAG_xml=0
4185
4186 ;; #(
4187 *)
4188     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
4189 ;;
4190 esac
4191
4192 else
4193
4194 DX_FLAG_xml=0
4195
4196
4197 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
4198
4199
4200
4201 fi
4202
4203 if test "$DX_FLAG_xml" = 1; then
4204
4205     :
4206 fi
4207 if test "$DX_FLAG_xml" = 1; then
4208      if :; then
4209   DX_COND_xml_TRUE=
4210   DX_COND_xml_FALSE='#'
4211 else
4212   DX_COND_xml_TRUE='#'
4213   DX_COND_xml_FALSE=
4214 fi
4215
4216     DX_ENV="$DX_ENV GENERATE_XML='YES'"
4217
4218     :
4219 else
4220      if false; then
4221   DX_COND_xml_TRUE=
4222   DX_COND_xml_FALSE='#'
4223 else
4224   DX_COND_xml_TRUE='#'
4225   DX_COND_xml_FALSE=
4226 fi
4227
4228     DX_ENV="$DX_ENV GENERATE_XML='NO'"
4229
4230     :
4231 fi
4232
4233
4234 # (Compressed) HTML help generation:
4235
4236
4237
4238     # Check whether --enable-doxygen-chm was given.
4239 if test "${enable_doxygen_chm+set}" = set; then :
4240   enableval=$enable_doxygen_chm;
4241 case "$enableval" in
4242 #(
4243 y|Y|yes|Yes|YES)
4244     DX_FLAG_chm=1
4245
4246
4247 test "$DX_FLAG_doc" = "1" \
4248 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
4249
4250 ;; #(
4251 n|N|no|No|NO)
4252     DX_FLAG_chm=0
4253
4254 ;; #(
4255 *)
4256     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
4257 ;;
4258 esac
4259
4260 else
4261
4262 DX_FLAG_chm=0
4263
4264
4265 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
4266
4267
4268
4269 fi
4270
4271 if test "$DX_FLAG_chm" = 1; then
4272
4273 if test -n "$ac_tool_prefix"; then
4274   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
4275 set dummy ${ac_tool_prefix}hhc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_path_DX_HHC+set}" = set; then :
4279   $as_echo_n "(cached) " >&6
4280 else
4281   case $DX_HHC in
4282   [\\/]* | ?:[\\/]*)
4283   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
4284   ;;
4285   *)
4286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289   IFS=$as_save_IFS
4290   test -z "$as_dir" && as_dir=.
4291     for ac_exec_ext in '' $ac_executable_extensions; do
4292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
4294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298   done
4299 IFS=$as_save_IFS
4300
4301   ;;
4302 esac
4303 fi
4304 DX_HHC=$ac_cv_path_DX_HHC
4305 if test -n "$DX_HHC"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
4307 $as_echo "$DX_HHC" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 fi
4315 if test -z "$ac_cv_path_DX_HHC"; then
4316   ac_pt_DX_HHC=$DX_HHC
4317   # Extract the first word of "hhc", so it can be a program name with args.
4318 set dummy hhc; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   case $ac_pt_DX_HHC in
4325   [\\/]* | ?:[\\/]*)
4326   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
4327   ;;
4328   *)
4329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334     for ac_exec_ext in '' $ac_executable_extensions; do
4335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
4337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341   done
4342 IFS=$as_save_IFS
4343
4344   ;;
4345 esac
4346 fi
4347 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
4348 if test -n "$ac_pt_DX_HHC"; then
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
4350 $as_echo "$ac_pt_DX_HHC" >&6; }
4351 else
4352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356   if test "x$ac_pt_DX_HHC" = x; then
4357     DX_HHC=""
4358   else
4359     case $cross_compiling:$ac_tool_warned in
4360 yes:)
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned=yes ;;
4364 esac
4365     DX_HHC=$ac_pt_DX_HHC
4366   fi
4367 else
4368   DX_HHC="$ac_cv_path_DX_HHC"
4369 fi
4370
4371 if test "$DX_FLAG_chm$DX_HHC" = 1; then
4372     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
4373 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
4374     DX_FLAG_chm=0
4375
4376 fi
4377
4378     :
4379 fi
4380 if test "$DX_FLAG_chm" = 1; then
4381      if :; then
4382   DX_COND_chm_TRUE=
4383   DX_COND_chm_FALSE='#'
4384 else
4385   DX_COND_chm_TRUE='#'
4386   DX_COND_chm_FALSE=
4387 fi
4388
4389     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
4390
4391              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
4392
4393              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
4394
4395     :
4396 else
4397      if false; then
4398   DX_COND_chm_TRUE=
4399   DX_COND_chm_FALSE='#'
4400 else
4401   DX_COND_chm_TRUE='#'
4402   DX_COND_chm_FALSE=
4403 fi
4404
4405     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
4406
4407     :
4408 fi
4409
4410
4411 # Seperate CHI file generation.
4412
4413
4414
4415     # Check whether --enable-doxygen-chi was given.
4416 if test "${enable_doxygen_chi+set}" = set; then :
4417   enableval=$enable_doxygen_chi;
4418 case "$enableval" in
4419 #(
4420 y|Y|yes|Yes|YES)
4421     DX_FLAG_chi=1
4422
4423
4424 test "$DX_FLAG_chm" = "1" \
4425 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
4426
4427 ;; #(
4428 n|N|no|No|NO)
4429     DX_FLAG_chi=0
4430
4431 ;; #(
4432 *)
4433     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
4434 ;;
4435 esac
4436
4437 else
4438
4439 DX_FLAG_chi=0
4440
4441
4442 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
4443
4444
4445
4446 fi
4447
4448 if test "$DX_FLAG_chi" = 1; then
4449
4450     :
4451 fi
4452 if test "$DX_FLAG_chi" = 1; then
4453      if :; then
4454   DX_COND_chi_TRUE=
4455   DX_COND_chi_FALSE='#'
4456 else
4457   DX_COND_chi_TRUE='#'
4458   DX_COND_chi_FALSE=
4459 fi
4460
4461     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
4462
4463     :
4464 else
4465      if false; then
4466   DX_COND_chi_TRUE=
4467   DX_COND_chi_FALSE='#'
4468 else
4469   DX_COND_chi_TRUE='#'
4470   DX_COND_chi_FALSE=
4471 fi
4472
4473     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
4474
4475     :
4476 fi
4477
4478
4479 # Plain HTML pages generation:
4480
4481
4482
4483     # Check whether --enable-doxygen-html was given.
4484 if test "${enable_doxygen_html+set}" = set; then :
4485   enableval=$enable_doxygen_html;
4486 case "$enableval" in
4487 #(
4488 y|Y|yes|Yes|YES)
4489     DX_FLAG_html=1
4490
4491
4492 test "$DX_FLAG_doc" = "1" \
4493 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
4494
4495 test "$DX_FLAG_chm" = "0" \
4496 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
4497
4498 ;; #(
4499 n|N|no|No|NO)
4500     DX_FLAG_html=0
4501
4502 ;; #(
4503 *)
4504     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
4505 ;;
4506 esac
4507
4508 else
4509
4510 DX_FLAG_html=1
4511
4512
4513 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
4514
4515
4516 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
4517
4518
4519
4520 fi
4521
4522 if test "$DX_FLAG_html" = 1; then
4523
4524     :
4525 fi
4526 if test "$DX_FLAG_html" = 1; then
4527      if :; then
4528   DX_COND_html_TRUE=
4529   DX_COND_html_FALSE='#'
4530 else
4531   DX_COND_html_TRUE='#'
4532   DX_COND_html_FALSE=
4533 fi
4534
4535     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
4536
4537     :
4538 else
4539      if false; then
4540   DX_COND_html_TRUE=
4541   DX_COND_html_FALSE='#'
4542 else
4543   DX_COND_html_TRUE='#'
4544   DX_COND_html_FALSE=
4545 fi
4546
4547     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
4548
4549     :
4550 fi
4551
4552
4553 # PostScript file generation:
4554
4555
4556
4557     # Check whether --enable-doxygen-ps was given.
4558 if test "${enable_doxygen_ps+set}" = set; then :
4559   enableval=$enable_doxygen_ps;
4560 case "$enableval" in
4561 #(
4562 y|Y|yes|Yes|YES)
4563     DX_FLAG_ps=1
4564
4565
4566 test "$DX_FLAG_doc" = "1" \
4567 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
4568
4569 ;; #(
4570 n|N|no|No|NO)
4571     DX_FLAG_ps=0
4572
4573 ;; #(
4574 *)
4575     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
4576 ;;
4577 esac
4578
4579 else
4580
4581 DX_FLAG_ps=0
4582
4583
4584 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
4585
4586
4587
4588 fi
4589
4590 if test "$DX_FLAG_ps" = 1; then
4591
4592 if test -n "$ac_tool_prefix"; then
4593   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}latex; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   case $DX_LATEX in
4601   [\\/]* | ?:[\\/]*)
4602   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
4603   ;;
4604   *)
4605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610     for ac_exec_ext in '' $ac_executable_extensions; do
4611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
4613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614     break 2
4615   fi
4616 done
4617   done
4618 IFS=$as_save_IFS
4619
4620   ;;
4621 esac
4622 fi
4623 DX_LATEX=$ac_cv_path_DX_LATEX
4624 if test -n "$DX_LATEX"; then
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
4626 $as_echo "$DX_LATEX" >&6; }
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 fi
4634 if test -z "$ac_cv_path_DX_LATEX"; then
4635   ac_pt_DX_LATEX=$DX_LATEX
4636   # Extract the first word of "latex", so it can be a program name with args.
4637 set dummy latex; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   case $ac_pt_DX_LATEX in
4644   [\\/]* | ?:[\\/]*)
4645   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
4646   ;;
4647   *)
4648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653     for ac_exec_ext in '' $ac_executable_extensions; do
4654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
4656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660   done
4661 IFS=$as_save_IFS
4662
4663   ;;
4664 esac
4665 fi
4666 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
4667 if test -n "$ac_pt_DX_LATEX"; then
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
4669 $as_echo "$ac_pt_DX_LATEX" >&6; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675   if test "x$ac_pt_DX_LATEX" = x; then
4676     DX_LATEX=""
4677   else
4678     case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684     DX_LATEX=$ac_pt_DX_LATEX
4685   fi
4686 else
4687   DX_LATEX="$ac_cv_path_DX_LATEX"
4688 fi
4689
4690 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
4691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
4692 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
4693     DX_FLAG_ps=0
4694
4695 fi
4696
4697
4698 if test -n "$ac_tool_prefix"; then
4699   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   case $DX_MAKEINDEX in
4707   [\\/]* | ?:[\\/]*)
4708   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
4709   ;;
4710   *)
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
4719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723   done
4724 IFS=$as_save_IFS
4725
4726   ;;
4727 esac
4728 fi
4729 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
4730 if test -n "$DX_MAKEINDEX"; then
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
4732 $as_echo "$DX_MAKEINDEX" >&6; }
4733 else
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737
4738
4739 fi
4740 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
4741   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
4742   # Extract the first word of "makeindex", so it can be a program name with args.
4743 set dummy makeindex; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
4747   $as_echo_n "(cached) " >&6
4748 else
4749   case $ac_pt_DX_MAKEINDEX in
4750   [\\/]* | ?:[\\/]*)
4751   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
4752   ;;
4753   *)
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_exec_ext in '' $ac_executable_extensions; do
4760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
4762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766   done
4767 IFS=$as_save_IFS
4768
4769   ;;
4770 esac
4771 fi
4772 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
4773 if test -n "$ac_pt_DX_MAKEINDEX"; then
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
4775 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781   if test "x$ac_pt_DX_MAKEINDEX" = x; then
4782     DX_MAKEINDEX=""
4783   else
4784     case $cross_compiling:$ac_tool_warned in
4785 yes:)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788 ac_tool_warned=yes ;;
4789 esac
4790     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
4791   fi
4792 else
4793   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
4794 fi
4795
4796 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
4797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
4798 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
4799     DX_FLAG_ps=0
4800
4801 fi
4802
4803
4804 if test -n "$ac_tool_prefix"; then
4805   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
4806 set dummy ${ac_tool_prefix}dvips; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   case $DX_DVIPS in
4813   [\\/]* | ?:[\\/]*)
4814   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
4815   ;;
4816   *)
4817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
4821   test -z "$as_dir" && as_dir=.
4822     for ac_exec_ext in '' $ac_executable_extensions; do
4823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
4825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826     break 2
4827   fi
4828 done
4829   done
4830 IFS=$as_save_IFS
4831
4832   ;;
4833 esac
4834 fi
4835 DX_DVIPS=$ac_cv_path_DX_DVIPS
4836 if test -n "$DX_DVIPS"; then
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
4838 $as_echo "$DX_DVIPS" >&6; }
4839 else
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845 fi
4846 if test -z "$ac_cv_path_DX_DVIPS"; then
4847   ac_pt_DX_DVIPS=$DX_DVIPS
4848   # Extract the first word of "dvips", so it can be a program name with args.
4849 set dummy dvips; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   case $ac_pt_DX_DVIPS in
4856   [\\/]* | ?:[\\/]*)
4857   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
4858   ;;
4859   *)
4860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865     for ac_exec_ext in '' $ac_executable_extensions; do
4866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
4868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872   done
4873 IFS=$as_save_IFS
4874
4875   ;;
4876 esac
4877 fi
4878 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
4879 if test -n "$ac_pt_DX_DVIPS"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
4881 $as_echo "$ac_pt_DX_DVIPS" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887   if test "x$ac_pt_DX_DVIPS" = x; then
4888     DX_DVIPS=""
4889   else
4890     case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896     DX_DVIPS=$ac_pt_DX_DVIPS
4897   fi
4898 else
4899   DX_DVIPS="$ac_cv_path_DX_DVIPS"
4900 fi
4901
4902 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
4903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
4904 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
4905     DX_FLAG_ps=0
4906
4907 fi
4908
4909
4910 if test -n "$ac_tool_prefix"; then
4911   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
4912 set dummy ${ac_tool_prefix}egrep; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   case $DX_EGREP in
4919   [\\/]* | ?:[\\/]*)
4920   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
4921   ;;
4922   *)
4923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928     for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
4931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935   done
4936 IFS=$as_save_IFS
4937
4938   ;;
4939 esac
4940 fi
4941 DX_EGREP=$ac_cv_path_DX_EGREP
4942 if test -n "$DX_EGREP"; then
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
4944 $as_echo "$DX_EGREP" >&6; }
4945 else
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 fi
4952 if test -z "$ac_cv_path_DX_EGREP"; then
4953   ac_pt_DX_EGREP=$DX_EGREP
4954   # Extract the first word of "egrep", so it can be a program name with args.
4955 set dummy egrep; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   case $ac_pt_DX_EGREP in
4962   [\\/]* | ?:[\\/]*)
4963   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
4964   ;;
4965   *)
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981   ;;
4982 esac
4983 fi
4984 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
4985 if test -n "$ac_pt_DX_EGREP"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
4987 $as_echo "$ac_pt_DX_EGREP" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993   if test "x$ac_pt_DX_EGREP" = x; then
4994     DX_EGREP=""
4995   else
4996     case $cross_compiling:$ac_tool_warned in
4997 yes:)
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000 ac_tool_warned=yes ;;
5001 esac
5002     DX_EGREP=$ac_pt_DX_EGREP
5003   fi
5004 else
5005   DX_EGREP="$ac_cv_path_DX_EGREP"
5006 fi
5007
5008 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
5009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
5010 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
5011     DX_FLAG_ps=0
5012
5013 fi
5014
5015     :
5016 fi
5017 if test "$DX_FLAG_ps" = 1; then
5018      if :; then
5019   DX_COND_ps_TRUE=
5020   DX_COND_ps_FALSE='#'
5021 else
5022   DX_COND_ps_TRUE='#'
5023   DX_COND_ps_FALSE=
5024 fi
5025
5026
5027     :
5028 else
5029      if false; then
5030   DX_COND_ps_TRUE=
5031   DX_COND_ps_FALSE='#'
5032 else
5033   DX_COND_ps_TRUE='#'
5034   DX_COND_ps_FALSE=
5035 fi
5036
5037
5038     :
5039 fi
5040
5041
5042 # PDF file generation:
5043
5044
5045
5046     # Check whether --enable-doxygen-pdf was given.
5047 if test "${enable_doxygen_pdf+set}" = set; then :
5048   enableval=$enable_doxygen_pdf;
5049 case "$enableval" in
5050 #(
5051 y|Y|yes|Yes|YES)
5052     DX_FLAG_pdf=1
5053
5054
5055 test "$DX_FLAG_doc" = "1" \
5056 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
5057
5058 ;; #(
5059 n|N|no|No|NO)
5060     DX_FLAG_pdf=0
5061
5062 ;; #(
5063 *)
5064     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
5065 ;;
5066 esac
5067
5068 else
5069
5070 DX_FLAG_pdf=0
5071
5072
5073 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
5074
5075
5076
5077 fi
5078
5079 if test "$DX_FLAG_pdf" = 1; then
5080
5081 if test -n "$ac_tool_prefix"; then
5082   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   case $DX_PDFLATEX in
5090   [\\/]* | ?:[\\/]*)
5091   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
5092   ;;
5093   *)
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_exec_ext in '' $ac_executable_extensions; do
5100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
5102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106   done
5107 IFS=$as_save_IFS
5108
5109   ;;
5110 esac
5111 fi
5112 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
5113 if test -n "$DX_PDFLATEX"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
5115 $as_echo "$DX_PDFLATEX" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 fi
5123 if test -z "$ac_cv_path_DX_PDFLATEX"; then
5124   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
5125   # Extract the first word of "pdflatex", so it can be a program name with args.
5126 set dummy pdflatex; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   case $ac_pt_DX_PDFLATEX in
5133   [\\/]* | ?:[\\/]*)
5134   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
5135   ;;
5136   *)
5137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149   done
5150 IFS=$as_save_IFS
5151
5152   ;;
5153 esac
5154 fi
5155 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
5156 if test -n "$ac_pt_DX_PDFLATEX"; then
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
5158 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
5159 else
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5162 fi
5163
5164   if test "x$ac_pt_DX_PDFLATEX" = x; then
5165     DX_PDFLATEX=""
5166   else
5167     case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
5174   fi
5175 else
5176   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
5177 fi
5178
5179 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
5180     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
5181 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
5182     DX_FLAG_pdf=0
5183
5184 fi
5185
5186
5187 if test -n "$ac_tool_prefix"; then
5188   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
5189 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   case $DX_MAKEINDEX in
5196   [\\/]* | ?:[\\/]*)
5197   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
5198   ;;
5199   *)
5200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205     for ac_exec_ext in '' $ac_executable_extensions; do
5206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
5208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212   done
5213 IFS=$as_save_IFS
5214
5215   ;;
5216 esac
5217 fi
5218 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
5219 if test -n "$DX_MAKEINDEX"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
5221 $as_echo "$DX_MAKEINDEX" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228 fi
5229 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
5230   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
5231   # Extract the first word of "makeindex", so it can be a program name with args.
5232 set dummy makeindex; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   case $ac_pt_DX_MAKEINDEX in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248     for ac_exec_ext in '' $ac_executable_extensions; do
5249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
5251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255   done
5256 IFS=$as_save_IFS
5257
5258   ;;
5259 esac
5260 fi
5261 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
5262 if test -n "$ac_pt_DX_MAKEINDEX"; then
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
5264 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
5265 else
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270   if test "x$ac_pt_DX_MAKEINDEX" = x; then
5271     DX_MAKEINDEX=""
5272   else
5273     case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5278 esac
5279     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
5280   fi
5281 else
5282   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
5283 fi
5284
5285 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
5286     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
5287 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
5288     DX_FLAG_pdf=0
5289
5290 fi
5291
5292
5293 if test -n "$ac_tool_prefix"; then
5294   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
5295 set dummy ${ac_tool_prefix}egrep; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   case $DX_EGREP in
5302   [\\/]* | ?:[\\/]*)
5303   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
5304   ;;
5305   *)
5306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311     for ac_exec_ext in '' $ac_executable_extensions; do
5312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
5314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318   done
5319 IFS=$as_save_IFS
5320
5321   ;;
5322 esac
5323 fi
5324 DX_EGREP=$ac_cv_path_DX_EGREP
5325 if test -n "$DX_EGREP"; then
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
5327 $as_echo "$DX_EGREP" >&6; }
5328 else
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333
5334 fi
5335 if test -z "$ac_cv_path_DX_EGREP"; then
5336   ac_pt_DX_EGREP=$DX_EGREP
5337   # Extract the first word of "egrep", so it can be a program name with args.
5338 set dummy egrep; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
5342   $as_echo_n "(cached) " >&6
5343 else
5344   case $ac_pt_DX_EGREP in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5363
5364   ;;
5365 esac
5366 fi
5367 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
5368 if test -n "$ac_pt_DX_EGREP"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
5370 $as_echo "$ac_pt_DX_EGREP" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376   if test "x$ac_pt_DX_EGREP" = x; then
5377     DX_EGREP=""
5378   else
5379     case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385     DX_EGREP=$ac_pt_DX_EGREP
5386   fi
5387 else
5388   DX_EGREP="$ac_cv_path_DX_EGREP"
5389 fi
5390
5391 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
5392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
5393 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
5394     DX_FLAG_pdf=0
5395
5396 fi
5397
5398     :
5399 fi
5400 if test "$DX_FLAG_pdf" = 1; then
5401      if :; then
5402   DX_COND_pdf_TRUE=
5403   DX_COND_pdf_FALSE='#'
5404 else
5405   DX_COND_pdf_TRUE='#'
5406   DX_COND_pdf_FALSE=
5407 fi
5408
5409
5410     :
5411 else
5412      if false; then
5413   DX_COND_pdf_TRUE=
5414   DX_COND_pdf_FALSE='#'
5415 else
5416   DX_COND_pdf_TRUE='#'
5417   DX_COND_pdf_FALSE=
5418 fi
5419
5420
5421     :
5422 fi
5423
5424
5425 # LaTeX generation for PS and/or PDF:
5426 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
5427      if :; then
5428   DX_COND_latex_TRUE=
5429   DX_COND_latex_FALSE='#'
5430 else
5431   DX_COND_latex_TRUE='#'
5432   DX_COND_latex_FALSE=
5433 fi
5434
5435     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
5436
5437 else
5438      if false; then
5439   DX_COND_latex_TRUE=
5440   DX_COND_latex_FALSE='#'
5441 else
5442   DX_COND_latex_TRUE='#'
5443   DX_COND_latex_FALSE=
5444 fi
5445
5446     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
5447
5448 fi
5449
5450 # Paper size for PS and/or PDF:
5451
5452 case "$DOXYGEN_PAPER_SIZE" in
5453 #(
5454 "")
5455     DOXYGEN_PAPER_SIZE=""
5456
5457 ;; #(
5458 a4wide|a4|letter|legal|executive)
5459     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
5460
5461 ;; #(
5462 *)
5463     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
5464 ;;
5465 esac
5466
5467 #For debugging:
5468 #echo DX_FLAG_doc=$DX_FLAG_doc
5469 #echo DX_FLAG_dot=$DX_FLAG_dot
5470 #echo DX_FLAG_man=$DX_FLAG_man
5471 #echo DX_FLAG_html=$DX_FLAG_html
5472 #echo DX_FLAG_chm=$DX_FLAG_chm
5473 #echo DX_FLAG_chi=$DX_FLAG_chi
5474 #echo DX_FLAG_rtf=$DX_FLAG_rtf
5475 #echo DX_FLAG_xml=$DX_FLAG_xml
5476 #echo DX_FLAG_pdf=$DX_FLAG_pdf
5477 #echo DX_FLAG_ps=$DX_FLAG_ps
5478 #echo DX_ENV=$DX_ENV
5479
5480 DX_INCLUDE=
5481
5482 # Check whether --enable-debug was given.
5483 if test "${enable_debug+set}" = set; then :
5484   enableval=$enable_debug; enable_debug=$enableval
5485 else
5486   enable_debug=no
5487 fi
5488
5489
5490 if test "$enable_debug" = "yes" ; then
5491     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
5492     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
5493 else
5494     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
5495     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
5496 fi
5497
5498 ac_ext=c
5499 ac_cpp='$CPP $CPPFLAGS'
5500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503 if test -n "$ac_tool_prefix"; then
5504   for ac_prog in gcc gcc3 cc
5505   do
5506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_prog_CC+set}" = set; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$CC"; then
5514   ac_cv_prog_CC="$CC" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528   done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 CC=$ac_cv_prog_CC
5534 if test -n "$CC"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5536 $as_echo "$CC" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543     test -n "$CC" && break
5544   done
5545 fi
5546 if test -z "$CC"; then
5547   ac_ct_CC=$CC
5548   for ac_prog in gcc gcc3 cc
5549 do
5550   # Extract the first word of "$ac_prog", so it can be a program name with args.
5551 set dummy $ac_prog; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   if test -n "$ac_ct_CC"; then
5558   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565     for ac_exec_ext in '' $ac_executable_extensions; do
5566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567     ac_cv_prog_ac_ct_CC="$ac_prog"
5568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572   done
5573 IFS=$as_save_IFS
5574
5575 fi
5576 fi
5577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5578 if test -n "$ac_ct_CC"; then
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5580 $as_echo "$ac_ct_CC" >&6; }
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585
5586
5587   test -n "$ac_ct_CC" && break
5588 done
5589
5590   if test "x$ac_ct_CC" = x; then
5591     CC=""
5592   else
5593     case $cross_compiling:$ac_tool_warned in
5594 yes:)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599     CC=$ac_ct_CC
5600   fi
5601 fi
5602
5603
5604 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5606 as_fn_error $? "no acceptable C compiler found in \$PATH
5607 See \`config.log' for more details" "$LINENO" 5 ; }
5608
5609 # Provide some information about the compiler.
5610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5611 set X $ac_compile
5612 ac_compiler=$2
5613 for ac_option in --version -v -V -qversion; do
5614   { { ac_try="$ac_compiler $ac_option >&5"
5615 case "(($ac_try" in
5616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617   *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5620 $as_echo "$ac_try_echo"; } >&5
5621   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5622   ac_status=$?
5623   if test -s conftest.err; then
5624     sed '10a\
5625 ... rest of stderr output deleted ...
5626          10q' conftest.err >conftest.er1
5627     cat conftest.er1 >&5
5628   fi
5629   rm -f conftest.er1 conftest.err
5630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631   test $ac_status = 0; }
5632 done
5633
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636
5637 int
5638 main ()
5639 {
5640
5641   ;
5642   return 0;
5643 }
5644 _ACEOF
5645 ac_clean_files_save=$ac_clean_files
5646 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5647 # Try to create an executable without -o first, disregard a.out.
5648 # It will help us diagnose broken compilers, and finding out an intuition
5649 # of exeext.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5651 $as_echo_n "checking whether the C compiler works... " >&6; }
5652 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5653
5654 # The possible output files:
5655 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5656
5657 ac_rmfiles=
5658 for ac_file in $ac_files
5659 do
5660   case $ac_file in
5661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5662     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5663   esac
5664 done
5665 rm -f $ac_rmfiles
5666
5667 if { { ac_try="$ac_link_default"
5668 case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674   (eval "$ac_link_default") 2>&5
5675   ac_status=$?
5676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677   test $ac_status = 0; }; then :
5678   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5679 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5680 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5681 # so that the user can short-circuit this test for compilers unknown to
5682 # Autoconf.
5683 for ac_file in $ac_files ''
5684 do
5685   test -f "$ac_file" || continue
5686   case $ac_file in
5687     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5688         ;;
5689     [ab].out )
5690         # We found the default executable, but exeext='' is most
5691         # certainly right.
5692         break;;
5693     *.* )
5694         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5695         then :; else
5696            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5697         fi
5698         # We set ac_cv_exeext here because the later test for it is not
5699         # safe: cross compilers may not add the suffix if given an `-o'
5700         # argument, so we may need to know it at that point already.
5701         # Even if this section looks crufty: it has the advantage of
5702         # actually working.
5703         break;;
5704     * )
5705         break;;
5706   esac
5707 done
5708 test "$ac_cv_exeext" = no && ac_cv_exeext=
5709
5710 else
5711   ac_file=''
5712 fi
5713 if test -z "$ac_file"; then :
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5721 as_fn_error 77 "C compiler cannot create executables
5722 See \`config.log' for more details" "$LINENO" 5 ; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5728 $as_echo_n "checking for C compiler default output file name... " >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5730 $as_echo "$ac_file" >&6; }
5731 ac_exeext=$ac_cv_exeext
5732
5733 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5734 ac_clean_files=$ac_clean_files_save
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5736 $as_echo_n "checking for suffix of executables... " >&6; }
5737 if { { ac_try="$ac_link"
5738 case "(($ac_try" in
5739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740   *) ac_try_echo=$ac_try;;
5741 esac
5742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5743 $as_echo "$ac_try_echo"; } >&5
5744   (eval "$ac_link") 2>&5
5745   ac_status=$?
5746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747   test $ac_status = 0; }; then :
5748   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5749 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5750 # work properly (i.e., refer to `conftest.exe'), while it won't with
5751 # `rm'.
5752 for ac_file in conftest.exe conftest conftest.*; do
5753   test -f "$ac_file" || continue
5754   case $ac_file in
5755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5756     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5757           break;;
5758     * ) break;;
5759   esac
5760 done
5761 else
5762   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5764 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5765 See \`config.log' for more details" "$LINENO" 5 ; }
5766 fi
5767 rm -f conftest conftest$ac_cv_exeext
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5769 $as_echo "$ac_cv_exeext" >&6; }
5770
5771 rm -f conftest.$ac_ext
5772 EXEEXT=$ac_cv_exeext
5773 ac_exeext=$EXEEXT
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h.  */
5776 #include <stdio.h>
5777 int
5778 main ()
5779 {
5780 FILE *f = fopen ("conftest.out", "w");
5781  return ferror (f) || fclose (f) != 0;
5782
5783   ;
5784   return 0;
5785 }
5786 _ACEOF
5787 ac_clean_files="$ac_clean_files conftest.out"
5788 # Check that the compiler produces executables we can run.  If not, either
5789 # the compiler is broken, or we cross compile.
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5791 $as_echo_n "checking whether we are cross compiling... " >&6; }
5792 if test "$cross_compiling" != yes; then
5793   { { ac_try="$ac_link"
5794 case "(($ac_try" in
5795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796   *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5799 $as_echo "$ac_try_echo"; } >&5
5800   (eval "$ac_link") 2>&5
5801   ac_status=$?
5802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803   test $ac_status = 0; }
5804   if { ac_try='./conftest$ac_cv_exeext'
5805   { { case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5810 $as_echo "$ac_try_echo"; } >&5
5811   (eval "$ac_try") 2>&5
5812   ac_status=$?
5813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814   test $ac_status = 0; }; }; then
5815     cross_compiling=no
5816   else
5817     if test "$cross_compiling" = maybe; then
5818         cross_compiling=yes
5819     else
5820         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 as_fn_error $? "cannot run C compiled programs.
5823 If you meant to cross compile, use \`--host'.
5824 See \`config.log' for more details" "$LINENO" 5 ; }
5825     fi
5826   fi
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5829 $as_echo "$cross_compiling" >&6; }
5830
5831 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5832 ac_clean_files=$ac_clean_files_save
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5834 $as_echo_n "checking for suffix of object files... " >&6; }
5835 if test "${ac_cv_objext+set}" = set; then :
5836   $as_echo_n "(cached) " >&6
5837 else
5838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h.  */
5840
5841 int
5842 main ()
5843 {
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.o conftest.obj
5850 if { { ac_try="$ac_compile"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5856 $as_echo "$ac_try_echo"; } >&5
5857   (eval "$ac_compile") 2>&5
5858   ac_status=$?
5859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860   test $ac_status = 0; }; then :
5861   for ac_file in conftest.o conftest.obj conftest.*; do
5862   test -f "$ac_file" || continue;
5863   case $ac_file in
5864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5865     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5866        break;;
5867   esac
5868 done
5869 else
5870   $as_echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5875 as_fn_error $? "cannot compute suffix of object files: cannot compile
5876 See \`config.log' for more details" "$LINENO" 5 ; }
5877 fi
5878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5881 $as_echo "$ac_cv_objext" >&6; }
5882 OBJEXT=$ac_cv_objext
5883 ac_objext=$OBJEXT
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5885 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5886 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895 #ifndef __GNUC__
5896        choke me
5897 #endif
5898
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904   ac_compiler_gnu=yes
5905 else
5906   ac_compiler_gnu=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5910
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5913 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5914 if test $ac_compiler_gnu = yes; then
5915   GCC=yes
5916 else
5917   GCC=
5918 fi
5919 ac_test_CFLAGS=${CFLAGS+set}
5920 ac_save_CFLAGS=$CFLAGS
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5922 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5923 if test "${ac_cv_prog_cc_g+set}" = set; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   ac_save_c_werror_flag=$ac_c_werror_flag
5927    ac_c_werror_flag=yes
5928    ac_cv_prog_cc_g=no
5929    CFLAGS="-g"
5930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h.  */
5932
5933 int
5934 main ()
5935 {
5936
5937   ;
5938   return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942   ac_cv_prog_cc_g=yes
5943 else
5944   CFLAGS=""
5945       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h.  */
5947
5948 int
5949 main ()
5950 {
5951
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_compile "$LINENO"; then :
5957
5958 else
5959   ac_c_werror_flag=$ac_save_c_werror_flag
5960          CFLAGS="-g"
5961          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h.  */
5963
5964 int
5965 main ()
5966 {
5967
5968   ;
5969   return 0;
5970 }
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973   ac_cv_prog_cc_g=yes
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980    ac_c_werror_flag=$ac_save_c_werror_flag
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5983 $as_echo "$ac_cv_prog_cc_g" >&6; }
5984 if test "$ac_test_CFLAGS" = set; then
5985   CFLAGS=$ac_save_CFLAGS
5986 elif test $ac_cv_prog_cc_g = yes; then
5987   if test "$GCC" = yes; then
5988     CFLAGS="-g -O2"
5989   else
5990     CFLAGS="-g"
5991   fi
5992 else
5993   if test "$GCC" = yes; then
5994     CFLAGS="-O2"
5995   else
5996     CFLAGS=
5997   fi
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6000 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6001 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   ac_cv_prog_cc_c89=no
6005 ac_save_CC=$CC
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h.  */
6008 #include <stdarg.h>
6009 #include <stdio.h>
6010 #include <sys/types.h>
6011 #include <sys/stat.h>
6012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6013 struct buf { int x; };
6014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6015 static char *e (p, i)
6016      char **p;
6017      int i;
6018 {
6019   return p[i];
6020 }
6021 static char *f (char * (*g) (char **, int), char **p, ...)
6022 {
6023   char *s;
6024   va_list v;
6025   va_start (v,p);
6026   s = g (p, va_arg (v,int));
6027   va_end (v);
6028   return s;
6029 }
6030
6031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6032    function prototypes and stuff, but not '\xHH' hex character constants.
6033    These don't provoke an error unfortunately, instead are silently treated
6034    as 'x'.  The following induces an error, until -std is added to get
6035    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6036    array size at least.  It's necessary to write '\x00'==0 to get something
6037    that's true only with -std.  */
6038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6039
6040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6041    inside strings and character constants.  */
6042 #define FOO(x) 'x'
6043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6044
6045 int test (int i, double x);
6046 struct s1 {int (*f) (int a);};
6047 struct s2 {int (*f) (double a);};
6048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6049 int argc;
6050 char **argv;
6051 int
6052 main ()
6053 {
6054 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6060         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6061 do
6062   CC="$ac_save_CC $ac_arg"
6063   if ac_fn_c_try_compile "$LINENO"; then :
6064   ac_cv_prog_cc_c89=$ac_arg
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext
6067   test "x$ac_cv_prog_cc_c89" != "xno" && break
6068 done
6069 rm -f conftest.$ac_ext
6070 CC=$ac_save_CC
6071
6072 fi
6073 # AC_CACHE_VAL
6074 case "x$ac_cv_prog_cc_c89" in
6075   x)
6076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6077 $as_echo "none needed" >&6; } ;;
6078   xno)
6079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6080 $as_echo "unsupported" >&6; } ;;
6081   *)
6082     CC="$CC $ac_cv_prog_cc_c89"
6083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6084 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6085 esac
6086 if test "x$ac_cv_prog_cc_c89" != xno; then :
6087
6088 fi
6089
6090 ac_ext=c
6091 ac_cpp='$CPP $CPPFLAGS'
6092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095 DEPDIR="${am__leading_dot}deps"
6096
6097 ac_config_commands="$ac_config_commands depfiles"
6098
6099
6100 am_make=${MAKE-make}
6101 cat > confinc << 'END'
6102 am__doit:
6103         @echo this is the am__doit target
6104 .PHONY: am__doit
6105 END
6106 # If we don't find an include directive, just comment out the code.
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6109 am__include="#"
6110 am__quote=
6111 _am_result=none
6112 # First try GNU make style include.
6113 echo "include confinc" > confmf
6114 # Ignore all kinds of additional output from `make'.
6115 case `$am_make -s -f confmf 2> /dev/null` in #(
6116 *the\ am__doit\ target*)
6117   am__include=include
6118   am__quote=
6119   _am_result=GNU
6120   ;;
6121 esac
6122 # Now try BSD make style include.
6123 if test "$am__include" = "#"; then
6124    echo '.include "confinc"' > confmf
6125    case `$am_make -s -f confmf 2> /dev/null` in #(
6126    *the\ am__doit\ target*)
6127      am__include=.include
6128      am__quote="\""
6129      _am_result=BSD
6130      ;;
6131    esac
6132 fi
6133
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6136 $as_echo "$_am_result" >&6; }
6137 rm -f confinc confmf
6138
6139 # Check whether --enable-dependency-tracking was given.
6140 if test "${enable_dependency_tracking+set}" = set; then :
6141   enableval=$enable_dependency_tracking;
6142 fi
6143
6144 if test "x$enable_dependency_tracking" != xno; then
6145   am_depcomp="$ac_aux_dir/depcomp"
6146   AMDEPBACKSLASH='\'
6147 fi
6148  if test "x$enable_dependency_tracking" != xno; then
6149   AMDEP_TRUE=
6150   AMDEP_FALSE='#'
6151 else
6152   AMDEP_TRUE='#'
6153   AMDEP_FALSE=
6154 fi
6155
6156
6157
6158 depcc="$CC"   am_compiler_list=
6159
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6161 $as_echo_n "checking dependency style of $depcc... " >&6; }
6162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6166   # We make a subdir and do the tests there.  Otherwise we can end up
6167   # making bogus files that we don't know about and never remove.  For
6168   # instance it was reported that on HP-UX the gcc test will end up
6169   # making a dummy file named `D' -- because `-MD' means `put the output
6170   # in D'.
6171   mkdir conftest.dir
6172   # Copy depcomp to subdir because otherwise we won't find it if we're
6173   # using a relative directory.
6174   cp "$am_depcomp" conftest.dir
6175   cd conftest.dir
6176   # We will build objects and dependencies in a subdirectory because
6177   # it helps to detect inapplicable dependency modes.  For instance
6178   # both Tru64's cc and ICC support -MD to output dependencies as a
6179   # side effect of compilation, but ICC will put the dependencies in
6180   # the current directory while Tru64 will put them in the object
6181   # directory.
6182   mkdir sub
6183
6184   am_cv_CC_dependencies_compiler_type=none
6185   if test "$am_compiler_list" = ""; then
6186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6187   fi
6188   am__universal=false
6189   case " $depcc " in #(
6190      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6191      esac
6192
6193   for depmode in $am_compiler_list; do
6194     # Setup a source with many dependencies, because some compilers
6195     # like to wrap large dependency lists on column 80 (with \), and
6196     # we should not choose a depcomp mode which is confused by this.
6197     #
6198     # We need to recreate these files for each test, as the compiler may
6199     # overwrite some of them when testing with obscure command lines.
6200     # This happens at least with the AIX C compiler.
6201     : > sub/conftest.c
6202     for i in 1 2 3 4 5 6; do
6203       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6204       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6205       # Solaris 8's {/usr,}/bin/sh.
6206       touch sub/conftst$i.h
6207     done
6208     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6209
6210     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6211     # mode.  It turns out that the SunPro C++ compiler does not properly
6212     # handle `-M -o', and we need to detect this.  Also, some Intel
6213     # versions had trouble with output in subdirs
6214     am__obj=sub/conftest.${OBJEXT-o}
6215     am__minus_obj="-o $am__obj"
6216     case $depmode in
6217     gcc)
6218       # This depmode causes a compiler race in universal mode.
6219       test "$am__universal" = false || continue
6220       ;;
6221     nosideeffect)
6222       # after this tag, mechanisms are not by side-effect, so they'll
6223       # only be used when explicitly requested
6224       if test "x$enable_dependency_tracking" = xyes; then
6225         continue
6226       else
6227         break
6228       fi
6229       ;;
6230     msvisualcpp | msvcmsys)
6231       # This compiler won't grok `-c -o', but also, the minuso test has
6232       # not run yet.  These depmodes are late enough in the game, and
6233       # so weak that their functioning should not be impacted.
6234       am__obj=conftest.${OBJEXT-o}
6235       am__minus_obj=
6236       ;;
6237     none) break ;;
6238     esac
6239     if depmode=$depmode \
6240        source=sub/conftest.c object=$am__obj \
6241        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6242        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6243          >/dev/null 2>conftest.err &&
6244        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6245        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6246        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6247        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6248       # icc doesn't choke on unknown options, it will just issue warnings
6249       # or remarks (even with -Werror).  So we grep stderr for any message
6250       # that says an option was ignored or not supported.
6251       # When given -MP, icc 7.0 and 7.1 complain thusly:
6252       #   icc: Command line warning: ignoring option '-M'; no argument required
6253       # The diagnosis changed in icc 8.0:
6254       #   icc: Command line remark: option '-MP' not supported
6255       if (grep 'ignoring option' conftest.err ||
6256           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6257         am_cv_CC_dependencies_compiler_type=$depmode
6258         break
6259       fi
6260     fi
6261   done
6262
6263   cd ..
6264   rm -rf conftest.dir
6265 else
6266   am_cv_CC_dependencies_compiler_type=none
6267 fi
6268
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6271 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6273
6274  if
6275   test "x$enable_dependency_tracking" != xno \
6276   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6277   am__fastdepCC_TRUE=
6278   am__fastdepCC_FALSE='#'
6279 else
6280   am__fastdepCC_TRUE='#'
6281   am__fastdepCC_FALSE=
6282 fi
6283
6284
6285 ac_ext=cpp
6286 ac_cpp='$CXXCPP $CPPFLAGS'
6287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6290 if test -z "$CXX"; then
6291   if test -n "$CCC"; then
6292     CXX=$CCC
6293   else
6294     if test -n "$ac_tool_prefix"; then
6295   for ac_prog in g++ g++3 c++ CC
6296   do
6297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_CXX+set}" = set; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$CXX"; then
6305   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312     for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319   done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 CXX=$ac_cv_prog_CXX
6325 if test -n "$CXX"; then
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6327 $as_echo "$CXX" >&6; }
6328 else
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334     test -n "$CXX" && break
6335   done
6336 fi
6337 if test -z "$CXX"; then
6338   ac_ct_CXX=$CXX
6339   for ac_prog in g++ g++3 c++ CC
6340 do
6341   # Extract the first word of "$ac_prog", so it can be a program name with args.
6342 set dummy $ac_prog; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   if test -n "$ac_ct_CXX"; then
6349   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358     ac_cv_prog_ac_ct_CXX="$ac_prog"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6369 if test -n "$ac_ct_CXX"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6371 $as_echo "$ac_ct_CXX" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377
6378   test -n "$ac_ct_CXX" && break
6379 done
6380
6381   if test "x$ac_ct_CXX" = x; then
6382     CXX="g++"
6383   else
6384     case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390     CXX=$ac_ct_CXX
6391   fi
6392 fi
6393
6394   fi
6395 fi
6396 # Provide some information about the compiler.
6397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6398 set X $ac_compile
6399 ac_compiler=$2
6400 for ac_option in --version -v -V -qversion; do
6401   { { ac_try="$ac_compiler $ac_option >&5"
6402 case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6407 $as_echo "$ac_try_echo"; } >&5
6408   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6409   ac_status=$?
6410   if test -s conftest.err; then
6411     sed '10a\
6412 ... rest of stderr output deleted ...
6413          10q' conftest.err >conftest.er1
6414     cat conftest.er1 >&5
6415   fi
6416   rm -f conftest.er1 conftest.err
6417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418   test $ac_status = 0; }
6419 done
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6422 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h.  */
6428
6429 int
6430 main ()
6431 {
6432 #ifndef __GNUC__
6433        choke me
6434 #endif
6435
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 if ac_fn_cxx_try_compile "$LINENO"; then :
6441   ac_compiler_gnu=yes
6442 else
6443   ac_compiler_gnu=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6447
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6450 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6451 if test $ac_compiler_gnu = yes; then
6452   GXX=yes
6453 else
6454   GXX=
6455 fi
6456 ac_test_CXXFLAGS=${CXXFLAGS+set}
6457 ac_save_CXXFLAGS=$CXXFLAGS
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6459 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6460 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6464    ac_cxx_werror_flag=yes
6465    ac_cv_prog_cxx_g=no
6466    CXXFLAGS="-g"
6467    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_cxx_try_compile "$LINENO"; then :
6479   ac_cv_prog_cxx_g=yes
6480 else
6481   CXXFLAGS=""
6482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h.  */
6484
6485 int
6486 main ()
6487 {
6488
6489   ;
6490   return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_cxx_try_compile "$LINENO"; then :
6494
6495 else
6496   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6497          CXXFLAGS="-g"
6498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h.  */
6500
6501 int
6502 main ()
6503 {
6504
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 if ac_fn_cxx_try_compile "$LINENO"; then :
6510   ac_cv_prog_cxx_g=yes
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6518 fi
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6520 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6521 if test "$ac_test_CXXFLAGS" = set; then
6522   CXXFLAGS=$ac_save_CXXFLAGS
6523 elif test $ac_cv_prog_cxx_g = yes; then
6524   if test "$GXX" = yes; then
6525     CXXFLAGS="-g -O2"
6526   else
6527     CXXFLAGS="-g"
6528   fi
6529 else
6530   if test "$GXX" = yes; then
6531     CXXFLAGS="-O2"
6532   else
6533     CXXFLAGS=
6534   fi
6535 fi
6536 ac_ext=c
6537 ac_cpp='$CPP $CPPFLAGS'
6538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541
6542 depcc="$CXX"  am_compiler_list=
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6545 $as_echo_n "checking dependency style of $depcc... " >&6; }
6546 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6550   # We make a subdir and do the tests there.  Otherwise we can end up
6551   # making bogus files that we don't know about and never remove.  For
6552   # instance it was reported that on HP-UX the gcc test will end up
6553   # making a dummy file named `D' -- because `-MD' means `put the output
6554   # in D'.
6555   mkdir conftest.dir
6556   # Copy depcomp to subdir because otherwise we won't find it if we're
6557   # using a relative directory.
6558   cp "$am_depcomp" conftest.dir
6559   cd conftest.dir
6560   # We will build objects and dependencies in a subdirectory because
6561   # it helps to detect inapplicable dependency modes.  For instance
6562   # both Tru64's cc and ICC support -MD to output dependencies as a
6563   # side effect of compilation, but ICC will put the dependencies in
6564   # the current directory while Tru64 will put them in the object
6565   # directory.
6566   mkdir sub
6567
6568   am_cv_CXX_dependencies_compiler_type=none
6569   if test "$am_compiler_list" = ""; then
6570      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6571   fi
6572   am__universal=false
6573   case " $depcc " in #(
6574      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6575      esac
6576
6577   for depmode in $am_compiler_list; do
6578     # Setup a source with many dependencies, because some compilers
6579     # like to wrap large dependency lists on column 80 (with \), and
6580     # we should not choose a depcomp mode which is confused by this.
6581     #
6582     # We need to recreate these files for each test, as the compiler may
6583     # overwrite some of them when testing with obscure command lines.
6584     # This happens at least with the AIX C compiler.
6585     : > sub/conftest.c
6586     for i in 1 2 3 4 5 6; do
6587       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6588       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6589       # Solaris 8's {/usr,}/bin/sh.
6590       touch sub/conftst$i.h
6591     done
6592     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6593
6594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6595     # mode.  It turns out that the SunPro C++ compiler does not properly
6596     # handle `-M -o', and we need to detect this.  Also, some Intel
6597     # versions had trouble with output in subdirs
6598     am__obj=sub/conftest.${OBJEXT-o}
6599     am__minus_obj="-o $am__obj"
6600     case $depmode in
6601     gcc)
6602       # This depmode causes a compiler race in universal mode.
6603       test "$am__universal" = false || continue
6604       ;;
6605     nosideeffect)
6606       # after this tag, mechanisms are not by side-effect, so they'll
6607       # only be used when explicitly requested
6608       if test "x$enable_dependency_tracking" = xyes; then
6609         continue
6610       else
6611         break
6612       fi
6613       ;;
6614     msvisualcpp | msvcmsys)
6615       # This compiler won't grok `-c -o', but also, the minuso test has
6616       # not run yet.  These depmodes are late enough in the game, and
6617       # so weak that their functioning should not be impacted.
6618       am__obj=conftest.${OBJEXT-o}
6619       am__minus_obj=
6620       ;;
6621     none) break ;;
6622     esac
6623     if depmode=$depmode \
6624        source=sub/conftest.c object=$am__obj \
6625        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6626        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6627          >/dev/null 2>conftest.err &&
6628        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6629        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6630        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6631        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6632       # icc doesn't choke on unknown options, it will just issue warnings
6633       # or remarks (even with -Werror).  So we grep stderr for any message
6634       # that says an option was ignored or not supported.
6635       # When given -MP, icc 7.0 and 7.1 complain thusly:
6636       #   icc: Command line warning: ignoring option '-M'; no argument required
6637       # The diagnosis changed in icc 8.0:
6638       #   icc: Command line remark: option '-MP' not supported
6639       if (grep 'ignoring option' conftest.err ||
6640           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6641         am_cv_CXX_dependencies_compiler_type=$depmode
6642         break
6643       fi
6644     fi
6645   done
6646
6647   cd ..
6648   rm -rf conftest.dir
6649 else
6650   am_cv_CXX_dependencies_compiler_type=none
6651 fi
6652
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6655 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6656 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6657
6658  if
6659   test "x$enable_dependency_tracking" != xno \
6660   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6661   am__fastdepCXX_TRUE=
6662   am__fastdepCXX_FALSE='#'
6663 else
6664   am__fastdepCXX_TRUE='#'
6665   am__fastdepCXX_FALSE=
6666 fi
6667
6668
6669 # Make sure we can run config.sub.
6670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6671   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6672
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6674 $as_echo_n "checking build system type... " >&6; }
6675 if test "${ac_cv_build+set}" = set; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   ac_build_alias=$build_alias
6679 test "x$ac_build_alias" = x &&
6680   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6681 test "x$ac_build_alias" = x &&
6682   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6683 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6684   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6685
6686 fi
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6688 $as_echo "$ac_cv_build" >&6; }
6689 case $ac_cv_build in
6690 *-*-*) ;;
6691 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
6692 esac
6693 build=$ac_cv_build
6694 ac_save_IFS=$IFS; IFS='-'
6695 set x $ac_cv_build
6696 shift
6697 build_cpu=$1
6698 build_vendor=$2
6699 shift; shift
6700 # Remember, the first character of IFS is used to create $*,
6701 # except with old shells:
6702 build_os=$*
6703 IFS=$ac_save_IFS
6704 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6705
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6708 $as_echo_n "checking host system type... " >&6; }
6709 if test "${ac_cv_host+set}" = set; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if test "x$host_alias" = x; then
6713   ac_cv_host=$ac_cv_build
6714 else
6715   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6716     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6717 fi
6718
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6721 $as_echo "$ac_cv_host" >&6; }
6722 case $ac_cv_host in
6723 *-*-*) ;;
6724 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
6725 esac
6726 host=$ac_cv_host
6727 ac_save_IFS=$IFS; IFS='-'
6728 set x $ac_cv_host
6729 shift
6730 host_cpu=$1
6731 host_vendor=$2
6732 shift; shift
6733 # Remember, the first character of IFS is used to create $*,
6734 # except with old shells:
6735 host_os=$*
6736 IFS=$ac_save_IFS
6737 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6738
6739
6740
6741 if test "$GCC" = "yes" ; then
6742 #    AC_HAVE_GCC_VERSION(4,0,0,0,
6743 #        [
6744 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
6745 #            [Define to enable class visibility control in gcc.])
6746 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
6747 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
6748 #        ])
6749     CFLAGS="-Wall $GCC_CFLAGS"
6750     CXXFLAGS="-Wall $GCC_CXXFLAGS"
6751 else
6752 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
6753         case "${host_cpu}-${host_os}" in
6754                 *solaris*)
6755                         if test "$CXX" = "CC" ; then
6756                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
6757                         fi
6758                         ;;
6759                 *osf*)
6760                         CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
6761                         ;;
6762         esac
6763 fi
6764
6765 # Check whether --enable-static was given.
6766 if test "${enable_static+set}" = set; then :
6767   enableval=$enable_static; p=${PACKAGE-default}
6768     case $enableval in
6769     yes) enable_static=yes ;;
6770     no) enable_static=no ;;
6771     *)
6772      enable_static=no
6773       # Look at the argument we got.  We use all the common list separators.
6774       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6775       for pkg in $enableval; do
6776         IFS="$lt_save_ifs"
6777         if test "X$pkg" = "X$p"; then
6778           enable_static=yes
6779         fi
6780       done
6781       IFS="$lt_save_ifs"
6782       ;;
6783     esac
6784 else
6785   enable_static=no
6786 fi
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 case `pwd` in
6797   *\ * | *\     *)
6798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6799 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6800 esac
6801
6802
6803
6804 macro_version='2.2.6b'
6805 macro_revision='1.3017'
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 ltmain="$ac_aux_dir/ltmain.sh"
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6822 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6823 if test "${ac_cv_path_SED+set}" = set; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6827      for ac_i in 1 2 3 4 5 6 7; do
6828        ac_script="$ac_script$as_nl$ac_script"
6829      done
6830      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6831      { ac_script=; unset ac_script;}
6832      if test -z "$SED"; then
6833   ac_path_SED_found=false
6834   # Loop through the user's path and test for each of PROGNAME-LIST
6835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_prog in sed gsed; do
6841     for ac_exec_ext in '' $ac_executable_extensions; do
6842       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6843       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6844 # Check for GNU ac_path_SED and select it if it is found.
6845   # Check for GNU $ac_path_SED
6846 case `"$ac_path_SED" --version 2>&1` in
6847 *GNU*)
6848   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6849 *)
6850   ac_count=0
6851   $as_echo_n 0123456789 >"conftest.in"
6852   while :
6853   do
6854     cat "conftest.in" "conftest.in" >"conftest.tmp"
6855     mv "conftest.tmp" "conftest.in"
6856     cp "conftest.in" "conftest.nl"
6857     $as_echo '' >> "conftest.nl"
6858     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6859     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6860     as_fn_arith $ac_count + 1 && ac_count=$as_val
6861     if test $ac_count -gt ${ac_path_SED_max-0}; then
6862       # Best one so far, save it but keep looking for a better one
6863       ac_cv_path_SED="$ac_path_SED"
6864       ac_path_SED_max=$ac_count
6865     fi
6866     # 10*(2^10) chars as input seems more than enough
6867     test $ac_count -gt 10 && break
6868   done
6869   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6870 esac
6871
6872       $ac_path_SED_found && break 3
6873     done
6874   done
6875   done
6876 IFS=$as_save_IFS
6877   if test -z "$ac_cv_path_SED"; then
6878     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6879   fi
6880 else
6881   ac_cv_path_SED=$SED
6882 fi
6883
6884 fi
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6886 $as_echo "$ac_cv_path_SED" >&6; }
6887  SED="$ac_cv_path_SED"
6888   rm -f conftest.sed
6889
6890 test -z "$SED" && SED=sed
6891 Xsed="$SED -e 1s/^X//"
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6904 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6905 if test "${ac_cv_path_GREP+set}" = set; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908   if test -z "$GREP"; then
6909   ac_path_GREP_found=false
6910   # Loop through the user's path and test for each of PROGNAME-LIST
6911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916     for ac_prog in grep ggrep; do
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6919       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6920 # Check for GNU ac_path_GREP and select it if it is found.
6921   # Check for GNU $ac_path_GREP
6922 case `"$ac_path_GREP" --version 2>&1` in
6923 *GNU*)
6924   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6925 *)
6926   ac_count=0
6927   $as_echo_n 0123456789 >"conftest.in"
6928   while :
6929   do
6930     cat "conftest.in" "conftest.in" >"conftest.tmp"
6931     mv "conftest.tmp" "conftest.in"
6932     cp "conftest.in" "conftest.nl"
6933     $as_echo 'GREP' >> "conftest.nl"
6934     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6936     as_fn_arith $ac_count + 1 && ac_count=$as_val
6937     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6938       # Best one so far, save it but keep looking for a better one
6939       ac_cv_path_GREP="$ac_path_GREP"
6940       ac_path_GREP_max=$ac_count
6941     fi
6942     # 10*(2^10) chars as input seems more than enough
6943     test $ac_count -gt 10 && break
6944   done
6945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6946 esac
6947
6948       $ac_path_GREP_found && break 3
6949     done
6950   done
6951   done
6952 IFS=$as_save_IFS
6953   if test -z "$ac_cv_path_GREP"; then
6954     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6955   fi
6956 else
6957   ac_cv_path_GREP=$GREP
6958 fi
6959
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6962 $as_echo "$ac_cv_path_GREP" >&6; }
6963  GREP="$ac_cv_path_GREP"
6964
6965
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6967 $as_echo_n "checking for egrep... " >&6; }
6968 if test "${ac_cv_path_EGREP+set}" = set; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6972    then ac_cv_path_EGREP="$GREP -E"
6973    else
6974      if test -z "$EGREP"; then
6975   ac_path_EGREP_found=false
6976   # Loop through the user's path and test for each of PROGNAME-LIST
6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982     for ac_prog in egrep; do
6983     for ac_exec_ext in '' $ac_executable_extensions; do
6984       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6985       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6986 # Check for GNU ac_path_EGREP and select it if it is found.
6987   # Check for GNU $ac_path_EGREP
6988 case `"$ac_path_EGREP" --version 2>&1` in
6989 *GNU*)
6990   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6991 *)
6992   ac_count=0
6993   $as_echo_n 0123456789 >"conftest.in"
6994   while :
6995   do
6996     cat "conftest.in" "conftest.in" >"conftest.tmp"
6997     mv "conftest.tmp" "conftest.in"
6998     cp "conftest.in" "conftest.nl"
6999     $as_echo 'EGREP' >> "conftest.nl"
7000     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7001     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7002     as_fn_arith $ac_count + 1 && ac_count=$as_val
7003     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7004       # Best one so far, save it but keep looking for a better one
7005       ac_cv_path_EGREP="$ac_path_EGREP"
7006       ac_path_EGREP_max=$ac_count
7007     fi
7008     # 10*(2^10) chars as input seems more than enough
7009     test $ac_count -gt 10 && break
7010   done
7011   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7012 esac
7013
7014       $ac_path_EGREP_found && break 3
7015     done
7016   done
7017   done
7018 IFS=$as_save_IFS
7019   if test -z "$ac_cv_path_EGREP"; then
7020     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7021   fi
7022 else
7023   ac_cv_path_EGREP=$EGREP
7024 fi
7025
7026    fi
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7029 $as_echo "$ac_cv_path_EGREP" >&6; }
7030  EGREP="$ac_cv_path_EGREP"
7031
7032
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7034 $as_echo_n "checking for fgrep... " >&6; }
7035 if test "${ac_cv_path_FGREP+set}" = set; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7039    then ac_cv_path_FGREP="$GREP -F"
7040    else
7041      if test -z "$FGREP"; then
7042   ac_path_FGREP_found=false
7043   # Loop through the user's path and test for each of PROGNAME-LIST
7044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7046 do
7047   IFS=$as_save_IFS
7048   test -z "$as_dir" && as_dir=.
7049     for ac_prog in fgrep; do
7050     for ac_exec_ext in '' $ac_executable_extensions; do
7051       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7052       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7053 # Check for GNU ac_path_FGREP and select it if it is found.
7054   # Check for GNU $ac_path_FGREP
7055 case `"$ac_path_FGREP" --version 2>&1` in
7056 *GNU*)
7057   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7058 *)
7059   ac_count=0
7060   $as_echo_n 0123456789 >"conftest.in"
7061   while :
7062   do
7063     cat "conftest.in" "conftest.in" >"conftest.tmp"
7064     mv "conftest.tmp" "conftest.in"
7065     cp "conftest.in" "conftest.nl"
7066     $as_echo 'FGREP' >> "conftest.nl"
7067     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7069     as_fn_arith $ac_count + 1 && ac_count=$as_val
7070     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7071       # Best one so far, save it but keep looking for a better one
7072       ac_cv_path_FGREP="$ac_path_FGREP"
7073       ac_path_FGREP_max=$ac_count
7074     fi
7075     # 10*(2^10) chars as input seems more than enough
7076     test $ac_count -gt 10 && break
7077   done
7078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7079 esac
7080
7081       $ac_path_FGREP_found && break 3
7082     done
7083   done
7084   done
7085 IFS=$as_save_IFS
7086   if test -z "$ac_cv_path_FGREP"; then
7087     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7088   fi
7089 else
7090   ac_cv_path_FGREP=$FGREP
7091 fi
7092
7093    fi
7094 fi
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7096 $as_echo "$ac_cv_path_FGREP" >&6; }
7097  FGREP="$ac_cv_path_FGREP"
7098
7099
7100 test -z "$GREP" && GREP=grep
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 # Check whether --with-gnu-ld was given.
7121 if test "${with_gnu_ld+set}" = set; then :
7122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7123 else
7124   with_gnu_ld=no
7125 fi
7126
7127 ac_prog=ld
7128 if test "$GCC" = yes; then
7129   # Check if gcc -print-prog-name=ld gives a path.
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7131 $as_echo_n "checking for ld used by $CC... " >&6; }
7132   case $host in
7133   *-*-mingw*)
7134     # gcc leaves a trailing carriage return which upsets mingw
7135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7136   *)
7137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7138   esac
7139   case $ac_prog in
7140     # Accept absolute paths.
7141     [\\/]* | ?:[\\/]*)
7142       re_direlt='/[^/][^/]*/\.\./'
7143       # Canonicalize the pathname of ld
7144       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7145       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7146         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7147       done
7148       test -z "$LD" && LD="$ac_prog"
7149       ;;
7150   "")
7151     # If it fails, then pretend we aren't using GCC.
7152     ac_prog=ld
7153     ;;
7154   *)
7155     # If it is relative, then search for the first ld in PATH.
7156     with_gnu_ld=unknown
7157     ;;
7158   esac
7159 elif test "$with_gnu_ld" = yes; then
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7161 $as_echo_n "checking for GNU ld... " >&6; }
7162 else
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7164 $as_echo_n "checking for non-GNU ld... " >&6; }
7165 fi
7166 if test "${lt_cv_path_LD+set}" = set; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -z "$LD"; then
7170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7171   for ac_dir in $PATH; do
7172     IFS="$lt_save_ifs"
7173     test -z "$ac_dir" && ac_dir=.
7174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7175       lt_cv_path_LD="$ac_dir/$ac_prog"
7176       # Check to see if the program is GNU ld.  I'd rather use --version,
7177       # but apparently some variants of GNU ld only accept -v.
7178       # Break only if it was the GNU/non-GNU ld that we prefer.
7179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7180       *GNU* | *'with BFD'*)
7181         test "$with_gnu_ld" != no && break
7182         ;;
7183       *)
7184         test "$with_gnu_ld" != yes && break
7185         ;;
7186       esac
7187     fi
7188   done
7189   IFS="$lt_save_ifs"
7190 else
7191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7192 fi
7193 fi
7194
7195 LD="$lt_cv_path_LD"
7196 if test -n "$LD"; then
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7198 $as_echo "$LD" >&6; }
7199 else
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7205 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7206 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7210 case `$LD -v 2>&1 </dev/null` in
7211 *GNU* | *'with BFD'*)
7212   lt_cv_prog_gnu_ld=yes
7213   ;;
7214 *)
7215   lt_cv_prog_gnu_ld=no
7216   ;;
7217 esac
7218 fi
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7220 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7221 with_gnu_ld=$lt_cv_prog_gnu_ld
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7232 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7233 if test "${lt_cv_path_NM+set}" = set; then :
7234   $as_echo_n "(cached) " >&6
7235 else
7236   if test -n "$NM"; then
7237   # Let the user override the test.
7238   lt_cv_path_NM="$NM"
7239 else
7240   lt_nm_to_check="${ac_tool_prefix}nm"
7241   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7242     lt_nm_to_check="$lt_nm_to_check nm"
7243   fi
7244   for lt_tmp_nm in $lt_nm_to_check; do
7245     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7246     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7247       IFS="$lt_save_ifs"
7248       test -z "$ac_dir" && ac_dir=.
7249       tmp_nm="$ac_dir/$lt_tmp_nm"
7250       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7251         # Check to see if the nm accepts a BSD-compat flag.
7252         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7253         #   nm: unknown option "B" ignored
7254         # Tru64's nm complains that /dev/null is an invalid object file
7255         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7256         */dev/null* | *'Invalid file or object type'*)
7257           lt_cv_path_NM="$tmp_nm -B"
7258           break
7259           ;;
7260         *)
7261           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7262           */dev/null*)
7263             lt_cv_path_NM="$tmp_nm -p"
7264             break
7265             ;;
7266           *)
7267             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7268             continue # so that we can try to find one that supports BSD flags
7269             ;;
7270           esac
7271           ;;
7272         esac
7273       fi
7274     done
7275     IFS="$lt_save_ifs"
7276   done
7277   : ${lt_cv_path_NM=no}
7278 fi
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7281 $as_echo "$lt_cv_path_NM" >&6; }
7282 if test "$lt_cv_path_NM" != "no"; then
7283   NM="$lt_cv_path_NM"
7284 else
7285   # Didn't find any BSD compatible name lister, look for dumpbin.
7286   if test -n "$ac_tool_prefix"; then
7287   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7288   do
7289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$DUMPBIN"; then
7297   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 DUMPBIN=$ac_cv_prog_DUMPBIN
7317 if test -n "$DUMPBIN"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7319 $as_echo "$DUMPBIN" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325
7326     test -n "$DUMPBIN" && break
7327   done
7328 fi
7329 if test -z "$DUMPBIN"; then
7330   ac_ct_DUMPBIN=$DUMPBIN
7331   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7332 do
7333   # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$ac_ct_DUMPBIN"; then
7341   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7361 if test -n "$ac_ct_DUMPBIN"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7363 $as_echo "$ac_ct_DUMPBIN" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369
7370   test -n "$ac_ct_DUMPBIN" && break
7371 done
7372
7373   if test "x$ac_ct_DUMPBIN" = x; then
7374     DUMPBIN=":"
7375   else
7376     case $cross_compiling:$ac_tool_warned in
7377 yes:)
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380 ac_tool_warned=yes ;;
7381 esac
7382     DUMPBIN=$ac_ct_DUMPBIN
7383   fi
7384 fi
7385
7386
7387   if test "$DUMPBIN" != ":"; then
7388     NM="$DUMPBIN"
7389   fi
7390 fi
7391 test -z "$NM" && NM=nm
7392
7393
7394
7395
7396
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7399 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7400 if test "${lt_cv_nm_interface+set}" = set; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   lt_cv_nm_interface="BSD nm"
7404   echo "int some_variable = 0;" > conftest.$ac_ext
7405   (eval echo "\"\$as_me:7405: $ac_compile\"" >&5)
7406   (eval "$ac_compile" 2>conftest.err)
7407   cat conftest.err >&5
7408   (eval echo "\"\$as_me:7408: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7409   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7410   cat conftest.err >&5
7411   (eval echo "\"\$as_me:7411: output\"" >&5)
7412   cat conftest.out >&5
7413   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7414     lt_cv_nm_interface="MS dumpbin"
7415   fi
7416   rm -f conftest*
7417 fi
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7419 $as_echo "$lt_cv_nm_interface" >&6; }
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7422 $as_echo_n "checking whether ln -s works... " >&6; }
7423 LN_S=$as_ln_s
7424 if test "$LN_S" = "ln -s"; then
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7426 $as_echo "yes" >&6; }
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7429 $as_echo "no, using $LN_S" >&6; }
7430 fi
7431
7432 # find the maximum length of command line arguments
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7434 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7435 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438     i=0
7439   teststring="ABCD"
7440
7441   case $build_os in
7442   msdosdjgpp*)
7443     # On DJGPP, this test can blow up pretty badly due to problems in libc
7444     # (any single argument exceeding 2000 bytes causes a buffer overrun
7445     # during glob expansion).  Even if it were fixed, the result of this
7446     # check would be larger than it should be.
7447     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7448     ;;
7449
7450   gnu*)
7451     # Under GNU Hurd, this test is not required because there is
7452     # no limit to the length of command line arguments.
7453     # Libtool will interpret -1 as no limit whatsoever
7454     lt_cv_sys_max_cmd_len=-1;
7455     ;;
7456
7457   cygwin* | mingw* | cegcc*)
7458     # On Win9x/ME, this test blows up -- it succeeds, but takes
7459     # about 5 minutes as the teststring grows exponentially.
7460     # Worse, since 9x/ME are not pre-emptively multitasking,
7461     # you end up with a "frozen" computer, even though with patience
7462     # the test eventually succeeds (with a max line length of 256k).
7463     # Instead, let's just punt: use the minimum linelength reported by
7464     # all of the supported platforms: 8192 (on NT/2K/XP).
7465     lt_cv_sys_max_cmd_len=8192;
7466     ;;
7467
7468   amigaos*)
7469     # On AmigaOS with pdksh, this test takes hours, literally.
7470     # So we just punt and use a minimum line length of 8192.
7471     lt_cv_sys_max_cmd_len=8192;
7472     ;;
7473
7474   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7475     # This has been around since 386BSD, at least.  Likely further.
7476     if test -x /sbin/sysctl; then
7477       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7478     elif test -x /usr/sbin/sysctl; then
7479       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7480     else
7481       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7482     fi
7483     # And add a safety zone
7484     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7485     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7486     ;;
7487
7488   interix*)
7489     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7490     lt_cv_sys_max_cmd_len=196608
7491     ;;
7492
7493   osf*)
7494     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7495     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7496     # nice to cause kernel panics so lets avoid the loop below.
7497     # First set a reasonable default.
7498     lt_cv_sys_max_cmd_len=16384
7499     #
7500     if test -x /sbin/sysconfig; then
7501       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7502         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7503       esac
7504     fi
7505     ;;
7506   sco3.2v5*)
7507     lt_cv_sys_max_cmd_len=102400
7508     ;;
7509   sysv5* | sco5v6* | sysv4.2uw2*)
7510     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7511     if test -n "$kargmax"; then
7512       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7513     else
7514       lt_cv_sys_max_cmd_len=32768
7515     fi
7516     ;;
7517   *)
7518     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7519     if test -n "$lt_cv_sys_max_cmd_len"; then
7520       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7521       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7522     else
7523       # Make teststring a little bigger before we do anything with it.
7524       # a 1K string should be a reasonable start.
7525       for i in 1 2 3 4 5 6 7 8 ; do
7526         teststring=$teststring$teststring
7527       done
7528       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7529       # If test is not a shell built-in, we'll probably end up computing a
7530       # maximum length that is only half of the actual maximum length, but
7531       # we can't tell.
7532       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7533                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7534               test $i != 17 # 1/2 MB should be enough
7535       do
7536         i=`expr $i + 1`
7537         teststring=$teststring$teststring
7538       done
7539       # Only check the string length outside the loop.
7540       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7541       teststring=
7542       # Add a significant safety factor because C++ compilers can tack on
7543       # massive amounts of additional arguments before passing them to the
7544       # linker.  It appears as though 1/2 is a usable value.
7545       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7546     fi
7547     ;;
7548   esac
7549
7550 fi
7551
7552 if test -n $lt_cv_sys_max_cmd_len ; then
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7554 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7555 else
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7557 $as_echo "none" >&6; }
7558 fi
7559 max_cmd_len=$lt_cv_sys_max_cmd_len
7560
7561
7562
7563
7564
7565
7566 : ${CP="cp -f"}
7567 : ${MV="mv -f"}
7568 : ${RM="rm -f"}
7569
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7571 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7572 # Try some XSI features
7573 xsi_shell=no
7574 ( _lt_dummy="a/b/c"
7575   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7576       = c,a/b,, \
7577     && eval 'test $(( 1 + 1 )) -eq 2 \
7578     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7579   && xsi_shell=yes
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7581 $as_echo "$xsi_shell" >&6; }
7582
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7585 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7586 lt_shell_append=no
7587 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7588     >/dev/null 2>&1 \
7589   && lt_shell_append=yes
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7591 $as_echo "$lt_shell_append" >&6; }
7592
7593
7594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7595   lt_unset=unset
7596 else
7597   lt_unset=false
7598 fi
7599
7600
7601
7602
7603
7604 # test EBCDIC or ASCII
7605 case `echo X|tr X '\101'` in
7606  A) # ASCII based system
7607     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7608   lt_SP2NL='tr \040 \012'
7609   lt_NL2SP='tr \015\012 \040\040'
7610   ;;
7611  *) # EBCDIC based system
7612   lt_SP2NL='tr \100 \n'
7613   lt_NL2SP='tr \r\n \100\100'
7614   ;;
7615 esac
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7627 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   lt_cv_ld_reload_flag='-r'
7631 fi
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7634 reload_flag=$lt_cv_ld_reload_flag
7635 case $reload_flag in
7636 "" | " "*) ;;
7637 *) reload_flag=" $reload_flag" ;;
7638 esac
7639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7640 case $host_os in
7641   darwin*)
7642     if test "$GCC" = yes; then
7643       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7644     else
7645       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7646     fi
7647     ;;
7648 esac
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658 if test -n "$ac_tool_prefix"; then
7659   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   if test -n "$OBJDUMP"; then
7667   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672   IFS=$as_save_IFS
7673   test -z "$as_dir" && as_dir=.
7674     for ac_exec_ext in '' $ac_executable_extensions; do
7675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678     break 2
7679   fi
7680 done
7681   done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 OBJDUMP=$ac_cv_prog_OBJDUMP
7687 if test -n "$OBJDUMP"; then
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7689 $as_echo "$OBJDUMP" >&6; }
7690 else
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695
7696 fi
7697 if test -z "$ac_cv_prog_OBJDUMP"; then
7698   ac_ct_OBJDUMP=$OBJDUMP
7699   # Extract the first word of "objdump", so it can be a program name with args.
7700 set dummy objdump; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   if test -n "$ac_ct_OBJDUMP"; then
7707   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714     for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721   done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7727 if test -n "$ac_ct_OBJDUMP"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7729 $as_echo "$ac_ct_OBJDUMP" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735   if test "x$ac_ct_OBJDUMP" = x; then
7736     OBJDUMP="false"
7737   else
7738     case $cross_compiling:$ac_tool_warned in
7739 yes:)
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742 ac_tool_warned=yes ;;
7743 esac
7744     OBJDUMP=$ac_ct_OBJDUMP
7745   fi
7746 else
7747   OBJDUMP="$ac_cv_prog_OBJDUMP"
7748 fi
7749
7750 test -z "$OBJDUMP" && OBJDUMP=objdump
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7761 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7762 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   lt_cv_file_magic_cmd='$MAGIC_CMD'
7766 lt_cv_file_magic_test_file=
7767 lt_cv_deplibs_check_method='unknown'
7768 # Need to set the preceding variable on all platforms that support
7769 # interlibrary dependencies.
7770 # 'none' -- dependencies not supported.
7771 # `unknown' -- same as none, but documents that we really don't know.
7772 # 'pass_all' -- all dependencies passed with no checks.
7773 # 'test_compile' -- check by making test program.
7774 # 'file_magic [[regex]]' -- check by looking for files in library path
7775 # which responds to the $file_magic_cmd with a given extended regex.
7776 # If you have `file' or equivalent on your system and you're not sure
7777 # whether `pass_all' will *always* work, you probably want this one.
7778
7779 case $host_os in
7780 aix[4-9]*)
7781   lt_cv_deplibs_check_method=pass_all
7782   ;;
7783
7784 beos*)
7785   lt_cv_deplibs_check_method=pass_all
7786   ;;
7787
7788 bsdi[45]*)
7789   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7790   lt_cv_file_magic_cmd='/usr/bin/file -L'
7791   lt_cv_file_magic_test_file=/shlib/libc.so
7792   ;;
7793
7794 cygwin*)
7795   # func_win32_libid is a shell function defined in ltmain.sh
7796   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7797   lt_cv_file_magic_cmd='func_win32_libid'
7798   ;;
7799
7800 mingw* | pw32*)
7801   # Base MSYS/MinGW do not provide the 'file' command needed by
7802   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7803   # unless we find 'file', for example because we are cross-compiling.
7804   if ( file / ) >/dev/null 2>&1; then
7805     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7806     lt_cv_file_magic_cmd='func_win32_libid'
7807   else
7808     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7809     lt_cv_file_magic_cmd='$OBJDUMP -f'
7810   fi
7811   ;;
7812
7813 cegcc)
7814   # use the weaker test based on 'objdump'. See mingw*.
7815   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7816   lt_cv_file_magic_cmd='$OBJDUMP -f'
7817   ;;
7818
7819 darwin* | rhapsody*)
7820   lt_cv_deplibs_check_method=pass_all
7821   ;;
7822
7823 freebsd* | dragonfly*)
7824   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7825     case $host_cpu in
7826     i*86 )
7827       # Not sure whether the presence of OpenBSD here was a mistake.
7828       # Let's accept both of them until this is cleared up.
7829       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7830       lt_cv_file_magic_cmd=/usr/bin/file
7831       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7832       ;;
7833     esac
7834   else
7835     lt_cv_deplibs_check_method=pass_all
7836   fi
7837   ;;
7838
7839 gnu*)
7840   lt_cv_deplibs_check_method=pass_all
7841   ;;
7842
7843 hpux10.20* | hpux11*)
7844   lt_cv_file_magic_cmd=/usr/bin/file
7845   case $host_cpu in
7846   ia64*)
7847     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7848     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7849     ;;
7850   hppa*64*)
7851     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]'
7852     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7853     ;;
7854   *)
7855     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7856     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7857     ;;
7858   esac
7859   ;;
7860
7861 interix[3-9]*)
7862   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7863   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7864   ;;
7865
7866 irix5* | irix6* | nonstopux*)
7867   case $LD in
7868   *-32|*"-32 ") libmagic=32-bit;;
7869   *-n32|*"-n32 ") libmagic=N32;;
7870   *-64|*"-64 ") libmagic=64-bit;;
7871   *) libmagic=never-match;;
7872   esac
7873   lt_cv_deplibs_check_method=pass_all
7874   ;;
7875
7876 # This must be Linux ELF.
7877 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7878   lt_cv_deplibs_check_method=pass_all
7879   ;;
7880
7881 netbsd* | netbsdelf*-gnu)
7882   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7883     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7884   else
7885     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7886   fi
7887   ;;
7888
7889 newos6*)
7890   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7891   lt_cv_file_magic_cmd=/usr/bin/file
7892   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7893   ;;
7894
7895 *nto* | *qnx*)
7896   lt_cv_deplibs_check_method=pass_all
7897   ;;
7898
7899 openbsd*)
7900   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7901     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7902   else
7903     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7904   fi
7905   ;;
7906
7907 osf3* | osf4* | osf5*)
7908   lt_cv_deplibs_check_method=pass_all
7909   ;;
7910
7911 rdos*)
7912   lt_cv_deplibs_check_method=pass_all
7913   ;;
7914
7915 solaris*)
7916   lt_cv_deplibs_check_method=pass_all
7917   ;;
7918
7919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7920   lt_cv_deplibs_check_method=pass_all
7921   ;;
7922
7923 sysv4 | sysv4.3*)
7924   case $host_vendor in
7925   motorola)
7926     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]'
7927     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7928     ;;
7929   ncr)
7930     lt_cv_deplibs_check_method=pass_all
7931     ;;
7932   sequent)
7933     lt_cv_file_magic_cmd='/bin/file'
7934     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7935     ;;
7936   sni)
7937     lt_cv_file_magic_cmd='/bin/file'
7938     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7939     lt_cv_file_magic_test_file=/lib/libc.so
7940     ;;
7941   siemens)
7942     lt_cv_deplibs_check_method=pass_all
7943     ;;
7944   pc)
7945     lt_cv_deplibs_check_method=pass_all
7946     ;;
7947   esac
7948   ;;
7949
7950 tpf*)
7951   lt_cv_deplibs_check_method=pass_all
7952   ;;
7953 esac
7954
7955 fi
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7957 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7958 file_magic_cmd=$lt_cv_file_magic_cmd
7959 deplibs_check_method=$lt_cv_deplibs_check_method
7960 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973 if test -n "$ac_tool_prefix"; then
7974   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}ar; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_AR+set}" = set; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   if test -n "$AR"; then
7982   ac_cv_prog_AR="$AR" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989     for ac_exec_ext in '' $ac_executable_extensions; do
7990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991     ac_cv_prog_AR="${ac_tool_prefix}ar"
7992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996   done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 AR=$ac_cv_prog_AR
8002 if test -n "$AR"; then
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8004 $as_echo "$AR" >&6; }
8005 else
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011 fi
8012 if test -z "$ac_cv_prog_AR"; then
8013   ac_ct_AR=$AR
8014   # Extract the first word of "ar", so it can be a program name with args.
8015 set dummy ar; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8019   $as_echo_n "(cached) " >&6
8020 else
8021   if test -n "$ac_ct_AR"; then
8022   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027   IFS=$as_save_IFS
8028   test -z "$as_dir" && as_dir=.
8029     for ac_exec_ext in '' $ac_executable_extensions; do
8030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031     ac_cv_prog_ac_ct_AR="ar"
8032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033     break 2
8034   fi
8035 done
8036   done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8042 if test -n "$ac_ct_AR"; then
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8044 $as_echo "$ac_ct_AR" >&6; }
8045 else
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050   if test "x$ac_ct_AR" = x; then
8051     AR="false"
8052   else
8053     case $cross_compiling:$ac_tool_warned in
8054 yes:)
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059     AR=$ac_ct_AR
8060   fi
8061 else
8062   AR="$ac_cv_prog_AR"
8063 fi
8064
8065 test -z "$AR" && AR=ar
8066 test -z "$AR_FLAGS" && AR_FLAGS=cru
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 if test -n "$ac_tool_prefix"; then
8079   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}strip; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_STRIP+set}" = set; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   if test -n "$STRIP"; then
8087   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094     for ac_exec_ext in '' $ac_executable_extensions; do
8095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101   done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 STRIP=$ac_cv_prog_STRIP
8107 if test -n "$STRIP"; then
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8109 $as_echo "$STRIP" >&6; }
8110 else
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116 fi
8117 if test -z "$ac_cv_prog_STRIP"; then
8118   ac_ct_STRIP=$STRIP
8119   # Extract the first word of "strip", so it can be a program name with args.
8120 set dummy strip; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   if test -n "$ac_ct_STRIP"; then
8127   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132   IFS=$as_save_IFS
8133   test -z "$as_dir" && as_dir=.
8134     for ac_exec_ext in '' $ac_executable_extensions; do
8135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136     ac_cv_prog_ac_ct_STRIP="strip"
8137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138     break 2
8139   fi
8140 done
8141   done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8147 if test -n "$ac_ct_STRIP"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8149 $as_echo "$ac_ct_STRIP" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155   if test "x$ac_ct_STRIP" = x; then
8156     STRIP=":"
8157   else
8158     case $cross_compiling:$ac_tool_warned in
8159 yes:)
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8163 esac
8164     STRIP=$ac_ct_STRIP
8165   fi
8166 else
8167   STRIP="$ac_cv_prog_STRIP"
8168 fi
8169
8170 test -z "$STRIP" && STRIP=:
8171
8172
8173
8174
8175
8176
8177 if test -n "$ac_tool_prefix"; then
8178   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8179 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185   if test -n "$RANLIB"; then
8186   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191   IFS=$as_save_IFS
8192   test -z "$as_dir" && as_dir=.
8193     for ac_exec_ext in '' $ac_executable_extensions; do
8194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197     break 2
8198   fi
8199 done
8200   done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 RANLIB=$ac_cv_prog_RANLIB
8206 if test -n "$RANLIB"; then
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8208 $as_echo "$RANLIB" >&6; }
8209 else
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215 fi
8216 if test -z "$ac_cv_prog_RANLIB"; then
8217   ac_ct_RANLIB=$RANLIB
8218   # Extract the first word of "ranlib", so it can be a program name with args.
8219 set dummy ranlib; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   if test -n "$ac_ct_RANLIB"; then
8226   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233     for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_prog_ac_ct_RANLIB="ranlib"
8236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240   done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8246 if test -n "$ac_ct_RANLIB"; then
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8248 $as_echo "$ac_ct_RANLIB" >&6; }
8249 else
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254   if test "x$ac_ct_RANLIB" = x; then
8255     RANLIB=":"
8256   else
8257     case $cross_compiling:$ac_tool_warned in
8258 yes:)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261 ac_tool_warned=yes ;;
8262 esac
8263     RANLIB=$ac_ct_RANLIB
8264   fi
8265 else
8266   RANLIB="$ac_cv_prog_RANLIB"
8267 fi
8268
8269 test -z "$RANLIB" && RANLIB=:
8270
8271
8272
8273
8274
8275
8276 # Determine commands to create old-style static archives.
8277 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8278 old_postinstall_cmds='chmod 644 $oldlib'
8279 old_postuninstall_cmds=
8280
8281 if test -n "$RANLIB"; then
8282   case $host_os in
8283   openbsd*)
8284     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8285     ;;
8286   *)
8287     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8288     ;;
8289   esac
8290   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8291 fi
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 # If no C compiler was specified, use CC.
8327 LTCC=${LTCC-"$CC"}
8328
8329 # If no C compiler flags were specified, use CFLAGS.
8330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8331
8332 # Allow CC to be a program name with arguments.
8333 compiler=$CC
8334
8335
8336 # Check for command to grab the raw symbol name followed by C symbol from nm.
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8338 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8339 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342
8343 # These are sane defaults that work on at least a few old systems.
8344 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8345
8346 # Character class describing NM global symbol codes.
8347 symcode='[BCDEGRST]'
8348
8349 # Regexp to match symbols that can be accessed directly from C.
8350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8351
8352 # Define system-specific variables.
8353 case $host_os in
8354 aix*)
8355   symcode='[BCDT]'
8356   ;;
8357 cygwin* | mingw* | pw32* | cegcc*)
8358   symcode='[ABCDGISTW]'
8359   ;;
8360 hpux*)
8361   if test "$host_cpu" = ia64; then
8362     symcode='[ABCDEGRST]'
8363   fi
8364   ;;
8365 irix* | nonstopux*)
8366   symcode='[BCDEGRST]'
8367   ;;
8368 osf*)
8369   symcode='[BCDEGQRST]'
8370   ;;
8371 solaris*)
8372   symcode='[BDRT]'
8373   ;;
8374 sco3.2v5*)
8375   symcode='[DT]'
8376   ;;
8377 sysv4.2uw2*)
8378   symcode='[DT]'
8379   ;;
8380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8381   symcode='[ABDT]'
8382   ;;
8383 sysv4)
8384   symcode='[DFNSTU]'
8385   ;;
8386 esac
8387
8388 # If we're using GNU nm, then use its standard symbol codes.
8389 case `$NM -V 2>&1` in
8390 *GNU* | *'with BFD'*)
8391   symcode='[ABCDGIRSTW]' ;;
8392 esac
8393
8394 # Transform an extracted symbol line into a proper C declaration.
8395 # Some systems (esp. on ia64) link data and code symbols differently,
8396 # so use this general approach.
8397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8398
8399 # Transform an extracted symbol line into symbol name and symbol address
8400 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8401 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'"
8402
8403 # Handle CRLF in mingw tool chain
8404 opt_cr=
8405 case $build_os in
8406 mingw*)
8407   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8408   ;;
8409 esac
8410
8411 # Try without a prefix underscore, then with it.
8412 for ac_symprfx in "" "_"; do
8413
8414   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8415   symxfrm="\\1 $ac_symprfx\\2 \\2"
8416
8417   # Write the raw and C identifiers.
8418   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8419     # Fake it for dumpbin and say T for any non-static function
8420     # and D for any global variable.
8421     # Also find C++ and __fastcall symbols from MSVC++,
8422     # which start with @ or ?.
8423     lt_cv_sys_global_symbol_pipe="$AWK '"\
8424 "     {last_section=section; section=\$ 3};"\
8425 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8426 "     \$ 0!~/External *\|/{next};"\
8427 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8428 "     {if(hide[section]) next};"\
8429 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8430 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8431 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8432 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8433 "     ' prfx=^$ac_symprfx"
8434   else
8435     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8436   fi
8437
8438   # Check to see that the pipe works correctly.
8439   pipe_works=no
8440
8441   rm -f conftest*
8442   cat > conftest.$ac_ext <<_LT_EOF
8443 #ifdef __cplusplus
8444 extern "C" {
8445 #endif
8446 char nm_test_var;
8447 void nm_test_func(void);
8448 void nm_test_func(void){}
8449 #ifdef __cplusplus
8450 }
8451 #endif
8452 int main(){nm_test_var='a';nm_test_func();return(0);}
8453 _LT_EOF
8454
8455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8456   (eval $ac_compile) 2>&5
8457   ac_status=$?
8458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8459   test $ac_status = 0; }; then
8460     # Now try to grab the symbols.
8461     nlist=conftest.nm
8462     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8463   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8464   ac_status=$?
8465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8466   test $ac_status = 0; } && test -s "$nlist"; then
8467       # Try sorting and uniquifying the output.
8468       if sort "$nlist" | uniq > "$nlist"T; then
8469         mv -f "$nlist"T "$nlist"
8470       else
8471         rm -f "$nlist"T
8472       fi
8473
8474       # Make sure that we snagged all the symbols we need.
8475       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8476         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8477           cat <<_LT_EOF > conftest.$ac_ext
8478 #ifdef __cplusplus
8479 extern "C" {
8480 #endif
8481
8482 _LT_EOF
8483           # Now generate the symbol file.
8484           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8485
8486           cat <<_LT_EOF >> conftest.$ac_ext
8487
8488 /* The mapping between symbol names and symbols.  */
8489 const struct {
8490   const char *name;
8491   void       *address;
8492 }
8493 lt__PROGRAM__LTX_preloaded_symbols[] =
8494 {
8495   { "@PROGRAM@", (void *) 0 },
8496 _LT_EOF
8497           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8498           cat <<\_LT_EOF >> conftest.$ac_ext
8499   {0, (void *) 0}
8500 };
8501
8502 /* This works around a problem in FreeBSD linker */
8503 #ifdef FREEBSD_WORKAROUND
8504 static const void *lt_preloaded_setup() {
8505   return lt__PROGRAM__LTX_preloaded_symbols;
8506 }
8507 #endif
8508
8509 #ifdef __cplusplus
8510 }
8511 #endif
8512 _LT_EOF
8513           # Now try linking the two files.
8514           mv conftest.$ac_objext conftstm.$ac_objext
8515           lt_save_LIBS="$LIBS"
8516           lt_save_CFLAGS="$CFLAGS"
8517           LIBS="conftstm.$ac_objext"
8518           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8519           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8520   (eval $ac_link) 2>&5
8521   ac_status=$?
8522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8523   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8524             pipe_works=yes
8525           fi
8526           LIBS="$lt_save_LIBS"
8527           CFLAGS="$lt_save_CFLAGS"
8528         else
8529           echo "cannot find nm_test_func in $nlist" >&5
8530         fi
8531       else
8532         echo "cannot find nm_test_var in $nlist" >&5
8533       fi
8534     else
8535       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8536     fi
8537   else
8538     echo "$progname: failed program was:" >&5
8539     cat conftest.$ac_ext >&5
8540   fi
8541   rm -rf conftest* conftst*
8542
8543   # Do not use the global_symbol_pipe unless it works.
8544   if test "$pipe_works" = yes; then
8545     break
8546   else
8547     lt_cv_sys_global_symbol_pipe=
8548   fi
8549 done
8550
8551 fi
8552
8553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8554   lt_cv_sys_global_symbol_to_cdecl=
8555 fi
8556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8558 $as_echo "failed" >&6; }
8559 else
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8561 $as_echo "ok" >&6; }
8562 fi
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586 # Check whether --enable-libtool-lock was given.
8587 if test "${enable_libtool_lock+set}" = set; then :
8588   enableval=$enable_libtool_lock;
8589 fi
8590
8591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8592
8593 # Some flags need to be propagated to the compiler or linker for good
8594 # libtool support.
8595 case $host in
8596 ia64-*-hpux*)
8597   # Find out which ABI we are using.
8598   echo 'int i;' > conftest.$ac_ext
8599   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8600   (eval $ac_compile) 2>&5
8601   ac_status=$?
8602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8603   test $ac_status = 0; }; then
8604     case `/usr/bin/file conftest.$ac_objext` in
8605       *ELF-32*)
8606         HPUX_IA64_MODE="32"
8607         ;;
8608       *ELF-64*)
8609         HPUX_IA64_MODE="64"
8610         ;;
8611     esac
8612   fi
8613   rm -rf conftest*
8614   ;;
8615 *-*-irix6*)
8616   # Find out which ABI we are using.
8617   echo '#line 8617 "configure"' > conftest.$ac_ext
8618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8619   (eval $ac_compile) 2>&5
8620   ac_status=$?
8621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622   test $ac_status = 0; }; then
8623     if test "$lt_cv_prog_gnu_ld" = yes; then
8624       case `/usr/bin/file conftest.$ac_objext` in
8625         *32-bit*)
8626           LD="${LD-ld} -melf32bsmip"
8627           ;;
8628         *N32*)
8629           LD="${LD-ld} -melf32bmipn32"
8630           ;;
8631         *64-bit*)
8632           LD="${LD-ld} -melf64bmip"
8633         ;;
8634       esac
8635     else
8636       case `/usr/bin/file conftest.$ac_objext` in
8637         *32-bit*)
8638           LD="${LD-ld} -32"
8639           ;;
8640         *N32*)
8641           LD="${LD-ld} -n32"
8642           ;;
8643         *64-bit*)
8644           LD="${LD-ld} -64"
8645           ;;
8646       esac
8647     fi
8648   fi
8649   rm -rf conftest*
8650   ;;
8651
8652 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8653 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8654   # Find out which ABI we are using.
8655   echo 'int i;' > conftest.$ac_ext
8656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8657   (eval $ac_compile) 2>&5
8658   ac_status=$?
8659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8660   test $ac_status = 0; }; then
8661     case `/usr/bin/file conftest.o` in
8662       *32-bit*)
8663         case $host in
8664           x86_64-*kfreebsd*-gnu)
8665             LD="${LD-ld} -m elf_i386_fbsd"
8666             ;;
8667           x86_64-*linux*)
8668             LD="${LD-ld} -m elf_i386"
8669             ;;
8670           ppc64-*linux*|powerpc64-*linux*)
8671             LD="${LD-ld} -m elf32ppclinux"
8672             ;;
8673           s390x-*linux*)
8674             LD="${LD-ld} -m elf_s390"
8675             ;;
8676           sparc64-*linux*)
8677             LD="${LD-ld} -m elf32_sparc"
8678             ;;
8679         esac
8680         ;;
8681       *64-bit*)
8682         case $host in
8683           x86_64-*kfreebsd*-gnu)
8684             LD="${LD-ld} -m elf_x86_64_fbsd"
8685             ;;
8686           x86_64-*linux*)
8687             LD="${LD-ld} -m elf_x86_64"
8688             ;;
8689           ppc*-*linux*|powerpc*-*linux*)
8690             LD="${LD-ld} -m elf64ppc"
8691             ;;
8692           s390*-*linux*|s390*-*tpf*)
8693             LD="${LD-ld} -m elf64_s390"
8694             ;;
8695           sparc*-*linux*)
8696             LD="${LD-ld} -m elf64_sparc"
8697             ;;
8698         esac
8699         ;;
8700     esac
8701   fi
8702   rm -rf conftest*
8703   ;;
8704
8705 *-*-sco3.2v5*)
8706   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8707   SAVE_CFLAGS="$CFLAGS"
8708   CFLAGS="$CFLAGS -belf"
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8710 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8711 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8712   $as_echo_n "(cached) " >&6
8713 else
8714   ac_ext=c
8715 ac_cpp='$CPP $CPPFLAGS'
8716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8719
8720      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722
8723 int
8724 main ()
8725 {
8726
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732   lt_cv_cc_needs_belf=yes
8733 else
8734   lt_cv_cc_needs_belf=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext \
8737     conftest$ac_exeext conftest.$ac_ext
8738      ac_ext=c
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8746 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8747   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8748     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8749     CFLAGS="$SAVE_CFLAGS"
8750   fi
8751   ;;
8752 sparc*-*solaris*)
8753   # Find out which ABI we are using.
8754   echo 'int i;' > conftest.$ac_ext
8755   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8756   (eval $ac_compile) 2>&5
8757   ac_status=$?
8758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8759   test $ac_status = 0; }; then
8760     case `/usr/bin/file conftest.o` in
8761     *64-bit*)
8762       case $lt_cv_prog_gnu_ld in
8763       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8764       *)
8765         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8766           LD="${LD-ld} -64"
8767         fi
8768         ;;
8769       esac
8770       ;;
8771     esac
8772   fi
8773   rm -rf conftest*
8774   ;;
8775 esac
8776
8777 need_locks="$enable_libtool_lock"
8778
8779
8780   case $host_os in
8781     rhapsody* | darwin*)
8782     if test -n "$ac_tool_prefix"; then
8783   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8784 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   if test -n "$DSYMUTIL"; then
8791   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8792 else
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796   IFS=$as_save_IFS
8797   test -z "$as_dir" && as_dir=.
8798     for ac_exec_ext in '' $ac_executable_extensions; do
8799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802     break 2
8803   fi
8804 done
8805   done
8806 IFS=$as_save_IFS
8807
8808 fi
8809 fi
8810 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8811 if test -n "$DSYMUTIL"; then
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8813 $as_echo "$DSYMUTIL" >&6; }
8814 else
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817 fi
8818
8819
8820 fi
8821 if test -z "$ac_cv_prog_DSYMUTIL"; then
8822   ac_ct_DSYMUTIL=$DSYMUTIL
8823   # Extract the first word of "dsymutil", so it can be a program name with args.
8824 set dummy dsymutil; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8828   $as_echo_n "(cached) " >&6
8829 else
8830   if test -n "$ac_ct_DSYMUTIL"; then
8831   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836   IFS=$as_save_IFS
8837   test -z "$as_dir" && as_dir=.
8838     for ac_exec_ext in '' $ac_executable_extensions; do
8839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842     break 2
8843   fi
8844 done
8845   done
8846 IFS=$as_save_IFS
8847
8848 fi
8849 fi
8850 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8851 if test -n "$ac_ct_DSYMUTIL"; then
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8853 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8854 else
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8858
8859   if test "x$ac_ct_DSYMUTIL" = x; then
8860     DSYMUTIL=":"
8861   else
8862     case $cross_compiling:$ac_tool_warned in
8863 yes:)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866 ac_tool_warned=yes ;;
8867 esac
8868     DSYMUTIL=$ac_ct_DSYMUTIL
8869   fi
8870 else
8871   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8872 fi
8873
8874     if test -n "$ac_tool_prefix"; then
8875   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8876 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8880   $as_echo_n "(cached) " >&6
8881 else
8882   if test -n "$NMEDIT"; then
8883   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8887 do
8888   IFS=$as_save_IFS
8889   test -z "$as_dir" && as_dir=.
8890     for ac_exec_ext in '' $ac_executable_extensions; do
8891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894     break 2
8895   fi
8896 done
8897   done
8898 IFS=$as_save_IFS
8899
8900 fi
8901 fi
8902 NMEDIT=$ac_cv_prog_NMEDIT
8903 if test -n "$NMEDIT"; then
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8905 $as_echo "$NMEDIT" >&6; }
8906 else
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8909 fi
8910
8911
8912 fi
8913 if test -z "$ac_cv_prog_NMEDIT"; then
8914   ac_ct_NMEDIT=$NMEDIT
8915   # Extract the first word of "nmedit", so it can be a program name with args.
8916 set dummy nmedit; ac_word=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922   if test -n "$ac_ct_NMEDIT"; then
8923   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928   IFS=$as_save_IFS
8929   test -z "$as_dir" && as_dir=.
8930     for ac_exec_ext in '' $ac_executable_extensions; do
8931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934     break 2
8935   fi
8936 done
8937   done
8938 IFS=$as_save_IFS
8939
8940 fi
8941 fi
8942 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8943 if test -n "$ac_ct_NMEDIT"; then
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8945 $as_echo "$ac_ct_NMEDIT" >&6; }
8946 else
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8949 fi
8950
8951   if test "x$ac_ct_NMEDIT" = x; then
8952     NMEDIT=":"
8953   else
8954     case $cross_compiling:$ac_tool_warned in
8955 yes:)
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8958 ac_tool_warned=yes ;;
8959 esac
8960     NMEDIT=$ac_ct_NMEDIT
8961   fi
8962 else
8963   NMEDIT="$ac_cv_prog_NMEDIT"
8964 fi
8965
8966     if test -n "$ac_tool_prefix"; then
8967   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8968 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if test "${ac_cv_prog_LIPO+set}" = set; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   if test -n "$LIPO"; then
8975   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8976 else
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8979 do
8980   IFS=$as_save_IFS
8981   test -z "$as_dir" && as_dir=.
8982     for ac_exec_ext in '' $ac_executable_extensions; do
8983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986     break 2
8987   fi
8988 done
8989   done
8990 IFS=$as_save_IFS
8991
8992 fi
8993 fi
8994 LIPO=$ac_cv_prog_LIPO
8995 if test -n "$LIPO"; then
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8997 $as_echo "$LIPO" >&6; }
8998 else
8999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9001 fi
9002
9003
9004 fi
9005 if test -z "$ac_cv_prog_LIPO"; then
9006   ac_ct_LIPO=$LIPO
9007   # Extract the first word of "lipo", so it can be a program name with args.
9008 set dummy lipo; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9012   $as_echo_n "(cached) " >&6
9013 else
9014   if test -n "$ac_ct_LIPO"; then
9015   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9019 do
9020   IFS=$as_save_IFS
9021   test -z "$as_dir" && as_dir=.
9022     for ac_exec_ext in '' $ac_executable_extensions; do
9023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024     ac_cv_prog_ac_ct_LIPO="lipo"
9025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026     break 2
9027   fi
9028 done
9029   done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9035 if test -n "$ac_ct_LIPO"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9037 $as_echo "$ac_ct_LIPO" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042
9043   if test "x$ac_ct_LIPO" = x; then
9044     LIPO=":"
9045   else
9046     case $cross_compiling:$ac_tool_warned in
9047 yes:)
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9050 ac_tool_warned=yes ;;
9051 esac
9052     LIPO=$ac_ct_LIPO
9053   fi
9054 else
9055   LIPO="$ac_cv_prog_LIPO"
9056 fi
9057
9058     if test -n "$ac_tool_prefix"; then
9059   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9060 set dummy ${ac_tool_prefix}otool; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066   if test -n "$OTOOL"; then
9067   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9068 else
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072   IFS=$as_save_IFS
9073   test -z "$as_dir" && as_dir=.
9074     for ac_exec_ext in '' $ac_executable_extensions; do
9075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9076     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078     break 2
9079   fi
9080 done
9081   done
9082 IFS=$as_save_IFS
9083
9084 fi
9085 fi
9086 OTOOL=$ac_cv_prog_OTOOL
9087 if test -n "$OTOOL"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9089 $as_echo "$OTOOL" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094
9095
9096 fi
9097 if test -z "$ac_cv_prog_OTOOL"; then
9098   ac_ct_OTOOL=$OTOOL
9099   # Extract the first word of "otool", so it can be a program name with args.
9100 set dummy otool; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9104   $as_echo_n "(cached) " >&6
9105 else
9106   if test -n "$ac_ct_OTOOL"; then
9107   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9111 do
9112   IFS=$as_save_IFS
9113   test -z "$as_dir" && as_dir=.
9114     for ac_exec_ext in '' $ac_executable_extensions; do
9115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9116     ac_cv_prog_ac_ct_OTOOL="otool"
9117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118     break 2
9119   fi
9120 done
9121   done
9122 IFS=$as_save_IFS
9123
9124 fi
9125 fi
9126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9127 if test -n "$ac_ct_OTOOL"; then
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9129 $as_echo "$ac_ct_OTOOL" >&6; }
9130 else
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134
9135   if test "x$ac_ct_OTOOL" = x; then
9136     OTOOL=":"
9137   else
9138     case $cross_compiling:$ac_tool_warned in
9139 yes:)
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9142 ac_tool_warned=yes ;;
9143 esac
9144     OTOOL=$ac_ct_OTOOL
9145   fi
9146 else
9147   OTOOL="$ac_cv_prog_OTOOL"
9148 fi
9149
9150     if test -n "$ac_tool_prefix"; then
9151   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9152 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9156   $as_echo_n "(cached) " >&6
9157 else
9158   if test -n "$OTOOL64"; then
9159   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9163 do
9164   IFS=$as_save_IFS
9165   test -z "$as_dir" && as_dir=.
9166     for ac_exec_ext in '' $ac_executable_extensions; do
9167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170     break 2
9171   fi
9172 done
9173   done
9174 IFS=$as_save_IFS
9175
9176 fi
9177 fi
9178 OTOOL64=$ac_cv_prog_OTOOL64
9179 if test -n "$OTOOL64"; then
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9181 $as_echo "$OTOOL64" >&6; }
9182 else
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9185 fi
9186
9187
9188 fi
9189 if test -z "$ac_cv_prog_OTOOL64"; then
9190   ac_ct_OTOOL64=$OTOOL64
9191   # Extract the first word of "otool64", so it can be a program name with args.
9192 set dummy otool64; ac_word=$2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 $as_echo_n "checking for $ac_word... " >&6; }
9195 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   if test -n "$ac_ct_OTOOL64"; then
9199   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9200 else
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9203 do
9204   IFS=$as_save_IFS
9205   test -z "$as_dir" && as_dir=.
9206     for ac_exec_ext in '' $ac_executable_extensions; do
9207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208     ac_cv_prog_ac_ct_OTOOL64="otool64"
9209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210     break 2
9211   fi
9212 done
9213   done
9214 IFS=$as_save_IFS
9215
9216 fi
9217 fi
9218 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9219 if test -n "$ac_ct_OTOOL64"; then
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9221 $as_echo "$ac_ct_OTOOL64" >&6; }
9222 else
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9225 fi
9226
9227   if test "x$ac_ct_OTOOL64" = x; then
9228     OTOOL64=":"
9229   else
9230     case $cross_compiling:$ac_tool_warned in
9231 yes:)
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9234 ac_tool_warned=yes ;;
9235 esac
9236     OTOOL64=$ac_ct_OTOOL64
9237   fi
9238 else
9239   OTOOL64="$ac_cv_prog_OTOOL64"
9240 fi
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9269 $as_echo_n "checking for -single_module linker flag... " >&6; }
9270 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   lt_cv_apple_cc_single_mod=no
9274       if test -z "${LT_MULTI_MODULE}"; then
9275         # By default we will add the -single_module flag. You can override
9276         # by either setting the environment variable LT_MULTI_MODULE
9277         # non-empty at configure time, or by adding -multi_module to the
9278         # link flags.
9279         rm -rf libconftest.dylib*
9280         echo "int foo(void){return 1;}" > conftest.c
9281         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9282 -dynamiclib -Wl,-single_module conftest.c" >&5
9283         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9284           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9285         _lt_result=$?
9286         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9287           lt_cv_apple_cc_single_mod=yes
9288         else
9289           cat conftest.err >&5
9290         fi
9291         rm -rf libconftest.dylib*
9292         rm -f conftest.*
9293       fi
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9296 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9298 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9299 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   lt_cv_ld_exported_symbols_list=no
9303       save_LDFLAGS=$LDFLAGS
9304       echo "_main" > conftest.sym
9305       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h.  */
9308
9309 int
9310 main ()
9311 {
9312
9313   ;
9314   return 0;
9315 }
9316 _ACEOF
9317 if ac_fn_c_try_link "$LINENO"; then :
9318   lt_cv_ld_exported_symbols_list=yes
9319 else
9320   lt_cv_ld_exported_symbols_list=no
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext \
9323     conftest$ac_exeext conftest.$ac_ext
9324         LDFLAGS="$save_LDFLAGS"
9325
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9328 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9329     case $host_os in
9330     rhapsody* | darwin1.[012])
9331       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9332     darwin1.*)
9333       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9334     darwin*) # darwin 5.x on
9335       # if running on 10.5 or later, the deployment target defaults
9336       # to the OS version, if on x86, and 10.4, the deployment
9337       # target defaults to 10.4. Don't you love it?
9338       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9339         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9340           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9341         10.[012]*)
9342           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9343         10.*)
9344           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9345       esac
9346     ;;
9347   esac
9348     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9349       _lt_dar_single_mod='$single_module'
9350     fi
9351     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9352       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9353     else
9354       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9355     fi
9356     if test "$DSYMUTIL" != ":"; then
9357       _lt_dsymutil='~$DSYMUTIL $lib || :'
9358     else
9359       _lt_dsymutil=
9360     fi
9361     ;;
9362   esac
9363
9364 ac_ext=c
9365 ac_cpp='$CPP $CPPFLAGS'
9366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9370 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9371 # On Suns, sometimes $CPP names a directory.
9372 if test -n "$CPP" && test -d "$CPP"; then
9373   CPP=
9374 fi
9375 if test -z "$CPP"; then
9376   if test "${ac_cv_prog_CPP+set}" = set; then :
9377   $as_echo_n "(cached) " >&6
9378 else
9379       # Double quotes because CPP needs to be expanded
9380     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9381     do
9382       ac_preproc_ok=false
9383 for ac_c_preproc_warn_flag in '' yes
9384 do
9385   # Use a header file that comes with gcc, so configuring glibc
9386   # with a fresh cross-compiler works.
9387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9388   # <limits.h> exists even on freestanding compilers.
9389   # On the NeXT, cc -E runs the code through the compiler's parser,
9390   # not just through cpp. "Syntax error" is here to catch this case.
9391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h.  */
9393 #ifdef __STDC__
9394 # include <limits.h>
9395 #else
9396 # include <assert.h>
9397 #endif
9398                      Syntax error
9399 _ACEOF
9400 if ac_fn_c_try_cpp "$LINENO"; then :
9401
9402 else
9403   # Broken: fails on valid input.
9404 continue
9405 fi
9406 rm -f conftest.err conftest.i conftest.$ac_ext
9407
9408   # OK, works on sane cases.  Now check whether nonexistent headers
9409   # can be detected and how.
9410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h.  */
9412 #include <ac_nonexistent.h>
9413 _ACEOF
9414 if ac_fn_c_try_cpp "$LINENO"; then :
9415   # Broken: success on invalid input.
9416 continue
9417 else
9418   # Passes both tests.
9419 ac_preproc_ok=:
9420 break
9421 fi
9422 rm -f conftest.err conftest.i conftest.$ac_ext
9423
9424 done
9425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9426 rm -f conftest.i conftest.err conftest.$ac_ext
9427 if $ac_preproc_ok; then :
9428   break
9429 fi
9430
9431     done
9432     ac_cv_prog_CPP=$CPP
9433
9434 fi
9435   CPP=$ac_cv_prog_CPP
9436 else
9437   ac_cv_prog_CPP=$CPP
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9440 $as_echo "$CPP" >&6; }
9441 ac_preproc_ok=false
9442 for ac_c_preproc_warn_flag in '' yes
9443 do
9444   # Use a header file that comes with gcc, so configuring glibc
9445   # with a fresh cross-compiler works.
9446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447   # <limits.h> exists even on freestanding compilers.
9448   # On the NeXT, cc -E runs the code through the compiler's parser,
9449   # not just through cpp. "Syntax error" is here to catch this case.
9450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h.  */
9452 #ifdef __STDC__
9453 # include <limits.h>
9454 #else
9455 # include <assert.h>
9456 #endif
9457                      Syntax error
9458 _ACEOF
9459 if ac_fn_c_try_cpp "$LINENO"; then :
9460
9461 else
9462   # Broken: fails on valid input.
9463 continue
9464 fi
9465 rm -f conftest.err conftest.i conftest.$ac_ext
9466
9467   # OK, works on sane cases.  Now check whether nonexistent headers
9468   # can be detected and how.
9469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h.  */
9471 #include <ac_nonexistent.h>
9472 _ACEOF
9473 if ac_fn_c_try_cpp "$LINENO"; then :
9474   # Broken: success on invalid input.
9475 continue
9476 else
9477   # Passes both tests.
9478 ac_preproc_ok=:
9479 break
9480 fi
9481 rm -f conftest.err conftest.i conftest.$ac_ext
9482
9483 done
9484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9485 rm -f conftest.i conftest.err conftest.$ac_ext
9486 if $ac_preproc_ok; then :
9487
9488 else
9489   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9491 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9492 See \`config.log' for more details" "$LINENO" 5 ; }
9493 fi
9494
9495 ac_ext=c
9496 ac_cpp='$CPP $CPPFLAGS'
9497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9500
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9503 $as_echo_n "checking for ANSI C header files... " >&6; }
9504 if test "${ac_cv_header_stdc+set}" = set; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h.  */
9509 #include <stdlib.h>
9510 #include <stdarg.h>
9511 #include <string.h>
9512 #include <float.h>
9513
9514 int
9515 main ()
9516 {
9517
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 if ac_fn_c_try_compile "$LINENO"; then :
9523   ac_cv_header_stdc=yes
9524 else
9525   ac_cv_header_stdc=no
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528
9529 if test $ac_cv_header_stdc = yes; then
9530   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h.  */
9533 #include <string.h>
9534
9535 _ACEOF
9536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9537   $EGREP "memchr" >/dev/null 2>&1; then :
9538
9539 else
9540   ac_cv_header_stdc=no
9541 fi
9542 rm -f conftest*
9543
9544 fi
9545
9546 if test $ac_cv_header_stdc = yes; then
9547   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h.  */
9550 #include <stdlib.h>
9551
9552 _ACEOF
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554   $EGREP "free" >/dev/null 2>&1; then :
9555
9556 else
9557   ac_cv_header_stdc=no
9558 fi
9559 rm -f conftest*
9560
9561 fi
9562
9563 if test $ac_cv_header_stdc = yes; then
9564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9565   if test "$cross_compiling" = yes; then :
9566   :
9567 else
9568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h.  */
9570 #include <ctype.h>
9571 #include <stdlib.h>
9572 #if ((' ' & 0x0FF) == 0x020)
9573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9575 #else
9576 # define ISLOWER(c) \
9577                    (('a' <= (c) && (c) <= 'i') \
9578                      || ('j' <= (c) && (c) <= 'r') \
9579                      || ('s' <= (c) && (c) <= 'z'))
9580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9581 #endif
9582
9583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9584 int
9585 main ()
9586 {
9587   int i;
9588   for (i = 0; i < 256; i++)
9589     if (XOR (islower (i), ISLOWER (i))
9590         || toupper (i) != TOUPPER (i))
9591       return 2;
9592   return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_run "$LINENO"; then :
9596
9597 else
9598   ac_cv_header_stdc=no
9599 fi
9600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9601   conftest.$ac_objext conftest.beam conftest.$ac_ext
9602 fi
9603
9604 fi
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9607 $as_echo "$ac_cv_header_stdc" >&6; }
9608 if test $ac_cv_header_stdc = yes; then
9609
9610 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9611
9612 fi
9613
9614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9616                   inttypes.h stdint.h unistd.h
9617 do :
9618   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9619 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9620 "
9621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9622   cat >>confdefs.h <<_ACEOF
9623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 _ACEOF
9625
9626 fi
9627
9628 done
9629
9630
9631 for ac_header in dlfcn.h
9632 do :
9633   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9634 "
9635 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9636   cat >>confdefs.h <<_ACEOF
9637 #define HAVE_DLFCN_H 1
9638 _ACEOF
9639
9640 fi
9641
9642 done
9643
9644
9645
9646 ac_ext=cpp
9647 ac_cpp='$CXXCPP $CPPFLAGS'
9648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9651 if test -z "$CXX"; then
9652   if test -n "$CCC"; then
9653     CXX=$CCC
9654   else
9655     if test -n "$ac_tool_prefix"; then
9656   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9657   do
9658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if test "${ac_cv_prog_CXX+set}" = set; then :
9663   $as_echo_n "(cached) " >&6
9664 else
9665   if test -n "$CXX"; then
9666   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9667 else
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671   IFS=$as_save_IFS
9672   test -z "$as_dir" && as_dir=.
9673     for ac_exec_ext in '' $ac_executable_extensions; do
9674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677     break 2
9678   fi
9679 done
9680   done
9681 IFS=$as_save_IFS
9682
9683 fi
9684 fi
9685 CXX=$ac_cv_prog_CXX
9686 if test -n "$CXX"; then
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9688 $as_echo "$CXX" >&6; }
9689 else
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695     test -n "$CXX" && break
9696   done
9697 fi
9698 if test -z "$CXX"; then
9699   ac_ct_CXX=$CXX
9700   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9701 do
9702   # Extract the first word of "$ac_prog", so it can be a program name with args.
9703 set dummy $ac_prog; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709   if test -n "$ac_ct_CXX"; then
9710   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715   IFS=$as_save_IFS
9716   test -z "$as_dir" && as_dir=.
9717     for ac_exec_ext in '' $ac_executable_extensions; do
9718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719     ac_cv_prog_ac_ct_CXX="$ac_prog"
9720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721     break 2
9722   fi
9723 done
9724   done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9730 if test -n "$ac_ct_CXX"; then
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9732 $as_echo "$ac_ct_CXX" >&6; }
9733 else
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739   test -n "$ac_ct_CXX" && break
9740 done
9741
9742   if test "x$ac_ct_CXX" = x; then
9743     CXX="g++"
9744   else
9745     case $cross_compiling:$ac_tool_warned in
9746 yes:)
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9749 ac_tool_warned=yes ;;
9750 esac
9751     CXX=$ac_ct_CXX
9752   fi
9753 fi
9754
9755   fi
9756 fi
9757 # Provide some information about the compiler.
9758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9759 set X $ac_compile
9760 ac_compiler=$2
9761 for ac_option in --version -v -V -qversion; do
9762   { { ac_try="$ac_compiler $ac_option >&5"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9768 $as_echo "$ac_try_echo"; } >&5
9769   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9770   ac_status=$?
9771   if test -s conftest.err; then
9772     sed '10a\
9773 ... rest of stderr output deleted ...
9774          10q' conftest.err >conftest.er1
9775     cat conftest.er1 >&5
9776   fi
9777   rm -f conftest.er1 conftest.err
9778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779   test $ac_status = 0; }
9780 done
9781
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9783 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9784 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9785   $as_echo_n "(cached) " >&6
9786 else
9787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h.  */
9789
9790 int
9791 main ()
9792 {
9793 #ifndef __GNUC__
9794        choke me
9795 #endif
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_cxx_try_compile "$LINENO"; then :
9802   ac_compiler_gnu=yes
9803 else
9804   ac_compiler_gnu=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9808
9809 fi
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9811 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9812 if test $ac_compiler_gnu = yes; then
9813   GXX=yes
9814 else
9815   GXX=
9816 fi
9817 ac_test_CXXFLAGS=${CXXFLAGS+set}
9818 ac_save_CXXFLAGS=$CXXFLAGS
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9820 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9821 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9822   $as_echo_n "(cached) " >&6
9823 else
9824   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9825    ac_cxx_werror_flag=yes
9826    ac_cv_prog_cxx_g=no
9827    CXXFLAGS="-g"
9828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h.  */
9830
9831 int
9832 main ()
9833 {
9834
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_cxx_try_compile "$LINENO"; then :
9840   ac_cv_prog_cxx_g=yes
9841 else
9842   CXXFLAGS=""
9843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h.  */
9845
9846 int
9847 main ()
9848 {
9849
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 if ac_fn_cxx_try_compile "$LINENO"; then :
9855
9856 else
9857   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9858          CXXFLAGS="-g"
9859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h.  */
9861
9862 int
9863 main ()
9864 {
9865
9866   ;
9867   return 0;
9868 }
9869 _ACEOF
9870 if ac_fn_cxx_try_compile "$LINENO"; then :
9871   ac_cv_prog_cxx_g=yes
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9879 fi
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9881 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9882 if test "$ac_test_CXXFLAGS" = set; then
9883   CXXFLAGS=$ac_save_CXXFLAGS
9884 elif test $ac_cv_prog_cxx_g = yes; then
9885   if test "$GXX" = yes; then
9886     CXXFLAGS="-g -O2"
9887   else
9888     CXXFLAGS="-g"
9889   fi
9890 else
9891   if test "$GXX" = yes; then
9892     CXXFLAGS="-O2"
9893   else
9894     CXXFLAGS=
9895   fi
9896 fi
9897 ac_ext=c
9898 ac_cpp='$CPP $CPPFLAGS'
9899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9902
9903 depcc="$CXX"  am_compiler_list=
9904
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9906 $as_echo_n "checking dependency style of $depcc... " >&6; }
9907 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9911   # We make a subdir and do the tests there.  Otherwise we can end up
9912   # making bogus files that we don't know about and never remove.  For
9913   # instance it was reported that on HP-UX the gcc test will end up
9914   # making a dummy file named `D' -- because `-MD' means `put the output
9915   # in D'.
9916   mkdir conftest.dir
9917   # Copy depcomp to subdir because otherwise we won't find it if we're
9918   # using a relative directory.
9919   cp "$am_depcomp" conftest.dir
9920   cd conftest.dir
9921   # We will build objects and dependencies in a subdirectory because
9922   # it helps to detect inapplicable dependency modes.  For instance
9923   # both Tru64's cc and ICC support -MD to output dependencies as a
9924   # side effect of compilation, but ICC will put the dependencies in
9925   # the current directory while Tru64 will put them in the object
9926   # directory.
9927   mkdir sub
9928
9929   am_cv_CXX_dependencies_compiler_type=none
9930   if test "$am_compiler_list" = ""; then
9931      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9932   fi
9933   am__universal=false
9934   case " $depcc " in #(
9935      *\ -arch\ *\ -arch\ *) am__universal=true ;;
9936      esac
9937
9938   for depmode in $am_compiler_list; do
9939     # Setup a source with many dependencies, because some compilers
9940     # like to wrap large dependency lists on column 80 (with \), and
9941     # we should not choose a depcomp mode which is confused by this.
9942     #
9943     # We need to recreate these files for each test, as the compiler may
9944     # overwrite some of them when testing with obscure command lines.
9945     # This happens at least with the AIX C compiler.
9946     : > sub/conftest.c
9947     for i in 1 2 3 4 5 6; do
9948       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9949       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9950       # Solaris 8's {/usr,}/bin/sh.
9951       touch sub/conftst$i.h
9952     done
9953     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9954
9955     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9956     # mode.  It turns out that the SunPro C++ compiler does not properly
9957     # handle `-M -o', and we need to detect this.  Also, some Intel
9958     # versions had trouble with output in subdirs
9959     am__obj=sub/conftest.${OBJEXT-o}
9960     am__minus_obj="-o $am__obj"
9961     case $depmode in
9962     gcc)
9963       # This depmode causes a compiler race in universal mode.
9964       test "$am__universal" = false || continue
9965       ;;
9966     nosideeffect)
9967       # after this tag, mechanisms are not by side-effect, so they'll
9968       # only be used when explicitly requested
9969       if test "x$enable_dependency_tracking" = xyes; then
9970         continue
9971       else
9972         break
9973       fi
9974       ;;
9975     msvisualcpp | msvcmsys)
9976       # This compiler won't grok `-c -o', but also, the minuso test has
9977       # not run yet.  These depmodes are late enough in the game, and
9978       # so weak that their functioning should not be impacted.
9979       am__obj=conftest.${OBJEXT-o}
9980       am__minus_obj=
9981       ;;
9982     none) break ;;
9983     esac
9984     if depmode=$depmode \
9985        source=sub/conftest.c object=$am__obj \
9986        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9987        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9988          >/dev/null 2>conftest.err &&
9989        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9990        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9991        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9992        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9993       # icc doesn't choke on unknown options, it will just issue warnings
9994       # or remarks (even with -Werror).  So we grep stderr for any message
9995       # that says an option was ignored or not supported.
9996       # When given -MP, icc 7.0 and 7.1 complain thusly:
9997       #   icc: Command line warning: ignoring option '-M'; no argument required
9998       # The diagnosis changed in icc 8.0:
9999       #   icc: Command line remark: option '-MP' not supported
10000       if (grep 'ignoring option' conftest.err ||
10001           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10002         am_cv_CXX_dependencies_compiler_type=$depmode
10003         break
10004       fi
10005     fi
10006   done
10007
10008   cd ..
10009   rm -rf conftest.dir
10010 else
10011   am_cv_CXX_dependencies_compiler_type=none
10012 fi
10013
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10016 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10017 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10018
10019  if
10020   test "x$enable_dependency_tracking" != xno \
10021   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10022   am__fastdepCXX_TRUE=
10023   am__fastdepCXX_FALSE='#'
10024 else
10025   am__fastdepCXX_TRUE='#'
10026   am__fastdepCXX_FALSE=
10027 fi
10028
10029
10030 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10031     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10032     (test "X$CXX" != "Xg++"))) ; then
10033   ac_ext=cpp
10034 ac_cpp='$CXXCPP $CPPFLAGS'
10035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10039 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10040 if test -z "$CXXCPP"; then
10041   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044       # Double quotes because CXXCPP needs to be expanded
10045     for CXXCPP in "$CXX -E" "/lib/cpp"
10046     do
10047       ac_preproc_ok=false
10048 for ac_cxx_preproc_warn_flag in '' yes
10049 do
10050   # Use a header file that comes with gcc, so configuring glibc
10051   # with a fresh cross-compiler works.
10052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053   # <limits.h> exists even on freestanding compilers.
10054   # On the NeXT, cc -E runs the code through the compiler's parser,
10055   # not just through cpp. "Syntax error" is here to catch this case.
10056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h.  */
10058 #ifdef __STDC__
10059 # include <limits.h>
10060 #else
10061 # include <assert.h>
10062 #endif
10063                      Syntax error
10064 _ACEOF
10065 if ac_fn_cxx_try_cpp "$LINENO"; then :
10066
10067 else
10068   # Broken: fails on valid input.
10069 continue
10070 fi
10071 rm -f conftest.err conftest.i conftest.$ac_ext
10072
10073   # OK, works on sane cases.  Now check whether nonexistent headers
10074   # can be detected and how.
10075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h.  */
10077 #include <ac_nonexistent.h>
10078 _ACEOF
10079 if ac_fn_cxx_try_cpp "$LINENO"; then :
10080   # Broken: success on invalid input.
10081 continue
10082 else
10083   # Passes both tests.
10084 ac_preproc_ok=:
10085 break
10086 fi
10087 rm -f conftest.err conftest.i conftest.$ac_ext
10088
10089 done
10090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10091 rm -f conftest.i conftest.err conftest.$ac_ext
10092 if $ac_preproc_ok; then :
10093   break
10094 fi
10095
10096     done
10097     ac_cv_prog_CXXCPP=$CXXCPP
10098
10099 fi
10100   CXXCPP=$ac_cv_prog_CXXCPP
10101 else
10102   ac_cv_prog_CXXCPP=$CXXCPP
10103 fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10105 $as_echo "$CXXCPP" >&6; }
10106 ac_preproc_ok=false
10107 for ac_cxx_preproc_warn_flag in '' yes
10108 do
10109   # Use a header file that comes with gcc, so configuring glibc
10110   # with a fresh cross-compiler works.
10111   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112   # <limits.h> exists even on freestanding compilers.
10113   # On the NeXT, cc -E runs the code through the compiler's parser,
10114   # not just through cpp. "Syntax error" is here to catch this case.
10115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h.  */
10117 #ifdef __STDC__
10118 # include <limits.h>
10119 #else
10120 # include <assert.h>
10121 #endif
10122                      Syntax error
10123 _ACEOF
10124 if ac_fn_cxx_try_cpp "$LINENO"; then :
10125
10126 else
10127   # Broken: fails on valid input.
10128 continue
10129 fi
10130 rm -f conftest.err conftest.i conftest.$ac_ext
10131
10132   # OK, works on sane cases.  Now check whether nonexistent headers
10133   # can be detected and how.
10134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h.  */
10136 #include <ac_nonexistent.h>
10137 _ACEOF
10138 if ac_fn_cxx_try_cpp "$LINENO"; then :
10139   # Broken: success on invalid input.
10140 continue
10141 else
10142   # Passes both tests.
10143 ac_preproc_ok=:
10144 break
10145 fi
10146 rm -f conftest.err conftest.i conftest.$ac_ext
10147
10148 done
10149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10150 rm -f conftest.i conftest.err conftest.$ac_ext
10151 if $ac_preproc_ok; then :
10152
10153 else
10154   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10156 _lt_caught_CXX_error=yes; }
10157 fi
10158
10159 ac_ext=c
10160 ac_cpp='$CPP $CPPFLAGS'
10161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10164
10165 else
10166   _lt_caught_CXX_error=yes
10167 fi
10168
10169
10170
10171
10172
10173 # Set options
10174
10175
10176
10177         enable_dlopen=no
10178
10179
10180   enable_win32_dll=no
10181
10182
10183             # Check whether --enable-shared was given.
10184 if test "${enable_shared+set}" = set; then :
10185   enableval=$enable_shared; p=${PACKAGE-default}
10186     case $enableval in
10187     yes) enable_shared=yes ;;
10188     no) enable_shared=no ;;
10189     *)
10190       enable_shared=no
10191       # Look at the argument we got.  We use all the common list separators.
10192       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10193       for pkg in $enableval; do
10194         IFS="$lt_save_ifs"
10195         if test "X$pkg" = "X$p"; then
10196           enable_shared=yes
10197         fi
10198       done
10199       IFS="$lt_save_ifs"
10200       ;;
10201     esac
10202 else
10203   enable_shared=yes
10204 fi
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 # Check whether --with-pic was given.
10217 if test "${with_pic+set}" = set; then :
10218   withval=$with_pic; pic_mode="$withval"
10219 else
10220   pic_mode=default
10221 fi
10222
10223
10224 test -z "$pic_mode" && pic_mode=default
10225
10226
10227
10228
10229
10230
10231
10232   # Check whether --enable-fast-install was given.
10233 if test "${enable_fast_install+set}" = set; then :
10234   enableval=$enable_fast_install; p=${PACKAGE-default}
10235     case $enableval in
10236     yes) enable_fast_install=yes ;;
10237     no) enable_fast_install=no ;;
10238     *)
10239       enable_fast_install=no
10240       # Look at the argument we got.  We use all the common list separators.
10241       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10242       for pkg in $enableval; do
10243         IFS="$lt_save_ifs"
10244         if test "X$pkg" = "X$p"; then
10245           enable_fast_install=yes
10246         fi
10247       done
10248       IFS="$lt_save_ifs"
10249       ;;
10250     esac
10251 else
10252   enable_fast_install=yes
10253 fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 # This can be used to rebuild libtool when needed
10266 LIBTOOL_DEPS="$ltmain"
10267
10268 # Always use our own libtool.
10269 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295 test -z "$LN_S" && LN_S="ln -s"
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310 if test -n "${ZSH_VERSION+set}" ; then
10311    setopt NO_GLOB_SUBST
10312 fi
10313
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10315 $as_echo_n "checking for objdir... " >&6; }
10316 if test "${lt_cv_objdir+set}" = set; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319   rm -f .libs 2>/dev/null
10320 mkdir .libs 2>/dev/null
10321 if test -d .libs; then
10322   lt_cv_objdir=.libs
10323 else
10324   # MS-DOS does not allow filenames that begin with a dot.
10325   lt_cv_objdir=_libs
10326 fi
10327 rmdir .libs 2>/dev/null
10328 fi
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10330 $as_echo "$lt_cv_objdir" >&6; }
10331 objdir=$lt_cv_objdir
10332
10333
10334
10335
10336
10337 cat >>confdefs.h <<_ACEOF
10338 #define LT_OBJDIR "$lt_cv_objdir/"
10339 _ACEOF
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357 case $host_os in
10358 aix3*)
10359   # AIX sometimes has problems with the GCC collect2 program.  For some
10360   # reason, if we set the COLLECT_NAMES environment variable, the problems
10361   # vanish in a puff of smoke.
10362   if test "X${COLLECT_NAMES+set}" != Xset; then
10363     COLLECT_NAMES=
10364     export COLLECT_NAMES
10365   fi
10366   ;;
10367 esac
10368
10369 # Sed substitution that helps us do robust quoting.  It backslashifies
10370 # metacharacters that are still active within double-quoted strings.
10371 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10372
10373 # Same as above, but do not quote variable references.
10374 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10375
10376 # Sed substitution to delay expansion of an escaped shell variable in a
10377 # double_quote_subst'ed string.
10378 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10379
10380 # Sed substitution to delay expansion of an escaped single quote.
10381 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10382
10383 # Sed substitution to avoid accidental globbing in evaled expressions
10384 no_glob_subst='s/\*/\\\*/g'
10385
10386 # Global variables:
10387 ofile=libtool
10388 can_build_shared=yes
10389
10390 # All known linkers require a `.a' archive for static linking (except MSVC,
10391 # which needs '.lib').
10392 libext=a
10393
10394 with_gnu_ld="$lt_cv_prog_gnu_ld"
10395
10396 old_CC="$CC"
10397 old_CFLAGS="$CFLAGS"
10398
10399 # Set sane defaults for various variables
10400 test -z "$CC" && CC=cc
10401 test -z "$LTCC" && LTCC=$CC
10402 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10403 test -z "$LD" && LD=ld
10404 test -z "$ac_objext" && ac_objext=o
10405
10406 for cc_temp in $compiler""; do
10407   case $cc_temp in
10408     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10409     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10410     \-*) ;;
10411     *) break;;
10412   esac
10413 done
10414 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10415
10416
10417 # Only perform the check for file, if the check method requires it
10418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10419 case $deplibs_check_method in
10420 file_magic*)
10421   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10425   $as_echo_n "(cached) " >&6
10426 else
10427   case $MAGIC_CMD in
10428 [\\/*] |  ?:[\\/]*)
10429   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10430   ;;
10431 *)
10432   lt_save_MAGIC_CMD="$MAGIC_CMD"
10433   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10434   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10435   for ac_dir in $ac_dummy; do
10436     IFS="$lt_save_ifs"
10437     test -z "$ac_dir" && ac_dir=.
10438     if test -f $ac_dir/${ac_tool_prefix}file; then
10439       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10440       if test -n "$file_magic_test_file"; then
10441         case $deplibs_check_method in
10442         "file_magic "*)
10443           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10444           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10446             $EGREP "$file_magic_regex" > /dev/null; then
10447             :
10448           else
10449             cat <<_LT_EOF 1>&2
10450
10451 *** Warning: the command libtool uses to detect shared libraries,
10452 *** $file_magic_cmd, produces output that libtool cannot recognize.
10453 *** The result is that libtool may fail to recognize shared libraries
10454 *** as such.  This will affect the creation of libtool libraries that
10455 *** depend on shared libraries, but programs linked with such libtool
10456 *** libraries will work regardless of this problem.  Nevertheless, you
10457 *** may want to report the problem to your system manager and/or to
10458 *** bug-libtool@gnu.org
10459
10460 _LT_EOF
10461           fi ;;
10462         esac
10463       fi
10464       break
10465     fi
10466   done
10467   IFS="$lt_save_ifs"
10468   MAGIC_CMD="$lt_save_MAGIC_CMD"
10469   ;;
10470 esac
10471 fi
10472
10473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10474 if test -n "$MAGIC_CMD"; then
10475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10476 $as_echo "$MAGIC_CMD" >&6; }
10477 else
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10480 fi
10481
10482
10483
10484
10485
10486 if test -z "$lt_cv_path_MAGIC_CMD"; then
10487   if test -n "$ac_tool_prefix"; then
10488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10489 $as_echo_n "checking for file... " >&6; }
10490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10491   $as_echo_n "(cached) " >&6
10492 else
10493   case $MAGIC_CMD in
10494 [\\/*] |  ?:[\\/]*)
10495   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10496   ;;
10497 *)
10498   lt_save_MAGIC_CMD="$MAGIC_CMD"
10499   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10500   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10501   for ac_dir in $ac_dummy; do
10502     IFS="$lt_save_ifs"
10503     test -z "$ac_dir" && ac_dir=.
10504     if test -f $ac_dir/file; then
10505       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10506       if test -n "$file_magic_test_file"; then
10507         case $deplibs_check_method in
10508         "file_magic "*)
10509           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10510           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10511           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10512             $EGREP "$file_magic_regex" > /dev/null; then
10513             :
10514           else
10515             cat <<_LT_EOF 1>&2
10516
10517 *** Warning: the command libtool uses to detect shared libraries,
10518 *** $file_magic_cmd, produces output that libtool cannot recognize.
10519 *** The result is that libtool may fail to recognize shared libraries
10520 *** as such.  This will affect the creation of libtool libraries that
10521 *** depend on shared libraries, but programs linked with such libtool
10522 *** libraries will work regardless of this problem.  Nevertheless, you
10523 *** may want to report the problem to your system manager and/or to
10524 *** bug-libtool@gnu.org
10525
10526 _LT_EOF
10527           fi ;;
10528         esac
10529       fi
10530       break
10531     fi
10532   done
10533   IFS="$lt_save_ifs"
10534   MAGIC_CMD="$lt_save_MAGIC_CMD"
10535   ;;
10536 esac
10537 fi
10538
10539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10540 if test -n "$MAGIC_CMD"; then
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10542 $as_echo "$MAGIC_CMD" >&6; }
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547
10548
10549   else
10550     MAGIC_CMD=:
10551   fi
10552 fi
10553
10554   fi
10555   ;;
10556 esac
10557
10558 # Use C for the default configuration in the libtool script
10559
10560 lt_save_CC="$CC"
10561 ac_ext=c
10562 ac_cpp='$CPP $CPPFLAGS'
10563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10566
10567
10568 # Source file extension for C test sources.
10569 ac_ext=c
10570
10571 # Object file extension for compiled C test sources.
10572 objext=o
10573 objext=$objext
10574
10575 # Code to be used in simple compile tests
10576 lt_simple_compile_test_code="int some_variable = 0;"
10577
10578 # Code to be used in simple link tests
10579 lt_simple_link_test_code='int main(){return(0);}'
10580
10581
10582
10583
10584
10585
10586
10587 # If no C compiler was specified, use CC.
10588 LTCC=${LTCC-"$CC"}
10589
10590 # If no C compiler flags were specified, use CFLAGS.
10591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10592
10593 # Allow CC to be a program name with arguments.
10594 compiler=$CC
10595
10596 # Save the default compiler, since it gets overwritten when the other
10597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10598 compiler_DEFAULT=$CC
10599
10600 # save warnings/boilerplate of simple test code
10601 ac_outfile=conftest.$ac_objext
10602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10604 _lt_compiler_boilerplate=`cat conftest.err`
10605 $RM conftest*
10606
10607 ac_outfile=conftest.$ac_objext
10608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10610 _lt_linker_boilerplate=`cat conftest.err`
10611 $RM -r conftest*
10612
10613
10614 ## CAVEAT EMPTOR:
10615 ## There is no encapsulation within the following macros, do not change
10616 ## the running order or otherwise move them around unless you know exactly
10617 ## what you are doing...
10618 if test -n "$compiler"; then
10619
10620 lt_prog_compiler_no_builtin_flag=
10621
10622 if test "$GCC" = yes; then
10623   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10624
10625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10626 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10627 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   lt_cv_prog_compiler_rtti_exceptions=no
10631    ac_outfile=conftest.$ac_objext
10632    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10633    lt_compiler_flag="-fno-rtti -fno-exceptions"
10634    # Insert the option either (1) after the last *FLAGS variable, or
10635    # (2) before a word containing "conftest.", or (3) at the end.
10636    # Note that $ac_compile itself does not contain backslashes and begins
10637    # with a dollar sign (not a hyphen), so the echo should work correctly.
10638    # The option is referenced via a variable to avoid confusing sed.
10639    lt_compile=`echo "$ac_compile" | $SED \
10640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10642    -e 's:$: $lt_compiler_flag:'`
10643    (eval echo "\"\$as_me:10643: $lt_compile\"" >&5)
10644    (eval "$lt_compile" 2>conftest.err)
10645    ac_status=$?
10646    cat conftest.err >&5
10647    echo "$as_me:10647: \$? = $ac_status" >&5
10648    if (exit $ac_status) && test -s "$ac_outfile"; then
10649      # The compiler can only warn and ignore the option if not recognized
10650      # So say no if there are warnings other than the usual output.
10651      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10652      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10653      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10654        lt_cv_prog_compiler_rtti_exceptions=yes
10655      fi
10656    fi
10657    $RM conftest*
10658
10659 fi
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10661 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10662
10663 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10664     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10665 else
10666     :
10667 fi
10668
10669 fi
10670
10671
10672
10673
10674
10675
10676   lt_prog_compiler_wl=
10677 lt_prog_compiler_pic=
10678 lt_prog_compiler_static=
10679
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10681 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10682
10683   if test "$GCC" = yes; then
10684     lt_prog_compiler_wl='-Wl,'
10685     lt_prog_compiler_static='-static'
10686
10687     case $host_os in
10688       aix*)
10689       # All AIX code is PIC.
10690       if test "$host_cpu" = ia64; then
10691         # AIX 5 now supports IA64 processor
10692         lt_prog_compiler_static='-Bstatic'
10693       fi
10694       ;;
10695
10696     amigaos*)
10697       case $host_cpu in
10698       powerpc)
10699             # see comment about AmigaOS4 .so support
10700             lt_prog_compiler_pic='-fPIC'
10701         ;;
10702       m68k)
10703             # FIXME: we need at least 68020 code to build shared libraries, but
10704             # adding the `-m68020' flag to GCC prevents building anything better,
10705             # like `-m68040'.
10706             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10707         ;;
10708       esac
10709       ;;
10710
10711     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10712       # PIC is the default for these OSes.
10713       ;;
10714
10715     mingw* | cygwin* | pw32* | os2* | cegcc*)
10716       # This hack is so that the source file can tell whether it is being
10717       # built for inclusion in a dll (and should export symbols for example).
10718       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10719       # (--disable-auto-import) libraries
10720       lt_prog_compiler_pic='-DDLL_EXPORT'
10721       ;;
10722
10723     darwin* | rhapsody*)
10724       # PIC is the default on this platform
10725       # Common symbols not allowed in MH_DYLIB files
10726       lt_prog_compiler_pic='-fno-common'
10727       ;;
10728
10729     hpux*)
10730       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10731       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10732       # sets the default TLS model and affects inlining.
10733       case $host_cpu in
10734       hppa*64*)
10735         # +Z the default
10736         ;;
10737       *)
10738         lt_prog_compiler_pic='-fPIC'
10739         ;;
10740       esac
10741       ;;
10742
10743     interix[3-9]*)
10744       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10745       # Instead, we relocate shared libraries at runtime.
10746       ;;
10747
10748     msdosdjgpp*)
10749       # Just because we use GCC doesn't mean we suddenly get shared libraries
10750       # on systems that don't support them.
10751       lt_prog_compiler_can_build_shared=no
10752       enable_shared=no
10753       ;;
10754
10755     *nto* | *qnx*)
10756       # QNX uses GNU C++, but need to define -shared option too, otherwise
10757       # it will coredump.
10758       lt_prog_compiler_pic='-fPIC -shared'
10759       ;;
10760
10761     sysv4*MP*)
10762       if test -d /usr/nec; then
10763         lt_prog_compiler_pic=-Kconform_pic
10764       fi
10765       ;;
10766
10767     *)
10768       lt_prog_compiler_pic='-fPIC'
10769       ;;
10770     esac
10771   else
10772     # PORTME Check for flag to pass linker flags through the system compiler.
10773     case $host_os in
10774     aix*)
10775       lt_prog_compiler_wl='-Wl,'
10776       if test "$host_cpu" = ia64; then
10777         # AIX 5 now supports IA64 processor
10778         lt_prog_compiler_static='-Bstatic'
10779       else
10780         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10781       fi
10782       ;;
10783
10784     mingw* | cygwin* | pw32* | os2* | cegcc*)
10785       # This hack is so that the source file can tell whether it is being
10786       # built for inclusion in a dll (and should export symbols for example).
10787       lt_prog_compiler_pic='-DDLL_EXPORT'
10788       ;;
10789
10790     hpux9* | hpux10* | hpux11*)
10791       lt_prog_compiler_wl='-Wl,'
10792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10793       # not for PA HP-UX.
10794       case $host_cpu in
10795       hppa*64*|ia64*)
10796         # +Z the default
10797         ;;
10798       *)
10799         lt_prog_compiler_pic='+Z'
10800         ;;
10801       esac
10802       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10803       lt_prog_compiler_static='${wl}-a ${wl}archive'
10804       ;;
10805
10806     irix5* | irix6* | nonstopux*)
10807       lt_prog_compiler_wl='-Wl,'
10808       # PIC (with -KPIC) is the default.
10809       lt_prog_compiler_static='-non_shared'
10810       ;;
10811
10812     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10813       case $cc_basename in
10814       # old Intel for x86_64 which still supported -KPIC.
10815       ecc*)
10816         lt_prog_compiler_wl='-Wl,'
10817         lt_prog_compiler_pic='-KPIC'
10818         lt_prog_compiler_static='-static'
10819         ;;
10820       # icc used to be incompatible with GCC.
10821       # ICC 10 doesn't accept -KPIC any more.
10822       icc* | ifort*)
10823         lt_prog_compiler_wl='-Wl,'
10824         lt_prog_compiler_pic='-fPIC'
10825         lt_prog_compiler_static='-static'
10826         ;;
10827       # Lahey Fortran 8.1.
10828       lf95*)
10829         lt_prog_compiler_wl='-Wl,'
10830         lt_prog_compiler_pic='--shared'
10831         lt_prog_compiler_static='--static'
10832         ;;
10833       pgcc* | pgf77* | pgf90* | pgf95*)
10834         # Portland Group compilers (*not* the Pentium gcc compiler,
10835         # which looks to be a dead project)
10836         lt_prog_compiler_wl='-Wl,'
10837         lt_prog_compiler_pic='-fpic'
10838         lt_prog_compiler_static='-Bstatic'
10839         ;;
10840       ccc*)
10841         lt_prog_compiler_wl='-Wl,'
10842         # All Alpha code is PIC.
10843         lt_prog_compiler_static='-non_shared'
10844         ;;
10845       xl*)
10846         # IBM XL C 8.0/Fortran 10.1 on PPC
10847         lt_prog_compiler_wl='-Wl,'
10848         lt_prog_compiler_pic='-qpic'
10849         lt_prog_compiler_static='-qstaticlink'
10850         ;;
10851       *)
10852         case `$CC -V 2>&1 | sed 5q` in
10853         *Sun\ C*)
10854           # Sun C 5.9
10855           lt_prog_compiler_pic='-KPIC'
10856           lt_prog_compiler_static='-Bstatic'
10857           lt_prog_compiler_wl='-Wl,'
10858           ;;
10859         *Sun\ F*)
10860           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10861           lt_prog_compiler_pic='-KPIC'
10862           lt_prog_compiler_static='-Bstatic'
10863           lt_prog_compiler_wl=''
10864           ;;
10865         esac
10866         ;;
10867       esac
10868       ;;
10869
10870     newsos6)
10871       lt_prog_compiler_pic='-KPIC'
10872       lt_prog_compiler_static='-Bstatic'
10873       ;;
10874
10875     *nto* | *qnx*)
10876       # QNX uses GNU C++, but need to define -shared option too, otherwise
10877       # it will coredump.
10878       lt_prog_compiler_pic='-fPIC -shared'
10879       ;;
10880
10881     osf3* | osf4* | osf5*)
10882       lt_prog_compiler_wl='-Wl,'
10883       # All OSF/1 code is PIC.
10884       lt_prog_compiler_static='-non_shared'
10885       ;;
10886
10887     rdos*)
10888       lt_prog_compiler_static='-non_shared'
10889       ;;
10890
10891     solaris*)
10892       lt_prog_compiler_pic='-KPIC'
10893       lt_prog_compiler_static='-Bstatic'
10894       case $cc_basename in
10895       f77* | f90* | f95*)
10896         lt_prog_compiler_wl='-Qoption ld ';;
10897       *)
10898         lt_prog_compiler_wl='-Wl,';;
10899       esac
10900       ;;
10901
10902     sunos4*)
10903       lt_prog_compiler_wl='-Qoption ld '
10904       lt_prog_compiler_pic='-PIC'
10905       lt_prog_compiler_static='-Bstatic'
10906       ;;
10907
10908     sysv4 | sysv4.2uw2* | sysv4.3*)
10909       lt_prog_compiler_wl='-Wl,'
10910       lt_prog_compiler_pic='-KPIC'
10911       lt_prog_compiler_static='-Bstatic'
10912       ;;
10913
10914     sysv4*MP*)
10915       if test -d /usr/nec ;then
10916         lt_prog_compiler_pic='-Kconform_pic'
10917         lt_prog_compiler_static='-Bstatic'
10918       fi
10919       ;;
10920
10921     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10922       lt_prog_compiler_wl='-Wl,'
10923       lt_prog_compiler_pic='-KPIC'
10924       lt_prog_compiler_static='-Bstatic'
10925       ;;
10926
10927     unicos*)
10928       lt_prog_compiler_wl='-Wl,'
10929       lt_prog_compiler_can_build_shared=no
10930       ;;
10931
10932     uts4*)
10933       lt_prog_compiler_pic='-pic'
10934       lt_prog_compiler_static='-Bstatic'
10935       ;;
10936
10937     *)
10938       lt_prog_compiler_can_build_shared=no
10939       ;;
10940     esac
10941   fi
10942
10943 case $host_os in
10944   # For platforms which do not support PIC, -DPIC is meaningless:
10945   *djgpp*)
10946     lt_prog_compiler_pic=
10947     ;;
10948   *)
10949     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10950     ;;
10951 esac
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10953 $as_echo "$lt_prog_compiler_pic" >&6; }
10954
10955
10956
10957
10958
10959
10960 #
10961 # Check to make sure the PIC flag actually works.
10962 #
10963 if test -n "$lt_prog_compiler_pic"; then
10964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10966 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10967   $as_echo_n "(cached) " >&6
10968 else
10969   lt_cv_prog_compiler_pic_works=no
10970    ac_outfile=conftest.$ac_objext
10971    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10972    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10973    # Insert the option either (1) after the last *FLAGS variable, or
10974    # (2) before a word containing "conftest.", or (3) at the end.
10975    # Note that $ac_compile itself does not contain backslashes and begins
10976    # with a dollar sign (not a hyphen), so the echo should work correctly.
10977    # The option is referenced via a variable to avoid confusing sed.
10978    lt_compile=`echo "$ac_compile" | $SED \
10979    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10981    -e 's:$: $lt_compiler_flag:'`
10982    (eval echo "\"\$as_me:10982: $lt_compile\"" >&5)
10983    (eval "$lt_compile" 2>conftest.err)
10984    ac_status=$?
10985    cat conftest.err >&5
10986    echo "$as_me:10986: \$? = $ac_status" >&5
10987    if (exit $ac_status) && test -s "$ac_outfile"; then
10988      # The compiler can only warn and ignore the option if not recognized
10989      # So say no if there are warnings other than the usual output.
10990      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10991      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10992      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10993        lt_cv_prog_compiler_pic_works=yes
10994      fi
10995    fi
10996    $RM conftest*
10997
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11000 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11001
11002 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11003     case $lt_prog_compiler_pic in
11004      "" | " "*) ;;
11005      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11006      esac
11007 else
11008     lt_prog_compiler_pic=
11009      lt_prog_compiler_can_build_shared=no
11010 fi
11011
11012 fi
11013
11014
11015
11016
11017
11018
11019 #
11020 # Check to make sure the static flag actually works.
11021 #
11022 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11024 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11025 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11026   $as_echo_n "(cached) " >&6
11027 else
11028   lt_cv_prog_compiler_static_works=no
11029    save_LDFLAGS="$LDFLAGS"
11030    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11031    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11032    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11033      # The linker can only warn and ignore the option if not recognized
11034      # So say no if there are warnings
11035      if test -s conftest.err; then
11036        # Append any errors to the config.log.
11037        cat conftest.err 1>&5
11038        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11039        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11040        if diff conftest.exp conftest.er2 >/dev/null; then
11041          lt_cv_prog_compiler_static_works=yes
11042        fi
11043      else
11044        lt_cv_prog_compiler_static_works=yes
11045      fi
11046    fi
11047    $RM -r conftest*
11048    LDFLAGS="$save_LDFLAGS"
11049
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11052 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11053
11054 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11055     :
11056 else
11057     lt_prog_compiler_static=
11058 fi
11059
11060
11061
11062
11063
11064
11065
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11068 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11069   $as_echo_n "(cached) " >&6
11070 else
11071   lt_cv_prog_compiler_c_o=no
11072    $RM -r conftest 2>/dev/null
11073    mkdir conftest
11074    cd conftest
11075    mkdir out
11076    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11077
11078    lt_compiler_flag="-o out/conftest2.$ac_objext"
11079    # Insert the option either (1) after the last *FLAGS variable, or
11080    # (2) before a word containing "conftest.", or (3) at the end.
11081    # Note that $ac_compile itself does not contain backslashes and begins
11082    # with a dollar sign (not a hyphen), so the echo should work correctly.
11083    lt_compile=`echo "$ac_compile" | $SED \
11084    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11086    -e 's:$: $lt_compiler_flag:'`
11087    (eval echo "\"\$as_me:11087: $lt_compile\"" >&5)
11088    (eval "$lt_compile" 2>out/conftest.err)
11089    ac_status=$?
11090    cat out/conftest.err >&5
11091    echo "$as_me:11091: \$? = $ac_status" >&5
11092    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11093    then
11094      # The compiler can only warn and ignore the option if not recognized
11095      # So say no if there are warnings
11096      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11097      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11098      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11099        lt_cv_prog_compiler_c_o=yes
11100      fi
11101    fi
11102    chmod u+w . 2>&5
11103    $RM conftest*
11104    # SGI C++ compiler will create directory out/ii_files/ for
11105    # template instantiation
11106    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11107    $RM out/* && rmdir out
11108    cd ..
11109    $RM -r conftest
11110    $RM conftest*
11111
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11115
11116
11117
11118
11119
11120
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11123 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11124   $as_echo_n "(cached) " >&6
11125 else
11126   lt_cv_prog_compiler_c_o=no
11127    $RM -r conftest 2>/dev/null
11128    mkdir conftest
11129    cd conftest
11130    mkdir out
11131    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11132
11133    lt_compiler_flag="-o out/conftest2.$ac_objext"
11134    # Insert the option either (1) after the last *FLAGS variable, or
11135    # (2) before a word containing "conftest.", or (3) at the end.
11136    # Note that $ac_compile itself does not contain backslashes and begins
11137    # with a dollar sign (not a hyphen), so the echo should work correctly.
11138    lt_compile=`echo "$ac_compile" | $SED \
11139    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11140    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11141    -e 's:$: $lt_compiler_flag:'`
11142    (eval echo "\"\$as_me:11142: $lt_compile\"" >&5)
11143    (eval "$lt_compile" 2>out/conftest.err)
11144    ac_status=$?
11145    cat out/conftest.err >&5
11146    echo "$as_me:11146: \$? = $ac_status" >&5
11147    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11148    then
11149      # The compiler can only warn and ignore the option if not recognized
11150      # So say no if there are warnings
11151      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11152      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11153      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11154        lt_cv_prog_compiler_c_o=yes
11155      fi
11156    fi
11157    chmod u+w . 2>&5
11158    $RM conftest*
11159    # SGI C++ compiler will create directory out/ii_files/ for
11160    # template instantiation
11161    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11162    $RM out/* && rmdir out
11163    cd ..
11164    $RM -r conftest
11165    $RM conftest*
11166
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11170
11171
11172
11173
11174 hard_links="nottested"
11175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11176   # do not overwrite the value of need_locks provided by the user
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11178 $as_echo_n "checking if we can lock with hard links... " >&6; }
11179   hard_links=yes
11180   $RM conftest*
11181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11182   touch conftest.a
11183   ln conftest.a conftest.b 2>&5 || hard_links=no
11184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11186 $as_echo "$hard_links" >&6; }
11187   if test "$hard_links" = no; then
11188     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11189 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11190     need_locks=warn
11191   fi
11192 else
11193   need_locks=no
11194 fi
11195
11196
11197
11198
11199
11200
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11202 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11203
11204   runpath_var=
11205   allow_undefined_flag=
11206   always_export_symbols=no
11207   archive_cmds=
11208   archive_expsym_cmds=
11209   compiler_needs_object=no
11210   enable_shared_with_static_runtimes=no
11211   export_dynamic_flag_spec=
11212   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11213   hardcode_automatic=no
11214   hardcode_direct=no
11215   hardcode_direct_absolute=no
11216   hardcode_libdir_flag_spec=
11217   hardcode_libdir_flag_spec_ld=
11218   hardcode_libdir_separator=
11219   hardcode_minus_L=no
11220   hardcode_shlibpath_var=unsupported
11221   inherit_rpath=no
11222   link_all_deplibs=unknown
11223   module_cmds=
11224   module_expsym_cmds=
11225   old_archive_from_new_cmds=
11226   old_archive_from_expsyms_cmds=
11227   thread_safe_flag_spec=
11228   whole_archive_flag_spec=
11229   # include_expsyms should be a list of space-separated symbols to be *always*
11230   # included in the symbol list
11231   include_expsyms=
11232   # exclude_expsyms can be an extended regexp of symbols to exclude
11233   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11234   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11235   # as well as any symbol that contains `d'.
11236   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11237   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11238   # platforms (ab)use it in PIC code, but their linkers get confused if
11239   # the symbol is explicitly referenced.  Since portable code cannot
11240   # rely on this symbol name, it's probably fine to never include it in
11241   # preloaded symbol tables.
11242   # Exclude shared library initialization/finalization symbols.
11243   extract_expsyms_cmds=
11244
11245   case $host_os in
11246   cygwin* | mingw* | pw32* | cegcc*)
11247     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11248     # When not using gcc, we currently assume that we are using
11249     # Microsoft Visual C++.
11250     if test "$GCC" != yes; then
11251       with_gnu_ld=no
11252     fi
11253     ;;
11254   interix*)
11255     # we just hope/assume this is gcc and not c89 (= MSVC++)
11256     with_gnu_ld=yes
11257     ;;
11258   openbsd*)
11259     with_gnu_ld=no
11260     ;;
11261   linux* | k*bsd*-gnu)
11262     link_all_deplibs=no
11263     ;;
11264   esac
11265
11266   ld_shlibs=yes
11267   if test "$with_gnu_ld" = yes; then
11268     # If archive_cmds runs LD, not CC, wlarc should be empty
11269     wlarc='${wl}'
11270
11271     # Set some defaults for GNU ld with shared library support. These
11272     # are reset later if shared libraries are not supported. Putting them
11273     # here allows them to be overridden if necessary.
11274     runpath_var=LD_RUN_PATH
11275     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11276     export_dynamic_flag_spec='${wl}--export-dynamic'
11277     # ancient GNU ld didn't support --whole-archive et. al.
11278     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11279       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11280     else
11281       whole_archive_flag_spec=
11282     fi
11283     supports_anon_versioning=no
11284     case `$LD -v 2>&1` in
11285       *GNU\ gold*) supports_anon_versioning=yes ;;
11286       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11287       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11288       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11289       *\ 2.11.*) ;; # other 2.11 versions
11290       *) supports_anon_versioning=yes ;;
11291     esac
11292
11293     # See if GNU ld supports shared libraries.
11294     case $host_os in
11295     aix[3-9]*)
11296       # On AIX/PPC, the GNU linker is very broken
11297       if test "$host_cpu" != ia64; then
11298         ld_shlibs=no
11299         cat <<_LT_EOF 1>&2
11300
11301 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11302 *** to be unable to reliably create shared libraries on AIX.
11303 *** Therefore, libtool is disabling shared libraries support.  If you
11304 *** really care for shared libraries, you may want to modify your PATH
11305 *** so that a non-GNU linker is found, and then restart.
11306
11307 _LT_EOF
11308       fi
11309       ;;
11310
11311     amigaos*)
11312       case $host_cpu in
11313       powerpc)
11314             # see comment about AmigaOS4 .so support
11315             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316             archive_expsym_cmds=''
11317         ;;
11318       m68k)
11319             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)'
11320             hardcode_libdir_flag_spec='-L$libdir'
11321             hardcode_minus_L=yes
11322         ;;
11323       esac
11324       ;;
11325
11326     beos*)
11327       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11328         allow_undefined_flag=unsupported
11329         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11330         # support --undefined.  This deserves some investigation.  FIXME
11331         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332       else
11333         ld_shlibs=no
11334       fi
11335       ;;
11336
11337     cygwin* | mingw* | pw32* | cegcc*)
11338       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11339       # as there is no search path for DLLs.
11340       hardcode_libdir_flag_spec='-L$libdir'
11341       allow_undefined_flag=unsupported
11342       always_export_symbols=no
11343       enable_shared_with_static_runtimes=yes
11344       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11345
11346       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11348         # If the export-symbols file already is a .def file (1st line
11349         # is EXPORTS), use it as is; otherwise, prepend...
11350         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11351           cp $export_symbols $output_objdir/$soname.def;
11352         else
11353           echo EXPORTS > $output_objdir/$soname.def;
11354           cat $export_symbols >> $output_objdir/$soname.def;
11355         fi~
11356         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11357       else
11358         ld_shlibs=no
11359       fi
11360       ;;
11361
11362     interix[3-9]*)
11363       hardcode_direct=no
11364       hardcode_shlibpath_var=no
11365       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11366       export_dynamic_flag_spec='${wl}-E'
11367       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11368       # Instead, shared libraries are loaded at an image base (0x10000000 by
11369       # default) and relocated if they conflict, which is a slow very memory
11370       # consuming and fragmenting process.  To avoid this, we pick a random,
11371       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11372       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11373       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11374       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'
11375       ;;
11376
11377     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11378       tmp_diet=no
11379       if test "$host_os" = linux-dietlibc; then
11380         case $cc_basename in
11381           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11382         esac
11383       fi
11384       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11385          && test "$tmp_diet" = no
11386       then
11387         tmp_addflag=
11388         tmp_sharedflag='-shared'
11389         case $cc_basename,$host_cpu in
11390         pgcc*)                          # Portland Group C compiler
11391           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'
11392           tmp_addflag=' $pic_flag'
11393           ;;
11394         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11395           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'
11396           tmp_addflag=' $pic_flag -Mnomain' ;;
11397         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11398           tmp_addflag=' -i_dynamic' ;;
11399         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11400           tmp_addflag=' -i_dynamic -nofor_main' ;;
11401         ifc* | ifort*)                  # Intel Fortran compiler
11402           tmp_addflag=' -nofor_main' ;;
11403         lf95*)                          # Lahey Fortran 8.1
11404           whole_archive_flag_spec=
11405           tmp_sharedflag='--shared' ;;
11406         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11407           tmp_sharedflag='-qmkshrobj'
11408           tmp_addflag= ;;
11409         esac
11410         case `$CC -V 2>&1 | sed 5q` in
11411         *Sun\ C*)                       # Sun C 5.9
11412           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'
11413           compiler_needs_object=yes
11414           tmp_sharedflag='-G' ;;
11415         *Sun\ F*)                       # Sun Fortran 8.3
11416           tmp_sharedflag='-G' ;;
11417         esac
11418         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419
11420         if test "x$supports_anon_versioning" = xyes; then
11421           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11422             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11423             echo "local: *; };" >> $output_objdir/$libname.ver~
11424             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11425         fi
11426
11427         case $cc_basename in
11428         xlf*)
11429           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11430           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11431           hardcode_libdir_flag_spec=
11432           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11433           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11434           if test "x$supports_anon_versioning" = xyes; then
11435             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11436               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11437               echo "local: *; };" >> $output_objdir/$libname.ver~
11438               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11439           fi
11440           ;;
11441         esac
11442       else
11443         ld_shlibs=no
11444       fi
11445       ;;
11446
11447     netbsd* | netbsdelf*-gnu)
11448       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11449         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11450         wlarc=
11451       else
11452         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11454       fi
11455       ;;
11456
11457     solaris*)
11458       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11459         ld_shlibs=no
11460         cat <<_LT_EOF 1>&2
11461
11462 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11463 *** create shared libraries on Solaris systems.  Therefore, libtool
11464 *** is disabling shared libraries support.  We urge you to upgrade GNU
11465 *** binutils to release 2.9.1 or newer.  Another option is to modify
11466 *** your PATH or compiler configuration so that the native linker is
11467 *** used, and then restart.
11468
11469 _LT_EOF
11470       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11471         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11473       else
11474         ld_shlibs=no
11475       fi
11476       ;;
11477
11478     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11479       case `$LD -v 2>&1` in
11480         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11481         ld_shlibs=no
11482         cat <<_LT_EOF 1>&2
11483
11484 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11485 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11486 *** is disabling shared libraries support.  We urge you to upgrade GNU
11487 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11488 *** your PATH or compiler configuration so that the native linker is
11489 *** used, and then restart.
11490
11491 _LT_EOF
11492         ;;
11493         *)
11494           # For security reasons, it is highly recommended that you always
11495           # use absolute paths for naming shared libraries, and exclude the
11496           # DT_RUNPATH tag from executables and libraries.  But doing so
11497           # requires that you compile everything twice, which is a pain.
11498           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11499             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11500             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11502           else
11503             ld_shlibs=no
11504           fi
11505         ;;
11506       esac
11507       ;;
11508
11509     sunos4*)
11510       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11511       wlarc=
11512       hardcode_direct=yes
11513       hardcode_shlibpath_var=no
11514       ;;
11515
11516     *)
11517       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11518         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11520       else
11521         ld_shlibs=no
11522       fi
11523       ;;
11524     esac
11525
11526     if test "$ld_shlibs" = no; then
11527       runpath_var=
11528       hardcode_libdir_flag_spec=
11529       export_dynamic_flag_spec=
11530       whole_archive_flag_spec=
11531     fi
11532   else
11533     # PORTME fill in a description of your system's linker (not GNU ld)
11534     case $host_os in
11535     aix3*)
11536       allow_undefined_flag=unsupported
11537       always_export_symbols=yes
11538       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'
11539       # Note: this linker hardcodes the directories in LIBPATH if there
11540       # are no directories specified by -L.
11541       hardcode_minus_L=yes
11542       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11543         # Neither direct hardcoding nor static linking is supported with a
11544         # broken collect2.
11545         hardcode_direct=unsupported
11546       fi
11547       ;;
11548
11549     aix[4-9]*)
11550       if test "$host_cpu" = ia64; then
11551         # On IA64, the linker does run time linking by default, so we don't
11552         # have to do anything special.
11553         aix_use_runtimelinking=no
11554         exp_sym_flag='-Bexport'
11555         no_entry_flag=""
11556       else
11557         # If we're using GNU nm, then we don't want the "-C" option.
11558         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11559         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11560           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'
11561         else
11562           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'
11563         fi
11564         aix_use_runtimelinking=no
11565
11566         # Test if we are trying to use run time linking or normal
11567         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11568         # need to do runtime linking.
11569         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11570           for ld_flag in $LDFLAGS; do
11571           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11572             aix_use_runtimelinking=yes
11573             break
11574           fi
11575           done
11576           ;;
11577         esac
11578
11579         exp_sym_flag='-bexport'
11580         no_entry_flag='-bnoentry'
11581       fi
11582
11583       # When large executables or shared objects are built, AIX ld can
11584       # have problems creating the table of contents.  If linking a library
11585       # or program results in "error TOC overflow" add -mminimal-toc to
11586       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11587       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11588
11589       archive_cmds=''
11590       hardcode_direct=yes
11591       hardcode_direct_absolute=yes
11592       hardcode_libdir_separator=':'
11593       link_all_deplibs=yes
11594       file_list_spec='${wl}-f,'
11595
11596       if test "$GCC" = yes; then
11597         case $host_os in aix4.[012]|aix4.[012].*)
11598         # We only want to do this on AIX 4.2 and lower, the check
11599         # below for broken collect2 doesn't work under 4.3+
11600           collect2name=`${CC} -print-prog-name=collect2`
11601           if test -f "$collect2name" &&
11602            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11603           then
11604           # We have reworked collect2
11605           :
11606           else
11607           # We have old collect2
11608           hardcode_direct=unsupported
11609           # It fails to find uninstalled libraries when the uninstalled
11610           # path is not listed in the libpath.  Setting hardcode_minus_L
11611           # to unsupported forces relinking
11612           hardcode_minus_L=yes
11613           hardcode_libdir_flag_spec='-L$libdir'
11614           hardcode_libdir_separator=
11615           fi
11616           ;;
11617         esac
11618         shared_flag='-shared'
11619         if test "$aix_use_runtimelinking" = yes; then
11620           shared_flag="$shared_flag "'${wl}-G'
11621         fi
11622         link_all_deplibs=no
11623       else
11624         # not using gcc
11625         if test "$host_cpu" = ia64; then
11626         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11627         # chokes on -Wl,-G. The following line is correct:
11628           shared_flag='-G'
11629         else
11630           if test "$aix_use_runtimelinking" = yes; then
11631             shared_flag='${wl}-G'
11632           else
11633             shared_flag='${wl}-bM:SRE'
11634           fi
11635         fi
11636       fi
11637
11638       export_dynamic_flag_spec='${wl}-bexpall'
11639       # It seems that -bexpall does not export symbols beginning with
11640       # underscore (_), so it is better to generate a list of symbols to export.
11641       always_export_symbols=yes
11642       if test "$aix_use_runtimelinking" = yes; then
11643         # Warning - without using the other runtime loading flags (-brtl),
11644         # -berok will link without error, but may produce a broken library.
11645         allow_undefined_flag='-berok'
11646         # Determine the default libpath from the value encoded in an
11647         # empty executable.
11648         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h.  */
11650
11651 int
11652 main ()
11653 {
11654
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660
11661 lt_aix_libpath_sed='
11662     /Import File Strings/,/^$/ {
11663         /^0/ {
11664             s/^0  *\(.*\)$/\1/
11665             p
11666         }
11667     }'
11668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11669 # Check for a 64-bit object if we didn't find anything.
11670 if test -z "$aix_libpath"; then
11671   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11672 fi
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675     conftest$ac_exeext conftest.$ac_ext
11676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11677
11678         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11679         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"
11680       else
11681         if test "$host_cpu" = ia64; then
11682           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11683           allow_undefined_flag="-z nodefs"
11684           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"
11685         else
11686          # Determine the default libpath from the value encoded in an
11687          # empty executable.
11688          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h.  */
11690
11691 int
11692 main ()
11693 {
11694
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700
11701 lt_aix_libpath_sed='
11702     /Import File Strings/,/^$/ {
11703         /^0/ {
11704             s/^0  *\(.*\)$/\1/
11705             p
11706         }
11707     }'
11708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11709 # Check for a 64-bit object if we didn't find anything.
11710 if test -z "$aix_libpath"; then
11711   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712 fi
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext \
11715     conftest$ac_exeext conftest.$ac_ext
11716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11717
11718          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11719           # Warning - without using the other run time loading flags,
11720           # -berok will link without error, but may produce a broken library.
11721           no_undefined_flag=' ${wl}-bernotok'
11722           allow_undefined_flag=' ${wl}-berok'
11723           # Exported symbols can be pulled into shared objects from archives
11724           whole_archive_flag_spec='$convenience'
11725           archive_cmds_need_lc=yes
11726           # This is similar to how AIX traditionally builds its shared libraries.
11727           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'
11728         fi
11729       fi
11730       ;;
11731
11732     amigaos*)
11733       case $host_cpu in
11734       powerpc)
11735             # see comment about AmigaOS4 .so support
11736             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737             archive_expsym_cmds=''
11738         ;;
11739       m68k)
11740             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)'
11741             hardcode_libdir_flag_spec='-L$libdir'
11742             hardcode_minus_L=yes
11743         ;;
11744       esac
11745       ;;
11746
11747     bsdi[45]*)
11748       export_dynamic_flag_spec=-rdynamic
11749       ;;
11750
11751     cygwin* | mingw* | pw32* | cegcc*)
11752       # When not using gcc, we currently assume that we are using
11753       # Microsoft Visual C++.
11754       # hardcode_libdir_flag_spec is actually meaningless, as there is
11755       # no search path for DLLs.
11756       hardcode_libdir_flag_spec=' '
11757       allow_undefined_flag=unsupported
11758       # Tell ltmain to make .lib files, not .a files.
11759       libext=lib
11760       # Tell ltmain to make .dll files, not .so files.
11761       shrext_cmds=".dll"
11762       # FIXME: Setting linknames here is a bad hack.
11763       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11764       # The linker will automatically build a .lib file if we build a DLL.
11765       old_archive_from_new_cmds='true'
11766       # FIXME: Should let the user specify the lib program.
11767       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11768       fix_srcfile_path='`cygpath -w "$srcfile"`'
11769       enable_shared_with_static_runtimes=yes
11770       ;;
11771
11772     darwin* | rhapsody*)
11773
11774
11775   archive_cmds_need_lc=no
11776   hardcode_direct=no
11777   hardcode_automatic=yes
11778   hardcode_shlibpath_var=unsupported
11779   whole_archive_flag_spec=''
11780   link_all_deplibs=yes
11781   allow_undefined_flag="$_lt_dar_allow_undefined"
11782   case $cc_basename in
11783      ifort*) _lt_dar_can_shared=yes ;;
11784      *) _lt_dar_can_shared=$GCC ;;
11785   esac
11786   if test "$_lt_dar_can_shared" = "yes"; then
11787     output_verbose_link_cmd=echo
11788     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11789     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11790     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}"
11791     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}"
11792
11793   else
11794   ld_shlibs=no
11795   fi
11796
11797       ;;
11798
11799     dgux*)
11800       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11801       hardcode_libdir_flag_spec='-L$libdir'
11802       hardcode_shlibpath_var=no
11803       ;;
11804
11805     freebsd1*)
11806       ld_shlibs=no
11807       ;;
11808
11809     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11810     # support.  Future versions do this automatically, but an explicit c++rt0.o
11811     # does not break anything, and helps significantly (at the cost of a little
11812     # extra space).
11813     freebsd2.2*)
11814       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11815       hardcode_libdir_flag_spec='-R$libdir'
11816       hardcode_direct=yes
11817       hardcode_shlibpath_var=no
11818       ;;
11819
11820     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11821     freebsd2*)
11822       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11823       hardcode_direct=yes
11824       hardcode_minus_L=yes
11825       hardcode_shlibpath_var=no
11826       ;;
11827
11828     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11829     freebsd* | dragonfly*)
11830       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11831       hardcode_libdir_flag_spec='-R$libdir'
11832       hardcode_direct=yes
11833       hardcode_shlibpath_var=no
11834       ;;
11835
11836     hpux9*)
11837       if test "$GCC" = yes; then
11838         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'
11839       else
11840         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'
11841       fi
11842       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11843       hardcode_libdir_separator=:
11844       hardcode_direct=yes
11845
11846       # hardcode_minus_L: Not really in the search PATH,
11847       # but as the default location of the library.
11848       hardcode_minus_L=yes
11849       export_dynamic_flag_spec='${wl}-E'
11850       ;;
11851
11852     hpux10*)
11853       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11854         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11855       else
11856         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11857       fi
11858       if test "$with_gnu_ld" = no; then
11859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11860         hardcode_libdir_flag_spec_ld='+b $libdir'
11861         hardcode_libdir_separator=:
11862         hardcode_direct=yes
11863         hardcode_direct_absolute=yes
11864         export_dynamic_flag_spec='${wl}-E'
11865         # hardcode_minus_L: Not really in the search PATH,
11866         # but as the default location of the library.
11867         hardcode_minus_L=yes
11868       fi
11869       ;;
11870
11871     hpux11*)
11872       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11873         case $host_cpu in
11874         hppa*64*)
11875           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11876           ;;
11877         ia64*)
11878           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11879           ;;
11880         *)
11881           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11882           ;;
11883         esac
11884       else
11885         case $host_cpu in
11886         hppa*64*)
11887           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11888           ;;
11889         ia64*)
11890           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11891           ;;
11892         *)
11893           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11894           ;;
11895         esac
11896       fi
11897       if test "$with_gnu_ld" = no; then
11898         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11899         hardcode_libdir_separator=:
11900
11901         case $host_cpu in
11902         hppa*64*|ia64*)
11903           hardcode_direct=no
11904           hardcode_shlibpath_var=no
11905           ;;
11906         *)
11907           hardcode_direct=yes
11908           hardcode_direct_absolute=yes
11909           export_dynamic_flag_spec='${wl}-E'
11910
11911           # hardcode_minus_L: Not really in the search PATH,
11912           # but as the default location of the library.
11913           hardcode_minus_L=yes
11914           ;;
11915         esac
11916       fi
11917       ;;
11918
11919     irix5* | irix6* | nonstopux*)
11920       if test "$GCC" = yes; then
11921         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'
11922         # Try to use the -exported_symbol ld option, if it does not
11923         # work, assume that -exports_file does not work either and
11924         # implicitly export all symbols.
11925         save_LDFLAGS="$LDFLAGS"
11926         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11927         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h.  */
11929 int foo(void) {}
11930 _ACEOF
11931 if ac_fn_c_try_link "$LINENO"; then :
11932   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'
11933
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext \
11936     conftest$ac_exeext conftest.$ac_ext
11937         LDFLAGS="$save_LDFLAGS"
11938       else
11939         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'
11940         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'
11941       fi
11942       archive_cmds_need_lc='no'
11943       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11944       hardcode_libdir_separator=:
11945       inherit_rpath=yes
11946       link_all_deplibs=yes
11947       ;;
11948
11949     netbsd* | netbsdelf*-gnu)
11950       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11951         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11952       else
11953         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11954       fi
11955       hardcode_libdir_flag_spec='-R$libdir'
11956       hardcode_direct=yes
11957       hardcode_shlibpath_var=no
11958       ;;
11959
11960     newsos6)
11961       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11962       hardcode_direct=yes
11963       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11964       hardcode_libdir_separator=:
11965       hardcode_shlibpath_var=no
11966       ;;
11967
11968     *nto* | *qnx*)
11969       ;;
11970
11971     openbsd*)
11972       if test -f /usr/libexec/ld.so; then
11973         hardcode_direct=yes
11974         hardcode_shlibpath_var=no
11975         hardcode_direct_absolute=yes
11976         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11977           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11978           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11979           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11980           export_dynamic_flag_spec='${wl}-E'
11981         else
11982           case $host_os in
11983            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11984              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11985              hardcode_libdir_flag_spec='-R$libdir'
11986              ;;
11987            *)
11988              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11989              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11990              ;;
11991           esac
11992         fi
11993       else
11994         ld_shlibs=no
11995       fi
11996       ;;
11997
11998     os2*)
11999       hardcode_libdir_flag_spec='-L$libdir'
12000       hardcode_minus_L=yes
12001       allow_undefined_flag=unsupported
12002       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'
12003       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12004       ;;
12005
12006     osf3*)
12007       if test "$GCC" = yes; then
12008         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12009         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'
12010       else
12011         allow_undefined_flag=' -expect_unresolved \*'
12012         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'
12013       fi
12014       archive_cmds_need_lc='no'
12015       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12016       hardcode_libdir_separator=:
12017       ;;
12018
12019     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12020       if test "$GCC" = yes; then
12021         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12022         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'
12023         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12024       else
12025         allow_undefined_flag=' -expect_unresolved \*'
12026         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'
12027         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~
12028         $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'
12029
12030         # Both c and cxx compiler support -rpath directly
12031         hardcode_libdir_flag_spec='-rpath $libdir'
12032       fi
12033       archive_cmds_need_lc='no'
12034       hardcode_libdir_separator=:
12035       ;;
12036
12037     solaris*)
12038       no_undefined_flag=' -z defs'
12039       if test "$GCC" = yes; then
12040         wlarc='${wl}'
12041         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12042         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12043           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12044       else
12045         case `$CC -V 2>&1` in
12046         *"Compilers 5.0"*)
12047           wlarc=''
12048           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12049           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12050           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12051           ;;
12052         *)
12053           wlarc='${wl}'
12054           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12055           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12056           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12057           ;;
12058         esac
12059       fi
12060       hardcode_libdir_flag_spec='-R$libdir'
12061       hardcode_shlibpath_var=no
12062       case $host_os in
12063       solaris2.[0-5] | solaris2.[0-5].*) ;;
12064       *)
12065         # The compiler driver will combine and reorder linker options,
12066         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12067         # but is careful enough not to reorder.
12068         # Supported since Solaris 2.6 (maybe 2.5.1?)
12069         if test "$GCC" = yes; then
12070           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12071         else
12072           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12073         fi
12074         ;;
12075       esac
12076       link_all_deplibs=yes
12077       ;;
12078
12079     sunos4*)
12080       if test "x$host_vendor" = xsequent; then
12081         # Use $CC to link under sequent, because it throws in some extra .o
12082         # files that make .init and .fini sections work.
12083         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12084       else
12085         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12086       fi
12087       hardcode_libdir_flag_spec='-L$libdir'
12088       hardcode_direct=yes
12089       hardcode_minus_L=yes
12090       hardcode_shlibpath_var=no
12091       ;;
12092
12093     sysv4)
12094       case $host_vendor in
12095         sni)
12096           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12097           hardcode_direct=yes # is this really true???
12098         ;;
12099         siemens)
12100           ## LD is ld it makes a PLAMLIB
12101           ## CC just makes a GrossModule.
12102           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12103           reload_cmds='$CC -r -o $output$reload_objs'
12104           hardcode_direct=no
12105         ;;
12106         motorola)
12107           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12108           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12109         ;;
12110       esac
12111       runpath_var='LD_RUN_PATH'
12112       hardcode_shlibpath_var=no
12113       ;;
12114
12115     sysv4.3*)
12116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12117       hardcode_shlibpath_var=no
12118       export_dynamic_flag_spec='-Bexport'
12119       ;;
12120
12121     sysv4*MP*)
12122       if test -d /usr/nec; then
12123         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12124         hardcode_shlibpath_var=no
12125         runpath_var=LD_RUN_PATH
12126         hardcode_runpath_var=yes
12127         ld_shlibs=yes
12128       fi
12129       ;;
12130
12131     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12132       no_undefined_flag='${wl}-z,text'
12133       archive_cmds_need_lc=no
12134       hardcode_shlibpath_var=no
12135       runpath_var='LD_RUN_PATH'
12136
12137       if test "$GCC" = yes; then
12138         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140       else
12141         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143       fi
12144       ;;
12145
12146     sysv5* | sco3.2v5* | sco5v6*)
12147       # Note: We can NOT use -z defs as we might desire, because we do not
12148       # link with -lc, and that would cause any symbols used from libc to
12149       # always be unresolved, which means just about no library would
12150       # ever link correctly.  If we're not using GNU ld we use -z text
12151       # though, which does catch some bad symbols but isn't as heavy-handed
12152       # as -z defs.
12153       no_undefined_flag='${wl}-z,text'
12154       allow_undefined_flag='${wl}-z,nodefs'
12155       archive_cmds_need_lc=no
12156       hardcode_shlibpath_var=no
12157       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12158       hardcode_libdir_separator=':'
12159       link_all_deplibs=yes
12160       export_dynamic_flag_spec='${wl}-Bexport'
12161       runpath_var='LD_RUN_PATH'
12162
12163       if test "$GCC" = yes; then
12164         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12165         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12166       else
12167         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169       fi
12170       ;;
12171
12172     uts4*)
12173       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12174       hardcode_libdir_flag_spec='-L$libdir'
12175       hardcode_shlibpath_var=no
12176       ;;
12177
12178     *)
12179       ld_shlibs=no
12180       ;;
12181     esac
12182
12183     if test x$host_vendor = xsni; then
12184       case $host in
12185       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12186         export_dynamic_flag_spec='${wl}-Blargedynsym'
12187         ;;
12188       esac
12189     fi
12190   fi
12191
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12193 $as_echo "$ld_shlibs" >&6; }
12194 test "$ld_shlibs" = no && can_build_shared=no
12195
12196 with_gnu_ld=$with_gnu_ld
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212 #
12213 # Do we need to explicitly link libc?
12214 #
12215 case "x$archive_cmds_need_lc" in
12216 x|xyes)
12217   # Assume -lc should be added
12218   archive_cmds_need_lc=yes
12219
12220   if test "$enable_shared" = yes && test "$GCC" = yes; then
12221     case $archive_cmds in
12222     *'~'*)
12223       # FIXME: we may have to deal with multi-command sequences.
12224       ;;
12225     '$CC '*)
12226       # Test whether the compiler implicitly links with -lc since on some
12227       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12228       # to ld, don't add -lc before -lgcc.
12229       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12230 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12231       $RM conftest*
12232       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12233
12234       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12235   (eval $ac_compile) 2>&5
12236   ac_status=$?
12237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238   test $ac_status = 0; } 2>conftest.err; then
12239         soname=conftest
12240         lib=conftest
12241         libobjs=conftest.$ac_objext
12242         deplibs=
12243         wl=$lt_prog_compiler_wl
12244         pic_flag=$lt_prog_compiler_pic
12245         compiler_flags=-v
12246         linker_flags=-v
12247         verstring=
12248         output_objdir=.
12249         libname=conftest
12250         lt_save_allow_undefined_flag=$allow_undefined_flag
12251         allow_undefined_flag=
12252         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12253   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12254   ac_status=$?
12255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256   test $ac_status = 0; }
12257         then
12258           archive_cmds_need_lc=no
12259         else
12260           archive_cmds_need_lc=yes
12261         fi
12262         allow_undefined_flag=$lt_save_allow_undefined_flag
12263       else
12264         cat conftest.err 1>&5
12265       fi
12266       $RM conftest*
12267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
12268 $as_echo "$archive_cmds_need_lc" >&6; }
12269       ;;
12270     esac
12271   fi
12272   ;;
12273 esac
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12432 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12433
12434 if test "$GCC" = yes; then
12435   case $host_os in
12436     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12437     *) lt_awk_arg="/^libraries:/" ;;
12438   esac
12439   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12440   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12441     # if the path contains ";" then we assume it to be the separator
12442     # otherwise default to the standard path separator (i.e. ":") - it is
12443     # assumed that no part of a normal pathname contains ";" but that should
12444     # okay in the real world where ";" in dirpaths is itself problematic.
12445     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12446   else
12447     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12448   fi
12449   # Ok, now we have the path, separated by spaces, we can step through it
12450   # and add multilib dir if necessary.
12451   lt_tmp_lt_search_path_spec=
12452   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12453   for lt_sys_path in $lt_search_path_spec; do
12454     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12455       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12456     else
12457       test -d "$lt_sys_path" && \
12458         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12459     fi
12460   done
12461   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12462 BEGIN {RS=" "; FS="/|\n";} {
12463   lt_foo="";
12464   lt_count=0;
12465   for (lt_i = NF; lt_i > 0; lt_i--) {
12466     if ($lt_i != "" && $lt_i != ".") {
12467       if ($lt_i == "..") {
12468         lt_count++;
12469       } else {
12470         if (lt_count == 0) {
12471           lt_foo="/" $lt_i lt_foo;
12472         } else {
12473           lt_count--;
12474         }
12475       }
12476     }
12477   }
12478   if (lt_foo != "") { lt_freq[lt_foo]++; }
12479   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12480 }'`
12481   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12482 else
12483   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12484 fi
12485 library_names_spec=
12486 libname_spec='lib$name'
12487 soname_spec=
12488 shrext_cmds=".so"
12489 postinstall_cmds=
12490 postuninstall_cmds=
12491 finish_cmds=
12492 finish_eval=
12493 shlibpath_var=
12494 shlibpath_overrides_runpath=unknown
12495 version_type=none
12496 dynamic_linker="$host_os ld.so"
12497 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12498 need_lib_prefix=unknown
12499 hardcode_into_libs=no
12500
12501 # when you set need_version to no, make sure it does not cause -set_version
12502 # flags to be left without arguments
12503 need_version=unknown
12504
12505 case $host_os in
12506 aix3*)
12507   version_type=linux
12508   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12509   shlibpath_var=LIBPATH
12510
12511   # AIX 3 has no versioning support, so we append a major version to the name.
12512   soname_spec='${libname}${release}${shared_ext}$major'
12513   ;;
12514
12515 aix[4-9]*)
12516   version_type=linux
12517   need_lib_prefix=no
12518   need_version=no
12519   hardcode_into_libs=yes
12520   if test "$host_cpu" = ia64; then
12521     # AIX 5 supports IA64
12522     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12523     shlibpath_var=LD_LIBRARY_PATH
12524   else
12525     # With GCC up to 2.95.x, collect2 would create an import file
12526     # for dependence libraries.  The import file would start with
12527     # the line `#! .'.  This would cause the generated library to
12528     # depend on `.', always an invalid library.  This was fixed in
12529     # development snapshots of GCC prior to 3.0.
12530     case $host_os in
12531       aix4 | aix4.[01] | aix4.[01].*)
12532       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12533            echo ' yes '
12534            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12535         :
12536       else
12537         can_build_shared=no
12538       fi
12539       ;;
12540     esac
12541     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12542     # soname into executable. Probably we can add versioning support to
12543     # collect2, so additional links can be useful in future.
12544     if test "$aix_use_runtimelinking" = yes; then
12545       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12546       # instead of lib<name>.a to let people know that these are not
12547       # typical AIX shared libraries.
12548       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12549     else
12550       # We preserve .a as extension for shared libraries through AIX4.2
12551       # and later when we are not doing run time linking.
12552       library_names_spec='${libname}${release}.a $libname.a'
12553       soname_spec='${libname}${release}${shared_ext}$major'
12554     fi
12555     shlibpath_var=LIBPATH
12556   fi
12557   ;;
12558
12559 amigaos*)
12560   case $host_cpu in
12561   powerpc)
12562     # Since July 2007 AmigaOS4 officially supports .so libraries.
12563     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565     ;;
12566   m68k)
12567     library_names_spec='$libname.ixlibrary $libname.a'
12568     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12569     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'
12570     ;;
12571   esac
12572   ;;
12573
12574 beos*)
12575   library_names_spec='${libname}${shared_ext}'
12576   dynamic_linker="$host_os ld.so"
12577   shlibpath_var=LIBRARY_PATH
12578   ;;
12579
12580 bsdi[45]*)
12581   version_type=linux
12582   need_version=no
12583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12584   soname_spec='${libname}${release}${shared_ext}$major'
12585   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12586   shlibpath_var=LD_LIBRARY_PATH
12587   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12588   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12589   # the default ld.so.conf also contains /usr/contrib/lib and
12590   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12591   # libtool to hard-code these into programs
12592   ;;
12593
12594 cygwin* | mingw* | pw32* | cegcc*)
12595   version_type=windows
12596   shrext_cmds=".dll"
12597   need_version=no
12598   need_lib_prefix=no
12599
12600   case $GCC,$host_os in
12601   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12602     library_names_spec='$libname.dll.a'
12603     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12604     postinstall_cmds='base_file=`basename \${file}`~
12605       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12606       dldir=$destdir/`dirname \$dlpath`~
12607       test -d \$dldir || mkdir -p \$dldir~
12608       $install_prog $dir/$dlname \$dldir/$dlname~
12609       chmod a+x \$dldir/$dlname~
12610       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12611         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12612       fi'
12613     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12614       dlpath=$dir/\$dldll~
12615        $RM \$dlpath'
12616     shlibpath_overrides_runpath=yes
12617
12618     case $host_os in
12619     cygwin*)
12620       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12621       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12622       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12623       ;;
12624     mingw* | cegcc*)
12625       # MinGW DLLs use traditional 'lib' prefix
12626       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12627       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12628       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12629         # It is most probably a Windows format PATH printed by
12630         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12631         # path with ; separators, and with drive letters. We can handle the
12632         # drive letters (cygwin fileutils understands them), so leave them,
12633         # especially as we might pass files found there to a mingw objdump,
12634         # which wouldn't understand a cygwinified path. Ahh.
12635         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12636       else
12637         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12638       fi
12639       ;;
12640     pw32*)
12641       # pw32 DLLs use 'pw' prefix rather than 'lib'
12642       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12643       ;;
12644     esac
12645     ;;
12646
12647   *)
12648     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12649     ;;
12650   esac
12651   dynamic_linker='Win32 ld.exe'
12652   # FIXME: first we should search . and the directory the executable is in
12653   shlibpath_var=PATH
12654   ;;
12655
12656 darwin* | rhapsody*)
12657   dynamic_linker="$host_os dyld"
12658   version_type=darwin
12659   need_lib_prefix=no
12660   need_version=no
12661   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12662   soname_spec='${libname}${release}${major}$shared_ext'
12663   shlibpath_overrides_runpath=yes
12664   shlibpath_var=DYLD_LIBRARY_PATH
12665   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12666
12667   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12668   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12669   ;;
12670
12671 dgux*)
12672   version_type=linux
12673   need_lib_prefix=no
12674   need_version=no
12675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12676   soname_spec='${libname}${release}${shared_ext}$major'
12677   shlibpath_var=LD_LIBRARY_PATH
12678   ;;
12679
12680 freebsd1*)
12681   dynamic_linker=no
12682   ;;
12683
12684 freebsd* | dragonfly*)
12685   # DragonFly does not have aout.  When/if they implement a new
12686   # versioning mechanism, adjust this.
12687   if test -x /usr/bin/objformat; then
12688     objformat=`/usr/bin/objformat`
12689   else
12690     case $host_os in
12691     freebsd[123]*) objformat=aout ;;
12692     *) objformat=elf ;;
12693     esac
12694   fi
12695   version_type=freebsd-$objformat
12696   case $version_type in
12697     freebsd-elf*)
12698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12699       need_version=no
12700       need_lib_prefix=no
12701       ;;
12702     freebsd-*)
12703       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12704       need_version=yes
12705       ;;
12706   esac
12707   shlibpath_var=LD_LIBRARY_PATH
12708   case $host_os in
12709   freebsd2*)
12710     shlibpath_overrides_runpath=yes
12711     ;;
12712   freebsd3.[01]* | freebsdelf3.[01]*)
12713     shlibpath_overrides_runpath=yes
12714     hardcode_into_libs=yes
12715     ;;
12716   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12717   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12718     shlibpath_overrides_runpath=no
12719     hardcode_into_libs=yes
12720     ;;
12721   *) # from 4.6 on, and DragonFly
12722     shlibpath_overrides_runpath=yes
12723     hardcode_into_libs=yes
12724     ;;
12725   esac
12726   ;;
12727
12728 gnu*)
12729   version_type=linux
12730   need_lib_prefix=no
12731   need_version=no
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12733   soname_spec='${libname}${release}${shared_ext}$major'
12734   shlibpath_var=LD_LIBRARY_PATH
12735   hardcode_into_libs=yes
12736   ;;
12737
12738 hpux9* | hpux10* | hpux11*)
12739   # Give a soname corresponding to the major version so that dld.sl refuses to
12740   # link against other versions.
12741   version_type=sunos
12742   need_lib_prefix=no
12743   need_version=no
12744   case $host_cpu in
12745   ia64*)
12746     shrext_cmds='.so'
12747     hardcode_into_libs=yes
12748     dynamic_linker="$host_os dld.so"
12749     shlibpath_var=LD_LIBRARY_PATH
12750     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12752     soname_spec='${libname}${release}${shared_ext}$major'
12753     if test "X$HPUX_IA64_MODE" = X32; then
12754       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12755     else
12756       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12757     fi
12758     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12759     ;;
12760   hppa*64*)
12761     shrext_cmds='.sl'
12762     hardcode_into_libs=yes
12763     dynamic_linker="$host_os dld.sl"
12764     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12765     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12767     soname_spec='${libname}${release}${shared_ext}$major'
12768     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12769     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12770     ;;
12771   *)
12772     shrext_cmds='.sl'
12773     dynamic_linker="$host_os dld.sl"
12774     shlibpath_var=SHLIB_PATH
12775     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12777     soname_spec='${libname}${release}${shared_ext}$major'
12778     ;;
12779   esac
12780   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12781   postinstall_cmds='chmod 555 $lib'
12782   ;;
12783
12784 interix[3-9]*)
12785   version_type=linux
12786   need_lib_prefix=no
12787   need_version=no
12788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12789   soname_spec='${libname}${release}${shared_ext}$major'
12790   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12791   shlibpath_var=LD_LIBRARY_PATH
12792   shlibpath_overrides_runpath=no
12793   hardcode_into_libs=yes
12794   ;;
12795
12796 irix5* | irix6* | nonstopux*)
12797   case $host_os in
12798     nonstopux*) version_type=nonstopux ;;
12799     *)
12800         if test "$lt_cv_prog_gnu_ld" = yes; then
12801                 version_type=linux
12802         else
12803                 version_type=irix
12804         fi ;;
12805   esac
12806   need_lib_prefix=no
12807   need_version=no
12808   soname_spec='${libname}${release}${shared_ext}$major'
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12810   case $host_os in
12811   irix5* | nonstopux*)
12812     libsuff= shlibsuff=
12813     ;;
12814   *)
12815     case $LD in # libtool.m4 will add one of these switches to LD
12816     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12817       libsuff= shlibsuff= libmagic=32-bit;;
12818     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12819       libsuff=32 shlibsuff=N32 libmagic=N32;;
12820     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12821       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12822     *) libsuff= shlibsuff= libmagic=never-match;;
12823     esac
12824     ;;
12825   esac
12826   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12827   shlibpath_overrides_runpath=no
12828   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12829   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12830   hardcode_into_libs=yes
12831   ;;
12832
12833 # No shared lib support for Linux oldld, aout, or coff.
12834 linux*oldld* | linux*aout* | linux*coff*)
12835   dynamic_linker=no
12836   ;;
12837
12838 # This must be Linux ELF.
12839 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12840   version_type=linux
12841   need_lib_prefix=no
12842   need_version=no
12843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844   soname_spec='${libname}${release}${shared_ext}$major'
12845   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12846   shlibpath_var=LD_LIBRARY_PATH
12847   shlibpath_overrides_runpath=no
12848   # Some binutils ld are patched to set DT_RUNPATH
12849   save_LDFLAGS=$LDFLAGS
12850   save_libdir=$libdir
12851   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12852        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h.  */
12855
12856 int
12857 main ()
12858 {
12859
12860   ;
12861   return 0;
12862 }
12863 _ACEOF
12864 if ac_fn_c_try_link "$LINENO"; then :
12865   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12866   shlibpath_overrides_runpath=yes
12867 fi
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext \
12870     conftest$ac_exeext conftest.$ac_ext
12871   LDFLAGS=$save_LDFLAGS
12872   libdir=$save_libdir
12873
12874   # This implies no fast_install, which is unacceptable.
12875   # Some rework will be needed to allow for fast_install
12876   # before this can be enabled.
12877   hardcode_into_libs=yes
12878
12879   # Append ld.so.conf contents to the search path
12880   if test -f /etc/ld.so.conf; then
12881     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' ' '`
12882     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12883   fi
12884
12885   # We used to test for /lib/ld.so.1 and disable shared libraries on
12886   # powerpc, because MkLinux only supported shared libraries with the
12887   # GNU dynamic linker.  Since this was broken with cross compilers,
12888   # most powerpc-linux boxes support dynamic linking these days and
12889   # people can always --disable-shared, the test was removed, and we
12890   # assume the GNU/Linux dynamic linker is in use.
12891   dynamic_linker='GNU/Linux ld.so'
12892   ;;
12893
12894 netbsdelf*-gnu)
12895   version_type=linux
12896   need_lib_prefix=no
12897   need_version=no
12898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12899   soname_spec='${libname}${release}${shared_ext}$major'
12900   shlibpath_var=LD_LIBRARY_PATH
12901   shlibpath_overrides_runpath=no
12902   hardcode_into_libs=yes
12903   dynamic_linker='NetBSD ld.elf_so'
12904   ;;
12905
12906 netbsd*)
12907   version_type=sunos
12908   need_lib_prefix=no
12909   need_version=no
12910   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12912     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12913     dynamic_linker='NetBSD (a.out) ld.so'
12914   else
12915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12916     soname_spec='${libname}${release}${shared_ext}$major'
12917     dynamic_linker='NetBSD ld.elf_so'
12918   fi
12919   shlibpath_var=LD_LIBRARY_PATH
12920   shlibpath_overrides_runpath=yes
12921   hardcode_into_libs=yes
12922   ;;
12923
12924 newsos6)
12925   version_type=linux
12926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12927   shlibpath_var=LD_LIBRARY_PATH
12928   shlibpath_overrides_runpath=yes
12929   ;;
12930
12931 *nto* | *qnx*)
12932   version_type=qnx
12933   need_lib_prefix=no
12934   need_version=no
12935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936   soname_spec='${libname}${release}${shared_ext}$major'
12937   shlibpath_var=LD_LIBRARY_PATH
12938   shlibpath_overrides_runpath=no
12939   hardcode_into_libs=yes
12940   dynamic_linker='ldqnx.so'
12941   ;;
12942
12943 openbsd*)
12944   version_type=sunos
12945   sys_lib_dlsearch_path_spec="/usr/lib"
12946   need_lib_prefix=no
12947   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12948   case $host_os in
12949     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12950     *)                          need_version=no  ;;
12951   esac
12952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12953   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12954   shlibpath_var=LD_LIBRARY_PATH
12955   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12956     case $host_os in
12957       openbsd2.[89] | openbsd2.[89].*)
12958         shlibpath_overrides_runpath=no
12959         ;;
12960       *)
12961         shlibpath_overrides_runpath=yes
12962         ;;
12963       esac
12964   else
12965     shlibpath_overrides_runpath=yes
12966   fi
12967   ;;
12968
12969 os2*)
12970   libname_spec='$name'
12971   shrext_cmds=".dll"
12972   need_lib_prefix=no
12973   library_names_spec='$libname${shared_ext} $libname.a'
12974   dynamic_linker='OS/2 ld.exe'
12975   shlibpath_var=LIBPATH
12976   ;;
12977
12978 osf3* | osf4* | osf5*)
12979   version_type=osf
12980   need_lib_prefix=no
12981   need_version=no
12982   soname_spec='${libname}${release}${shared_ext}$major'
12983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984   shlibpath_var=LD_LIBRARY_PATH
12985   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12986   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12987   ;;
12988
12989 rdos*)
12990   dynamic_linker=no
12991   ;;
12992
12993 solaris*)
12994   version_type=linux
12995   need_lib_prefix=no
12996   need_version=no
12997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998   soname_spec='${libname}${release}${shared_ext}$major'
12999   shlibpath_var=LD_LIBRARY_PATH
13000   shlibpath_overrides_runpath=yes
13001   hardcode_into_libs=yes
13002   # ldd complains unless libraries are executable
13003   postinstall_cmds='chmod +x $lib'
13004   ;;
13005
13006 sunos4*)
13007   version_type=sunos
13008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13010   shlibpath_var=LD_LIBRARY_PATH
13011   shlibpath_overrides_runpath=yes
13012   if test "$with_gnu_ld" = yes; then
13013     need_lib_prefix=no
13014   fi
13015   need_version=yes
13016   ;;
13017
13018 sysv4 | sysv4.3*)
13019   version_type=linux
13020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021   soname_spec='${libname}${release}${shared_ext}$major'
13022   shlibpath_var=LD_LIBRARY_PATH
13023   case $host_vendor in
13024     sni)
13025       shlibpath_overrides_runpath=no
13026       need_lib_prefix=no
13027       runpath_var=LD_RUN_PATH
13028       ;;
13029     siemens)
13030       need_lib_prefix=no
13031       ;;
13032     motorola)
13033       need_lib_prefix=no
13034       need_version=no
13035       shlibpath_overrides_runpath=no
13036       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13037       ;;
13038   esac
13039   ;;
13040
13041 sysv4*MP*)
13042   if test -d /usr/nec ;then
13043     version_type=linux
13044     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13045     soname_spec='$libname${shared_ext}.$major'
13046     shlibpath_var=LD_LIBRARY_PATH
13047   fi
13048   ;;
13049
13050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13051   version_type=freebsd-elf
13052   need_lib_prefix=no
13053   need_version=no
13054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13055   soname_spec='${libname}${release}${shared_ext}$major'
13056   shlibpath_var=LD_LIBRARY_PATH
13057   shlibpath_overrides_runpath=yes
13058   hardcode_into_libs=yes
13059   if test "$with_gnu_ld" = yes; then
13060     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13061   else
13062     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13063     case $host_os in
13064       sco3.2v5*)
13065         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13066         ;;
13067     esac
13068   fi
13069   sys_lib_dlsearch_path_spec='/usr/lib'
13070   ;;
13071
13072 tpf*)
13073   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13074   version_type=linux
13075   need_lib_prefix=no
13076   need_version=no
13077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078   shlibpath_var=LD_LIBRARY_PATH
13079   shlibpath_overrides_runpath=no
13080   hardcode_into_libs=yes
13081   ;;
13082
13083 uts4*)
13084   version_type=linux
13085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13086   soname_spec='${libname}${release}${shared_ext}$major'
13087   shlibpath_var=LD_LIBRARY_PATH
13088   ;;
13089
13090 *)
13091   dynamic_linker=no
13092   ;;
13093 esac
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13095 $as_echo "$dynamic_linker" >&6; }
13096 test "$dynamic_linker" = no && can_build_shared=no
13097
13098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13099 if test "$GCC" = yes; then
13100   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13101 fi
13102
13103 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13104   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13105 fi
13106 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13107   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13108 fi
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13198 hardcode_action=
13199 if test -n "$hardcode_libdir_flag_spec" ||
13200    test -n "$runpath_var" ||
13201    test "X$hardcode_automatic" = "Xyes" ; then
13202
13203   # We can hardcode non-existent directories.
13204   if test "$hardcode_direct" != no &&
13205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13206      # have to relink, otherwise we might link with an installed library
13207      # when we should be linking with a yet-to-be-installed one
13208      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13209      test "$hardcode_minus_L" != no; then
13210     # Linking always hardcodes the temporary library directory.
13211     hardcode_action=relink
13212   else
13213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13214     hardcode_action=immediate
13215   fi
13216 else
13217   # We cannot hardcode anything, or else we can only hardcode existing
13218   # directories.
13219   hardcode_action=unsupported
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13222 $as_echo "$hardcode_action" >&6; }
13223
13224 if test "$hardcode_action" = relink ||
13225    test "$inherit_rpath" = yes; then
13226   # Fast installation is not supported
13227   enable_fast_install=no
13228 elif test "$shlibpath_overrides_runpath" = yes ||
13229      test "$enable_shared" = no; then
13230   # Fast installation is not necessary
13231   enable_fast_install=needless
13232 fi
13233
13234
13235
13236
13237
13238
13239   if test "x$enable_dlopen" != xyes; then
13240   enable_dlopen=unknown
13241   enable_dlopen_self=unknown
13242   enable_dlopen_self_static=unknown
13243 else
13244   lt_cv_dlopen=no
13245   lt_cv_dlopen_libs=
13246
13247   case $host_os in
13248   beos*)
13249     lt_cv_dlopen="load_add_on"
13250     lt_cv_dlopen_libs=
13251     lt_cv_dlopen_self=yes
13252     ;;
13253
13254   mingw* | pw32* | cegcc*)
13255     lt_cv_dlopen="LoadLibrary"
13256     lt_cv_dlopen_libs=
13257     ;;
13258
13259   cygwin*)
13260     lt_cv_dlopen="dlopen"
13261     lt_cv_dlopen_libs=
13262     ;;
13263
13264   darwin*)
13265   # if libdl is installed we need to link against it
13266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   ac_check_lib_save_LIBS=$LIBS
13272 LIBS="-ldl  $LIBS"
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275
13276 /* Override any GCC internal prototype to avoid an error.
13277    Use char because int might match the return type of a GCC
13278    builtin and then its argument prototype would still apply.  */
13279 #ifdef __cplusplus
13280 extern "C"
13281 #endif
13282 char dlopen ();
13283 int
13284 main ()
13285 {
13286 return dlopen ();
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_c_try_link "$LINENO"; then :
13292   ac_cv_lib_dl_dlopen=yes
13293 else
13294   ac_cv_lib_dl_dlopen=no
13295 fi
13296 rm -f core conftest.err conftest.$ac_objext \
13297     conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13301 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13302 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13303   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13304 else
13305
13306     lt_cv_dlopen="dyld"
13307     lt_cv_dlopen_libs=
13308     lt_cv_dlopen_self=yes
13309
13310 fi
13311
13312     ;;
13313
13314   *)
13315     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13316 if test "x$ac_cv_func_shl_load" = x""yes; then :
13317   lt_cv_dlopen="shl_load"
13318 else
13319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13320 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13321 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   ac_check_lib_save_LIBS=$LIBS
13325 LIBS="-ldld  $LIBS"
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h.  */
13328
13329 /* Override any GCC internal prototype to avoid an error.
13330    Use char because int might match the return type of a GCC
13331    builtin and then its argument prototype would still apply.  */
13332 #ifdef __cplusplus
13333 extern "C"
13334 #endif
13335 char shl_load ();
13336 int
13337 main ()
13338 {
13339 return shl_load ();
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_c_try_link "$LINENO"; then :
13345   ac_cv_lib_dld_shl_load=yes
13346 else
13347   ac_cv_lib_dld_shl_load=no
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext \
13350     conftest$ac_exeext conftest.$ac_ext
13351 LIBS=$ac_check_lib_save_LIBS
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13354 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13355 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13356   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13357 else
13358   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13359 if test "x$ac_cv_func_dlopen" = x""yes; then :
13360   lt_cv_dlopen="dlopen"
13361 else
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13363 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-ldl  $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h.  */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373    Use char because int might match the return type of a GCC
13374    builtin and then its argument prototype would still apply.  */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char dlopen ();
13379 int
13380 main ()
13381 {
13382 return dlopen ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 if ac_fn_c_try_link "$LINENO"; then :
13388   ac_cv_lib_dl_dlopen=yes
13389 else
13390   ac_cv_lib_dl_dlopen=no
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext \
13393     conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13397 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13398 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13400 else
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13402 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   ac_check_lib_save_LIBS=$LIBS
13407 LIBS="-lsvld  $LIBS"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410
13411 /* Override any GCC internal prototype to avoid an error.
13412    Use char because int might match the return type of a GCC
13413    builtin and then its argument prototype would still apply.  */
13414 #ifdef __cplusplus
13415 extern "C"
13416 #endif
13417 char dlopen ();
13418 int
13419 main ()
13420 {
13421 return dlopen ();
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_link "$LINENO"; then :
13427   ac_cv_lib_svld_dlopen=yes
13428 else
13429   ac_cv_lib_svld_dlopen=no
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext \
13432     conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13436 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13437 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13438   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13439 else
13440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13441 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13442 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-ldld  $LIBS"
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h.  */
13449
13450 /* Override any GCC internal prototype to avoid an error.
13451    Use char because int might match the return type of a GCC
13452    builtin and then its argument prototype would still apply.  */
13453 #ifdef __cplusplus
13454 extern "C"
13455 #endif
13456 char dld_link ();
13457 int
13458 main ()
13459 {
13460 return dld_link ();
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466   ac_cv_lib_dld_dld_link=yes
13467 else
13468   ac_cv_lib_dld_dld_link=no
13469 fi
13470 rm -f core conftest.err conftest.$ac_objext \
13471     conftest$ac_exeext conftest.$ac_ext
13472 LIBS=$ac_check_lib_save_LIBS
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13475 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13476 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13477   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13478 fi
13479
13480
13481 fi
13482
13483
13484 fi
13485
13486
13487 fi
13488
13489
13490 fi
13491
13492
13493 fi
13494
13495     ;;
13496   esac
13497
13498   if test "x$lt_cv_dlopen" != xno; then
13499     enable_dlopen=yes
13500   else
13501     enable_dlopen=no
13502   fi
13503
13504   case $lt_cv_dlopen in
13505   dlopen)
13506     save_CPPFLAGS="$CPPFLAGS"
13507     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13508
13509     save_LDFLAGS="$LDFLAGS"
13510     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13511
13512     save_LIBS="$LIBS"
13513     LIBS="$lt_cv_dlopen_libs $LIBS"
13514
13515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13516 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13517 if test "${lt_cv_dlopen_self+set}" = set; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520           if test "$cross_compiling" = yes; then :
13521   lt_cv_dlopen_self=cross
13522 else
13523   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13524   lt_status=$lt_dlunknown
13525   cat > conftest.$ac_ext <<_LT_EOF
13526 #line 13526 "configure"
13527 #include "confdefs.h"
13528
13529 #if HAVE_DLFCN_H
13530 #include <dlfcn.h>
13531 #endif
13532
13533 #include <stdio.h>
13534
13535 #ifdef RTLD_GLOBAL
13536 #  define LT_DLGLOBAL           RTLD_GLOBAL
13537 #else
13538 #  ifdef DL_GLOBAL
13539 #    define LT_DLGLOBAL         DL_GLOBAL
13540 #  else
13541 #    define LT_DLGLOBAL         0
13542 #  endif
13543 #endif
13544
13545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13546    find out it does not work in some platform. */
13547 #ifndef LT_DLLAZY_OR_NOW
13548 #  ifdef RTLD_LAZY
13549 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13550 #  else
13551 #    ifdef DL_LAZY
13552 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13553 #    else
13554 #      ifdef RTLD_NOW
13555 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13556 #      else
13557 #        ifdef DL_NOW
13558 #          define LT_DLLAZY_OR_NOW      DL_NOW
13559 #        else
13560 #          define LT_DLLAZY_OR_NOW      0
13561 #        endif
13562 #      endif
13563 #    endif
13564 #  endif
13565 #endif
13566
13567 void fnord() { int i=42;}
13568 int main ()
13569 {
13570   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13571   int status = $lt_dlunknown;
13572
13573   if (self)
13574     {
13575       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13576       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13577       /* dlclose (self); */
13578     }
13579   else
13580     puts (dlerror ());
13581
13582   return status;
13583 }
13584 _LT_EOF
13585   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13586   (eval $ac_link) 2>&5
13587   ac_status=$?
13588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13590     (./conftest; exit; ) >&5 2>/dev/null
13591     lt_status=$?
13592     case x$lt_status in
13593       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13594       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13595       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13596     esac
13597   else :
13598     # compilation failed
13599     lt_cv_dlopen_self=no
13600   fi
13601 fi
13602 rm -fr conftest*
13603
13604
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13607 $as_echo "$lt_cv_dlopen_self" >&6; }
13608
13609     if test "x$lt_cv_dlopen_self" = xyes; then
13610       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13611       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13612 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13613 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13614   $as_echo_n "(cached) " >&6
13615 else
13616           if test "$cross_compiling" = yes; then :
13617   lt_cv_dlopen_self_static=cross
13618 else
13619   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13620   lt_status=$lt_dlunknown
13621   cat > conftest.$ac_ext <<_LT_EOF
13622 #line 13622 "configure"
13623 #include "confdefs.h"
13624
13625 #if HAVE_DLFCN_H
13626 #include <dlfcn.h>
13627 #endif
13628
13629 #include <stdio.h>
13630
13631 #ifdef RTLD_GLOBAL
13632 #  define LT_DLGLOBAL           RTLD_GLOBAL
13633 #else
13634 #  ifdef DL_GLOBAL
13635 #    define LT_DLGLOBAL         DL_GLOBAL
13636 #  else
13637 #    define LT_DLGLOBAL         0
13638 #  endif
13639 #endif
13640
13641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13642    find out it does not work in some platform. */
13643 #ifndef LT_DLLAZY_OR_NOW
13644 #  ifdef RTLD_LAZY
13645 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13646 #  else
13647 #    ifdef DL_LAZY
13648 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13649 #    else
13650 #      ifdef RTLD_NOW
13651 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13652 #      else
13653 #        ifdef DL_NOW
13654 #          define LT_DLLAZY_OR_NOW      DL_NOW
13655 #        else
13656 #          define LT_DLLAZY_OR_NOW      0
13657 #        endif
13658 #      endif
13659 #    endif
13660 #  endif
13661 #endif
13662
13663 void fnord() { int i=42;}
13664 int main ()
13665 {
13666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13667   int status = $lt_dlunknown;
13668
13669   if (self)
13670     {
13671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13673       /* dlclose (self); */
13674     }
13675   else
13676     puts (dlerror ());
13677
13678   return status;
13679 }
13680 _LT_EOF
13681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13682   (eval $ac_link) 2>&5
13683   ac_status=$?
13684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13686     (./conftest; exit; ) >&5 2>/dev/null
13687     lt_status=$?
13688     case x$lt_status in
13689       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13690       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13691       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13692     esac
13693   else :
13694     # compilation failed
13695     lt_cv_dlopen_self_static=no
13696   fi
13697 fi
13698 rm -fr conftest*
13699
13700
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13703 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13704     fi
13705
13706     CPPFLAGS="$save_CPPFLAGS"
13707     LDFLAGS="$save_LDFLAGS"
13708     LIBS="$save_LIBS"
13709     ;;
13710   esac
13711
13712   case $lt_cv_dlopen_self in
13713   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13714   *) enable_dlopen_self=unknown ;;
13715   esac
13716
13717   case $lt_cv_dlopen_self_static in
13718   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13719   *) enable_dlopen_self_static=unknown ;;
13720   esac
13721 fi
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739 striplib=
13740 old_striplib=
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13742 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13744   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13745   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13747 $as_echo "yes" >&6; }
13748 else
13749 # FIXME - insert some real tests, host_os isn't really good enough
13750   case $host_os in
13751   darwin*)
13752     if test -n "$STRIP" ; then
13753       striplib="$STRIP -x"
13754       old_striplib="$STRIP -S"
13755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13756 $as_echo "yes" >&6; }
13757     else
13758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760     fi
13761     ;;
13762   *)
13763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13765     ;;
13766   esac
13767 fi
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780   # Report which library types will actually be built
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13782 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13784 $as_echo "$can_build_shared" >&6; }
13785
13786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13787 $as_echo_n "checking whether to build shared libraries... " >&6; }
13788   test "$can_build_shared" = "no" && enable_shared=no
13789
13790   # On AIX, shared libraries and static libraries use the same namespace, and
13791   # are all built from PIC.
13792   case $host_os in
13793   aix3*)
13794     test "$enable_shared" = yes && enable_static=no
13795     if test -n "$RANLIB"; then
13796       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13797       postinstall_cmds='$RANLIB $lib'
13798     fi
13799     ;;
13800
13801   aix[4-9]*)
13802     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13803       test "$enable_shared" = yes && enable_static=no
13804     fi
13805     ;;
13806   esac
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13808 $as_echo "$enable_shared" >&6; }
13809
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13811 $as_echo_n "checking whether to build static libraries... " >&6; }
13812   # Make sure either enable_shared or enable_static is yes.
13813   test "$enable_shared" = yes || enable_static=yes
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13815 $as_echo "$enable_static" >&6; }
13816
13817
13818
13819
13820 fi
13821 ac_ext=c
13822 ac_cpp='$CPP $CPPFLAGS'
13823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827 CC="$lt_save_CC"
13828
13829
13830 ac_ext=cpp
13831 ac_cpp='$CXXCPP $CPPFLAGS'
13832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13835
13836 archive_cmds_need_lc_CXX=no
13837 allow_undefined_flag_CXX=
13838 always_export_symbols_CXX=no
13839 archive_expsym_cmds_CXX=
13840 compiler_needs_object_CXX=no
13841 export_dynamic_flag_spec_CXX=
13842 hardcode_direct_CXX=no
13843 hardcode_direct_absolute_CXX=no
13844 hardcode_libdir_flag_spec_CXX=
13845 hardcode_libdir_flag_spec_ld_CXX=
13846 hardcode_libdir_separator_CXX=
13847 hardcode_minus_L_CXX=no
13848 hardcode_shlibpath_var_CXX=unsupported
13849 hardcode_automatic_CXX=no
13850 inherit_rpath_CXX=no
13851 module_cmds_CXX=
13852 module_expsym_cmds_CXX=
13853 link_all_deplibs_CXX=unknown
13854 old_archive_cmds_CXX=$old_archive_cmds
13855 no_undefined_flag_CXX=
13856 whole_archive_flag_spec_CXX=
13857 enable_shared_with_static_runtimes_CXX=no
13858
13859 # Source file extension for C++ test sources.
13860 ac_ext=cpp
13861
13862 # Object file extension for compiled C++ test sources.
13863 objext=o
13864 objext_CXX=$objext
13865
13866 # No sense in running all these tests if we already determined that
13867 # the CXX compiler isn't working.  Some variables (like enable_shared)
13868 # are currently assumed to apply to all compilers on this platform,
13869 # and will be corrupted by setting them based on a non-working compiler.
13870 if test "$_lt_caught_CXX_error" != yes; then
13871   # Code to be used in simple compile tests
13872   lt_simple_compile_test_code="int some_variable = 0;"
13873
13874   # Code to be used in simple link tests
13875   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13876
13877   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13878
13879
13880
13881
13882
13883
13884 # If no C compiler was specified, use CC.
13885 LTCC=${LTCC-"$CC"}
13886
13887 # If no C compiler flags were specified, use CFLAGS.
13888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13889
13890 # Allow CC to be a program name with arguments.
13891 compiler=$CC
13892
13893
13894   # save warnings/boilerplate of simple test code
13895   ac_outfile=conftest.$ac_objext
13896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13898 _lt_compiler_boilerplate=`cat conftest.err`
13899 $RM conftest*
13900
13901   ac_outfile=conftest.$ac_objext
13902 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13904 _lt_linker_boilerplate=`cat conftest.err`
13905 $RM -r conftest*
13906
13907
13908   # Allow CC to be a program name with arguments.
13909   lt_save_CC=$CC
13910   lt_save_LD=$LD
13911   lt_save_GCC=$GCC
13912   GCC=$GXX
13913   lt_save_with_gnu_ld=$with_gnu_ld
13914   lt_save_path_LD=$lt_cv_path_LD
13915   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13916     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13917   else
13918     $as_unset lt_cv_prog_gnu_ld
13919   fi
13920   if test -n "${lt_cv_path_LDCXX+set}"; then
13921     lt_cv_path_LD=$lt_cv_path_LDCXX
13922   else
13923     $as_unset lt_cv_path_LD
13924   fi
13925   test -z "${LDCXX+set}" || LD=$LDCXX
13926   CC=${CXX-"c++"}
13927   compiler=$CC
13928   compiler_CXX=$CC
13929   for cc_temp in $compiler""; do
13930   case $cc_temp in
13931     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13932     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13933     \-*) ;;
13934     *) break;;
13935   esac
13936 done
13937 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13938
13939
13940   if test -n "$compiler"; then
13941     # We don't want -fno-exception when compiling C++ code, so set the
13942     # no_builtin_flag separately
13943     if test "$GXX" = yes; then
13944       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13945     else
13946       lt_prog_compiler_no_builtin_flag_CXX=
13947     fi
13948
13949     if test "$GXX" = yes; then
13950       # Set up default GNU C++ configuration
13951
13952
13953
13954 # Check whether --with-gnu-ld was given.
13955 if test "${with_gnu_ld+set}" = set; then :
13956   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13957 else
13958   with_gnu_ld=no
13959 fi
13960
13961 ac_prog=ld
13962 if test "$GCC" = yes; then
13963   # Check if gcc -print-prog-name=ld gives a path.
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13965 $as_echo_n "checking for ld used by $CC... " >&6; }
13966   case $host in
13967   *-*-mingw*)
13968     # gcc leaves a trailing carriage return which upsets mingw
13969     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13970   *)
13971     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13972   esac
13973   case $ac_prog in
13974     # Accept absolute paths.
13975     [\\/]* | ?:[\\/]*)
13976       re_direlt='/[^/][^/]*/\.\./'
13977       # Canonicalize the pathname of ld
13978       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13979       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13980         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13981       done
13982       test -z "$LD" && LD="$ac_prog"
13983       ;;
13984   "")
13985     # If it fails, then pretend we aren't using GCC.
13986     ac_prog=ld
13987     ;;
13988   *)
13989     # If it is relative, then search for the first ld in PATH.
13990     with_gnu_ld=unknown
13991     ;;
13992   esac
13993 elif test "$with_gnu_ld" = yes; then
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13995 $as_echo_n "checking for GNU ld... " >&6; }
13996 else
13997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13998 $as_echo_n "checking for non-GNU ld... " >&6; }
13999 fi
14000 if test "${lt_cv_path_LD+set}" = set; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   if test -z "$LD"; then
14004   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14005   for ac_dir in $PATH; do
14006     IFS="$lt_save_ifs"
14007     test -z "$ac_dir" && ac_dir=.
14008     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14009       lt_cv_path_LD="$ac_dir/$ac_prog"
14010       # Check to see if the program is GNU ld.  I'd rather use --version,
14011       # but apparently some variants of GNU ld only accept -v.
14012       # Break only if it was the GNU/non-GNU ld that we prefer.
14013       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14014       *GNU* | *'with BFD'*)
14015         test "$with_gnu_ld" != no && break
14016         ;;
14017       *)
14018         test "$with_gnu_ld" != yes && break
14019         ;;
14020       esac
14021     fi
14022   done
14023   IFS="$lt_save_ifs"
14024 else
14025   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14026 fi
14027 fi
14028
14029 LD="$lt_cv_path_LD"
14030 if test -n "$LD"; then
14031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14032 $as_echo "$LD" >&6; }
14033 else
14034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036 fi
14037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14039 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14040 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14044 case `$LD -v 2>&1 </dev/null` in
14045 *GNU* | *'with BFD'*)
14046   lt_cv_prog_gnu_ld=yes
14047   ;;
14048 *)
14049   lt_cv_prog_gnu_ld=no
14050   ;;
14051 esac
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14054 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14055 with_gnu_ld=$lt_cv_prog_gnu_ld
14056
14057
14058
14059
14060
14061
14062
14063       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14064       # archiving commands below assume that GNU ld is being used.
14065       if test "$with_gnu_ld" = yes; then
14066         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067         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'
14068
14069         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14070         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14071
14072         # If archive_cmds runs LD, not CC, wlarc should be empty
14073         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14074         #     investigate it a little bit more. (MM)
14075         wlarc='${wl}'
14076
14077         # ancient GNU ld didn't support --whole-archive et. al.
14078         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14079           $GREP 'no-whole-archive' > /dev/null; then
14080           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14081         else
14082           whole_archive_flag_spec_CXX=
14083         fi
14084       else
14085         with_gnu_ld=no
14086         wlarc=
14087
14088         # A generic and very simple default shared library creation
14089         # command for GNU C++ for the case where it uses the native
14090         # linker, instead of GNU ld.  If possible, this setting should
14091         # overridden to take advantage of the native linker features on
14092         # the platform it is being used on.
14093         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14094       fi
14095
14096       # Commands to make compiler produce verbose output that lists
14097       # what "hidden" libraries, object files and flags are used when
14098       # linking a shared library.
14099       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100
14101     else
14102       GXX=no
14103       with_gnu_ld=no
14104       wlarc=
14105     fi
14106
14107     # PORTME: fill in a description of your system's C++ link characteristics
14108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14109 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14110     ld_shlibs_CXX=yes
14111     case $host_os in
14112       aix3*)
14113         # FIXME: insert proper C++ library support
14114         ld_shlibs_CXX=no
14115         ;;
14116       aix[4-9]*)
14117         if test "$host_cpu" = ia64; then
14118           # On IA64, the linker does run time linking by default, so we don't
14119           # have to do anything special.
14120           aix_use_runtimelinking=no
14121           exp_sym_flag='-Bexport'
14122           no_entry_flag=""
14123         else
14124           aix_use_runtimelinking=no
14125
14126           # Test if we are trying to use run time linking or normal
14127           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14128           # need to do runtime linking.
14129           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14130             for ld_flag in $LDFLAGS; do
14131               case $ld_flag in
14132               *-brtl*)
14133                 aix_use_runtimelinking=yes
14134                 break
14135                 ;;
14136               esac
14137             done
14138             ;;
14139           esac
14140
14141           exp_sym_flag='-bexport'
14142           no_entry_flag='-bnoentry'
14143         fi
14144
14145         # When large executables or shared objects are built, AIX ld can
14146         # have problems creating the table of contents.  If linking a library
14147         # or program results in "error TOC overflow" add -mminimal-toc to
14148         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14149         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14150
14151         archive_cmds_CXX=''
14152         hardcode_direct_CXX=yes
14153         hardcode_direct_absolute_CXX=yes
14154         hardcode_libdir_separator_CXX=':'
14155         link_all_deplibs_CXX=yes
14156         file_list_spec_CXX='${wl}-f,'
14157
14158         if test "$GXX" = yes; then
14159           case $host_os in aix4.[012]|aix4.[012].*)
14160           # We only want to do this on AIX 4.2 and lower, the check
14161           # below for broken collect2 doesn't work under 4.3+
14162           collect2name=`${CC} -print-prog-name=collect2`
14163           if test -f "$collect2name" &&
14164              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14165           then
14166             # We have reworked collect2
14167             :
14168           else
14169             # We have old collect2
14170             hardcode_direct_CXX=unsupported
14171             # It fails to find uninstalled libraries when the uninstalled
14172             # path is not listed in the libpath.  Setting hardcode_minus_L
14173             # to unsupported forces relinking
14174             hardcode_minus_L_CXX=yes
14175             hardcode_libdir_flag_spec_CXX='-L$libdir'
14176             hardcode_libdir_separator_CXX=
14177           fi
14178           esac
14179           shared_flag='-shared'
14180           if test "$aix_use_runtimelinking" = yes; then
14181             shared_flag="$shared_flag "'${wl}-G'
14182           fi
14183         else
14184           # not using gcc
14185           if test "$host_cpu" = ia64; then
14186           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14187           # chokes on -Wl,-G. The following line is correct:
14188           shared_flag='-G'
14189           else
14190             if test "$aix_use_runtimelinking" = yes; then
14191               shared_flag='${wl}-G'
14192             else
14193               shared_flag='${wl}-bM:SRE'
14194             fi
14195           fi
14196         fi
14197
14198         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14199         # It seems that -bexpall does not export symbols beginning with
14200         # underscore (_), so it is better to generate a list of symbols to
14201         # export.
14202         always_export_symbols_CXX=yes
14203         if test "$aix_use_runtimelinking" = yes; then
14204           # Warning - without using the other runtime loading flags (-brtl),
14205           # -berok will link without error, but may produce a broken library.
14206           allow_undefined_flag_CXX='-berok'
14207           # Determine the default libpath from the value encoded in an empty
14208           # executable.
14209           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211
14212 int
14213 main ()
14214 {
14215
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_cxx_try_link "$LINENO"; then :
14221
14222 lt_aix_libpath_sed='
14223     /Import File Strings/,/^$/ {
14224         /^0/ {
14225             s/^0  *\(.*\)$/\1/
14226             p
14227         }
14228     }'
14229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14230 # Check for a 64-bit object if we didn't find anything.
14231 if test -z "$aix_libpath"; then
14232   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14233 fi
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext \
14236     conftest$ac_exeext conftest.$ac_ext
14237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14238
14239           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14240
14241           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"
14242         else
14243           if test "$host_cpu" = ia64; then
14244             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14245             allow_undefined_flag_CXX="-z nodefs"
14246             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"
14247           else
14248             # Determine the default libpath from the value encoded in an
14249             # empty executable.
14250             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h.  */
14252
14253 int
14254 main ()
14255 {
14256
14257   ;
14258   return 0;
14259 }
14260 _ACEOF
14261 if ac_fn_cxx_try_link "$LINENO"; then :
14262
14263 lt_aix_libpath_sed='
14264     /Import File Strings/,/^$/ {
14265         /^0/ {
14266             s/^0  *\(.*\)$/\1/
14267             p
14268         }
14269     }'
14270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14271 # Check for a 64-bit object if we didn't find anything.
14272 if test -z "$aix_libpath"; then
14273   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14274 fi
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277     conftest$ac_exeext conftest.$ac_ext
14278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14279
14280             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14281             # Warning - without using the other run time loading flags,
14282             # -berok will link without error, but may produce a broken library.
14283             no_undefined_flag_CXX=' ${wl}-bernotok'
14284             allow_undefined_flag_CXX=' ${wl}-berok'
14285             # Exported symbols can be pulled into shared objects from archives
14286             whole_archive_flag_spec_CXX='$convenience'
14287             archive_cmds_need_lc_CXX=yes
14288             # This is similar to how AIX traditionally builds its shared
14289             # libraries.
14290             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'
14291           fi
14292         fi
14293         ;;
14294
14295       beos*)
14296         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14297           allow_undefined_flag_CXX=unsupported
14298           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14299           # support --undefined.  This deserves some investigation.  FIXME
14300           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301         else
14302           ld_shlibs_CXX=no
14303         fi
14304         ;;
14305
14306       chorus*)
14307         case $cc_basename in
14308           *)
14309           # FIXME: insert proper C++ library support
14310           ld_shlibs_CXX=no
14311           ;;
14312         esac
14313         ;;
14314
14315       cygwin* | mingw* | pw32* | cegcc*)
14316         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14317         # as there is no search path for DLLs.
14318         hardcode_libdir_flag_spec_CXX='-L$libdir'
14319         allow_undefined_flag_CXX=unsupported
14320         always_export_symbols_CXX=no
14321         enable_shared_with_static_runtimes_CXX=yes
14322
14323         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14324           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'
14325           # If the export-symbols file already is a .def file (1st line
14326           # is EXPORTS), use it as is; otherwise, prepend...
14327           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14328             cp $export_symbols $output_objdir/$soname.def;
14329           else
14330             echo EXPORTS > $output_objdir/$soname.def;
14331             cat $export_symbols >> $output_objdir/$soname.def;
14332           fi~
14333           $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'
14334         else
14335           ld_shlibs_CXX=no
14336         fi
14337         ;;
14338       darwin* | rhapsody*)
14339
14340
14341   archive_cmds_need_lc_CXX=no
14342   hardcode_direct_CXX=no
14343   hardcode_automatic_CXX=yes
14344   hardcode_shlibpath_var_CXX=unsupported
14345   whole_archive_flag_spec_CXX=''
14346   link_all_deplibs_CXX=yes
14347   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14348   case $cc_basename in
14349      ifort*) _lt_dar_can_shared=yes ;;
14350      *) _lt_dar_can_shared=$GCC ;;
14351   esac
14352   if test "$_lt_dar_can_shared" = "yes"; then
14353     output_verbose_link_cmd=echo
14354     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}"
14355     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14356     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}"
14357     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}"
14358        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14359       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}"
14360       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}"
14361     fi
14362
14363   else
14364   ld_shlibs_CXX=no
14365   fi
14366
14367         ;;
14368
14369       dgux*)
14370         case $cc_basename in
14371           ec++*)
14372             # FIXME: insert proper C++ library support
14373             ld_shlibs_CXX=no
14374             ;;
14375           ghcx*)
14376             # Green Hills C++ Compiler
14377             # FIXME: insert proper C++ library support
14378             ld_shlibs_CXX=no
14379             ;;
14380           *)
14381             # FIXME: insert proper C++ library support
14382             ld_shlibs_CXX=no
14383             ;;
14384         esac
14385         ;;
14386
14387       freebsd[12]*)
14388         # C++ shared libraries reported to be fairly broken before
14389         # switch to ELF
14390         ld_shlibs_CXX=no
14391         ;;
14392
14393       freebsd-elf*)
14394         archive_cmds_need_lc_CXX=no
14395         ;;
14396
14397       freebsd* | dragonfly*)
14398         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14399         # conventions
14400         ld_shlibs_CXX=yes
14401         ;;
14402
14403       gnu*)
14404         ;;
14405
14406       hpux9*)
14407         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14408         hardcode_libdir_separator_CXX=:
14409         export_dynamic_flag_spec_CXX='${wl}-E'
14410         hardcode_direct_CXX=yes
14411         hardcode_minus_L_CXX=yes # Not in the search PATH,
14412                                              # but as the default
14413                                              # location of the library.
14414
14415         case $cc_basename in
14416           CC*)
14417             # FIXME: insert proper C++ library support
14418             ld_shlibs_CXX=no
14419             ;;
14420           aCC*)
14421             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'
14422             # Commands to make compiler produce verbose output that lists
14423             # what "hidden" libraries, object files and flags are used when
14424             # linking a shared library.
14425             #
14426             # There doesn't appear to be a way to prevent this compiler from
14427             # explicitly linking system object files so we need to strip them
14428             # from the output so that they don't get included in the library
14429             # dependencies.
14430             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'
14431             ;;
14432           *)
14433             if test "$GXX" = yes; then
14434               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'
14435             else
14436               # FIXME: insert proper C++ library support
14437               ld_shlibs_CXX=no
14438             fi
14439             ;;
14440         esac
14441         ;;
14442
14443       hpux10*|hpux11*)
14444         if test $with_gnu_ld = no; then
14445           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14446           hardcode_libdir_separator_CXX=:
14447
14448           case $host_cpu in
14449             hppa*64*|ia64*)
14450               ;;
14451             *)
14452               export_dynamic_flag_spec_CXX='${wl}-E'
14453               ;;
14454           esac
14455         fi
14456         case $host_cpu in
14457           hppa*64*|ia64*)
14458             hardcode_direct_CXX=no
14459             hardcode_shlibpath_var_CXX=no
14460             ;;
14461           *)
14462             hardcode_direct_CXX=yes
14463             hardcode_direct_absolute_CXX=yes
14464             hardcode_minus_L_CXX=yes # Not in the search PATH,
14465                                                  # but as the default
14466                                                  # location of the library.
14467             ;;
14468         esac
14469
14470         case $cc_basename in
14471           CC*)
14472             # FIXME: insert proper C++ library support
14473             ld_shlibs_CXX=no
14474             ;;
14475           aCC*)
14476             case $host_cpu in
14477               hppa*64*)
14478                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14479                 ;;
14480               ia64*)
14481                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482                 ;;
14483               *)
14484                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14485                 ;;
14486             esac
14487             # Commands to make compiler produce verbose output that lists
14488             # what "hidden" libraries, object files and flags are used when
14489             # linking a shared library.
14490             #
14491             # There doesn't appear to be a way to prevent this compiler from
14492             # explicitly linking system object files so we need to strip them
14493             # from the output so that they don't get included in the library
14494             # dependencies.
14495             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'
14496             ;;
14497           *)
14498             if test "$GXX" = yes; then
14499               if test $with_gnu_ld = no; then
14500                 case $host_cpu in
14501                   hppa*64*)
14502                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14503                     ;;
14504                   ia64*)
14505                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506                     ;;
14507                   *)
14508                     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'
14509                     ;;
14510                 esac
14511               fi
14512             else
14513               # FIXME: insert proper C++ library support
14514               ld_shlibs_CXX=no
14515             fi
14516             ;;
14517         esac
14518         ;;
14519
14520       interix[3-9]*)
14521         hardcode_direct_CXX=no
14522         hardcode_shlibpath_var_CXX=no
14523         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14524         export_dynamic_flag_spec_CXX='${wl}-E'
14525         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14526         # Instead, shared libraries are loaded at an image base (0x10000000 by
14527         # default) and relocated if they conflict, which is a slow very memory
14528         # consuming and fragmenting process.  To avoid this, we pick a random,
14529         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14530         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14531         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'
14532         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'
14533         ;;
14534       irix5* | irix6*)
14535         case $cc_basename in
14536           CC*)
14537             # SGI C++
14538             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'
14539
14540             # Archives containing C++ object files must be created using
14541             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14542             # necessary to make sure instantiated templates are included
14543             # in the archive.
14544             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14545             ;;
14546           *)
14547             if test "$GXX" = yes; then
14548               if test "$with_gnu_ld" = no; then
14549                 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'
14550               else
14551                 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'
14552               fi
14553             fi
14554             link_all_deplibs_CXX=yes
14555             ;;
14556         esac
14557         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14558         hardcode_libdir_separator_CXX=:
14559         inherit_rpath_CXX=yes
14560         ;;
14561
14562       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14563         case $cc_basename in
14564           KCC*)
14565             # Kuck and Associates, Inc. (KAI) C++ Compiler
14566
14567             # KCC will only create a shared library if the output file
14568             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14569             # to its proper name (with version) after linking.
14570             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'
14571             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'
14572             # Commands to make compiler produce verbose output that lists
14573             # what "hidden" libraries, object files and flags are used when
14574             # linking a shared library.
14575             #
14576             # There doesn't appear to be a way to prevent this compiler from
14577             # explicitly linking system object files so we need to strip them
14578             # from the output so that they don't get included in the library
14579             # dependencies.
14580             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'
14581
14582             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14583             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14584
14585             # Archives containing C++ object files must be created using
14586             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14587             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14588             ;;
14589           icpc* | ecpc* )
14590             # Intel C++
14591             with_gnu_ld=yes
14592             # version 8.0 and above of icpc choke on multiply defined symbols
14593             # if we add $predep_objects and $postdep_objects, however 7.1 and
14594             # earlier do not add the objects themselves.
14595             case `$CC -V 2>&1` in
14596               *"Version 7."*)
14597                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14598                 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'
14599                 ;;
14600               *)  # Version 8.0 or newer
14601                 tmp_idyn=
14602                 case $host_cpu in
14603                   ia64*) tmp_idyn=' -i_dynamic';;
14604                 esac
14605                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14606                 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'
14607                 ;;
14608             esac
14609             archive_cmds_need_lc_CXX=no
14610             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14611             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14612             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14613             ;;
14614           pgCC* | pgcpp*)
14615             # Portland Group C++ compiler
14616             case `$CC -V` in
14617             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14618               prelink_cmds_CXX='tpldir=Template.dir~
14619                 rm -rf $tpldir~
14620                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14621                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14622               old_archive_cmds_CXX='tpldir=Template.dir~
14623                 rm -rf $tpldir~
14624                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14625                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14626                 $RANLIB $oldlib'
14627               archive_cmds_CXX='tpldir=Template.dir~
14628                 rm -rf $tpldir~
14629                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14630                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14631               archive_expsym_cmds_CXX='tpldir=Template.dir~
14632                 rm -rf $tpldir~
14633                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14634                 $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'
14635               ;;
14636             *) # Version 6 will use weak symbols
14637               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14638               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'
14639               ;;
14640             esac
14641
14642             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14643             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14644             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'
14645             ;;
14646           cxx*)
14647             # Compaq C++
14648             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14649             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'
14650
14651             runpath_var=LD_RUN_PATH
14652             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14653             hardcode_libdir_separator_CXX=:
14654
14655             # Commands to make compiler produce verbose output that lists
14656             # what "hidden" libraries, object files and flags are used when
14657             # linking a shared library.
14658             #
14659             # There doesn't appear to be a way to prevent this compiler from
14660             # explicitly linking system object files so we need to strip them
14661             # from the output so that they don't get included in the library
14662             # dependencies.
14663             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'
14664             ;;
14665           xl*)
14666             # IBM XL 8.0 on PPC, with GNU ld
14667             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14668             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14669             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14670             if test "x$supports_anon_versioning" = xyes; then
14671               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14672                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14673                 echo "local: *; };" >> $output_objdir/$libname.ver~
14674                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14675             fi
14676             ;;
14677           *)
14678             case `$CC -V 2>&1 | sed 5q` in
14679             *Sun\ C*)
14680               # Sun C++ 5.9
14681               no_undefined_flag_CXX=' -zdefs'
14682               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14683               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'
14684               hardcode_libdir_flag_spec_CXX='-R$libdir'
14685               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'
14686               compiler_needs_object_CXX=yes
14687
14688               # Not sure whether something based on
14689               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14690               # would be better.
14691               output_verbose_link_cmd='echo'
14692
14693               # Archives containing C++ object files must be created using
14694               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14695               # necessary to make sure instantiated templates are included
14696               # in the archive.
14697               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14698               ;;
14699             esac
14700             ;;
14701         esac
14702         ;;
14703
14704       lynxos*)
14705         # FIXME: insert proper C++ library support
14706         ld_shlibs_CXX=no
14707         ;;
14708
14709       m88k*)
14710         # FIXME: insert proper C++ library support
14711         ld_shlibs_CXX=no
14712         ;;
14713
14714       mvs*)
14715         case $cc_basename in
14716           cxx*)
14717             # FIXME: insert proper C++ library support
14718             ld_shlibs_CXX=no
14719             ;;
14720           *)
14721             # FIXME: insert proper C++ library support
14722             ld_shlibs_CXX=no
14723             ;;
14724         esac
14725         ;;
14726
14727       netbsd*)
14728         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14729           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14730           wlarc=
14731           hardcode_libdir_flag_spec_CXX='-R$libdir'
14732           hardcode_direct_CXX=yes
14733           hardcode_shlibpath_var_CXX=no
14734         fi
14735         # Workaround some broken pre-1.5 toolchains
14736         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14737         ;;
14738
14739       *nto* | *qnx*)
14740         ld_shlibs_CXX=yes
14741         ;;
14742
14743       openbsd2*)
14744         # C++ shared libraries are fairly broken
14745         ld_shlibs_CXX=no
14746         ;;
14747
14748       openbsd*)
14749         if test -f /usr/libexec/ld.so; then
14750           hardcode_direct_CXX=yes
14751           hardcode_shlibpath_var_CXX=no
14752           hardcode_direct_absolute_CXX=yes
14753           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14754           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14755           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14756             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14757             export_dynamic_flag_spec_CXX='${wl}-E'
14758             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14759           fi
14760           output_verbose_link_cmd=echo
14761         else
14762           ld_shlibs_CXX=no
14763         fi
14764         ;;
14765
14766       osf3* | osf4* | osf5*)
14767         case $cc_basename in
14768           KCC*)
14769             # Kuck and Associates, Inc. (KAI) C++ Compiler
14770
14771             # KCC will only create a shared library if the output file
14772             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14773             # to its proper name (with version) after linking.
14774             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'
14775
14776             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14777             hardcode_libdir_separator_CXX=:
14778
14779             # Archives containing C++ object files must be created using
14780             # the KAI C++ compiler.
14781             case $host in
14782               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14783               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14784             esac
14785             ;;
14786           RCC*)
14787             # Rational C++ 2.4.1
14788             # FIXME: insert proper C++ library support
14789             ld_shlibs_CXX=no
14790             ;;
14791           cxx*)
14792             case $host in
14793               osf3*)
14794                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14795                 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'
14796                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14797                 ;;
14798               *)
14799                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14800                 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'
14801                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14802                   echo "-hidden">> $lib.exp~
14803                   $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~
14804                   $RM $lib.exp'
14805                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14806                 ;;
14807             esac
14808
14809             hardcode_libdir_separator_CXX=:
14810
14811             # Commands to make compiler produce verbose output that lists
14812             # what "hidden" libraries, object files and flags are used when
14813             # linking a shared library.
14814             #
14815             # There doesn't appear to be a way to prevent this compiler from
14816             # explicitly linking system object files so we need to strip them
14817             # from the output so that they don't get included in the library
14818             # dependencies.
14819             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'
14820             ;;
14821           *)
14822             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14823               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14824               case $host in
14825                 osf3*)
14826                   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'
14827                   ;;
14828                 *)
14829                   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'
14830                   ;;
14831               esac
14832
14833               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14834               hardcode_libdir_separator_CXX=:
14835
14836               # Commands to make compiler produce verbose output that lists
14837               # what "hidden" libraries, object files and flags are used when
14838               # linking a shared library.
14839               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14840
14841             else
14842               # FIXME: insert proper C++ library support
14843               ld_shlibs_CXX=no
14844             fi
14845             ;;
14846         esac
14847         ;;
14848
14849       psos*)
14850         # FIXME: insert proper C++ library support
14851         ld_shlibs_CXX=no
14852         ;;
14853
14854       sunos4*)
14855         case $cc_basename in
14856           CC*)
14857             # Sun C++ 4.x
14858             # FIXME: insert proper C++ library support
14859             ld_shlibs_CXX=no
14860             ;;
14861           lcc*)
14862             # Lucid
14863             # FIXME: insert proper C++ library support
14864             ld_shlibs_CXX=no
14865             ;;
14866           *)
14867             # FIXME: insert proper C++ library support
14868             ld_shlibs_CXX=no
14869             ;;
14870         esac
14871         ;;
14872
14873       solaris*)
14874         case $cc_basename in
14875           CC*)
14876             # Sun C++ 4.2, 5.x and Centerline C++
14877             archive_cmds_need_lc_CXX=yes
14878             no_undefined_flag_CXX=' -zdefs'
14879             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14880             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14881               $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'
14882
14883             hardcode_libdir_flag_spec_CXX='-R$libdir'
14884             hardcode_shlibpath_var_CXX=no
14885             case $host_os in
14886               solaris2.[0-5] | solaris2.[0-5].*) ;;
14887               *)
14888                 # The compiler driver will combine and reorder linker options,
14889                 # but understands `-z linker_flag'.
14890                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14891                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14892                 ;;
14893             esac
14894             link_all_deplibs_CXX=yes
14895
14896             output_verbose_link_cmd='echo'
14897
14898             # Archives containing C++ object files must be created using
14899             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14900             # necessary to make sure instantiated templates are included
14901             # in the archive.
14902             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14903             ;;
14904           gcx*)
14905             # Green Hills C++ Compiler
14906             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14907
14908             # The C++ compiler must be used to create the archive.
14909             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14910             ;;
14911           *)
14912             # GNU C++ compiler with Solaris linker
14913             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14914               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14915               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14916                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14917                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14918                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14919
14920                 # Commands to make compiler produce verbose output that lists
14921                 # what "hidden" libraries, object files and flags are used when
14922                 # linking a shared library.
14923                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14924               else
14925                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14926                 # platform.
14927                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14928                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14929                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14930
14931                 # Commands to make compiler produce verbose output that lists
14932                 # what "hidden" libraries, object files and flags are used when
14933                 # linking a shared library.
14934                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14935               fi
14936
14937               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14938               case $host_os in
14939                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14940                 *)
14941                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14942                   ;;
14943               esac
14944             fi
14945             ;;
14946         esac
14947         ;;
14948
14949     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14950       no_undefined_flag_CXX='${wl}-z,text'
14951       archive_cmds_need_lc_CXX=no
14952       hardcode_shlibpath_var_CXX=no
14953       runpath_var='LD_RUN_PATH'
14954
14955       case $cc_basename in
14956         CC*)
14957           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14958           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959           ;;
14960         *)
14961           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963           ;;
14964       esac
14965       ;;
14966
14967       sysv5* | sco3.2v5* | sco5v6*)
14968         # Note: We can NOT use -z defs as we might desire, because we do not
14969         # link with -lc, and that would cause any symbols used from libc to
14970         # always be unresolved, which means just about no library would
14971         # ever link correctly.  If we're not using GNU ld we use -z text
14972         # though, which does catch some bad symbols but isn't as heavy-handed
14973         # as -z defs.
14974         no_undefined_flag_CXX='${wl}-z,text'
14975         allow_undefined_flag_CXX='${wl}-z,nodefs'
14976         archive_cmds_need_lc_CXX=no
14977         hardcode_shlibpath_var_CXX=no
14978         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14979         hardcode_libdir_separator_CXX=':'
14980         link_all_deplibs_CXX=yes
14981         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14982         runpath_var='LD_RUN_PATH'
14983
14984         case $cc_basename in
14985           CC*)
14986             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988             ;;
14989           *)
14990             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992             ;;
14993         esac
14994       ;;
14995
14996       tandem*)
14997         case $cc_basename in
14998           NCC*)
14999             # NonStop-UX NCC 3.20
15000             # FIXME: insert proper C++ library support
15001             ld_shlibs_CXX=no
15002             ;;
15003           *)
15004             # FIXME: insert proper C++ library support
15005             ld_shlibs_CXX=no
15006             ;;
15007         esac
15008         ;;
15009
15010       vxworks*)
15011         # FIXME: insert proper C++ library support
15012         ld_shlibs_CXX=no
15013         ;;
15014
15015       *)
15016         # FIXME: insert proper C++ library support
15017         ld_shlibs_CXX=no
15018         ;;
15019     esac
15020
15021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15022 $as_echo "$ld_shlibs_CXX" >&6; }
15023     test "$ld_shlibs_CXX" = no && can_build_shared=no
15024
15025     GCC_CXX="$GXX"
15026     LD_CXX="$LD"
15027
15028     ## CAVEAT EMPTOR:
15029     ## There is no encapsulation within the following macros, do not change
15030     ## the running order or otherwise move them around unless you know exactly
15031     ## what you are doing...
15032     # Dependencies to place before and after the object being linked:
15033 predep_objects_CXX=
15034 postdep_objects_CXX=
15035 predeps_CXX=
15036 postdeps_CXX=
15037 compiler_lib_search_path_CXX=
15038
15039 cat > conftest.$ac_ext <<_LT_EOF
15040 class Foo
15041 {
15042 public:
15043   Foo (void) { a = 0; }
15044 private:
15045   int a;
15046 };
15047 _LT_EOF
15048
15049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15050   (eval $ac_compile) 2>&5
15051   ac_status=$?
15052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15053   test $ac_status = 0; }; then
15054   # Parse the compiler output and extract the necessary
15055   # objects, libraries and library flags.
15056
15057   # Sentinel used to keep track of whether or not we are before
15058   # the conftest object file.
15059   pre_test_object_deps_done=no
15060
15061   for p in `eval "$output_verbose_link_cmd"`; do
15062     case $p in
15063
15064     -L* | -R* | -l*)
15065        # Some compilers place space between "-{L,R}" and the path.
15066        # Remove the space.
15067        if test $p = "-L" ||
15068           test $p = "-R"; then
15069          prev=$p
15070          continue
15071        else
15072          prev=
15073        fi
15074
15075        if test "$pre_test_object_deps_done" = no; then
15076          case $p in
15077          -L* | -R*)
15078            # Internal compiler library paths should come after those
15079            # provided the user.  The postdeps already come after the
15080            # user supplied libs so there is no need to process them.
15081            if test -z "$compiler_lib_search_path_CXX"; then
15082              compiler_lib_search_path_CXX="${prev}${p}"
15083            else
15084              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15085            fi
15086            ;;
15087          # The "-l" case would never come before the object being
15088          # linked, so don't bother handling this case.
15089          esac
15090        else
15091          if test -z "$postdeps_CXX"; then
15092            postdeps_CXX="${prev}${p}"
15093          else
15094            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15095          fi
15096        fi
15097        ;;
15098
15099     *.$objext)
15100        # This assumes that the test object file only shows up
15101        # once in the compiler output.
15102        if test "$p" = "conftest.$objext"; then
15103          pre_test_object_deps_done=yes
15104          continue
15105        fi
15106
15107        if test "$pre_test_object_deps_done" = no; then
15108          if test -z "$predep_objects_CXX"; then
15109            predep_objects_CXX="$p"
15110          else
15111            predep_objects_CXX="$predep_objects_CXX $p"
15112          fi
15113        else
15114          if test -z "$postdep_objects_CXX"; then
15115            postdep_objects_CXX="$p"
15116          else
15117            postdep_objects_CXX="$postdep_objects_CXX $p"
15118          fi
15119        fi
15120        ;;
15121
15122     *) ;; # Ignore the rest.
15123
15124     esac
15125   done
15126
15127   # Clean up.
15128   rm -f a.out a.exe
15129 else
15130   echo "libtool.m4: error: problem compiling CXX test program"
15131 fi
15132
15133 $RM -f confest.$objext
15134
15135 # PORTME: override above test on systems where it is broken
15136 case $host_os in
15137 interix[3-9]*)
15138   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15139   # hack all around it, let's just trust "g++" to DTRT.
15140   predep_objects_CXX=
15141   postdep_objects_CXX=
15142   postdeps_CXX=
15143   ;;
15144
15145 linux*)
15146   case `$CC -V 2>&1 | sed 5q` in
15147   *Sun\ C*)
15148     # Sun C++ 5.9
15149
15150     # The more standards-conforming stlport4 library is
15151     # incompatible with the Cstd library. Avoid specifying
15152     # it if it's in CXXFLAGS. Ignore libCrun as
15153     # -library=stlport4 depends on it.
15154     case " $CXX $CXXFLAGS " in
15155     *" -library=stlport4 "*)
15156       solaris_use_stlport4=yes
15157       ;;
15158     esac
15159
15160     if test "$solaris_use_stlport4" != yes; then
15161       postdeps_CXX='-library=Cstd -library=Crun'
15162     fi
15163     ;;
15164   esac
15165   ;;
15166
15167 solaris*)
15168   case $cc_basename in
15169   CC*)
15170     # The more standards-conforming stlport4 library is
15171     # incompatible with the Cstd library. Avoid specifying
15172     # it if it's in CXXFLAGS. Ignore libCrun as
15173     # -library=stlport4 depends on it.
15174     case " $CXX $CXXFLAGS " in
15175     *" -library=stlport4 "*)
15176       solaris_use_stlport4=yes
15177       ;;
15178     esac
15179
15180     # Adding this requires a known-good setup of shared libraries for
15181     # Sun compiler versions before 5.6, else PIC objects from an old
15182     # archive will be linked into the output, leading to subtle bugs.
15183     if test "$solaris_use_stlport4" != yes; then
15184       postdeps_CXX='-library=Cstd -library=Crun'
15185     fi
15186     ;;
15187   esac
15188   ;;
15189 esac
15190
15191
15192 case " $postdeps_CXX " in
15193 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15194 esac
15195  compiler_lib_search_dirs_CXX=
15196 if test -n "${compiler_lib_search_path_CXX}"; then
15197  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15198 fi
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230     lt_prog_compiler_wl_CXX=
15231 lt_prog_compiler_pic_CXX=
15232 lt_prog_compiler_static_CXX=
15233
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15236
15237   # C++ specific cases for pic, static, wl, etc.
15238   if test "$GXX" = yes; then
15239     lt_prog_compiler_wl_CXX='-Wl,'
15240     lt_prog_compiler_static_CXX='-static'
15241
15242     case $host_os in
15243     aix*)
15244       # All AIX code is PIC.
15245       if test "$host_cpu" = ia64; then
15246         # AIX 5 now supports IA64 processor
15247         lt_prog_compiler_static_CXX='-Bstatic'
15248       fi
15249       ;;
15250
15251     amigaos*)
15252       case $host_cpu in
15253       powerpc)
15254             # see comment about AmigaOS4 .so support
15255             lt_prog_compiler_pic_CXX='-fPIC'
15256         ;;
15257       m68k)
15258             # FIXME: we need at least 68020 code to build shared libraries, but
15259             # adding the `-m68020' flag to GCC prevents building anything better,
15260             # like `-m68040'.
15261             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15262         ;;
15263       esac
15264       ;;
15265
15266     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15267       # PIC is the default for these OSes.
15268       ;;
15269     mingw* | cygwin* | os2* | pw32* | cegcc*)
15270       # This hack is so that the source file can tell whether it is being
15271       # built for inclusion in a dll (and should export symbols for example).
15272       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15273       # (--disable-auto-import) libraries
15274       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15275       ;;
15276     darwin* | rhapsody*)
15277       # PIC is the default on this platform
15278       # Common symbols not allowed in MH_DYLIB files
15279       lt_prog_compiler_pic_CXX='-fno-common'
15280       ;;
15281     *djgpp*)
15282       # DJGPP does not support shared libraries at all
15283       lt_prog_compiler_pic_CXX=
15284       ;;
15285     interix[3-9]*)
15286       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15287       # Instead, we relocate shared libraries at runtime.
15288       ;;
15289     sysv4*MP*)
15290       if test -d /usr/nec; then
15291         lt_prog_compiler_pic_CXX=-Kconform_pic
15292       fi
15293       ;;
15294     hpux*)
15295       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15296       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15297       # sets the default TLS model and affects inlining.
15298       case $host_cpu in
15299       hppa*64*)
15300         ;;
15301       *)
15302         lt_prog_compiler_pic_CXX='-fPIC'
15303         ;;
15304       esac
15305       ;;
15306     *qnx* | *nto*)
15307       # QNX uses GNU C++, but need to define -shared option too, otherwise
15308       # it will coredump.
15309       lt_prog_compiler_pic_CXX='-fPIC -shared'
15310       ;;
15311     *)
15312       lt_prog_compiler_pic_CXX='-fPIC'
15313       ;;
15314     esac
15315   else
15316     case $host_os in
15317       aix[4-9]*)
15318         # All AIX code is PIC.
15319         if test "$host_cpu" = ia64; then
15320           # AIX 5 now supports IA64 processor
15321           lt_prog_compiler_static_CXX='-Bstatic'
15322         else
15323           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15324         fi
15325         ;;
15326       chorus*)
15327         case $cc_basename in
15328         cxch68*)
15329           # Green Hills C++ Compiler
15330           # _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"
15331           ;;
15332         esac
15333         ;;
15334       dgux*)
15335         case $cc_basename in
15336           ec++*)
15337             lt_prog_compiler_pic_CXX='-KPIC'
15338             ;;
15339           ghcx*)
15340             # Green Hills C++ Compiler
15341             lt_prog_compiler_pic_CXX='-pic'
15342             ;;
15343           *)
15344             ;;
15345         esac
15346         ;;
15347       freebsd* | dragonfly*)
15348         # FreeBSD uses GNU C++
15349         ;;
15350       hpux9* | hpux10* | hpux11*)
15351         case $cc_basename in
15352           CC*)
15353             lt_prog_compiler_wl_CXX='-Wl,'
15354             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15355             if test "$host_cpu" != ia64; then
15356               lt_prog_compiler_pic_CXX='+Z'
15357             fi
15358             ;;
15359           aCC*)
15360             lt_prog_compiler_wl_CXX='-Wl,'
15361             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15362             case $host_cpu in
15363             hppa*64*|ia64*)
15364               # +Z the default
15365               ;;
15366             *)
15367               lt_prog_compiler_pic_CXX='+Z'
15368               ;;
15369             esac
15370             ;;
15371           *)
15372             ;;
15373         esac
15374         ;;
15375       interix*)
15376         # This is c89, which is MS Visual C++ (no shared libs)
15377         # Anyone wants to do a port?
15378         ;;
15379       irix5* | irix6* | nonstopux*)
15380         case $cc_basename in
15381           CC*)
15382             lt_prog_compiler_wl_CXX='-Wl,'
15383             lt_prog_compiler_static_CXX='-non_shared'
15384             # CC pic flag -KPIC is the default.
15385             ;;
15386           *)
15387             ;;
15388         esac
15389         ;;
15390       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15391         case $cc_basename in
15392           KCC*)
15393             # KAI C++ Compiler
15394             lt_prog_compiler_wl_CXX='--backend -Wl,'
15395             lt_prog_compiler_pic_CXX='-fPIC'
15396             ;;
15397           ecpc* )
15398             # old Intel C++ for x86_64 which still supported -KPIC.
15399             lt_prog_compiler_wl_CXX='-Wl,'
15400             lt_prog_compiler_pic_CXX='-KPIC'
15401             lt_prog_compiler_static_CXX='-static'
15402             ;;
15403           icpc* )
15404             # Intel C++, used to be incompatible with GCC.
15405             # ICC 10 doesn't accept -KPIC any more.
15406             lt_prog_compiler_wl_CXX='-Wl,'
15407             lt_prog_compiler_pic_CXX='-fPIC'
15408             lt_prog_compiler_static_CXX='-static'
15409             ;;
15410           pgCC* | pgcpp*)
15411             # Portland Group C++ compiler
15412             lt_prog_compiler_wl_CXX='-Wl,'
15413             lt_prog_compiler_pic_CXX='-fpic'
15414             lt_prog_compiler_static_CXX='-Bstatic'
15415             ;;
15416           cxx*)
15417             # Compaq C++
15418             # Make sure the PIC flag is empty.  It appears that all Alpha
15419             # Linux and Compaq Tru64 Unix objects are PIC.
15420             lt_prog_compiler_pic_CXX=
15421             lt_prog_compiler_static_CXX='-non_shared'
15422             ;;
15423           xlc* | xlC*)
15424             # IBM XL 8.0 on PPC
15425             lt_prog_compiler_wl_CXX='-Wl,'
15426             lt_prog_compiler_pic_CXX='-qpic'
15427             lt_prog_compiler_static_CXX='-qstaticlink'
15428             ;;
15429           *)
15430             case `$CC -V 2>&1 | sed 5q` in
15431             *Sun\ C*)
15432               # Sun C++ 5.9
15433               lt_prog_compiler_pic_CXX='-KPIC'
15434               lt_prog_compiler_static_CXX='-Bstatic'
15435               lt_prog_compiler_wl_CXX='-Qoption ld '
15436               ;;
15437             esac
15438             ;;
15439         esac
15440         ;;
15441       lynxos*)
15442         ;;
15443       m88k*)
15444         ;;
15445       mvs*)
15446         case $cc_basename in
15447           cxx*)
15448             lt_prog_compiler_pic_CXX='-W c,exportall'
15449             ;;
15450           *)
15451             ;;
15452         esac
15453         ;;
15454       netbsd* | netbsdelf*-gnu)
15455         ;;
15456       *qnx* | *nto*)
15457         # QNX uses GNU C++, but need to define -shared option too, otherwise
15458         # it will coredump.
15459         lt_prog_compiler_pic_CXX='-fPIC -shared'
15460         ;;
15461       osf3* | osf4* | osf5*)
15462         case $cc_basename in
15463           KCC*)
15464             lt_prog_compiler_wl_CXX='--backend -Wl,'
15465             ;;
15466           RCC*)
15467             # Rational C++ 2.4.1
15468             lt_prog_compiler_pic_CXX='-pic'
15469             ;;
15470           cxx*)
15471             # Digital/Compaq C++
15472             lt_prog_compiler_wl_CXX='-Wl,'
15473             # Make sure the PIC flag is empty.  It appears that all Alpha
15474             # Linux and Compaq Tru64 Unix objects are PIC.
15475             lt_prog_compiler_pic_CXX=
15476             lt_prog_compiler_static_CXX='-non_shared'
15477             ;;
15478           *)
15479             ;;
15480         esac
15481         ;;
15482       psos*)
15483         ;;
15484       solaris*)
15485         case $cc_basename in
15486           CC*)
15487             # Sun C++ 4.2, 5.x and Centerline C++
15488             lt_prog_compiler_pic_CXX='-KPIC'
15489             lt_prog_compiler_static_CXX='-Bstatic'
15490             lt_prog_compiler_wl_CXX='-Qoption ld '
15491             ;;
15492           gcx*)
15493             # Green Hills C++ Compiler
15494             lt_prog_compiler_pic_CXX='-PIC'
15495             ;;
15496           *)
15497             ;;
15498         esac
15499         ;;
15500       sunos4*)
15501         case $cc_basename in
15502           CC*)
15503             # Sun C++ 4.x
15504             lt_prog_compiler_pic_CXX='-pic'
15505             lt_prog_compiler_static_CXX='-Bstatic'
15506             ;;
15507           lcc*)
15508             # Lucid
15509             lt_prog_compiler_pic_CXX='-pic'
15510             ;;
15511           *)
15512             ;;
15513         esac
15514         ;;
15515       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15516         case $cc_basename in
15517           CC*)
15518             lt_prog_compiler_wl_CXX='-Wl,'
15519             lt_prog_compiler_pic_CXX='-KPIC'
15520             lt_prog_compiler_static_CXX='-Bstatic'
15521             ;;
15522         esac
15523         ;;
15524       tandem*)
15525         case $cc_basename in
15526           NCC*)
15527             # NonStop-UX NCC 3.20
15528             lt_prog_compiler_pic_CXX='-KPIC'
15529             ;;
15530           *)
15531             ;;
15532         esac
15533         ;;
15534       vxworks*)
15535         ;;
15536       *)
15537         lt_prog_compiler_can_build_shared_CXX=no
15538         ;;
15539     esac
15540   fi
15541
15542 case $host_os in
15543   # For platforms which do not support PIC, -DPIC is meaningless:
15544   *djgpp*)
15545     lt_prog_compiler_pic_CXX=
15546     ;;
15547   *)
15548     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15549     ;;
15550 esac
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15552 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15553
15554
15555
15556 #
15557 # Check to make sure the PIC flag actually works.
15558 #
15559 if test -n "$lt_prog_compiler_pic_CXX"; then
15560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15561 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15562 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15563   $as_echo_n "(cached) " >&6
15564 else
15565   lt_cv_prog_compiler_pic_works_CXX=no
15566    ac_outfile=conftest.$ac_objext
15567    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15568    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15569    # Insert the option either (1) after the last *FLAGS variable, or
15570    # (2) before a word containing "conftest.", or (3) at the end.
15571    # Note that $ac_compile itself does not contain backslashes and begins
15572    # with a dollar sign (not a hyphen), so the echo should work correctly.
15573    # The option is referenced via a variable to avoid confusing sed.
15574    lt_compile=`echo "$ac_compile" | $SED \
15575    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15577    -e 's:$: $lt_compiler_flag:'`
15578    (eval echo "\"\$as_me:15578: $lt_compile\"" >&5)
15579    (eval "$lt_compile" 2>conftest.err)
15580    ac_status=$?
15581    cat conftest.err >&5
15582    echo "$as_me:15582: \$? = $ac_status" >&5
15583    if (exit $ac_status) && test -s "$ac_outfile"; then
15584      # The compiler can only warn and ignore the option if not recognized
15585      # So say no if there are warnings other than the usual output.
15586      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15587      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15588      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15589        lt_cv_prog_compiler_pic_works_CXX=yes
15590      fi
15591    fi
15592    $RM conftest*
15593
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15596 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15597
15598 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15599     case $lt_prog_compiler_pic_CXX in
15600      "" | " "*) ;;
15601      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15602      esac
15603 else
15604     lt_prog_compiler_pic_CXX=
15605      lt_prog_compiler_can_build_shared_CXX=no
15606 fi
15607
15608 fi
15609
15610
15611
15612 #
15613 # Check to make sure the static flag actually works.
15614 #
15615 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15617 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15618 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   lt_cv_prog_compiler_static_works_CXX=no
15622    save_LDFLAGS="$LDFLAGS"
15623    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15624    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15625    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15626      # The linker can only warn and ignore the option if not recognized
15627      # So say no if there are warnings
15628      if test -s conftest.err; then
15629        # Append any errors to the config.log.
15630        cat conftest.err 1>&5
15631        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15632        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15633        if diff conftest.exp conftest.er2 >/dev/null; then
15634          lt_cv_prog_compiler_static_works_CXX=yes
15635        fi
15636      else
15637        lt_cv_prog_compiler_static_works_CXX=yes
15638      fi
15639    fi
15640    $RM -r conftest*
15641    LDFLAGS="$save_LDFLAGS"
15642
15643 fi
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15645 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15646
15647 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15648     :
15649 else
15650     lt_prog_compiler_static_CXX=
15651 fi
15652
15653
15654
15655
15656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15658 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15659   $as_echo_n "(cached) " >&6
15660 else
15661   lt_cv_prog_compiler_c_o_CXX=no
15662    $RM -r conftest 2>/dev/null
15663    mkdir conftest
15664    cd conftest
15665    mkdir out
15666    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15667
15668    lt_compiler_flag="-o out/conftest2.$ac_objext"
15669    # Insert the option either (1) after the last *FLAGS variable, or
15670    # (2) before a word containing "conftest.", or (3) at the end.
15671    # Note that $ac_compile itself does not contain backslashes and begins
15672    # with a dollar sign (not a hyphen), so the echo should work correctly.
15673    lt_compile=`echo "$ac_compile" | $SED \
15674    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15675    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15676    -e 's:$: $lt_compiler_flag:'`
15677    (eval echo "\"\$as_me:15677: $lt_compile\"" >&5)
15678    (eval "$lt_compile" 2>out/conftest.err)
15679    ac_status=$?
15680    cat out/conftest.err >&5
15681    echo "$as_me:15681: \$? = $ac_status" >&5
15682    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15683    then
15684      # The compiler can only warn and ignore the option if not recognized
15685      # So say no if there are warnings
15686      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15687      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15688      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15689        lt_cv_prog_compiler_c_o_CXX=yes
15690      fi
15691    fi
15692    chmod u+w . 2>&5
15693    $RM conftest*
15694    # SGI C++ compiler will create directory out/ii_files/ for
15695    # template instantiation
15696    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15697    $RM out/* && rmdir out
15698    cd ..
15699    $RM -r conftest
15700    $RM conftest*
15701
15702 fi
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15704 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15705
15706
15707
15708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15709 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15710 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15711   $as_echo_n "(cached) " >&6
15712 else
15713   lt_cv_prog_compiler_c_o_CXX=no
15714    $RM -r conftest 2>/dev/null
15715    mkdir conftest
15716    cd conftest
15717    mkdir out
15718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719
15720    lt_compiler_flag="-o out/conftest2.$ac_objext"
15721    # Insert the option either (1) after the last *FLAGS variable, or
15722    # (2) before a word containing "conftest.", or (3) at the end.
15723    # Note that $ac_compile itself does not contain backslashes and begins
15724    # with a dollar sign (not a hyphen), so the echo should work correctly.
15725    lt_compile=`echo "$ac_compile" | $SED \
15726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15728    -e 's:$: $lt_compiler_flag:'`
15729    (eval echo "\"\$as_me:15729: $lt_compile\"" >&5)
15730    (eval "$lt_compile" 2>out/conftest.err)
15731    ac_status=$?
15732    cat out/conftest.err >&5
15733    echo "$as_me:15733: \$? = $ac_status" >&5
15734    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15735    then
15736      # The compiler can only warn and ignore the option if not recognized
15737      # So say no if there are warnings
15738      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15739      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15740      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15741        lt_cv_prog_compiler_c_o_CXX=yes
15742      fi
15743    fi
15744    chmod u+w . 2>&5
15745    $RM conftest*
15746    # SGI C++ compiler will create directory out/ii_files/ for
15747    # template instantiation
15748    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15749    $RM out/* && rmdir out
15750    cd ..
15751    $RM -r conftest
15752    $RM conftest*
15753
15754 fi
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15756 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15757
15758
15759
15760
15761 hard_links="nottested"
15762 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15763   # do not overwrite the value of need_locks provided by the user
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15765 $as_echo_n "checking if we can lock with hard links... " >&6; }
15766   hard_links=yes
15767   $RM conftest*
15768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15769   touch conftest.a
15770   ln conftest.a conftest.b 2>&5 || hard_links=no
15771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15773 $as_echo "$hard_links" >&6; }
15774   if test "$hard_links" = no; then
15775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15776 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15777     need_locks=warn
15778   fi
15779 else
15780   need_locks=no
15781 fi
15782
15783
15784
15785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15786 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15787
15788   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15789   case $host_os in
15790   aix[4-9]*)
15791     # If we're using GNU nm, then we don't want the "-C" option.
15792     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15793     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15794       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'
15795     else
15796       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'
15797     fi
15798     ;;
15799   pw32*)
15800     export_symbols_cmds_CXX="$ltdll_cmds"
15801   ;;
15802   cygwin* | mingw* | cegcc*)
15803     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'
15804   ;;
15805   linux* | k*bsd*-gnu)
15806     link_all_deplibs_CXX=no
15807   ;;
15808   *)
15809     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15810   ;;
15811   esac
15812   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15813
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15815 $as_echo "$ld_shlibs_CXX" >&6; }
15816 test "$ld_shlibs_CXX" = no && can_build_shared=no
15817
15818 with_gnu_ld_CXX=$with_gnu_ld
15819
15820
15821
15822
15823
15824
15825 #
15826 # Do we need to explicitly link libc?
15827 #
15828 case "x$archive_cmds_need_lc_CXX" in
15829 x|xyes)
15830   # Assume -lc should be added
15831   archive_cmds_need_lc_CXX=yes
15832
15833   if test "$enable_shared" = yes && test "$GCC" = yes; then
15834     case $archive_cmds_CXX in
15835     *'~'*)
15836       # FIXME: we may have to deal with multi-command sequences.
15837       ;;
15838     '$CC '*)
15839       # Test whether the compiler implicitly links with -lc since on some
15840       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15841       # to ld, don't add -lc before -lgcc.
15842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15843 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15844       $RM conftest*
15845       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15846
15847       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15848   (eval $ac_compile) 2>&5
15849   ac_status=$?
15850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15851   test $ac_status = 0; } 2>conftest.err; then
15852         soname=conftest
15853         lib=conftest
15854         libobjs=conftest.$ac_objext
15855         deplibs=
15856         wl=$lt_prog_compiler_wl_CXX
15857         pic_flag=$lt_prog_compiler_pic_CXX
15858         compiler_flags=-v
15859         linker_flags=-v
15860         verstring=
15861         output_objdir=.
15862         libname=conftest
15863         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15864         allow_undefined_flag_CXX=
15865         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15866   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15867   ac_status=$?
15868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869   test $ac_status = 0; }
15870         then
15871           archive_cmds_need_lc_CXX=no
15872         else
15873           archive_cmds_need_lc_CXX=yes
15874         fi
15875         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15876       else
15877         cat conftest.err 1>&5
15878       fi
15879       $RM conftest*
15880       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15881 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15882       ;;
15883     esac
15884   fi
15885   ;;
15886 esac
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15953
15954 library_names_spec=
15955 libname_spec='lib$name'
15956 soname_spec=
15957 shrext_cmds=".so"
15958 postinstall_cmds=
15959 postuninstall_cmds=
15960 finish_cmds=
15961 finish_eval=
15962 shlibpath_var=
15963 shlibpath_overrides_runpath=unknown
15964 version_type=none
15965 dynamic_linker="$host_os ld.so"
15966 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15967 need_lib_prefix=unknown
15968 hardcode_into_libs=no
15969
15970 # when you set need_version to no, make sure it does not cause -set_version
15971 # flags to be left without arguments
15972 need_version=unknown
15973
15974 case $host_os in
15975 aix3*)
15976   version_type=linux
15977   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15978   shlibpath_var=LIBPATH
15979
15980   # AIX 3 has no versioning support, so we append a major version to the name.
15981   soname_spec='${libname}${release}${shared_ext}$major'
15982   ;;
15983
15984 aix[4-9]*)
15985   version_type=linux
15986   need_lib_prefix=no
15987   need_version=no
15988   hardcode_into_libs=yes
15989   if test "$host_cpu" = ia64; then
15990     # AIX 5 supports IA64
15991     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15992     shlibpath_var=LD_LIBRARY_PATH
15993   else
15994     # With GCC up to 2.95.x, collect2 would create an import file
15995     # for dependence libraries.  The import file would start with
15996     # the line `#! .'.  This would cause the generated library to
15997     # depend on `.', always an invalid library.  This was fixed in
15998     # development snapshots of GCC prior to 3.0.
15999     case $host_os in
16000       aix4 | aix4.[01] | aix4.[01].*)
16001       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16002            echo ' yes '
16003            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16004         :
16005       else
16006         can_build_shared=no
16007       fi
16008       ;;
16009     esac
16010     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16011     # soname into executable. Probably we can add versioning support to
16012     # collect2, so additional links can be useful in future.
16013     if test "$aix_use_runtimelinking" = yes; then
16014       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16015       # instead of lib<name>.a to let people know that these are not
16016       # typical AIX shared libraries.
16017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018     else
16019       # We preserve .a as extension for shared libraries through AIX4.2
16020       # and later when we are not doing run time linking.
16021       library_names_spec='${libname}${release}.a $libname.a'
16022       soname_spec='${libname}${release}${shared_ext}$major'
16023     fi
16024     shlibpath_var=LIBPATH
16025   fi
16026   ;;
16027
16028 amigaos*)
16029   case $host_cpu in
16030   powerpc)
16031     # Since July 2007 AmigaOS4 officially supports .so libraries.
16032     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034     ;;
16035   m68k)
16036     library_names_spec='$libname.ixlibrary $libname.a'
16037     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16038     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'
16039     ;;
16040   esac
16041   ;;
16042
16043 beos*)
16044   library_names_spec='${libname}${shared_ext}'
16045   dynamic_linker="$host_os ld.so"
16046   shlibpath_var=LIBRARY_PATH
16047   ;;
16048
16049 bsdi[45]*)
16050   version_type=linux
16051   need_version=no
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053   soname_spec='${libname}${release}${shared_ext}$major'
16054   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16057   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16058   # the default ld.so.conf also contains /usr/contrib/lib and
16059   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16060   # libtool to hard-code these into programs
16061   ;;
16062
16063 cygwin* | mingw* | pw32* | cegcc*)
16064   version_type=windows
16065   shrext_cmds=".dll"
16066   need_version=no
16067   need_lib_prefix=no
16068
16069   case $GCC,$host_os in
16070   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16071     library_names_spec='$libname.dll.a'
16072     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16073     postinstall_cmds='base_file=`basename \${file}`~
16074       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16075       dldir=$destdir/`dirname \$dlpath`~
16076       test -d \$dldir || mkdir -p \$dldir~
16077       $install_prog $dir/$dlname \$dldir/$dlname~
16078       chmod a+x \$dldir/$dlname~
16079       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16080         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16081       fi'
16082     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16083       dlpath=$dir/\$dldll~
16084        $RM \$dlpath'
16085     shlibpath_overrides_runpath=yes
16086
16087     case $host_os in
16088     cygwin*)
16089       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16090       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16091       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16092       ;;
16093     mingw* | cegcc*)
16094       # MinGW DLLs use traditional 'lib' prefix
16095       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16096       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16097       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16098         # It is most probably a Windows format PATH printed by
16099         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16100         # path with ; separators, and with drive letters. We can handle the
16101         # drive letters (cygwin fileutils understands them), so leave them,
16102         # especially as we might pass files found there to a mingw objdump,
16103         # which wouldn't understand a cygwinified path. Ahh.
16104         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16105       else
16106         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16107       fi
16108       ;;
16109     pw32*)
16110       # pw32 DLLs use 'pw' prefix rather than 'lib'
16111       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16112       ;;
16113     esac
16114     ;;
16115
16116   *)
16117     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16118     ;;
16119   esac
16120   dynamic_linker='Win32 ld.exe'
16121   # FIXME: first we should search . and the directory the executable is in
16122   shlibpath_var=PATH
16123   ;;
16124
16125 darwin* | rhapsody*)
16126   dynamic_linker="$host_os dyld"
16127   version_type=darwin
16128   need_lib_prefix=no
16129   need_version=no
16130   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16131   soname_spec='${libname}${release}${major}$shared_ext'
16132   shlibpath_overrides_runpath=yes
16133   shlibpath_var=DYLD_LIBRARY_PATH
16134   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16135
16136   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16137   ;;
16138
16139 dgux*)
16140   version_type=linux
16141   need_lib_prefix=no
16142   need_version=no
16143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16144   soname_spec='${libname}${release}${shared_ext}$major'
16145   shlibpath_var=LD_LIBRARY_PATH
16146   ;;
16147
16148 freebsd1*)
16149   dynamic_linker=no
16150   ;;
16151
16152 freebsd* | dragonfly*)
16153   # DragonFly does not have aout.  When/if they implement a new
16154   # versioning mechanism, adjust this.
16155   if test -x /usr/bin/objformat; then
16156     objformat=`/usr/bin/objformat`
16157   else
16158     case $host_os in
16159     freebsd[123]*) objformat=aout ;;
16160     *) objformat=elf ;;
16161     esac
16162   fi
16163   version_type=freebsd-$objformat
16164   case $version_type in
16165     freebsd-elf*)
16166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16167       need_version=no
16168       need_lib_prefix=no
16169       ;;
16170     freebsd-*)
16171       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16172       need_version=yes
16173       ;;
16174   esac
16175   shlibpath_var=LD_LIBRARY_PATH
16176   case $host_os in
16177   freebsd2*)
16178     shlibpath_overrides_runpath=yes
16179     ;;
16180   freebsd3.[01]* | freebsdelf3.[01]*)
16181     shlibpath_overrides_runpath=yes
16182     hardcode_into_libs=yes
16183     ;;
16184   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16185   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16186     shlibpath_overrides_runpath=no
16187     hardcode_into_libs=yes
16188     ;;
16189   *) # from 4.6 on, and DragonFly
16190     shlibpath_overrides_runpath=yes
16191     hardcode_into_libs=yes
16192     ;;
16193   esac
16194   ;;
16195
16196 gnu*)
16197   version_type=linux
16198   need_lib_prefix=no
16199   need_version=no
16200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   shlibpath_var=LD_LIBRARY_PATH
16203   hardcode_into_libs=yes
16204   ;;
16205
16206 hpux9* | hpux10* | hpux11*)
16207   # Give a soname corresponding to the major version so that dld.sl refuses to
16208   # link against other versions.
16209   version_type=sunos
16210   need_lib_prefix=no
16211   need_version=no
16212   case $host_cpu in
16213   ia64*)
16214     shrext_cmds='.so'
16215     hardcode_into_libs=yes
16216     dynamic_linker="$host_os dld.so"
16217     shlibpath_var=LD_LIBRARY_PATH
16218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220     soname_spec='${libname}${release}${shared_ext}$major'
16221     if test "X$HPUX_IA64_MODE" = X32; then
16222       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16223     else
16224       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16225     fi
16226     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227     ;;
16228   hppa*64*)
16229     shrext_cmds='.sl'
16230     hardcode_into_libs=yes
16231     dynamic_linker="$host_os dld.sl"
16232     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235     soname_spec='${libname}${release}${shared_ext}$major'
16236     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16237     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16238     ;;
16239   *)
16240     shrext_cmds='.sl'
16241     dynamic_linker="$host_os dld.sl"
16242     shlibpath_var=SHLIB_PATH
16243     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245     soname_spec='${libname}${release}${shared_ext}$major'
16246     ;;
16247   esac
16248   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16249   postinstall_cmds='chmod 555 $lib'
16250   ;;
16251
16252 interix[3-9]*)
16253   version_type=linux
16254   need_lib_prefix=no
16255   need_version=no
16256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16257   soname_spec='${libname}${release}${shared_ext}$major'
16258   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16259   shlibpath_var=LD_LIBRARY_PATH
16260   shlibpath_overrides_runpath=no
16261   hardcode_into_libs=yes
16262   ;;
16263
16264 irix5* | irix6* | nonstopux*)
16265   case $host_os in
16266     nonstopux*) version_type=nonstopux ;;
16267     *)
16268         if test "$lt_cv_prog_gnu_ld" = yes; then
16269                 version_type=linux
16270         else
16271                 version_type=irix
16272         fi ;;
16273   esac
16274   need_lib_prefix=no
16275   need_version=no
16276   soname_spec='${libname}${release}${shared_ext}$major'
16277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16278   case $host_os in
16279   irix5* | nonstopux*)
16280     libsuff= shlibsuff=
16281     ;;
16282   *)
16283     case $LD in # libtool.m4 will add one of these switches to LD
16284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16285       libsuff= shlibsuff= libmagic=32-bit;;
16286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16287       libsuff=32 shlibsuff=N32 libmagic=N32;;
16288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16290     *) libsuff= shlibsuff= libmagic=never-match;;
16291     esac
16292     ;;
16293   esac
16294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16295   shlibpath_overrides_runpath=no
16296   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16297   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16298   hardcode_into_libs=yes
16299   ;;
16300
16301 # No shared lib support for Linux oldld, aout, or coff.
16302 linux*oldld* | linux*aout* | linux*coff*)
16303   dynamic_linker=no
16304   ;;
16305
16306 # This must be Linux ELF.
16307 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16308   version_type=linux
16309   need_lib_prefix=no
16310   need_version=no
16311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312   soname_spec='${libname}${release}${shared_ext}$major'
16313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16314   shlibpath_var=LD_LIBRARY_PATH
16315   shlibpath_overrides_runpath=no
16316   # Some binutils ld are patched to set DT_RUNPATH
16317   save_LDFLAGS=$LDFLAGS
16318   save_libdir=$libdir
16319   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16320        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h.  */
16323
16324 int
16325 main ()
16326 {
16327
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_cxx_try_link "$LINENO"; then :
16333   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16334   shlibpath_overrides_runpath=yes
16335 fi
16336 fi
16337 rm -f core conftest.err conftest.$ac_objext \
16338     conftest$ac_exeext conftest.$ac_ext
16339   LDFLAGS=$save_LDFLAGS
16340   libdir=$save_libdir
16341
16342   # This implies no fast_install, which is unacceptable.
16343   # Some rework will be needed to allow for fast_install
16344   # before this can be enabled.
16345   hardcode_into_libs=yes
16346
16347   # Append ld.so.conf contents to the search path
16348   if test -f /etc/ld.so.conf; then
16349     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' ' '`
16350     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16351   fi
16352
16353   # We used to test for /lib/ld.so.1 and disable shared libraries on
16354   # powerpc, because MkLinux only supported shared libraries with the
16355   # GNU dynamic linker.  Since this was broken with cross compilers,
16356   # most powerpc-linux boxes support dynamic linking these days and
16357   # people can always --disable-shared, the test was removed, and we
16358   # assume the GNU/Linux dynamic linker is in use.
16359   dynamic_linker='GNU/Linux ld.so'
16360   ;;
16361
16362 netbsdelf*-gnu)
16363   version_type=linux
16364   need_lib_prefix=no
16365   need_version=no
16366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16367   soname_spec='${libname}${release}${shared_ext}$major'
16368   shlibpath_var=LD_LIBRARY_PATH
16369   shlibpath_overrides_runpath=no
16370   hardcode_into_libs=yes
16371   dynamic_linker='NetBSD ld.elf_so'
16372   ;;
16373
16374 netbsd*)
16375   version_type=sunos
16376   need_lib_prefix=no
16377   need_version=no
16378   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16380     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16381     dynamic_linker='NetBSD (a.out) ld.so'
16382   else
16383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16384     soname_spec='${libname}${release}${shared_ext}$major'
16385     dynamic_linker='NetBSD ld.elf_so'
16386   fi
16387   shlibpath_var=LD_LIBRARY_PATH
16388   shlibpath_overrides_runpath=yes
16389   hardcode_into_libs=yes
16390   ;;
16391
16392 newsos6)
16393   version_type=linux
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395   shlibpath_var=LD_LIBRARY_PATH
16396   shlibpath_overrides_runpath=yes
16397   ;;
16398
16399 *nto* | *qnx*)
16400   version_type=qnx
16401   need_lib_prefix=no
16402   need_version=no
16403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404   soname_spec='${libname}${release}${shared_ext}$major'
16405   shlibpath_var=LD_LIBRARY_PATH
16406   shlibpath_overrides_runpath=no
16407   hardcode_into_libs=yes
16408   dynamic_linker='ldqnx.so'
16409   ;;
16410
16411 openbsd*)
16412   version_type=sunos
16413   sys_lib_dlsearch_path_spec="/usr/lib"
16414   need_lib_prefix=no
16415   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16416   case $host_os in
16417     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16418     *)                          need_version=no  ;;
16419   esac
16420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16424     case $host_os in
16425       openbsd2.[89] | openbsd2.[89].*)
16426         shlibpath_overrides_runpath=no
16427         ;;
16428       *)
16429         shlibpath_overrides_runpath=yes
16430         ;;
16431       esac
16432   else
16433     shlibpath_overrides_runpath=yes
16434   fi
16435   ;;
16436
16437 os2*)
16438   libname_spec='$name'
16439   shrext_cmds=".dll"
16440   need_lib_prefix=no
16441   library_names_spec='$libname${shared_ext} $libname.a'
16442   dynamic_linker='OS/2 ld.exe'
16443   shlibpath_var=LIBPATH
16444   ;;
16445
16446 osf3* | osf4* | osf5*)
16447   version_type=osf
16448   need_lib_prefix=no
16449   need_version=no
16450   soname_spec='${libname}${release}${shared_ext}$major'
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452   shlibpath_var=LD_LIBRARY_PATH
16453   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16454   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16455   ;;
16456
16457 rdos*)
16458   dynamic_linker=no
16459   ;;
16460
16461 solaris*)
16462   version_type=linux
16463   need_lib_prefix=no
16464   need_version=no
16465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466   soname_spec='${libname}${release}${shared_ext}$major'
16467   shlibpath_var=LD_LIBRARY_PATH
16468   shlibpath_overrides_runpath=yes
16469   hardcode_into_libs=yes
16470   # ldd complains unless libraries are executable
16471   postinstall_cmds='chmod +x $lib'
16472   ;;
16473
16474 sunos4*)
16475   version_type=sunos
16476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16477   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16478   shlibpath_var=LD_LIBRARY_PATH
16479   shlibpath_overrides_runpath=yes
16480   if test "$with_gnu_ld" = yes; then
16481     need_lib_prefix=no
16482   fi
16483   need_version=yes
16484   ;;
16485
16486 sysv4 | sysv4.3*)
16487   version_type=linux
16488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489   soname_spec='${libname}${release}${shared_ext}$major'
16490   shlibpath_var=LD_LIBRARY_PATH
16491   case $host_vendor in
16492     sni)
16493       shlibpath_overrides_runpath=no
16494       need_lib_prefix=no
16495       runpath_var=LD_RUN_PATH
16496       ;;
16497     siemens)
16498       need_lib_prefix=no
16499       ;;
16500     motorola)
16501       need_lib_prefix=no
16502       need_version=no
16503       shlibpath_overrides_runpath=no
16504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16505       ;;
16506   esac
16507   ;;
16508
16509 sysv4*MP*)
16510   if test -d /usr/nec ;then
16511     version_type=linux
16512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16513     soname_spec='$libname${shared_ext}.$major'
16514     shlibpath_var=LD_LIBRARY_PATH
16515   fi
16516   ;;
16517
16518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16519   version_type=freebsd-elf
16520   need_lib_prefix=no
16521   need_version=no
16522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16523   soname_spec='${libname}${release}${shared_ext}$major'
16524   shlibpath_var=LD_LIBRARY_PATH
16525   shlibpath_overrides_runpath=yes
16526   hardcode_into_libs=yes
16527   if test "$with_gnu_ld" = yes; then
16528     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16529   else
16530     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16531     case $host_os in
16532       sco3.2v5*)
16533         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16534         ;;
16535     esac
16536   fi
16537   sys_lib_dlsearch_path_spec='/usr/lib'
16538   ;;
16539
16540 tpf*)
16541   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16542   version_type=linux
16543   need_lib_prefix=no
16544   need_version=no
16545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546   shlibpath_var=LD_LIBRARY_PATH
16547   shlibpath_overrides_runpath=no
16548   hardcode_into_libs=yes
16549   ;;
16550
16551 uts4*)
16552   version_type=linux
16553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554   soname_spec='${libname}${release}${shared_ext}$major'
16555   shlibpath_var=LD_LIBRARY_PATH
16556   ;;
16557
16558 *)
16559   dynamic_linker=no
16560   ;;
16561 esac
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16563 $as_echo "$dynamic_linker" >&6; }
16564 test "$dynamic_linker" = no && can_build_shared=no
16565
16566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16567 if test "$GCC" = yes; then
16568   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16569 fi
16570
16571 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16572   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16573 fi
16574 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16575   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16576 fi
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16614 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16615 hardcode_action_CXX=
16616 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16617    test -n "$runpath_var_CXX" ||
16618    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16619
16620   # We can hardcode non-existent directories.
16621   if test "$hardcode_direct_CXX" != no &&
16622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16623      # have to relink, otherwise we might link with an installed library
16624      # when we should be linking with a yet-to-be-installed one
16625      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16626      test "$hardcode_minus_L_CXX" != no; then
16627     # Linking always hardcodes the temporary library directory.
16628     hardcode_action_CXX=relink
16629   else
16630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16631     hardcode_action_CXX=immediate
16632   fi
16633 else
16634   # We cannot hardcode anything, or else we can only hardcode existing
16635   # directories.
16636   hardcode_action_CXX=unsupported
16637 fi
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16639 $as_echo "$hardcode_action_CXX" >&6; }
16640
16641 if test "$hardcode_action_CXX" = relink ||
16642    test "$inherit_rpath_CXX" = yes; then
16643   # Fast installation is not supported
16644   enable_fast_install=no
16645 elif test "$shlibpath_overrides_runpath" = yes ||
16646      test "$enable_shared" = no; then
16647   # Fast installation is not necessary
16648   enable_fast_install=needless
16649 fi
16650
16651
16652
16653
16654
16655
16656
16657   fi # test -n "$compiler"
16658
16659   CC=$lt_save_CC
16660   LDCXX=$LD
16661   LD=$lt_save_LD
16662   GCC=$lt_save_GCC
16663   with_gnu_ld=$lt_save_with_gnu_ld
16664   lt_cv_path_LDCXX=$lt_cv_path_LD
16665   lt_cv_path_LD=$lt_save_path_LD
16666   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16667   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16668 fi # test "$_lt_caught_CXX_error" != yes
16669
16670 ac_ext=c
16671 ac_cpp='$CPP $CPPFLAGS'
16672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688         ac_config_commands="$ac_config_commands libtool"
16689
16690
16691
16692
16693 # Only expand once:
16694
16695
16696
16697 ac_ext=c
16698 ac_cpp='$CPP $CPPFLAGS'
16699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16702
16703
16704 # Checks for typedefs, structures, and compiler characteristics.
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16706 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16707 if test "${ac_cv_c_const+set}" = set; then :
16708   $as_echo_n "(cached) " >&6
16709 else
16710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h.  */
16712
16713 int
16714 main ()
16715 {
16716 /* FIXME: Include the comments suggested by Paul. */
16717 #ifndef __cplusplus
16718   /* Ultrix mips cc rejects this.  */
16719   typedef int charset[2];
16720   const charset cs;
16721   /* SunOS 4.1.1 cc rejects this.  */
16722   char const *const *pcpcc;
16723   char **ppc;
16724   /* NEC SVR4.0.2 mips cc rejects this.  */
16725   struct point {int x, y;};
16726   static struct point const zero = {0,0};
16727   /* AIX XL C 1.02.0.0 rejects this.
16728      It does not let you subtract one const X* pointer from another in
16729      an arm of an if-expression whose if-part is not a constant
16730      expression */
16731   const char *g = "string";
16732   pcpcc = &g + (g ? g-g : 0);
16733   /* HPUX 7.0 cc rejects these. */
16734   ++pcpcc;
16735   ppc = (char**) pcpcc;
16736   pcpcc = (char const *const *) ppc;
16737   { /* SCO 3.2v4 cc rejects this.  */
16738     char *t;
16739     char const *s = 0 ? (char *) 0 : (char const *) 0;
16740
16741     *t++ = 0;
16742     if (s) return 0;
16743   }
16744   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16745     int x[] = {25, 17};
16746     const int *foo = &x[0];
16747     ++foo;
16748   }
16749   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16750     typedef const int *iptr;
16751     iptr p = 0;
16752     ++p;
16753   }
16754   { /* AIX XL C 1.02.0.0 rejects this saying
16755        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16756     struct s { int j; const int *ap[3]; };
16757     struct s *b; b->j = 5;
16758   }
16759   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16760     const int foo = 10;
16761     if (!foo) return 0;
16762   }
16763   return !cs[0] && !zero.x;
16764 #endif
16765
16766   ;
16767   return 0;
16768 }
16769 _ACEOF
16770 if ac_fn_c_try_compile "$LINENO"; then :
16771   ac_cv_c_const=yes
16772 else
16773   ac_cv_c_const=no
16774 fi
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 fi
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16778 $as_echo "$ac_cv_c_const" >&6; }
16779 if test $ac_cv_c_const = no; then
16780
16781 $as_echo "#define const /**/" >>confdefs.h
16782
16783 fi
16784
16785 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16786 if test "x$ac_cv_type_size_t" = x""yes; then :
16787
16788 else
16789
16790 cat >>confdefs.h <<_ACEOF
16791 #define size_t unsigned int
16792 _ACEOF
16793
16794 fi
16795
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16797 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16798 if test "${ac_cv_struct_tm+set}" = set; then :
16799   $as_echo_n "(cached) " >&6
16800 else
16801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h.  */
16803 #include <sys/types.h>
16804 #include <time.h>
16805
16806 int
16807 main ()
16808 {
16809 struct tm tm;
16810                                      int *p = &tm.tm_sec;
16811                                      return !p;
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 if ac_fn_c_try_compile "$LINENO"; then :
16817   ac_cv_struct_tm=time.h
16818 else
16819   ac_cv_struct_tm=sys/time.h
16820 fi
16821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16822 fi
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16824 $as_echo "$ac_cv_struct_tm" >&6; }
16825 if test $ac_cv_struct_tm = sys/time.h; then
16826
16827 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16828
16829 fi
16830
16831
16832 # Checks for library functions.
16833 for ac_func in strftime
16834 do :
16835   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
16836 if test "x$ac_cv_func_strftime" = x""yes; then :
16837   cat >>confdefs.h <<_ACEOF
16838 #define HAVE_STRFTIME 1
16839 _ACEOF
16840
16841 else
16842   # strftime is in -lintl on SCO UNIX.
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
16844 $as_echo_n "checking for strftime in -lintl... " >&6; }
16845 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
16846   $as_echo_n "(cached) " >&6
16847 else
16848   ac_check_lib_save_LIBS=$LIBS
16849 LIBS="-lintl  $LIBS"
16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h.  */
16852
16853 /* Override any GCC internal prototype to avoid an error.
16854    Use char because int might match the return type of a GCC
16855    builtin and then its argument prototype would still apply.  */
16856 #ifdef __cplusplus
16857 extern "C"
16858 #endif
16859 char strftime ();
16860 int
16861 main ()
16862 {
16863 return strftime ();
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 if ac_fn_c_try_link "$LINENO"; then :
16869   ac_cv_lib_intl_strftime=yes
16870 else
16871   ac_cv_lib_intl_strftime=no
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext \
16874     conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16876 fi
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
16878 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
16879 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
16880   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
16881
16882 LIBS="-lintl $LIBS"
16883 fi
16884
16885 fi
16886 done
16887
16888 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16889 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
16890   ac_have_decl=1
16891 else
16892   ac_have_decl=0
16893 fi
16894
16895 cat >>confdefs.h <<_ACEOF
16896 #define HAVE_DECL_STRERROR_R $ac_have_decl
16897 _ACEOF
16898
16899 for ac_func in strerror_r
16900 do :
16901   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16902 if test "x$ac_cv_func_strerror_r" = x""yes; then :
16903   cat >>confdefs.h <<_ACEOF
16904 #define HAVE_STRERROR_R 1
16905 _ACEOF
16906
16907 fi
16908 done
16909
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16911 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16912 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
16913   $as_echo_n "(cached) " >&6
16914 else
16915
16916     ac_cv_func_strerror_r_char_p=no
16917     if test $ac_cv_have_decl_strerror_r = yes; then
16918       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h.  */
16920 $ac_includes_default
16921 int
16922 main ()
16923 {
16924
16925           char buf[100];
16926           char x = *strerror_r (0, buf, sizeof buf);
16927           char *p = strerror_r (0, buf, sizeof buf);
16928           return !p || x;
16929
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 if ac_fn_c_try_compile "$LINENO"; then :
16935   ac_cv_func_strerror_r_char_p=yes
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938     else
16939       # strerror_r is not declared.  Choose between
16940       # systems that have relatively inaccessible declarations for the
16941       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
16942       # former has a strerror_r that returns char*, while the latter
16943       # has a strerror_r that returns `int'.
16944       # This test should segfault on the DEC system.
16945       if test "$cross_compiling" = yes; then :
16946   :
16947 else
16948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h.  */
16950 $ac_includes_default
16951         extern char *strerror_r ();
16952 int
16953 main ()
16954 {
16955 char buf[100];
16956           char x = *strerror_r (0, buf, sizeof buf);
16957           return ! isalpha (x);
16958   ;
16959   return 0;
16960 }
16961 _ACEOF
16962 if ac_fn_c_try_run "$LINENO"; then :
16963   ac_cv_func_strerror_r_char_p=yes
16964 fi
16965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16966   conftest.$ac_objext conftest.beam conftest.$ac_ext
16967 fi
16968
16969     fi
16970
16971 fi
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16973 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16974 if test $ac_cv_func_strerror_r_char_p = yes; then
16975
16976 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16977
16978 fi
16979
16980 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
16981 do :
16982   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16985   cat >>confdefs.h <<_ACEOF
16986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16987 _ACEOF
16988
16989 fi
16990 done
16991
16992
16993 # checks for pthreads
16994
16995
16996
16997 ac_ext=c
16998 ac_cpp='$CPP $CPPFLAGS'
16999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17002
17003 acx_pthread_ok=no
17004
17005 # We used to check for pthread.h first, but this fails if pthread.h
17006 # requires special compiler flags (e.g. on True64 or Sequent).
17007 # It gets checked for in the link test anyway.
17008
17009 # First of all, check if the user has set any of the PTHREAD_LIBS,
17010 # etcetera environment variables, and if threads linking works using
17011 # them:
17012 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17013         save_CFLAGS="$CFLAGS"
17014         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17015         save_LIBS="$LIBS"
17016         LIBS="$PTHREAD_LIBS $LIBS"
17017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17018 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17019         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h.  */
17021
17022 /* Override any GCC internal prototype to avoid an error.
17023    Use char because int might match the return type of a GCC
17024    builtin and then its argument prototype would still apply.  */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 char pthread_join ();
17029 int
17030 main ()
17031 {
17032 return pthread_join ();
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 if ac_fn_c_try_link "$LINENO"; then :
17038   acx_pthread_ok=yes
17039 fi
17040 rm -f core conftest.err conftest.$ac_objext \
17041     conftest$ac_exeext conftest.$ac_ext
17042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17043 $as_echo "$acx_pthread_ok" >&6; }
17044         if test x"$acx_pthread_ok" = xno; then
17045                 PTHREAD_LIBS=""
17046                 PTHREAD_CFLAGS=""
17047         fi
17048         LIBS="$save_LIBS"
17049         CFLAGS="$save_CFLAGS"
17050 fi
17051
17052 # We must check for the threads library under a number of different
17053 # names; the ordering is very important because some systems
17054 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17055 # libraries is broken (non-POSIX).
17056
17057 # Create a list of thread flags to try.  Items starting with a "-" are
17058 # C compiler flags, and other items are library names, except for "none"
17059 # which indicates that we try without any flags at all, and "pthread-config"
17060 # which is a program returning the flags for the Pth emulation library.
17061
17062 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17063
17064 # The ordering *is* (sometimes) important.  Some notes on the
17065 # individual items follow:
17066
17067 # pthreads: AIX (must check this before -lpthread)
17068 # none: in case threads are in libc; should be tried before -Kthread and
17069 #       other compiler flags to prevent continual compiler warnings
17070 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17071 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17072 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17073 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17074 # -pthreads: Solaris/gcc
17075 # -mthreads: Mingw32/gcc, Lynx/gcc
17076 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17077 #      doesn't hurt to check since this sometimes defines pthreads too;
17078 #      also defines -D_REENTRANT)
17079 #      ... -mt is also the pthreads flag for HP/aCC
17080 # pthread: Linux, etcetera
17081 # --thread-safe: KAI C++
17082 # pthread-config: use pthread-config program (for GNU Pth library)
17083
17084 case "${host_cpu}-${host_os}" in
17085         *solaris*)
17086
17087         # On Solaris (at least, for some versions), libc contains stubbed
17088         # (non-functional) versions of the pthreads routines, so link-based
17089         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17090         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17091         # a function called by this macro, so we could check for that, but
17092         # who knows whether they'll stub that too in a future libc.)  So,
17093         # we'll just look for -pthreads and -lpthread first:
17094
17095         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17096         ;;
17097 esac
17098
17099 if test x"$acx_pthread_ok" = xno; then
17100 for flag in $acx_pthread_flags; do
17101
17102         case $flag in
17103                 none)
17104                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17105 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17106                 ;;
17107
17108                 -*)
17109                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17110 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17111                 PTHREAD_CFLAGS="$flag"
17112                 ;;
17113
17114                 pthread-config)
17115                 # Extract the first word of "pthread-config", so it can be a program name with args.
17116 set dummy pthread-config; ac_word=$2
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17118 $as_echo_n "checking for $ac_word... " >&6; }
17119 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17120   $as_echo_n "(cached) " >&6
17121 else
17122   if test -n "$acx_pthread_config"; then
17123   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17124 else
17125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17126 for as_dir in $PATH
17127 do
17128   IFS=$as_save_IFS
17129   test -z "$as_dir" && as_dir=.
17130     for ac_exec_ext in '' $ac_executable_extensions; do
17131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17132     ac_cv_prog_acx_pthread_config="yes"
17133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17134     break 2
17135   fi
17136 done
17137   done
17138 IFS=$as_save_IFS
17139
17140   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17141 fi
17142 fi
17143 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17144 if test -n "$acx_pthread_config"; then
17145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17146 $as_echo "$acx_pthread_config" >&6; }
17147 else
17148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17149 $as_echo "no" >&6; }
17150 fi
17151
17152
17153                 if test x"$acx_pthread_config" = xno; then continue; fi
17154                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17155                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17156                 ;;
17157
17158                 *)
17159                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17160 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17161                 PTHREAD_LIBS="-l$flag"
17162                 ;;
17163         esac
17164
17165         save_LIBS="$LIBS"
17166         save_CFLAGS="$CFLAGS"
17167         LIBS="$PTHREAD_LIBS $LIBS"
17168         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17169
17170         # Check for various functions.  We must include pthread.h,
17171         # since some functions may be macros.  (On the Sequent, we
17172         # need a special flag -Kthread to make this header compile.)
17173         # We check for pthread_join because it is in -lpthread on IRIX
17174         # while pthread_create is in libc.  We check for pthread_attr_init
17175         # due to DEC craziness with -lpthreads.  We check for
17176         # pthread_cleanup_push because it is one of the few pthread
17177         # functions on Solaris that doesn't have a non-functional libc stub.
17178         # We try pthread_create on general principles.
17179         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180 /* end confdefs.h.  */
17181 #include <pthread.h>
17182 int
17183 main ()
17184 {
17185 pthread_t th; pthread_join(th, 0);
17186                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17187                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17188   ;
17189   return 0;
17190 }
17191 _ACEOF
17192 if ac_fn_c_try_link "$LINENO"; then :
17193   acx_pthread_ok=yes
17194 fi
17195 rm -f core conftest.err conftest.$ac_objext \
17196     conftest$ac_exeext conftest.$ac_ext
17197
17198         LIBS="$save_LIBS"
17199         CFLAGS="$save_CFLAGS"
17200
17201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17202 $as_echo "$acx_pthread_ok" >&6; }
17203         if test "x$acx_pthread_ok" = xyes; then
17204                 break;
17205         fi
17206
17207         PTHREAD_LIBS=""
17208         PTHREAD_CFLAGS=""
17209 done
17210 fi
17211
17212 # Various other checks:
17213 if test "x$acx_pthread_ok" = xyes; then
17214         save_LIBS="$LIBS"
17215         LIBS="$PTHREAD_LIBS $LIBS"
17216         save_CFLAGS="$CFLAGS"
17217         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17218
17219         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17221 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17222         attr_name=unknown
17223         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17224             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h.  */
17226 #include <pthread.h>
17227 int
17228 main ()
17229 {
17230 int attr=$attr; return attr;
17231   ;
17232   return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"; then :
17236   attr_name=$attr; break
17237 fi
17238 rm -f core conftest.err conftest.$ac_objext \
17239     conftest$ac_exeext conftest.$ac_ext
17240         done
17241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17242 $as_echo "$attr_name" >&6; }
17243         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17244
17245 cat >>confdefs.h <<_ACEOF
17246 #define PTHREAD_CREATE_JOINABLE $attr_name
17247 _ACEOF
17248
17249         fi
17250
17251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17252 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17253         flag=no
17254         case "${host_cpu}-${host_os}" in
17255                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
17256                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
17257                 *solaris*)
17258                 if test "$GCC" = "yes"; then
17259                     flag="-D_REENTRANT"
17260                 else
17261                     flag="-mt -D_REENTRANT"
17262                 fi
17263                 ;;
17264         esac
17265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17266 $as_echo "${flag}" >&6; }
17267         if test "x$flag" != xno; then
17268             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17269         fi
17270
17271         LIBS="$save_LIBS"
17272         CFLAGS="$save_CFLAGS"
17273
17274         # More AIX lossage: must compile with xlc_r or cc_r
17275         if test x"$GCC" != xyes; then
17276           for ac_prog in xlc_r cc_r
17277 do
17278   # Extract the first word of "$ac_prog", so it can be a program name with args.
17279 set dummy $ac_prog; ac_word=$2
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17281 $as_echo_n "checking for $ac_word... " >&6; }
17282 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17283   $as_echo_n "(cached) " >&6
17284 else
17285   if test -n "$PTHREAD_CC"; then
17286   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17287 else
17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17289 for as_dir in $PATH
17290 do
17291   IFS=$as_save_IFS
17292   test -z "$as_dir" && as_dir=.
17293     for ac_exec_ext in '' $ac_executable_extensions; do
17294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17295     ac_cv_prog_PTHREAD_CC="$ac_prog"
17296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17297     break 2
17298   fi
17299 done
17300   done
17301 IFS=$as_save_IFS
17302
17303 fi
17304 fi
17305 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17306 if test -n "$PTHREAD_CC"; then
17307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17308 $as_echo "$PTHREAD_CC" >&6; }
17309 else
17310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17311 $as_echo "no" >&6; }
17312 fi
17313
17314
17315   test -n "$PTHREAD_CC" && break
17316 done
17317 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17318
17319         else
17320           PTHREAD_CC=$CC
17321         fi
17322 else
17323         PTHREAD_CC="$CC"
17324 fi
17325
17326
17327
17328
17329
17330 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17331 if test x"$acx_pthread_ok" = xyes; then
17332         enable_threads="pthread"
17333         :
17334 else
17335         acx_pthread_ok=no
17336         enable_threads="no"
17337 fi
17338 ac_ext=c
17339 ac_cpp='$CPP $CPPFLAGS'
17340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17343
17344
17345 if test $enable_threads != "pthread"; then
17346     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
17347 else
17348
17349 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17350
17351     LIBS="$PTHREAD_LIBS $LIBS"
17352     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17353     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
17354 fi
17355
17356 # OpenSSL settings
17357
17358 # Check whether --with-openssl was given.
17359 if test "${with_openssl+set}" = set; then :
17360   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
17361         SSLFLAGS="-I${with_openssl}/include"
17362     fi
17363 fi
17364
17365
17366 if test "x$SSLFLAGS" = "x" ; then
17367     # Extract the first word of "pkg-config", so it can be a program name with args.
17368 set dummy pkg-config; ac_word=$2
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17370 $as_echo_n "checking for $ac_word... " >&6; }
17371 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17372   $as_echo_n "(cached) " >&6
17373 else
17374   case $PKG_CONFIG in
17375   [\\/]* | ?:[\\/]*)
17376   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17377   ;;
17378   *)
17379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17380 for as_dir in $PATH
17381 do
17382   IFS=$as_save_IFS
17383   test -z "$as_dir" && as_dir=.
17384     for ac_exec_ext in '' $ac_executable_extensions; do
17385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17386     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17388     break 2
17389   fi
17390 done
17391   done
17392 IFS=$as_save_IFS
17393
17394   ;;
17395 esac
17396 fi
17397 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17398 if test -n "$PKG_CONFIG"; then
17399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17400 $as_echo "$PKG_CONFIG" >&6; }
17401 else
17402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17404 fi
17405
17406
17407     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
17408         if pkg-config openssl ; then
17409             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
17410         else
17411             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
17412 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
17413         fi
17414     fi
17415 fi
17416
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
17418 $as_echo_n "checking for OpenSSL cflags... " >&6; }
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
17420 $as_echo "$SSLFLAGS" >&6; }
17421 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
17422
17423 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
17424 if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
17425
17426 else
17427   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
17428 fi
17429
17430
17431
17432 ac_ext=cpp
17433 ac_cpp='$CXXCPP $CPPFLAGS'
17434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17437
17438
17439 # C++ requirements
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17441 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17442 if test "${ac_cv_cxx_namespaces+set}" = set; then :
17443   $as_echo_n "(cached) " >&6
17444 else
17445
17446  ac_ext=cpp
17447 ac_cpp='$CXXCPP $CPPFLAGS'
17448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17451
17452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453 /* end confdefs.h.  */
17454 namespace Outer { namespace Inner { int i = 0; }}
17455 int
17456 main ()
17457 {
17458 using namespace Outer::Inner; return i;
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 if ac_fn_cxx_try_compile "$LINENO"; then :
17464   ac_cv_cxx_namespaces=yes
17465 else
17466   ac_cv_cxx_namespaces=no
17467 fi
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469  ac_ext=cpp
17470 ac_cpp='$CXXCPP $CPPFLAGS'
17471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17474
17475
17476 fi
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17478 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17479 if test "$ac_cv_cxx_namespaces" = yes; then
17480
17481 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17482
17483 fi
17484
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
17486 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
17487 if test "${ac_cv_cxx_have_stl+set}" = set; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490
17491
17492  ac_ext=cpp
17493 ac_cpp='$CXXCPP $CPPFLAGS'
17494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17497
17498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h.  */
17500 #include <list>
17501 #include <deque>
17502 #ifdef HAVE_NAMESPACES
17503 using namespace std;
17504 #endif
17505 int
17506 main ()
17507 {
17508 list<int> x; x.push_back(5);
17509 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 if ac_fn_cxx_try_compile "$LINENO"; then :
17515   ac_cv_cxx_have_stl=yes
17516 else
17517   ac_cv_cxx_have_stl=no
17518 fi
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520  ac_ext=cpp
17521 ac_cpp='$CXXCPP $CPPFLAGS'
17522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17525
17526
17527 fi
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
17529 $as_echo "$ac_cv_cxx_have_stl" >&6; }
17530 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
17531   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
17532 fi
17533
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17535 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17536 if test "${ac_cv_cxx_namespaces+set}" = set; then :
17537   $as_echo_n "(cached) " >&6
17538 else
17539
17540  ac_ext=cpp
17541 ac_cpp='$CXXCPP $CPPFLAGS'
17542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17545
17546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h.  */
17548 namespace Outer { namespace Inner { int i = 0; }}
17549 int
17550 main ()
17551 {
17552 using namespace Outer::Inner; return i;
17553   ;
17554   return 0;
17555 }
17556 _ACEOF
17557 if ac_fn_cxx_try_compile "$LINENO"; then :
17558   ac_cv_cxx_namespaces=yes
17559 else
17560   ac_cv_cxx_namespaces=no
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563  ac_ext=cpp
17564 ac_cpp='$CXXCPP $CPPFLAGS'
17565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17568
17569
17570 fi
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17572 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17573 if test "$ac_cv_cxx_namespaces" = yes; then
17574
17575 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17576
17577 fi
17578
17579
17580 # Thank you Solaris, really.
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r" >&5
17582 $as_echo_n "checking for ctime_r... " >&6; }
17583  if test -z "$ac_cv_ctime_args"; then
17584      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h.  */
17586 #include <time.h>
17587 int
17588 main ()
17589 {
17590
17591          time_t clock;
17592          char buf[26];
17593          ctime_r(&clock, buf);
17594
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 if ac_fn_cxx_try_compile "$LINENO"; then :
17600   ac_cv_ctime_args=2
17601 fi
17602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603
17604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605 /* end confdefs.h.  */
17606 #include <time.h>
17607 int
17608 main ()
17609 {
17610
17611          time_t clock;
17612          char buf[26];
17613          ctime_r(&clock, buf, 26);
17614
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_cxx_try_compile "$LINENO"; then :
17620   ac_cv_ctime_args=3
17621 fi
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623  fi
17624  if test -z "$ac_cv_ctime_args"; then
17625      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626 $as_echo "no" >&6; }
17627  else
17628      if test "$ac_cv_ctime_args" = 2; then
17629
17630 $as_echo "#define HAVE_CTIME_R_2 1" >>confdefs.h
17631
17632      elif test "$ac_cv_ctime_args" = 3; then
17633
17634 $as_echo "#define HAVE_CTIME_R_3 1" >>confdefs.h
17635
17636      fi
17637      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
17638 $as_echo "yes, and it takes $ac_cv_ctime_args arguments" >&6; }
17639  fi
17640
17641 # log4shib settings (favor this version over the log4cpp code)
17642 # Extract the first word of "log4shib-config", so it can be a program name with args.
17643 set dummy log4shib-config; ac_word=$2
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17645 $as_echo_n "checking for $ac_word... " >&6; }
17646 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
17647   $as_echo_n "(cached) " >&6
17648 else
17649   case $LOG4SHIB_CONFIG in
17650   [\\/]* | ?:[\\/]*)
17651   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
17652   ;;
17653   *)
17654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17655 for as_dir in $PATH
17656 do
17657   IFS=$as_save_IFS
17658   test -z "$as_dir" && as_dir=.
17659     for ac_exec_ext in '' $ac_executable_extensions; do
17660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17661     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17663     break 2
17664   fi
17665 done
17666   done
17667 IFS=$as_save_IFS
17668
17669   ;;
17670 esac
17671 fi
17672 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
17673 if test -n "$LOG4SHIB_CONFIG"; then
17674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
17675 $as_echo "$LOG4SHIB_CONFIG" >&6; }
17676 else
17677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17678 $as_echo "no" >&6; }
17679 fi
17680
17681
17682
17683 # Check whether --with-log4shib was given.
17684 if test "${with_log4shib+set}" = set; then :
17685   withval=$with_log4shib;
17686     LOG4SHIB_CONFIG="${with_log4shib}"
17687     if ! test -f "${LOG4SHIB_CONFIG}" ; then
17688         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
17689     fi
17690
17691 fi
17692
17693 if test -f "${LOG4SHIB_CONFIG}"; then
17694     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
17695     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
17696
17697 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
17698 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
17699
17700 else
17701   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
17702 fi
17703
17704
17705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h.  */
17707 #include <log4shib/Category.hh>
17708 #include <log4shib/CategoryStream.hh>
17709 int
17710 main ()
17711 {
17712 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 if ac_fn_cxx_try_link "$LINENO"; then :
17718
17719 $as_echo "#define SHIBSP_LOG4SHIB 1" >>confdefs.h
17720
17721 else
17722   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
17723 fi
17724 rm -f core conftest.err conftest.$ac_objext \
17725     conftest$ac_exeext conftest.$ac_ext
17726 else
17727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
17728 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
17729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
17730 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
17731
17732         # log4cpp settings
17733         # Extract the first word of "log4cpp-config", so it can be a program name with args.
17734 set dummy log4cpp-config; ac_word=$2
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17736 $as_echo_n "checking for $ac_word... " >&6; }
17737 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
17738   $as_echo_n "(cached) " >&6
17739 else
17740   case $LOG4CPP_CONFIG in
17741   [\\/]* | ?:[\\/]*)
17742   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
17743   ;;
17744   *)
17745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17746 for as_dir in $PATH
17747 do
17748   IFS=$as_save_IFS
17749   test -z "$as_dir" && as_dir=.
17750     for ac_exec_ext in '' $ac_executable_extensions; do
17751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17752     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17754     break 2
17755   fi
17756 done
17757   done
17758 IFS=$as_save_IFS
17759
17760   ;;
17761 esac
17762 fi
17763 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
17764 if test -n "$LOG4CPP_CONFIG"; then
17765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
17766 $as_echo "$LOG4CPP_CONFIG" >&6; }
17767 else
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769 $as_echo "no" >&6; }
17770 fi
17771
17772
17773
17774 # Check whether --with-log4cpp was given.
17775 if test "${with_log4cpp+set}" = set; then :
17776   withval=$with_log4cpp;
17777             LOG4CPP_CONFIG="${with_log4cpp}"
17778             if ! test -f "${LOG4CPP_CONFIG}" ; then
17779                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
17780             fi
17781
17782 fi
17783
17784         if test -f "${LOG4CPP_CONFIG}"; then
17785                 { $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
17786 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
17787             LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
17788             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
17789                 ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
17790 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
17791
17792 else
17793   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
17794 fi
17795
17796
17797                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h.  */
17799 #include <log4cpp/Category.hh>
17800 #include <log4cpp/CategoryStream.hh>
17801 int
17802 main ()
17803 {
17804 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 if ac_fn_cxx_try_link "$LINENO"; then :
17810
17811 $as_echo "#define SHIBSP_LOG4CPP 1" >>confdefs.h
17812
17813 else
17814   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext \
17817     conftest$ac_exeext conftest.$ac_ext
17818         else
17819             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
17820         fi
17821 fi
17822
17823 # Xerces settings
17824
17825 # Check whether --with-xerces was given.
17826 if test "${with_xerces+set}" = set; then :
17827   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
17828                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
17829                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
17830             fi
17831 fi
17832
17833 LIBS="-lxerces-c $LIBS"
17834 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
17835 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
17836
17837 else
17838   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
17839 fi
17840
17841
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
17843 $as_echo_n "checking Xerces version... " >&6; }
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h.  */
17846 #include <xercesc/util/XercesVersion.hpp>
17847 int
17848 main ()
17849 {
17850 #if  _XERCES_VERSION != 20600
17851 int i = 0;
17852 #else
17853 #error cannot use version 2.6.0
17854 #endif
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 if ac_fn_cxx_try_cpp "$LINENO"; then :
17860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
17861 $as_echo "OK" >&6; }
17862 else
17863   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17865 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
17866 See \`config.log' for more details" "$LINENO" 5 ; }
17867 fi
17868 rm -f conftest.err conftest.i conftest.$ac_ext
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h.  */
17871 #include <xercesc/util/PlatformUtils.hpp>
17872 int
17873 main ()
17874 {
17875 xercesc::XMLPlatformUtils::Initialize()
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 if ac_fn_cxx_try_link "$LINENO"; then :
17881
17882 $as_echo "#define HAVE_LIBXERCESC 1" >>confdefs.h
17883
17884 else
17885   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext \
17888     conftest$ac_exeext conftest.$ac_ext
17889
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
17891 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h.  */
17894 #include <xercesc/util/XMLString.hpp>
17895 int
17896 main ()
17897 {
17898 using namespace XERCES_CPP_NAMESPACE;
17899       XMLByte* buf=NULL;
17900       XMLString::release(&buf);
17901
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 if ac_fn_cxx_try_compile "$LINENO"; then :
17907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908 $as_echo "yes" >&6; }
17909
17910 $as_echo "#define SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
17911
17912 else
17913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMNodeFilter API returns a short" >&5
17919 $as_echo_n "checking whether Xerces DOMNodeFilter API returns a short... " >&6; }
17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h.  */
17922 #include <xercesc/dom/DOM.hpp>
17923 int
17924 main ()
17925 {
17926 using namespace XERCES_CPP_NAMESPACE;
17927       class Blocker : public DOMNodeFilter {
17928       public:
17929         short acceptNode(const DOMNode* node) const {
17930             return FILTER_REJECT;
17931         }
17932       };
17933       static Blocker g_Blocker;
17934
17935   ;
17936   return 0;
17937 }
17938 _ACEOF
17939 if ac_fn_cxx_try_compile "$LINENO"; then :
17940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17941 $as_echo "yes" >&6; }
17942
17943 $as_echo "#define SHIBSP_XERCESC_SHORT_ACCEPTNODE 1" >>confdefs.h
17944
17945 else
17946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 $as_echo "no" >&6; }
17948 fi
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950
17951 #XML-Tooling settings
17952
17953 # Check whether --with-xmltooling was given.
17954 if test "${with_xmltooling+set}" = set; then :
17955   withval=$with_xmltooling; if test x_$with_xmltooling != x_/usr; then
17956                 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
17957                 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
17958             fi
17959 fi
17960
17961 LITE_LIBS="-lxmltooling-lite"
17962 XMLSEC_LIBS="-lxmltooling"
17963 ac_fn_cxx_check_header_mongrel "$LINENO" "xmltooling/base.h" "ac_cv_header_xmltooling_base_h" "$ac_includes_default"
17964 if test "x$ac_cv_header_xmltooling_base_h" = x""yes; then :
17965
17966 else
17967   as_fn_error $? "unable to find xmltooling header files" "$LINENO" 5
17968 fi
17969
17970
17971
17972
17973 # save and append master libs
17974 save_LIBS="$LIBS"
17975 LIBS="$XMLSEC_LIBS $LIBS"
17976
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h.  */
17979
17980 #include <xmltooling/XMLToolingConfig.h>
17981 #include <xmltooling/version.h>
17982
17983 int
17984 main ()
17985 {
17986
17987 #if _XMLTOOLING_VERSION >= 10400
17988 xmltooling::XMLToolingConfig::getConfig();
17989 #else
17990 #error Need XMLTooling version 1.4 or higher
17991 #endif
17992
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 if ac_fn_cxx_try_link "$LINENO"; then :
17998
17999 $as_echo "#define HAVE_XMLTOOLING 1" >>confdefs.h
18000
18001 else
18002   as_fn_error $? "unable to link with XMLTooling, or version was too old" "$LINENO" 5
18003
18004 fi
18005 rm -f core conftest.err conftest.$ac_objext \
18006     conftest$ac_exeext conftest.$ac_ext
18007
18008 # restore master libs
18009 LIBS="$save_LIBS"
18010
18011 # Establish location of xmltooling catalog.
18012 XMLTOOLINGXMLDIR=""
18013 if test "x$with_xmltooling" = "x" ; then
18014    with_xmltooling="/usr"
18015 fi
18016 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
18017     XMLTOOLINGXMLDIR="$with_xmltooling"
18018 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
18019     XMLTOOLINGXMLDIR="$with_xerces"
18020 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
18021     XMLTOOLINGXMLDIR="$with_log4shib"
18022 fi
18023 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
18024     as_fn_error $? "xmltooling XML catalog not found, may need to use --with-xmltooling option" "$LINENO" 5
18025 fi
18026 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
18027
18028
18029 # XML-Security settings
18030
18031 # Check whether --with-xmlsec was given.
18032 if test "${with_xmlsec+set}" = set; then :
18033   withval=$with_xmlsec;
18034 else
18035   with_xmlsec=/usr
18036 fi
18037
18038
18039 if test x_$with_xmlsec != x_/usr; then
18040     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
18041     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
18042 fi
18043 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
18044
18045 # save and append master libs
18046 save_LIBS="$LIBS"
18047 LIBS="$XMLSEC_LIBS $LIBS"
18048
18049 ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
18050 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
18051
18052 else
18053   as_fn_error $? "unable to find XML-Security-C header files" "$LINENO" 5
18054 fi
18055
18056
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security-C version" >&5
18058 $as_echo_n "checking XML-Security-C version... " >&6; }
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h.  */
18061 #include <xsec/utils/XSECPlatformUtils.hpp>
18062 int
18063 main ()
18064 {
18065 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
18066 int i = 0;
18067 #else
18068 #error need version 1.4.0 or later
18069 #endif
18070   ;
18071   return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_cxx_try_cpp "$LINENO"; then :
18075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18076 $as_echo "OK" >&6; }
18077 else
18078   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18080 as_fn_error $? "XML-Security-C version 1.4.0 or greater is required.
18081 See \`config.log' for more details" "$LINENO" 5 ; }
18082 fi
18083 rm -f conftest.err conftest.i conftest.$ac_ext
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h.  */
18086 #include <xsec/utils/XSECPlatformUtils.hpp>
18087 int
18088 main ()
18089 {
18090 XSECPlatformUtils::Initialise()
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 if ac_fn_cxx_try_link "$LINENO"; then :
18096
18097 else
18098   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
18099 fi
18100 rm -f core conftest.err conftest.$ac_objext \
18101     conftest$ac_exeext conftest.$ac_ext
18102
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C supports white/blacklisting of algorithms" >&5
18105 $as_echo_n "checking whether XML-Security-C supports white/blacklisting of algorithms... " >&6; }
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h.  */
18108 #include <xsec/framework/XSECAlgorithmMapper.hpp>
18109 int
18110 main ()
18111 {
18112 XSECAlgorithmMapper* mapper; mapper->whitelistAlgorithm(NULL);
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 if ac_fn_cxx_try_compile "$LINENO"; then :
18118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18119 $as_echo "yes" >&6; }
18120
18121 $as_echo "#define SHIBSP_XMLSEC_WHITELISTING 1" >>confdefs.h
18122
18123 else
18124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18126 fi
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128
18129
18130 # restore master libs
18131 LIBS="$save_LIBS"
18132
18133 # OpenSAML settings
18134
18135 # Check whether --with-saml was given.
18136 if test "${with_saml+set}" = set; then :
18137   withval=$with_saml; if test x_$with_saml != x_/usr; then
18138         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
18139         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
18140     fi
18141 fi
18142
18143 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
18144
18145 # save and append master libs
18146 save_LIBS="$LIBS"
18147 LIBS="$XMLSEC_LIBS $LIBS"
18148
18149 ac_fn_cxx_check_header_mongrel "$LINENO" "saml/saml2/metadata/Metadata.h" "ac_cv_header_saml_saml2_metadata_Metadata_h" "$ac_includes_default"
18150 if test "x$ac_cv_header_saml_saml2_metadata_Metadata_h" = x""yes; then :
18151
18152 else
18153   as_fn_error $? "unable to find OpenSAML header files" "$LINENO" 5
18154 fi
18155
18156
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h.  */
18159
18160 #include <saml/SAMLConfig.h>
18161 #include <saml/version.h>
18162
18163 int
18164 main ()
18165 {
18166
18167 #if _OPENSAML_VERSION >= 20400
18168 opensaml::SAMLConfig::getConfig();
18169 #else
18170 #error Need OpenSAML version 2.4 or higher
18171 #endif
18172
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 if ac_fn_cxx_try_link "$LINENO"; then :
18178
18179 $as_echo "#define HAVE_SAML 1" >>confdefs.h
18180
18181 else
18182   as_fn_error $? "unable to link with OpenSAML, or version was too old" "$LINENO" 5
18183
18184 fi
18185 rm -f core conftest.err conftest.$ac_objext \
18186     conftest$ac_exeext conftest.$ac_ext
18187
18188 # restore master libs
18189 LIBS="$save_LIBS"
18190
18191 # Establish location of opensaml catalogs.
18192 OPENSAMLXMLDIR=""
18193 if test "x$with_saml" = "x" ; then
18194     with_saml="/usr"
18195 fi
18196 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
18197     OPENSAMLXMLDIR="$with_saml"
18198 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
18199     OPENSAMLXMLDIR="$with_xmltooling"
18200 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
18201     OPENSAMLXMLDIR="$with_xerces"
18202 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
18203     OPENSAMLXMLDIR="$with_log4shib"
18204 fi
18205 if test "x$OPENSAMLXMLDIR" = "x" ; then
18206     as_fn_error $? "opensaml XML catalogs not found, may need to use --with-saml option" "$LINENO" 5
18207 fi
18208 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
18209
18210
18211
18212
18213
18214 ac_config_files="$ac_config_files shibboleth.spec pkginfo Portfile"
18215
18216
18217 # output the underlying makefiles
18218 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
18219 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
18220
18221
18222 ## ADFS?
18223 ac_config_files="$ac_config_files adfs/Makefile"
18224
18225 # Check whether --enable-adfs was given.
18226 if test "${enable_adfs+set}" = set; then :
18227   enableval=$enable_adfs; adfs_enabled=$enableval
18228 else
18229   adfs_enabled=yes
18230 fi
18231
18232 if test "x$adfs_enabled" = "x" ; then
18233    adfs_enabled=yes
18234 fi
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ADFS module" >&5
18236 $as_echo_n "checking whether to build the ADFS module... " >&6; }
18237 if test "$adfs_enabled" = "no" ; then
18238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18239 $as_echo "no" >&6; }
18240 else
18241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18242 $as_echo "yes" >&6; }
18243    WANT_SUBDIRS="$WANT_SUBDIRS adfs"
18244 fi
18245
18246
18247 #
18248 # Build NSAPI module?
18249 #
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI module option" >&5
18251 $as_echo_n "checking for NSAPI module option... " >&6; }
18252
18253 # Check whether --with-nsapi was given.
18254 if test "${with_nsapi+set}" = set; then :
18255   withval=$with_nsapi; WANT_NSAPI=$withval
18256 else
18257   WANT_NSAPI=no
18258 fi
18259
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_NSAPI" >&5
18261 $as_echo "$WANT_NSAPI" >&6; }
18262
18263 if test "$WANT_NSAPI" != "no"; then
18264   if test ! -d $WANT_NSAPI/bin ; then
18265     as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" "$LINENO" 5
18266   fi
18267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5
18268 $as_echo_n "checking for NSAPI include files... " >&6; }
18269   if test -d $WANT_NSAPI/include ; then
18270     NSAPI_INCLUDE=$WANT_NSAPI/include
18271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape-Enterprise 3.x style" >&5
18272 $as_echo "Netscape-Enterprise 3.x style" >&6; }
18273     for ac_header in $NSAPI_INCLUDE/nsapi.h
18274 do :
18275   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18276 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define XP_UNIX
18277 "
18278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18279   cat >>confdefs.h <<_ACEOF
18280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18281 _ACEOF
18282
18283 fi
18284
18285 done
18286
18287     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
18288   fi
18289   if test -d $WANT_NSAPI/plugins/include ; then
18290     test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
18291     NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
18292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / SunONE 6.x style" >&5
18293 $as_echo "iPlanet 4.x / SunONE 6.x style" >&6; }
18294     for ac_header in $NSAPI_INCLUDE/nsapi.h
18295 do :
18296   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18297 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define XP_UNIX
18298 "
18299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18300   cat >>confdefs.h <<_ACEOF
18301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18302 _ACEOF
18303
18304 fi
18305
18306 done
18307
18308     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
18309   fi
18310   if test "$NSAPI_INCLUDE" = ""; then
18311     as_fn_error $? "Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" "$LINENO" 5
18312   fi
18313 fi
18314
18315
18316
18317 # always output the Makefile, even if you don't use it
18318 ac_config_files="$ac_config_files nsapi_shib/Makefile"
18319
18320  if test ! "$WANT_NSAPI" = "no"; then
18321   BUILD_NSAPI_TRUE=
18322   BUILD_NSAPI_FALSE='#'
18323 else
18324   BUILD_NSAPI_TRUE='#'
18325   BUILD_NSAPI_FALSE=
18326 fi
18327
18328
18329 # add the NSAPI module to the list of wanted subdirs..
18330 if test ! "$WANT_NSAPI" = "no" ; then
18331     WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
18332 fi
18333
18334
18335 #
18336 # Build FastCGI support?
18337 #
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FastCGI support" >&5
18339 $as_echo_n "checking for FastCGI support... " >&6; }
18340
18341 # Check whether --with-fastcgi was given.
18342 if test "${with_fastcgi+set}" = set; then :
18343   withval=$with_fastcgi; WANT_FASTCGI=$withval
18344 else
18345   WANT_FASTCGI=no
18346 fi
18347
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_FASTCGI" >&5
18349 $as_echo "$WANT_FASTCGI" >&6; }
18350
18351 if test "$WANT_FASTCGI" != "no"; then
18352     if test "$WANT_FASTCGI" != "yes"; then
18353         if test x_$WANT_FASTCGI != x_/usr; then
18354             FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
18355             FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
18356         fi
18357     fi
18358     ac_fn_cxx_check_header_mongrel "$LINENO" "fcgio.h" "ac_cv_header_fcgio_h" "$ac_includes_default"
18359 if test "x$ac_cv_header_fcgio_h" = x""yes; then :
18360
18361 else
18362   as_fn_error $? "unable to find FastCGI header files" "$LINENO" 5
18363 fi
18364
18365
18366     FASTCGI_LIBS="-lfcgi -lfcgi++"
18367 fi
18368
18369
18370
18371
18372
18373 # always output the Makefile, even if you don't use it
18374 ac_config_files="$ac_config_files fastcgi/Makefile"
18375
18376  if test ! "$WANT_FASTCGI" = "no"; then
18377   BUILD_FASTCGI_TRUE=
18378   BUILD_FASTCGI_FALSE='#'
18379 else
18380   BUILD_FASTCGI_TRUE='#'
18381   BUILD_FASTCGI_FALSE=
18382 fi
18383
18384
18385 if test ! "$WANT_FASTCGI" = "no" ; then
18386     WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
18387 fi
18388
18389 #
18390 # Build Memcached support?
18391 #
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Memcached support" >&5
18393 $as_echo_n "checking for Memcached support... " >&6; }
18394
18395 # Check whether --with-memcached was given.
18396 if test "${with_memcached+set}" = set; then :
18397   withval=$with_memcached; WANT_MEMCACHED=$withval
18398 else
18399   WANT_MEMCACHED=no
18400 fi
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_MEMCACHED" >&5
18403 $as_echo "$WANT_MEMCACHED" >&6; }
18404
18405 if test "$WANT_MEMCACHED" != "no"; then
18406     if test "$WANT_MEMCACHED" != "yes"; then
18407         if test x_$WANT_MEMCACHED != x_/usr; then
18408             MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
18409             MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
18410         fi
18411     fi
18412     ac_fn_cxx_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
18413 if test "x$ac_cv_header_libmemcached_memcached_h" = x""yes; then :
18414
18415 else
18416   as_fn_error $? "unable to find Memcached header files" "$LINENO" 5
18417 fi
18418
18419
18420     MEMCACHED_LIBS="-lmemcached"
18421 fi
18422
18423
18424
18425
18426
18427 # always output the Makefile, even if you don't use it
18428 ac_config_files="$ac_config_files memcache-store/Makefile"
18429
18430  if test ! "$WANT_MEMCACHED" = "no"; then
18431   BUILD_MEMCACHED_TRUE=
18432   BUILD_MEMCACHED_FALSE='#'
18433 else
18434   BUILD_MEMCACHED_TRUE='#'
18435   BUILD_MEMCACHED_FALSE=
18436 fi
18437
18438
18439 if test ! "$WANT_MEMCACHED" = "no" ; then
18440     WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
18441 fi
18442
18443
18444 #
18445 # If no --enable-apache-xx specified
18446 # find a default and fake the specific parameters
18447 #
18448
18449 # simple macro to peek at an enable or a with
18450
18451
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if default apache needed" >&5
18453 $as_echo_n "checking if default apache needed... " >&6; }
18454 need_default=yes
18455 if test "${enable_apache_13+set}" = set; then
18456   peekval="${enable_apache_13}"
18457   need_default=no
18458 fi;
18459 if test "${enable_apache_20+set}" = set; then
18460   peekval="${enable_apache_20}"
18461   need_default=no
18462 fi;
18463 if test "${enable_apache_22+set}" = set; then
18464   peekval="${enable_apache_22}"
18465   need_default=no
18466 fi;
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_default" >&5
18468 $as_echo "$need_default" >&6; }
18469
18470 if test "$need_default" = "yes"; then
18471   # find an apxs, then the httpd
18472   xs=
18473   if test "${with_apxs+set}" = set; then
18474   peekval="${with_apxs}"
18475   xs="$peekval"
18476 fi;
18477   if test "${with_apxs2+set}" = set; then
18478   peekval="${with_apxs2}"
18479   xs="$peekval"
18480 fi;
18481   if test "${with_apxs22+set}" = set; then
18482   peekval="${with_apxs22}"
18483   xs="$peekval"
18484 fi;
18485   if test "x$xs" = "x"; then
18486      for ac_prog in apxs2 apxs
18487 do
18488   # Extract the first word of "$ac_prog", so it can be a program name with args.
18489 set dummy $ac_prog; ac_word=$2
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18491 $as_echo_n "checking for $ac_word... " >&6; }
18492 if test "${ac_cv_path_xs+set}" = set; then :
18493   $as_echo_n "(cached) " >&6
18494 else
18495   case $xs in
18496   [\\/]* | ?:[\\/]*)
18497   ac_cv_path_xs="$xs" # Let the user override the test with a path.
18498   ;;
18499   *)
18500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
18502 for as_dir in $as_dummy
18503 do
18504   IFS=$as_save_IFS
18505   test -z "$as_dir" && as_dir=.
18506     for ac_exec_ext in '' $ac_executable_extensions; do
18507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18508     ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
18509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18510     break 2
18511   fi
18512 done
18513   done
18514 IFS=$as_save_IFS
18515
18516   ;;
18517 esac
18518 fi
18519 xs=$ac_cv_path_xs
18520 if test -n "$xs"; then
18521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xs" >&5
18522 $as_echo "$xs" >&6; }
18523 else
18524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18525 $as_echo "no" >&6; }
18526 fi
18527
18528
18529   test -n "$xs" && break
18530 done
18531 test -n "$xs" || xs="as_fn_error no apache found.  Try --with-apxs "No apxs" "$LINENO" 5 "
18532
18533   fi
18534   # ask the daemon for the version and set parameters
18535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default apache version" >&5
18536 $as_echo_n "checking default apache version... " >&6; }
18537   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
18538   if test "x$httpd" != "x" && test -f $httpd ; then
18539      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
18540      case $v in
18541        1.3*)   enable_apache_13=yes
18542                with_apxs=$xs
18543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.3" >&5
18544 $as_echo "1.3" >&6; }
18545                ;;
18546        2.0*)   enable_apache_20=yes
18547                with_apxs2=$xs
18548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.0" >&5
18549 $as_echo "2.0" >&6; }
18550                ;;
18551        2.2*)   enable_apache_22=yes
18552                with_apxs22=$xs
18553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2" >&5
18554 $as_echo "2.2" >&6; }
18555                ;;
18556        *)      as_fn_error $? "unusable apache versions: $v. Try setting --with-apxs" "$LINENO" 5
18557      esac
18558   else
18559      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine version.  Try setting --with-apxs" >&5
18560 $as_echo "cannot determine version.  Try setting --with-apxs" >&6; }
18561   fi
18562 fi
18563
18564 # Apache 1.3 (mod_shib_13)
18565 #   --enable-apache-13
18566 #   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
18567
18568 # Check whether --enable-apache-13 was given.
18569 if test "${enable_apache_13+set}" = set; then :
18570   enableval=$enable_apache_13;  if test "x$enableval" = "x" ; then
18571               WANT_APACHE_13=yes
18572           else
18573               WANT_APACHE_13="$enableval"
18574           fi
18575
18576 else
18577    WANT_APACHE_13=no
18578 fi
18579
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 1.3 module" >&5
18581 $as_echo_n "checking whether to build Apache 1.3 module... " >&6; }
18582 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
18583    WANT_APACHE_13=yes
18584 fi
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_13" >&5
18586 $as_echo "$WANT_APACHE_13" >&6; }
18587
18588 if test "$WANT_APACHE_13" = "yes" ; then
18589
18590 # Check whether --with-apxs was given.
18591 if test "${with_apxs+set}" = set; then :
18592   withval=$with_apxs;
18593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apxs name/location" >&5
18594 $as_echo_n "checking for user-specified apxs name/location... " >&6; }
18595         if test "$withval" != "no" ; then
18596           if test "$withval" != "yes"; then
18597             APXS=$withval
18598             { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
18599 $as_echo "\"$withval\"" >&6; }
18600           fi
18601         fi
18602
18603 else
18604
18605         # Extract the first word of "apxs", so it can be a program name with args.
18606 set dummy apxs; ac_word=$2
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18608 $as_echo_n "checking for $ac_word... " >&6; }
18609 if test "${ac_cv_path_APXS+set}" = set; then :
18610   $as_echo_n "(cached) " >&6
18611 else
18612   case $APXS in
18613   [\\/]* | ?:[\\/]*)
18614   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
18615   ;;
18616   *)
18617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618 for as_dir in $PATH
18619 do
18620   IFS=$as_save_IFS
18621   test -z "$as_dir" && as_dir=.
18622     for ac_exec_ext in '' $ac_executable_extensions; do
18623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18624     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
18625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18626     break 2
18627   fi
18628 done
18629   done
18630 IFS=$as_save_IFS
18631
18632   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
18633   ;;
18634 esac
18635 fi
18636 APXS=$ac_cv_path_APXS
18637 if test -n "$APXS"; then
18638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
18639 $as_echo "$APXS" >&6; }
18640 else
18641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18643 fi
18644
18645
18646         if test "$APXS" = "no" ; then
18647           for i in /usr/sbin /usr/local/apache/bin ; do
18648             if test "$APXS" = "no" && test -f "$i/apxs"; then
18649               APXS="$i/apxs"
18650             fi
18651           done
18652         fi
18653
18654 fi
18655
18656
18657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if apxs was located" >&5
18658 $as_echo_n "checking to see if apxs was located... " >&6; }
18659     if test ! -f "$APXS" ; then
18660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18662         as_fn_error $? "Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." "$LINENO" 5
18663     fi
18664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
18665 $as_echo "$APXS" >&6; }
18666
18667
18668     # extract settings we need from APXS -q
18669     APXS_CC="`$APXS -q CC`"
18670     APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
18671     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
18672 fi
18673
18674
18675
18676
18677
18678 # Apache 2.0 (mod_shib_20)
18679 #   --enable-apache-20
18680 #   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
18681 #       --with-apr        (DSO build, APR development package installed separately)
18682 #   --with-apu        (DSO build, APR-UTIL development package installed separately)
18683
18684 # Check whether --enable-apache-20 was given.
18685 if test "${enable_apache_20+set}" = set; then :
18686   enableval=$enable_apache_20;  if test "x$enableval" = "x" ; then
18687               WANT_APACHE_20=yes
18688           else
18689               WANT_APACHE_20="$enableval"
18690           fi
18691
18692 else
18693    WANT_APACHE_20=no
18694 fi
18695
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.0 module" >&5
18697 $as_echo_n "checking whether to build Apache 2.0 module... " >&6; }
18698 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
18699    WANT_APACHE_20=yes
18700 fi
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_20" >&5
18702 $as_echo "$WANT_APACHE_20" >&6; }
18703
18704 if test "$WANT_APACHE_20" = "yes" ; then
18705
18706 # Check whether --with-apxs2 was given.
18707 if test "${with_apxs2+set}" = set; then :
18708   withval=$with_apxs2;
18709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache2 apxs name/location" >&5
18710 $as_echo_n "checking for user-specified Apache2 apxs name/location... " >&6; }
18711         if test "$withval" != "no" ; then
18712           if test "$withval" != "yes"; then
18713             APXS2=$withval
18714             { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
18715 $as_echo "\"$withval\"" >&6; }
18716           fi
18717         fi
18718
18719 else
18720
18721         # Extract the first word of "apxs2", so it can be a program name with args.
18722 set dummy apxs2; ac_word=$2
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18724 $as_echo_n "checking for $ac_word... " >&6; }
18725 if test "${ac_cv_path_APXS2+set}" = set; then :
18726   $as_echo_n "(cached) " >&6
18727 else
18728   case $APXS2 in
18729   [\\/]* | ?:[\\/]*)
18730   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
18731   ;;
18732   *)
18733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734 for as_dir in $PATH
18735 do
18736   IFS=$as_save_IFS
18737   test -z "$as_dir" && as_dir=.
18738     for ac_exec_ext in '' $ac_executable_extensions; do
18739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18740     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
18741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18742     break 2
18743   fi
18744 done
18745   done
18746 IFS=$as_save_IFS
18747
18748   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
18749   ;;
18750 esac
18751 fi
18752 APXS2=$ac_cv_path_APXS2
18753 if test -n "$APXS2"; then
18754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
18755 $as_echo "$APXS2" >&6; }
18756 else
18757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18758 $as_echo "no" >&6; }
18759 fi
18760
18761
18762         if test "$APXS2" = "no" ; then
18763             # Extract the first word of "apxs", so it can be a program name with args.
18764 set dummy apxs; ac_word=$2
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18766 $as_echo_n "checking for $ac_word... " >&6; }
18767 if test "${ac_cv_path_APXS2+set}" = set; then :
18768   $as_echo_n "(cached) " >&6
18769 else
18770   case $APXS2 in
18771   [\\/]* | ?:[\\/]*)
18772   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
18773   ;;
18774   *)
18775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18776 for as_dir in $PATH
18777 do
18778   IFS=$as_save_IFS
18779   test -z "$as_dir" && as_dir=.
18780     for ac_exec_ext in '' $ac_executable_extensions; do
18781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18782     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
18783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18784     break 2
18785   fi
18786 done
18787   done
18788 IFS=$as_save_IFS
18789
18790   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
18791   ;;
18792 esac
18793 fi
18794 APXS2=$ac_cv_path_APXS2
18795 if test -n "$APXS2"; then
18796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
18797 $as_echo "$APXS2" >&6; }
18798 else
18799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18800 $as_echo "no" >&6; }
18801 fi
18802
18803
18804         fi
18805         if test "$APXS2" = "no" ; then
18806           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
18807             if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
18808               APXS2="$i/apxs2"
18809             fi
18810           done
18811           if test "$APXS2" = "no" ; then
18812             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
18813               if test "$APXS2" = "no" && test -f "$i/apxs" ; then
18814                 APXS2="$i/apxs"
18815               fi
18816             done
18817           fi
18818         fi
18819
18820 fi
18821
18822
18823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Apache2 apxs was located" >&5
18824 $as_echo_n "checking to see if Apache2 apxs was located... " >&6; }
18825     if test ! -f "$APXS2" ; then
18826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18827 $as_echo "no" >&6; }
18828         as_fn_error $? "Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." "$LINENO" 5
18829     fi
18830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
18831 $as_echo "$APXS2" >&6; }
18832
18833
18834     # APR settings
18835
18836 # Check whether --with-apr was given.
18837 if test "${with_apr+set}" = set; then :
18838   withval=$with_apr;
18839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-config name/location" >&5
18840 $as_echo_n "checking for user-specified apr-config name/location... " >&6; }
18841         if test "$withval" != "no" ; then
18842             if test "$withval" != "yes"; then
18843                 APR_CONFIG=$withval
18844                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
18845 $as_echo "\"$withval\"" >&6; }
18846             fi
18847         fi
18848
18849 else
18850
18851         # Extract the first word of "apr-config", so it can be a program name with args.
18852 set dummy apr-config; ac_word=$2
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854 $as_echo_n "checking for $ac_word... " >&6; }
18855 if test "${ac_cv_path_APR_CONFIG+set}" = set; then :
18856   $as_echo_n "(cached) " >&6
18857 else
18858   case $APR_CONFIG in
18859   [\\/]* | ?:[\\/]*)
18860   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
18861   ;;
18862   *)
18863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18864 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
18865 for as_dir in $as_dummy
18866 do
18867   IFS=$as_save_IFS
18868   test -z "$as_dir" && as_dir=.
18869     for ac_exec_ext in '' $ac_executable_extensions; do
18870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18871     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18873     break 2
18874   fi
18875 done
18876   done
18877 IFS=$as_save_IFS
18878
18879   ;;
18880 esac
18881 fi
18882 APR_CONFIG=$ac_cv_path_APR_CONFIG
18883 if test -n "$APR_CONFIG"; then
18884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
18885 $as_echo "$APR_CONFIG" >&6; }
18886 else
18887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18888 $as_echo "no" >&6; }
18889 fi
18890
18891
18892
18893 fi
18894
18895         if test -f "${APR_CONFIG}"; then
18896         APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
18897     else
18898         as_fn_error $? "Unable to locate apr-config, may need --with-apr option." "$LINENO" 5
18899     fi
18900
18901     # APU settings
18902
18903 # Check whether --with-apu was given.
18904 if test "${with_apu+set}" = set; then :
18905   withval=$with_apu;
18906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-config name/location" >&5
18907 $as_echo_n "checking for user-specified apu-config name/location... " >&6; }
18908         if test "$withval" != "no" ; then
18909             if test "$withval" != "yes"; then
18910                 APR_CONFIG=$withval
18911                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
18912 $as_echo "\"$withval\"" >&6; }
18913             fi
18914         fi
18915
18916 else
18917
18918         # Extract the first word of "apu-config", so it can be a program name with args.
18919 set dummy apu-config; ac_word=$2
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18921 $as_echo_n "checking for $ac_word... " >&6; }
18922 if test "${ac_cv_path_APU_CONFIG+set}" = set; then :
18923   $as_echo_n "(cached) " >&6
18924 else
18925   case $APU_CONFIG in
18926   [\\/]* | ?:[\\/]*)
18927   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
18928   ;;
18929   *)
18930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
18932 for as_dir in $as_dummy
18933 do
18934   IFS=$as_save_IFS
18935   test -z "$as_dir" && as_dir=.
18936     for ac_exec_ext in '' $ac_executable_extensions; do
18937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18938     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18940     break 2
18941   fi
18942 done
18943   done
18944 IFS=$as_save_IFS
18945
18946   ;;
18947 esac
18948 fi
18949 APU_CONFIG=$ac_cv_path_APU_CONFIG
18950 if test -n "$APU_CONFIG"; then
18951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5
18952 $as_echo "$APU_CONFIG" >&6; }
18953 else
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18955 $as_echo "no" >&6; }
18956 fi
18957
18958
18959
18960 fi
18961
18962     if test -f "${APU_CONFIG}"; then
18963         APU_CFLAGS="`${APU_CONFIG} --includes`"
18964     else
18965         as_fn_error $? "Unable to locate apu-config, may need --with-apu option." "$LINENO" 5
18966     fi
18967
18968     # extract settings we need from APXS2 -q
18969     APXS2_CC="`$APXS2 -q CC`"
18970     APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS $APU_CFLAGS"
18971     APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
18972 fi
18973
18974
18975
18976
18977
18978 # Apache 2.2 (mod_shib_22)
18979 #   --enable-apache-22
18980 #   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
18981 #       --with-apr1       (DSO build, APR development package installed separately)
18982 #   --with-apu1       (DSO build, APR-UTIL development package installed separately)
18983
18984 # Check whether --enable-apache-22 was given.
18985 if test "${enable_apache_22+set}" = set; then :
18986   enableval=$enable_apache_22;  if test "x$enableval" = "x" ; then
18987               WANT_APACHE_22=yes
18988           else
18989               WANT_APACHE_22="$enableval"
18990           fi
18991
18992 else
18993    WANT_APACHE_22=no
18994 fi
18995
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.2 module" >&5
18997 $as_echo_n "checking whether to build Apache 2.2 module... " >&6; }
18998 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
18999    WANT_APACHE_22=yes
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_22" >&5
19002 $as_echo "$WANT_APACHE_22" >&6; }
19003
19004 if test "$WANT_APACHE_22" = "yes" ; then
19005
19006 # Check whether --with-apxs22 was given.
19007 if test "${with_apxs22+set}" = set; then :
19008   withval=$with_apxs22;
19009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache2.2 apxs name/location" >&5
19010 $as_echo_n "checking for user-specified Apache2.2 apxs name/location... " >&6; }
19011         if test "$withval" != "no" ; then
19012           if test "$withval" != "yes"; then
19013             APXS22=$withval
19014             { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19015 $as_echo "\"$withval\"" >&6; }
19016           fi
19017         fi
19018
19019 else
19020
19021         # Extract the first word of "apxs2", so it can be a program name with args.
19022 set dummy apxs2; ac_word=$2
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19024 $as_echo_n "checking for $ac_word... " >&6; }
19025 if test "${ac_cv_path_APXS22+set}" = set; then :
19026   $as_echo_n "(cached) " >&6
19027 else
19028   case $APXS22 in
19029   [\\/]* | ?:[\\/]*)
19030   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
19031   ;;
19032   *)
19033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19035 do
19036   IFS=$as_save_IFS
19037   test -z "$as_dir" && as_dir=.
19038     for ac_exec_ext in '' $ac_executable_extensions; do
19039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19040     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
19041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19042     break 2
19043   fi
19044 done
19045   done
19046 IFS=$as_save_IFS
19047
19048   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
19049   ;;
19050 esac
19051 fi
19052 APXS22=$ac_cv_path_APXS22
19053 if test -n "$APXS22"; then
19054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
19055 $as_echo "$APXS22" >&6; }
19056 else
19057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19059 fi
19060
19061
19062         if test "$APXS22" = "no" ; then
19063             # Extract the first word of "apxs", so it can be a program name with args.
19064 set dummy apxs; ac_word=$2
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19066 $as_echo_n "checking for $ac_word... " >&6; }
19067 if test "${ac_cv_path_APXS22+set}" = set; then :
19068   $as_echo_n "(cached) " >&6
19069 else
19070   case $APXS22 in
19071   [\\/]* | ?:[\\/]*)
19072   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
19073   ;;
19074   *)
19075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076 for as_dir in $PATH
19077 do
19078   IFS=$as_save_IFS
19079   test -z "$as_dir" && as_dir=.
19080     for ac_exec_ext in '' $ac_executable_extensions; do
19081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19082     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
19083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19084     break 2
19085   fi
19086 done
19087   done
19088 IFS=$as_save_IFS
19089
19090   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
19091   ;;
19092 esac
19093 fi
19094 APXS22=$ac_cv_path_APXS22
19095 if test -n "$APXS22"; then
19096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
19097 $as_echo "$APXS22" >&6; }
19098 else
19099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19100 $as_echo "no" >&6; }
19101 fi
19102
19103
19104         fi
19105         if test "$APXS22" = "no" ; then
19106           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
19107             if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
19108               APXS22="$i/apxs2"
19109             fi
19110           done
19111           if test "$APXS22" = "no" ; then
19112             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
19113               if test "$APXS22" = "no" && test -f "$i/apxs" ; then
19114                 APXS22="$i/apxs"
19115               fi
19116             done
19117           fi
19118         fi
19119
19120 fi
19121
19122
19123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Apache2.2 apxs was located" >&5
19124 $as_echo_n "checking to see if Apache2.2 apxs was located... " >&6; }
19125     if test ! -f "$APXS22" ; then
19126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19127 $as_echo "no" >&6; }
19128         as_fn_error $? "Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." "$LINENO" 5
19129     fi
19130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
19131 $as_echo "$APXS22" >&6; }
19132
19133
19134     # APR1 settings
19135
19136 # Check whether --with-apr1 was given.
19137 if test "${with_apr1+set}" = set; then :
19138   withval=$with_apr1;
19139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-1-config name/location" >&5
19140 $as_echo_n "checking for user-specified apr-1-config name/location... " >&6; }
19141         if test "$withval" != "no" ; then
19142             if test "$withval" != "yes"; then
19143                 APR1_CONFIG=$withval
19144                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19145 $as_echo "\"$withval\"" >&6; }
19146             fi
19147         fi
19148
19149 else
19150
19151         # Extract the first word of "apr-1-config", so it can be a program name with args.
19152 set dummy apr-1-config; ac_word=$2
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19154 $as_echo_n "checking for $ac_word... " >&6; }
19155 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then :
19156   $as_echo_n "(cached) " >&6
19157 else
19158   case $APR1_CONFIG in
19159   [\\/]* | ?:[\\/]*)
19160   ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
19161   ;;
19162   *)
19163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
19165 for as_dir in $as_dummy
19166 do
19167   IFS=$as_save_IFS
19168   test -z "$as_dir" && as_dir=.
19169     for ac_exec_ext in '' $ac_executable_extensions; do
19170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19171     ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19173     break 2
19174   fi
19175 done
19176   done
19177 IFS=$as_save_IFS
19178
19179   ;;
19180 esac
19181 fi
19182 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
19183 if test -n "$APR1_CONFIG"; then
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR1_CONFIG" >&5
19185 $as_echo "$APR1_CONFIG" >&6; }
19186 else
19187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19189 fi
19190
19191
19192
19193 fi
19194
19195         if test -f "${APR1_CONFIG}"; then
19196         APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
19197     else
19198         as_fn_error $? "Unable to locate apr-1-config, may need --with-apr1 option." "$LINENO" 5
19199     fi
19200
19201     # APU1 settings
19202
19203 # Check whether --with-apu1 was given.
19204 if test "${with_apu1+set}" = set; then :
19205   withval=$with_apu1;
19206         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-1-config name/location" >&5
19207 $as_echo_n "checking for user-specified apu-1-config name/location... " >&6; }
19208         if test "$withval" != "no" ; then
19209             if test "$withval" != "yes"; then
19210                 APR1_CONFIG=$withval
19211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19212 $as_echo "\"$withval\"" >&6; }
19213             fi
19214         fi
19215
19216 else
19217
19218         # Extract the first word of "apu-1-config", so it can be a program name with args.
19219 set dummy apu-1-config; ac_word=$2
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19221 $as_echo_n "checking for $ac_word... " >&6; }
19222 if test "${ac_cv_path_APU1_CONFIG+set}" = set; then :
19223   $as_echo_n "(cached) " >&6
19224 else
19225   case $APU1_CONFIG in
19226   [\\/]* | ?:[\\/]*)
19227   ac_cv_path_APU1_CONFIG="$APU1_CONFIG" # Let the user override the test with a path.
19228   ;;
19229   *)
19230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19231 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
19232 for as_dir in $as_dummy
19233 do
19234   IFS=$as_save_IFS
19235   test -z "$as_dir" && as_dir=.
19236     for ac_exec_ext in '' $ac_executable_extensions; do
19237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19238     ac_cv_path_APU1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19240     break 2
19241   fi
19242 done
19243   done
19244 IFS=$as_save_IFS
19245
19246   ;;
19247 esac
19248 fi
19249 APU1_CONFIG=$ac_cv_path_APU1_CONFIG
19250 if test -n "$APU1_CONFIG"; then
19251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU1_CONFIG" >&5
19252 $as_echo "$APU1_CONFIG" >&6; }
19253 else
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19255 $as_echo "no" >&6; }
19256 fi
19257
19258
19259
19260 fi
19261
19262     if test -f "${APU1_CONFIG}"; then
19263         APU1_CFLAGS="`${APU1_CONFIG} --includes`"
19264     else
19265         as_fn_error $? "Unable to locate apu-1-config, may need --with-apu1 option." "$LINENO" 5
19266     fi
19267
19268     # extract settings we need from APXS22 -q
19269     APXS22_CC="`$APXS22 -q CC`"
19270     APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
19271     APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
19272 fi
19273
19274
19275
19276
19277 # always output the Makefile, even if you don't use it
19278 ac_config_files="$ac_config_files apache/Makefile"
19279
19280  if test "$WANT_APACHE_13" = "yes"; then
19281   BUILD_AP13_TRUE=
19282   BUILD_AP13_FALSE='#'
19283 else
19284   BUILD_AP13_TRUE='#'
19285   BUILD_AP13_FALSE=
19286 fi
19287
19288  if test "$WANT_APACHE_20" = "yes"; then
19289   BUILD_AP20_TRUE=
19290   BUILD_AP20_FALSE='#'
19291 else
19292   BUILD_AP20_TRUE='#'
19293   BUILD_AP20_FALSE=
19294 fi
19295
19296  if test "$WANT_APACHE_22" = "yes"; then
19297   BUILD_AP22_TRUE=
19298   BUILD_AP22_FALSE='#'
19299 else
19300   BUILD_AP22_TRUE='#'
19301   BUILD_AP22_FALSE=
19302 fi
19303
19304
19305 # add the apache module to the list of wanted subdirs..
19306 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
19307     WANT_SUBDIRS="$WANT_SUBDIRS apache"
19308 fi
19309
19310
19311 #
19312 # Implement the checks of the ODBC Storage Service
19313 #
19314 # 1) Assume the user wants ODBC; if it's not found then just continue without
19315 # 2) If the user specifically requested odbc, look for it and ERROR if not found
19316 # 3) If the user specifically requested no odbc, don't build it.
19317 #
19318
19319 ac_config_files="$ac_config_files odbc-store/Makefile"
19320
19321
19322 # determine whether we should enable the odbc ccache
19323 # Check whether --enable-odbc was given.
19324 if test "${enable_odbc+set}" = set; then :
19325   enableval=$enable_odbc; odbc_enabled=$enableval
19326 else
19327   odbc_enabled=default
19328 fi
19329
19330
19331 if test "x$odbc_enabled" = "x" ; then
19332    odbc_enabled=yes
19333 fi
19334
19335 # Are we trying to build ODBC?
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ODBC storage service" >&5
19337 $as_echo_n "checking whether to build the ODBC storage service... " >&6; }
19338 if test "$odbc_enabled" = "yes" ; then
19339    build_odbc=yes
19340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19341 $as_echo "yes" >&6; }
19342 elif test "$odbc_enabled" = "default" ; then
19343    build_odbc=yes
19344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if it can be found" >&5
19345 $as_echo "yes, if it can be found" >&6; }
19346 else
19347    build_odbc=no
19348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19350 fi
19351
19352 # If we're trying to build ODBC, try to find the odbc_config program.
19353 if test "$build_odbc" = "yes" ; then
19354    odbc_dir=""
19355
19356 # Check whether --with-odbc was given.
19357 if test "${with_odbc+set}" = set; then :
19358   withval=$with_odbc; if test "$with_odbc" = no ; then
19359                as_fn_error $? "Try running --disable-odbc instead." "$LINENO" 5
19360              elif test "$with_odbc" != yes ; then
19361                odbc_dir="$with_odbc/bin"
19362                if test "$with_odbc" != /usr ; then
19363                  ODBC_CFLAGS="-I$with_odbc/include"
19364                  ODBC_LIBS="-L$with_odbc/lib"
19365                fi
19366              fi
19367 fi
19368
19369
19370    # Extract the first word of "odbc_config", so it can be a program name with args.
19371 set dummy odbc_config; ac_word=$2
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19373 $as_echo_n "checking for $ac_word... " >&6; }
19374 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then :
19375   $as_echo_n "(cached) " >&6
19376 else
19377   case $ODBC_CONFIG in
19378   [\\/]* | ?:[\\/]*)
19379   ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
19380   ;;
19381   *)
19382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19383 for as_dir in $odbc_dir $PATH
19384 do
19385   IFS=$as_save_IFS
19386   test -z "$as_dir" && as_dir=.
19387     for ac_exec_ext in '' $ac_executable_extensions; do
19388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19389     ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19391     break 2
19392   fi
19393 done
19394   done
19395 IFS=$as_save_IFS
19396
19397   test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
19398   ;;
19399 esac
19400 fi
19401 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
19402 if test -n "$ODBC_CONFIG"; then
19403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
19404 $as_echo "$ODBC_CONFIG" >&6; }
19405 else
19406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19407 $as_echo "no" >&6; }
19408 fi
19409
19410
19411    if test "$ODBC_CONFIG" = no ; then
19412       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find odbc_config, will try to guess settings." >&5
19413 $as_echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
19414       ODBC_LIBS="$ODBC_LIBS -lodbc"
19415    else
19416       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
19417       ODBC_LIBS=`$ODBC_CONFIG --libs`
19418    fi
19419
19420    save_CPPFLAGS="$CPPFLAGS"
19421    CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
19422
19423    ac_fn_cxx_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
19424 if test "x$ac_cv_header_sql_h" = x""yes; then :
19425   have_sql_h=yes
19426 else
19427   have_sql_h=no
19428 fi
19429
19430
19431    if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
19432      as_fn_error $? "unable to find ODBC header files" "$LINENO" 5
19433    fi
19434
19435    if test "$have_sql_h" = yes ; then
19436       save_LIBS="$LIBS"
19437       LIBS="$LIBS $ODBC_LIBS"
19438       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link againt ODBC" >&5
19439 $as_echo_n "checking if we can link againt ODBC... " >&6; }
19440       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h.  */
19442 #include <sql.h>
19443          #include <sqlext.h>
19444          #include <stdio.h>
19445 int
19446 main ()
19447 {
19448 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
19449   ;
19450   return 0;
19451 }
19452 _ACEOF
19453 if ac_fn_cxx_try_link "$LINENO"; then :
19454   have_odbc_libs=yes
19455 else
19456   have_odbc_libs=no
19457 fi
19458 rm -f core conftest.err conftest.$ac_objext \
19459     conftest$ac_exeext conftest.$ac_ext
19460       LIBS="$save_LIBS"
19461
19462       if test "$have_odbc_libs" = no ; then
19463          if test "$odbc_enabled" = "yes" ; then
19464             as_fn_error $? "unable to link with ODBC Library" "$LINENO" 5
19465          else
19466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19468          fi
19469       fi
19470    fi
19471
19472    CPPFLAGS="$save_CPPFLAGS"
19473 fi
19474
19475 # if have_odbc_libs=yes then go ahead with building ODBC
19476 if test "$have_odbc_libs" = yes ; then
19477    # this AC_MSG_RESULT is from above!
19478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19479 $as_echo "yes" >&6; }
19480    WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
19481
19482
19483 fi
19484
19485
19486
19487
19488 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
19489   echo "=================================================================="
19490   echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
19491   echo "         compiler than the one used to compile Apache."
19492   echo ""
19493   echo "    Current compiler:      $CC"
19494   echo "   Apache's compiler:      $APXS_CC"
19495   echo ""
19496   echo "This could cause problems."
19497   echo "=================================================================="
19498 fi
19499
19500 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
19501   echo "=================================================================="
19502   echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
19503   echo "         compiler than the one used to compile Apache."
19504   echo ""
19505   echo "    Current compiler:      $CC"
19506   echo "   Apache's compiler:      $APXS2_CC"
19507   echo ""
19508   echo "This could cause problems."
19509   echo "=================================================================="
19510 fi
19511
19512 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
19513   echo "=================================================================="
19514   echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
19515   echo "         compiler than the one used to compile Apache."
19516   echo ""
19517   echo "    Current compiler:      $CC"
19518   echo "   Apache's compiler:      $APXS22_CC"
19519   echo ""
19520   echo "This could cause problems."
19521   echo "=================================================================="
19522 fi
19523
19524 LIBTOOL="$LIBTOOL --silent"
19525
19526 cat >confcache <<\_ACEOF
19527 # This file is a shell script that caches the results of configure
19528 # tests run on this system so they can be shared between configure
19529 # scripts and configure runs, see configure's option --config-cache.
19530 # It is not useful on other systems.  If it contains results you don't
19531 # want to keep, you may remove or edit it.
19532 #
19533 # config.status only pays attention to the cache file if you give it
19534 # the --recheck option to rerun configure.
19535 #
19536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19538 # following values.
19539
19540 _ACEOF
19541
19542 # The following way of writing the cache mishandles newlines in values,
19543 # but we know of no workaround that is simple, portable, and efficient.
19544 # So, we kill variables containing newlines.
19545 # Ultrix sh set writes to stderr and can't be redirected directly,
19546 # and sets the high bit in the cache file unless we assign to the vars.
19547 (
19548   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19549     eval ac_val=\$$ac_var
19550     case $ac_val in #(
19551     *${as_nl}*)
19552       case $ac_var in #(
19553       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19555       esac
19556       case $ac_var in #(
19557       _ | IFS | as_nl) ;; #(
19558       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19559       *) { eval $ac_var=; unset $ac_var;} ;;
19560       esac ;;
19561     esac
19562   done
19563
19564   (set) 2>&1 |
19565     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19566     *${as_nl}ac_space=\ *)
19567       # `set' does not quote correctly, so add quotes: double-quote
19568       # substitution turns \\\\ into \\, and sed turns \\ into \.
19569       sed -n \
19570         "s/'/'\\\\''/g;
19571           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19572       ;; #(
19573     *)
19574       # `set' quotes correctly as required by POSIX, so do not add quotes.
19575       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19576       ;;
19577     esac |
19578     sort
19579 ) |
19580   sed '
19581      /^ac_cv_env_/b end
19582      t clear
19583      :clear
19584      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19585      t end
19586      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19587      :end' >>confcache
19588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19589   if test -w "$cache_file"; then
19590     test "x$cache_file" != "x/dev/null" &&
19591       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19592 $as_echo "$as_me: updating cache $cache_file" >&6;}
19593     cat confcache >$cache_file
19594   else
19595     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19597   fi
19598 fi
19599 rm -f confcache
19600
19601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19602 # Let make expand exec_prefix.
19603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19604
19605 DEFS=-DHAVE_CONFIG_H
19606
19607 ac_libobjs=
19608 ac_ltlibobjs=
19609 U=
19610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19611   # 1. Remove the extension, and $U if already installed.
19612   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19613   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19614   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19615   #    will be set to the directory where LIBOBJS objects are built.
19616   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19617   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19618 done
19619 LIBOBJS=$ac_libobjs
19620
19621 LTLIBOBJS=$ac_ltlibobjs
19622
19623
19624  if test -n "$EXEEXT"; then
19625   am__EXEEXT_TRUE=
19626   am__EXEEXT_FALSE='#'
19627 else
19628   am__EXEEXT_TRUE='#'
19629   am__EXEEXT_FALSE=
19630 fi
19631
19632 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19633   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19635 fi
19636 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19637   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19639 fi
19640 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19641   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19643 fi
19644 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19645   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19647 fi
19648 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19649   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19651 fi
19652 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19653   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19655 fi
19656 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19657   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19659 fi
19660 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19661   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19663 fi
19664 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19665   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19667 fi
19668 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19669   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19671 fi
19672 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19673   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19675 fi
19676 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19677   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19679 fi
19680 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19681   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19683 fi
19684 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19685   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19687 fi
19688 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19689   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19691 fi
19692 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19693   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19695 fi
19696 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19697   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19699 fi
19700 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19701   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19703 fi
19704 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19705   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19707 fi
19708 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19709   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19711 fi
19712 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19713   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19715 fi
19716 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19717   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19719 fi
19720 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19721   as_fn_error $? "conditional \"AMDEP\" was never defined.
19722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19723 fi
19724 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19725   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727 fi
19728 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19729   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 fi
19732 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19733   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 fi
19736 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
19737   as_fn_error $? "conditional \"BUILD_NSAPI\" was never defined.
19738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739 fi
19740 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
19741   as_fn_error $? "conditional \"BUILD_FASTCGI\" was never defined.
19742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743 fi
19744 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
19745   as_fn_error $? "conditional \"BUILD_MEMCACHED\" was never defined.
19746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747 fi
19748 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
19749   as_fn_error $? "conditional \"BUILD_AP13\" was never defined.
19750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751 fi
19752 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
19753   as_fn_error $? "conditional \"BUILD_AP20\" was never defined.
19754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755 fi
19756 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
19757   as_fn_error $? "conditional \"BUILD_AP22\" was never defined.
19758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19759 fi
19760
19761 : ${CONFIG_STATUS=./config.status}
19762 ac_write_fail=0
19763 ac_clean_files_save=$ac_clean_files
19764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19767 as_write_fail=0
19768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19769 #! $SHELL
19770 # Generated by $as_me.
19771 # Run this file to recreate the current configuration.
19772 # Compiler output produced by configure, useful for debugging
19773 # configure, is in config.log if it exists.
19774
19775 debug=false
19776 ac_cs_recheck=false
19777 ac_cs_silent=false
19778
19779 SHELL=\${CONFIG_SHELL-$SHELL}
19780 export SHELL
19781 _ASEOF
19782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19783 ## -------------------- ##
19784 ## M4sh Initialization. ##
19785 ## -------------------- ##
19786
19787 # Be more Bourne compatible
19788 DUALCASE=1; export DUALCASE # for MKS sh
19789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19790   emulate sh
19791   NULLCMD=:
19792   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19793   # is contrary to our usage.  Disable this feature.
19794   alias -g '${1+"$@"}'='"$@"'
19795   setopt NO_GLOB_SUBST
19796 else
19797   case `(set -o) 2>/dev/null` in #(
19798   *posix*) :
19799     set -o posix ;; #(
19800   *) :
19801      ;;
19802 esac
19803 fi
19804
19805
19806 as_nl='
19807 '
19808 export as_nl
19809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19813 # Prefer a ksh shell builtin over an external printf program on Solaris,
19814 # but without wasting forks for bash or zsh.
19815 if test -z "$BASH_VERSION$ZSH_VERSION" \
19816     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19817   as_echo='print -r --'
19818   as_echo_n='print -rn --'
19819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19820   as_echo='printf %s\n'
19821   as_echo_n='printf %s'
19822 else
19823   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19824     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19825     as_echo_n='/usr/ucb/echo -n'
19826   else
19827     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19828     as_echo_n_body='eval
19829       arg=$1;
19830       case $arg in #(
19831       *"$as_nl"*)
19832         expr "X$arg" : "X\\(.*\\)$as_nl";
19833         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19834       esac;
19835       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19836     '
19837     export as_echo_n_body
19838     as_echo_n='sh -c $as_echo_n_body as_echo'
19839   fi
19840   export as_echo_body
19841   as_echo='sh -c $as_echo_body as_echo'
19842 fi
19843
19844 # The user is always right.
19845 if test "${PATH_SEPARATOR+set}" != set; then
19846   PATH_SEPARATOR=:
19847   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19848     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19849       PATH_SEPARATOR=';'
19850   }
19851 fi
19852
19853
19854 # IFS
19855 # We need space, tab and new line, in precisely that order.  Quoting is
19856 # there to prevent editors from complaining about space-tab.
19857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19858 # splitting by setting IFS to empty value.)
19859 IFS=" ""        $as_nl"
19860
19861 # Find who we are.  Look in the path if we contain no directory separator.
19862 case $0 in #((
19863   *[\\/]* ) as_myself=$0 ;;
19864   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19865 for as_dir in $PATH
19866 do
19867   IFS=$as_save_IFS
19868   test -z "$as_dir" && as_dir=.
19869     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19870   done
19871 IFS=$as_save_IFS
19872
19873      ;;
19874 esac
19875 # We did not find ourselves, most probably we were run as `sh COMMAND'
19876 # in which case we are not to be found in the path.
19877 if test "x$as_myself" = x; then
19878   as_myself=$0
19879 fi
19880 if test ! -f "$as_myself"; then
19881   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19882   exit 1
19883 fi
19884
19885 # Unset variables that we do not need and which cause bugs (e.g. in
19886 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19887 # suppresses any "Segmentation fault" message there.  '((' could
19888 # trigger a bug in pdksh 5.2.14.
19889 for as_var in BASH_ENV ENV MAIL MAILPATH
19890 do eval test x\${$as_var+set} = xset \
19891   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19892 done
19893 PS1='$ '
19894 PS2='> '
19895 PS4='+ '
19896
19897 # NLS nuisances.
19898 LC_ALL=C
19899 export LC_ALL
19900 LANGUAGE=C
19901 export LANGUAGE
19902
19903 # CDPATH.
19904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19905
19906
19907 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19908 # ----------------------------------------
19909 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19910 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19911 # script with STATUS, using 1 if that was 0.
19912 as_fn_error ()
19913 {
19914   as_status=$1; test $as_status -eq 0 && as_status=1
19915   if test "$4"; then
19916     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19917     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19918   fi
19919   $as_echo "$as_me: error: $2" >&2
19920   as_fn_exit $as_status
19921 } # as_fn_error
19922
19923
19924 # as_fn_set_status STATUS
19925 # -----------------------
19926 # Set $? to STATUS, without forking.
19927 as_fn_set_status ()
19928 {
19929   return $1
19930 } # as_fn_set_status
19931
19932 # as_fn_exit STATUS
19933 # -----------------
19934 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19935 as_fn_exit ()
19936 {
19937   set +e
19938   as_fn_set_status $1
19939   exit $1
19940 } # as_fn_exit
19941
19942 # as_fn_unset VAR
19943 # ---------------
19944 # Portably unset VAR.
19945 as_fn_unset ()
19946 {
19947   { eval $1=; unset $1;}
19948 }
19949 as_unset=as_fn_unset
19950 # as_fn_append VAR VALUE
19951 # ----------------------
19952 # Append the text in VALUE to the end of the definition contained in VAR. Take
19953 # advantage of any shell optimizations that allow amortized linear growth over
19954 # repeated appends, instead of the typical quadratic growth present in naive
19955 # implementations.
19956 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19957   eval 'as_fn_append ()
19958   {
19959     eval $1+=\$2
19960   }'
19961 else
19962   as_fn_append ()
19963   {
19964     eval $1=\$$1\$2
19965   }
19966 fi # as_fn_append
19967
19968 # as_fn_arith ARG...
19969 # ------------------
19970 # Perform arithmetic evaluation on the ARGs, and store the result in the
19971 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19972 # must be portable across $(()) and expr.
19973 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19974   eval 'as_fn_arith ()
19975   {
19976     as_val=$(( $* ))
19977   }'
19978 else
19979   as_fn_arith ()
19980   {
19981     as_val=`expr "$@" || test $? -eq 1`
19982   }
19983 fi # as_fn_arith
19984
19985
19986 if expr a : '\(a\)' >/dev/null 2>&1 &&
19987    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19988   as_expr=expr
19989 else
19990   as_expr=false
19991 fi
19992
19993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19994   as_basename=basename
19995 else
19996   as_basename=false
19997 fi
19998
19999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20000   as_dirname=dirname
20001 else
20002   as_dirname=false
20003 fi
20004
20005 as_me=`$as_basename -- "$0" ||
20006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20007          X"$0" : 'X\(//\)$' \| \
20008          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20009 $as_echo X/"$0" |
20010     sed '/^.*\/\([^/][^/]*\)\/*$/{
20011             s//\1/
20012             q
20013           }
20014           /^X\/\(\/\/\)$/{
20015             s//\1/
20016             q
20017           }
20018           /^X\/\(\/\).*/{
20019             s//\1/
20020             q
20021           }
20022           s/.*/./; q'`
20023
20024 # Avoid depending upon Character Ranges.
20025 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20026 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20027 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20028 as_cr_digits='0123456789'
20029 as_cr_alnum=$as_cr_Letters$as_cr_digits
20030
20031 ECHO_C= ECHO_N= ECHO_T=
20032 case `echo -n x` in #(((((
20033 -n*)
20034   case `echo 'xy\c'` in
20035   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20036   xy)  ECHO_C='\c';;
20037   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20038        ECHO_T=' ';;
20039   esac;;
20040 *)
20041   ECHO_N='-n';;
20042 esac
20043
20044 rm -f conf$$ conf$$.exe conf$$.file
20045 if test -d conf$$.dir; then
20046   rm -f conf$$.dir/conf$$.file
20047 else
20048   rm -f conf$$.dir
20049   mkdir conf$$.dir 2>/dev/null
20050 fi
20051 if (echo >conf$$.file) 2>/dev/null; then
20052   if ln -s conf$$.file conf$$ 2>/dev/null; then
20053     as_ln_s='ln -s'
20054     # ... but there are two gotchas:
20055     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20056     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20057     # In both cases, we have to default to `cp -p'.
20058     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20059       as_ln_s='cp -p'
20060   elif ln conf$$.file conf$$ 2>/dev/null; then
20061     as_ln_s=ln
20062   else
20063     as_ln_s='cp -p'
20064   fi
20065 else
20066   as_ln_s='cp -p'
20067 fi
20068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20069 rmdir conf$$.dir 2>/dev/null
20070
20071
20072 # as_fn_mkdir_p
20073 # -------------
20074 # Create "$as_dir" as a directory, including parents if necessary.
20075 as_fn_mkdir_p ()
20076 {
20077
20078   case $as_dir in #(
20079   -*) as_dir=./$as_dir;;
20080   esac
20081   test -d "$as_dir" || eval $as_mkdir_p || {
20082     as_dirs=
20083     while :; do
20084       case $as_dir in #(
20085       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20086       *) as_qdir=$as_dir;;
20087       esac
20088       as_dirs="'$as_qdir' $as_dirs"
20089       as_dir=`$as_dirname -- "$as_dir" ||
20090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20091          X"$as_dir" : 'X\(//\)[^/]' \| \
20092          X"$as_dir" : 'X\(//\)$' \| \
20093          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20094 $as_echo X"$as_dir" |
20095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20096             s//\1/
20097             q
20098           }
20099           /^X\(\/\/\)[^/].*/{
20100             s//\1/
20101             q
20102           }
20103           /^X\(\/\/\)$/{
20104             s//\1/
20105             q
20106           }
20107           /^X\(\/\).*/{
20108             s//\1/
20109             q
20110           }
20111           s/.*/./; q'`
20112       test -d "$as_dir" && break
20113     done
20114     test -z "$as_dirs" || eval "mkdir $as_dirs"
20115   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20116
20117
20118 } # as_fn_mkdir_p
20119 if mkdir -p . 2>/dev/null; then
20120   as_mkdir_p='mkdir -p "$as_dir"'
20121 else
20122   test -d ./-p && rmdir ./-p
20123   as_mkdir_p=false
20124 fi
20125
20126 if test -x / >/dev/null 2>&1; then
20127   as_test_x='test -x'
20128 else
20129   if ls -dL / >/dev/null 2>&1; then
20130     as_ls_L_option=L
20131   else
20132     as_ls_L_option=
20133   fi
20134   as_test_x='
20135     eval sh -c '\''
20136       if test -d "$1"; then
20137         test -d "$1/.";
20138       else
20139         case $1 in #(
20140         -*)set "./$1";;
20141         esac;
20142         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20143         ???[sx]*):;;*)false;;esac;fi
20144     '\'' sh
20145   '
20146 fi
20147 as_executable_p=$as_test_x
20148
20149 # Sed expression to map a string onto a valid CPP name.
20150 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20151
20152 # Sed expression to map a string onto a valid variable name.
20153 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20154
20155
20156 exec 6>&1
20157 ## ----------------------------------- ##
20158 ## Main body of $CONFIG_STATUS script. ##
20159 ## ----------------------------------- ##
20160 _ASEOF
20161 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20162
20163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20164 # Save the log message, to keep $0 and so on meaningful, and to
20165 # report actual input values of CONFIG_FILES etc. instead of their
20166 # values after options handling.
20167 ac_log="
20168 This file was extended by shibboleth $as_me 2.4, which was
20169 generated by GNU Autoconf 2.67.  Invocation command line was
20170
20171   CONFIG_FILES    = $CONFIG_FILES
20172   CONFIG_HEADERS  = $CONFIG_HEADERS
20173   CONFIG_LINKS    = $CONFIG_LINKS
20174   CONFIG_COMMANDS = $CONFIG_COMMANDS
20175   $ $0 $@
20176
20177 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20178 "
20179
20180 _ACEOF
20181
20182 case $ac_config_files in *"
20183 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20184 esac
20185
20186 case $ac_config_headers in *"
20187 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20188 esac
20189
20190
20191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20192 # Files that config.status was made for.
20193 config_files="$ac_config_files"
20194 config_headers="$ac_config_headers"
20195 config_commands="$ac_config_commands"
20196
20197 _ACEOF
20198
20199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20200 ac_cs_usage="\
20201 \`$as_me' instantiates files and other configuration actions
20202 from templates according to the current configuration.  Unless the files
20203 and actions are specified as TAGs, all are instantiated by default.
20204
20205 Usage: $0 [OPTION]... [TAG]...
20206
20207   -h, --help       print this help, then exit
20208   -V, --version    print version number and configuration settings, then exit
20209       --config     print configuration, then exit
20210   -q, --quiet, --silent
20211                    do not print progress messages
20212   -d, --debug      don't remove temporary files
20213       --recheck    update $as_me by reconfiguring in the same conditions
20214       --file=FILE[:TEMPLATE]
20215                    instantiate the configuration file FILE
20216       --header=FILE[:TEMPLATE]
20217                    instantiate the configuration header FILE
20218
20219 Configuration files:
20220 $config_files
20221
20222 Configuration headers:
20223 $config_headers
20224
20225 Configuration commands:
20226 $config_commands
20227
20228 Report bugs to <shibboleth-users@internet2.edu>."
20229
20230 _ACEOF
20231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20232 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20233 ac_cs_version="\\
20234 shibboleth config.status 2.4
20235 configured by $0, generated by GNU Autoconf 2.67,
20236   with options \\"\$ac_cs_config\\"
20237
20238 Copyright (C) 2010 Free Software Foundation, Inc.
20239 This config.status script is free software; the Free Software Foundation
20240 gives unlimited permission to copy, distribute and modify it."
20241
20242 ac_pwd='$ac_pwd'
20243 srcdir='$srcdir'
20244 INSTALL='$INSTALL'
20245 MKDIR_P='$MKDIR_P'
20246 AWK='$AWK'
20247 test -n "\$AWK" || AWK=awk
20248 _ACEOF
20249
20250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251 # The default lists apply if the user does not specify any file.
20252 ac_need_defaults=:
20253 while test $# != 0
20254 do
20255   case $1 in
20256   --*=?*)
20257     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20258     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20259     ac_shift=:
20260     ;;
20261   --*=)
20262     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20263     ac_optarg=
20264     ac_shift=:
20265     ;;
20266   *)
20267     ac_option=$1
20268     ac_optarg=$2
20269     ac_shift=shift
20270     ;;
20271   esac
20272
20273   case $ac_option in
20274   # Handling of the options.
20275   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20276     ac_cs_recheck=: ;;
20277   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20278     $as_echo "$ac_cs_version"; exit ;;
20279   --config | --confi | --conf | --con | --co | --c )
20280     $as_echo "$ac_cs_config"; exit ;;
20281   --debug | --debu | --deb | --de | --d | -d )
20282     debug=: ;;
20283   --file | --fil | --fi | --f )
20284     $ac_shift
20285     case $ac_optarg in
20286     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20287     '') as_fn_error $? "missing file argument" ;;
20288     esac
20289     as_fn_append CONFIG_FILES " '$ac_optarg'"
20290     ac_need_defaults=false;;
20291   --header | --heade | --head | --hea )
20292     $ac_shift
20293     case $ac_optarg in
20294     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20295     esac
20296     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20297     ac_need_defaults=false;;
20298   --he | --h)
20299     # Conflict between --help and --header
20300     as_fn_error $? "ambiguous option: \`$1'
20301 Try \`$0 --help' for more information.";;
20302   --help | --hel | -h )
20303     $as_echo "$ac_cs_usage"; exit ;;
20304   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20305   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20306     ac_cs_silent=: ;;
20307
20308   # This is an error.
20309   -*) as_fn_error $? "unrecognized option: \`$1'
20310 Try \`$0 --help' for more information." ;;
20311
20312   *) as_fn_append ac_config_targets " $1"
20313      ac_need_defaults=false ;;
20314
20315   esac
20316   shift
20317 done
20318
20319 ac_configure_extra_args=
20320
20321 if $ac_cs_silent; then
20322   exec 6>/dev/null
20323   ac_configure_extra_args="$ac_configure_extra_args --silent"
20324 fi
20325
20326 _ACEOF
20327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20328 if \$ac_cs_recheck; then
20329   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20330   shift
20331   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20332   CONFIG_SHELL='$SHELL'
20333   export CONFIG_SHELL
20334   exec "\$@"
20335 fi
20336
20337 _ACEOF
20338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20339 exec 5>>config.log
20340 {
20341   echo
20342   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20343 ## Running $as_me. ##
20344 _ASBOX
20345   $as_echo "$ac_log"
20346 } >&5
20347
20348 _ACEOF
20349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20350 #
20351 # INIT-COMMANDS
20352 #
20353 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20354
20355
20356 # The HP-UX ksh and POSIX shell print the target directory to stdout
20357 # if CDPATH is set.
20358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20359
20360 sed_quote_subst='$sed_quote_subst'
20361 double_quote_subst='$double_quote_subst'
20362 delay_variable_subst='$delay_variable_subst'
20363 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20364 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20365 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20366 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20367 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20368 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20369 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20370 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20371 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20372 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20373 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20374 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20375 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20376 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20377 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20378 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20379 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20380 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20381 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20382 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20383 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20384 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20385 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20386 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20387 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20388 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20389 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20390 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20391 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20392 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20393 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20394 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20395 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20396 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20397 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20398 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20399 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20400 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20401 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20402 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20403 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20404 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20405 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20406 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20407 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"`'
20408 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"`'
20409 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20410 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20411 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20412 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20413 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20414 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20415 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20416 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20417 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20418 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20419 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20420 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20421 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20422 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20423 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20424 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20425 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20426 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20427 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20428 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20429 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20430 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20431 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20432 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20433 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20434 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20435 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20436 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20437 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20438 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20439 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20440 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20441 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20442 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20443 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20444 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20445 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20446 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20447 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20448 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20449 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20450 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20451 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20452 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20453 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20454 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20455 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20456 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20457 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20458 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20459 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20460 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20461 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20462 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20463 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20464 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20465 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20466 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20467 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20468 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20469 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20470 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20471 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20472 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20473 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20474 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20475 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20476 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20477 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20478 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20479 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20480 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20481 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20482 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20483 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20484 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20485 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20486 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20487 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20488 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20489 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20490 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20491 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20492 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20493 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20494 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20495 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20496 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20497 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20498 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20499 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20500 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20501 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20502 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20503 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20504 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20505 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20506 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20507 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20508 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20509 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20510 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20511 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20512 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20513 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20514 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20515 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20516 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20517 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20518 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20519 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20520 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20521 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20522 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20523 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20524 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20525 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20526 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20527 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20528 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20529 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20530 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20531 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20532 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20533 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20534
20535 LTCC='$LTCC'
20536 LTCFLAGS='$LTCFLAGS'
20537 compiler='$compiler_DEFAULT'
20538
20539 # Quote evaled strings.
20540 for var in SED \
20541 GREP \
20542 EGREP \
20543 FGREP \
20544 LD \
20545 NM \
20546 LN_S \
20547 lt_SP2NL \
20548 lt_NL2SP \
20549 reload_flag \
20550 OBJDUMP \
20551 deplibs_check_method \
20552 file_magic_cmd \
20553 AR \
20554 AR_FLAGS \
20555 STRIP \
20556 RANLIB \
20557 CC \
20558 CFLAGS \
20559 compiler \
20560 lt_cv_sys_global_symbol_pipe \
20561 lt_cv_sys_global_symbol_to_cdecl \
20562 lt_cv_sys_global_symbol_to_c_name_address \
20563 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20564 SHELL \
20565 ECHO \
20566 lt_prog_compiler_no_builtin_flag \
20567 lt_prog_compiler_wl \
20568 lt_prog_compiler_pic \
20569 lt_prog_compiler_static \
20570 lt_cv_prog_compiler_c_o \
20571 need_locks \
20572 DSYMUTIL \
20573 NMEDIT \
20574 LIPO \
20575 OTOOL \
20576 OTOOL64 \
20577 shrext_cmds \
20578 export_dynamic_flag_spec \
20579 whole_archive_flag_spec \
20580 compiler_needs_object \
20581 with_gnu_ld \
20582 allow_undefined_flag \
20583 no_undefined_flag \
20584 hardcode_libdir_flag_spec \
20585 hardcode_libdir_flag_spec_ld \
20586 hardcode_libdir_separator \
20587 fix_srcfile_path \
20588 exclude_expsyms \
20589 include_expsyms \
20590 file_list_spec \
20591 variables_saved_for_relink \
20592 libname_spec \
20593 library_names_spec \
20594 soname_spec \
20595 finish_eval \
20596 old_striplib \
20597 striplib \
20598 compiler_lib_search_dirs \
20599 predep_objects \
20600 postdep_objects \
20601 predeps \
20602 postdeps \
20603 compiler_lib_search_path \
20604 LD_CXX \
20605 compiler_CXX \
20606 lt_prog_compiler_no_builtin_flag_CXX \
20607 lt_prog_compiler_wl_CXX \
20608 lt_prog_compiler_pic_CXX \
20609 lt_prog_compiler_static_CXX \
20610 lt_cv_prog_compiler_c_o_CXX \
20611 export_dynamic_flag_spec_CXX \
20612 whole_archive_flag_spec_CXX \
20613 compiler_needs_object_CXX \
20614 with_gnu_ld_CXX \
20615 allow_undefined_flag_CXX \
20616 no_undefined_flag_CXX \
20617 hardcode_libdir_flag_spec_CXX \
20618 hardcode_libdir_flag_spec_ld_CXX \
20619 hardcode_libdir_separator_CXX \
20620 fix_srcfile_path_CXX \
20621 exclude_expsyms_CXX \
20622 include_expsyms_CXX \
20623 file_list_spec_CXX \
20624 compiler_lib_search_dirs_CXX \
20625 predep_objects_CXX \
20626 postdep_objects_CXX \
20627 predeps_CXX \
20628 postdeps_CXX \
20629 compiler_lib_search_path_CXX; do
20630     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20631     *[\\\\\\\`\\"\\\$]*)
20632       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20633       ;;
20634     *)
20635       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20636       ;;
20637     esac
20638 done
20639
20640 # Double-quote double-evaled strings.
20641 for var in reload_cmds \
20642 old_postinstall_cmds \
20643 old_postuninstall_cmds \
20644 old_archive_cmds \
20645 extract_expsyms_cmds \
20646 old_archive_from_new_cmds \
20647 old_archive_from_expsyms_cmds \
20648 archive_cmds \
20649 archive_expsym_cmds \
20650 module_cmds \
20651 module_expsym_cmds \
20652 export_symbols_cmds \
20653 prelink_cmds \
20654 postinstall_cmds \
20655 postuninstall_cmds \
20656 finish_cmds \
20657 sys_lib_search_path_spec \
20658 sys_lib_dlsearch_path_spec \
20659 old_archive_cmds_CXX \
20660 old_archive_from_new_cmds_CXX \
20661 old_archive_from_expsyms_cmds_CXX \
20662 archive_cmds_CXX \
20663 archive_expsym_cmds_CXX \
20664 module_cmds_CXX \
20665 module_expsym_cmds_CXX \
20666 export_symbols_cmds_CXX \
20667 prelink_cmds_CXX; do
20668     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20669     *[\\\\\\\`\\"\\\$]*)
20670       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20671       ;;
20672     *)
20673       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20674       ;;
20675     esac
20676 done
20677
20678 # Fix-up fallback echo if it was mangled by the above quoting rules.
20679 case \$lt_ECHO in
20680 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20681   ;;
20682 esac
20683
20684 ac_aux_dir='$ac_aux_dir'
20685 xsi_shell='$xsi_shell'
20686 lt_shell_append='$lt_shell_append'
20687
20688 # See if we are running on zsh, and set the options which allow our
20689 # commands through without removal of \ escapes INIT.
20690 if test -n "\${ZSH_VERSION+set}" ; then
20691    setopt NO_GLOB_SUBST
20692 fi
20693
20694
20695     PACKAGE='$PACKAGE'
20696     VERSION='$VERSION'
20697     TIMESTAMP='$TIMESTAMP'
20698     RM='$RM'
20699     ofile='$ofile'
20700
20701
20702
20703
20704
20705
20706 _ACEOF
20707
20708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20709
20710 # Handling of arguments.
20711 for ac_config_target in $ac_config_targets
20712 do
20713   case $ac_config_target in
20714     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20715     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20716     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20717     "shibboleth.spec") CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
20718     "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
20719     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
20720     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20721     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20722     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20723     "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20724     "shibsp/Makefile") CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
20725     "shibd/Makefile") CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
20726     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20727     "selinux/Makefile") CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
20728     "adfs/Makefile") CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
20729     "nsapi_shib/Makefile") CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
20730     "fastcgi/Makefile") CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
20731     "memcache-store/Makefile") CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
20732     "apache/Makefile") CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
20733     "odbc-store/Makefile") CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
20734
20735   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20736   esac
20737 done
20738
20739
20740 # If the user did not use the arguments to specify the items to instantiate,
20741 # then the envvar interface is used.  Set only those that are not.
20742 # We use the long form for the default assignment because of an extremely
20743 # bizarre bug on SunOS 4.1.3.
20744 if $ac_need_defaults; then
20745   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20746   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20747   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20748 fi
20749
20750 # Have a temporary directory for convenience.  Make it in the build tree
20751 # simply because there is no reason against having it here, and in addition,
20752 # creating and moving files from /tmp can sometimes cause problems.
20753 # Hook for its removal unless debugging.
20754 # Note that there is a small window in which the directory will not be cleaned:
20755 # after its creation but before its name has been assigned to `$tmp'.
20756 $debug ||
20757 {
20758   tmp=
20759   trap 'exit_status=$?
20760   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20761 ' 0
20762   trap 'as_fn_exit 1' 1 2 13 15
20763 }
20764 # Create a (secure) tmp directory for tmp files.
20765
20766 {
20767   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20768   test -n "$tmp" && test -d "$tmp"
20769 }  ||
20770 {
20771   tmp=./conf$$-$RANDOM
20772   (umask 077 && mkdir "$tmp")
20773 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20774
20775 # Set up the scripts for CONFIG_FILES section.
20776 # No need to generate them if there are no CONFIG_FILES.
20777 # This happens for instance with `./config.status config.h'.
20778 if test -n "$CONFIG_FILES"; then
20779
20780
20781 ac_cr=`echo X | tr X '\015'`
20782 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20783 # But we know of no other shell where ac_cr would be empty at this
20784 # point, so we can use a bashism as a fallback.
20785 if test "x$ac_cr" = x; then
20786   eval ac_cr=\$\'\\r\'
20787 fi
20788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20790   ac_cs_awk_cr='\\r'
20791 else
20792   ac_cs_awk_cr=$ac_cr
20793 fi
20794
20795 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20796 _ACEOF
20797
20798
20799 {
20800   echo "cat >conf$$subs.awk <<_ACEOF" &&
20801   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20802   echo "_ACEOF"
20803 } >conf$$subs.sh ||
20804   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20806 ac_delim='%!_!# '
20807 for ac_last_try in false false false false false :; do
20808   . ./conf$$subs.sh ||
20809     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20810
20811   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20812   if test $ac_delim_n = $ac_delim_num; then
20813     break
20814   elif $ac_last_try; then
20815     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20816   else
20817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20818   fi
20819 done
20820 rm -f conf$$subs.sh
20821
20822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20823 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20824 _ACEOF
20825 sed -n '
20826 h
20827 s/^/S["/; s/!.*/"]=/
20828 p
20829 g
20830 s/^[^!]*!//
20831 :repl
20832 t repl
20833 s/'"$ac_delim"'$//
20834 t delim
20835 :nl
20836 h
20837 s/\(.\{148\}\)..*/\1/
20838 t more1
20839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20840 p
20841 n
20842 b repl
20843 :more1
20844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20845 p
20846 g
20847 s/.\{148\}//
20848 t nl
20849 :delim
20850 h
20851 s/\(.\{148\}\)..*/\1/
20852 t more2
20853 s/["\\]/\\&/g; s/^/"/; s/$/"/
20854 p
20855 b
20856 :more2
20857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20858 p
20859 g
20860 s/.\{148\}//
20861 t delim
20862 ' <conf$$subs.awk | sed '
20863 /^[^""]/{
20864   N
20865   s/\n//
20866 }
20867 ' >>$CONFIG_STATUS || ac_write_fail=1
20868 rm -f conf$$subs.awk
20869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20870 _ACAWK
20871 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20872   for (key in S) S_is_set[key] = 1
20873   FS = "\a"
20874
20875 }
20876 {
20877   line = $ 0
20878   nfields = split(line, field, "@")
20879   substed = 0
20880   len = length(field[1])
20881   for (i = 2; i < nfields; i++) {
20882     key = field[i]
20883     keylen = length(key)
20884     if (S_is_set[key]) {
20885       value = S[key]
20886       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20887       len += length(value) + length(field[++i])
20888       substed = 1
20889     } else
20890       len += 1 + keylen
20891   }
20892
20893   print line
20894 }
20895
20896 _ACAWK
20897 _ACEOF
20898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20900   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20901 else
20902   cat
20903 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20904   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20905 _ACEOF
20906
20907 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20908 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20909 # trailing colons and then remove the whole line if VPATH becomes empty
20910 # (actually we leave an empty line to preserve line numbers).
20911 if test "x$srcdir" = x.; then
20912   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20913 h
20914 s///
20915 s/^/:/
20916 s/[      ]*$/:/
20917 s/:\$(srcdir):/:/g
20918 s/:\${srcdir}:/:/g
20919 s/:@srcdir@:/:/g
20920 s/^:*//
20921 s/:*$//
20922 x
20923 s/\(=[   ]*\).*/\1/
20924 G
20925 s/\n//
20926 s/^[^=]*=[       ]*$//
20927 }'
20928 fi
20929
20930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20931 fi # test -n "$CONFIG_FILES"
20932
20933 # Set up the scripts for CONFIG_HEADERS section.
20934 # No need to generate them if there are no CONFIG_HEADERS.
20935 # This happens for instance with `./config.status Makefile'.
20936 if test -n "$CONFIG_HEADERS"; then
20937 cat >"$tmp/defines.awk" <<\_ACAWK ||
20938 BEGIN {
20939 _ACEOF
20940
20941 # Transform confdefs.h into an awk script `defines.awk', embedded as
20942 # here-document in config.status, that substitutes the proper values into
20943 # config.h.in to produce config.h.
20944
20945 # Create a delimiter string that does not exist in confdefs.h, to ease
20946 # handling of long lines.
20947 ac_delim='%!_!# '
20948 for ac_last_try in false false :; do
20949   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20950   if test -z "$ac_t"; then
20951     break
20952   elif $ac_last_try; then
20953     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20954   else
20955     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20956   fi
20957 done
20958
20959 # For the awk script, D is an array of macro values keyed by name,
20960 # likewise P contains macro parameters if any.  Preserve backslash
20961 # newline sequences.
20962
20963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20964 sed -n '
20965 s/.\{148\}/&'"$ac_delim"'/g
20966 t rset
20967 :rset
20968 s/^[     ]*#[    ]*define[       ][      ]*/ /
20969 t def
20970 d
20971 :def
20972 s/\\$//
20973 t bsnl
20974 s/["\\]/\\&/g
20975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20976 D["\1"]=" \3"/p
20977 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20978 d
20979 :bsnl
20980 s/["\\]/\\&/g
20981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20982 D["\1"]=" \3\\\\\\n"\\/p
20983 t cont
20984 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20985 t cont
20986 d
20987 :cont
20988 n
20989 s/.\{148\}/&'"$ac_delim"'/g
20990 t clear
20991 :clear
20992 s/\\$//
20993 t bsnlc
20994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20995 d
20996 :bsnlc
20997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20998 b cont
20999 ' <confdefs.h | sed '
21000 s/'"$ac_delim"'/"\\\
21001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21002
21003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21004   for (key in D) D_is_set[key] = 1
21005   FS = "\a"
21006 }
21007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21008   line = \$ 0
21009   split(line, arg, " ")
21010   if (arg[1] == "#") {
21011     defundef = arg[2]
21012     mac1 = arg[3]
21013   } else {
21014     defundef = substr(arg[1], 2)
21015     mac1 = arg[2]
21016   }
21017   split(mac1, mac2, "(") #)
21018   macro = mac2[1]
21019   prefix = substr(line, 1, index(line, defundef) - 1)
21020   if (D_is_set[macro]) {
21021     # Preserve the white space surrounding the "#".
21022     print prefix "define", macro P[macro] D[macro]
21023     next
21024   } else {
21025     # Replace #undef with comments.  This is necessary, for example,
21026     # in the case of _POSIX_SOURCE, which is predefined and required
21027     # on some systems where configure will not decide to define it.
21028     if (defundef == "undef") {
21029       print "/*", prefix defundef, macro, "*/"
21030       next
21031     }
21032   }
21033 }
21034 { print }
21035 _ACAWK
21036 _ACEOF
21037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21038   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21039 fi # test -n "$CONFIG_HEADERS"
21040
21041
21042 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21043 shift
21044 for ac_tag
21045 do
21046   case $ac_tag in
21047   :[FHLC]) ac_mode=$ac_tag; continue;;
21048   esac
21049   case $ac_mode$ac_tag in
21050   :[FHL]*:*);;
21051   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
21052   :[FH]-) ac_tag=-:-;;
21053   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21054   esac
21055   ac_save_IFS=$IFS
21056   IFS=:
21057   set x $ac_tag
21058   IFS=$ac_save_IFS
21059   shift
21060   ac_file=$1
21061   shift
21062
21063   case $ac_mode in
21064   :L) ac_source=$1;;
21065   :[FH])
21066     ac_file_inputs=
21067     for ac_f
21068     do
21069       case $ac_f in
21070       -) ac_f="$tmp/stdin";;
21071       *) # Look for the file first in the build tree, then in the source tree
21072          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21073          # because $ac_f cannot contain `:'.
21074          test -f "$ac_f" ||
21075            case $ac_f in
21076            [\\/$]*) false;;
21077            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21078            esac ||
21079            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
21080       esac
21081       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21082       as_fn_append ac_file_inputs " '$ac_f'"
21083     done
21084
21085     # Let's still pretend it is `configure' which instantiates (i.e., don't
21086     # use $as_me), people would be surprised to read:
21087     #    /* config.h.  Generated by config.status.  */
21088     configure_input='Generated from '`
21089           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21090         `' by configure.'
21091     if test x"$ac_file" != x-; then
21092       configure_input="$ac_file.  $configure_input"
21093       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21094 $as_echo "$as_me: creating $ac_file" >&6;}
21095     fi
21096     # Neutralize special characters interpreted by sed in replacement strings.
21097     case $configure_input in #(
21098     *\&* | *\|* | *\\* )
21099        ac_sed_conf_input=`$as_echo "$configure_input" |
21100        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21101     *) ac_sed_conf_input=$configure_input;;
21102     esac
21103
21104     case $ac_tag in
21105     *:-:* | *:-) cat >"$tmp/stdin" \
21106       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
21107     esac
21108     ;;
21109   esac
21110
21111   ac_dir=`$as_dirname -- "$ac_file" ||
21112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21113          X"$ac_file" : 'X\(//\)[^/]' \| \
21114          X"$ac_file" : 'X\(//\)$' \| \
21115          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21116 $as_echo X"$ac_file" |
21117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21118             s//\1/
21119             q
21120           }
21121           /^X\(\/\/\)[^/].*/{
21122             s//\1/
21123             q
21124           }
21125           /^X\(\/\/\)$/{
21126             s//\1/
21127             q
21128           }
21129           /^X\(\/\).*/{
21130             s//\1/
21131             q
21132           }
21133           s/.*/./; q'`
21134   as_dir="$ac_dir"; as_fn_mkdir_p
21135   ac_builddir=.
21136
21137 case "$ac_dir" in
21138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21139 *)
21140   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21141   # A ".." for each directory in $ac_dir_suffix.
21142   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21143   case $ac_top_builddir_sub in
21144   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21145   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21146   esac ;;
21147 esac
21148 ac_abs_top_builddir=$ac_pwd
21149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21150 # for backward compatibility:
21151 ac_top_builddir=$ac_top_build_prefix
21152
21153 case $srcdir in
21154   .)  # We are building in place.
21155     ac_srcdir=.
21156     ac_top_srcdir=$ac_top_builddir_sub
21157     ac_abs_top_srcdir=$ac_pwd ;;
21158   [\\/]* | ?:[\\/]* )  # Absolute name.
21159     ac_srcdir=$srcdir$ac_dir_suffix;
21160     ac_top_srcdir=$srcdir
21161     ac_abs_top_srcdir=$srcdir ;;
21162   *) # Relative name.
21163     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21164     ac_top_srcdir=$ac_top_build_prefix$srcdir
21165     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21166 esac
21167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21168
21169
21170   case $ac_mode in
21171   :F)
21172   #
21173   # CONFIG_FILE
21174   #
21175
21176   case $INSTALL in
21177   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21178   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21179   esac
21180   ac_MKDIR_P=$MKDIR_P
21181   case $MKDIR_P in
21182   [\\/$]* | ?:[\\/]* ) ;;
21183   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21184   esac
21185 _ACEOF
21186
21187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21188 # If the template does not know about datarootdir, expand it.
21189 # FIXME: This hack should be removed a few years after 2.60.
21190 ac_datarootdir_hack=; ac_datarootdir_seen=
21191 ac_sed_dataroot='
21192 /datarootdir/ {
21193   p
21194   q
21195 }
21196 /@datadir@/p
21197 /@docdir@/p
21198 /@infodir@/p
21199 /@localedir@/p
21200 /@mandir@/p'
21201 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21202 *datarootdir*) ac_datarootdir_seen=yes;;
21203 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21204   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21205 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21206 _ACEOF
21207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21208   ac_datarootdir_hack='
21209   s&@datadir@&$datadir&g
21210   s&@docdir@&$docdir&g
21211   s&@infodir@&$infodir&g
21212   s&@localedir@&$localedir&g
21213   s&@mandir@&$mandir&g
21214   s&\\\${datarootdir}&$datarootdir&g' ;;
21215 esac
21216 _ACEOF
21217
21218 # Neutralize VPATH when `$srcdir' = `.'.
21219 # Shell code in configure.ac might set extrasub.
21220 # FIXME: do we really want to maintain this feature?
21221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21222 ac_sed_extra="$ac_vpsub
21223 $extrasub
21224 _ACEOF
21225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21226 :t
21227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21228 s|@configure_input@|$ac_sed_conf_input|;t t
21229 s&@top_builddir@&$ac_top_builddir_sub&;t t
21230 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21231 s&@srcdir@&$ac_srcdir&;t t
21232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21233 s&@top_srcdir@&$ac_top_srcdir&;t t
21234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21235 s&@builddir@&$ac_builddir&;t t
21236 s&@abs_builddir@&$ac_abs_builddir&;t t
21237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21238 s&@INSTALL@&$ac_INSTALL&;t t
21239 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21240 $ac_datarootdir_hack
21241 "
21242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21243   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21244
21245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21246   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21247   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21248   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21249 which seems to be undefined.  Please make sure it is defined" >&5
21250 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21251 which seems to be undefined.  Please make sure it is defined" >&2;}
21252
21253   rm -f "$tmp/stdin"
21254   case $ac_file in
21255   -) cat "$tmp/out" && rm -f "$tmp/out";;
21256   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21257   esac \
21258   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21259  ;;
21260   :H)
21261   #
21262   # CONFIG_HEADER
21263   #
21264   if test x"$ac_file" != x-; then
21265     {
21266       $as_echo "/* $configure_input  */" \
21267       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21268     } >"$tmp/config.h" \
21269       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21270     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21271       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21272 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21273     else
21274       rm -f "$ac_file"
21275       mv "$tmp/config.h" "$ac_file" \
21276         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21277     fi
21278   else
21279     $as_echo "/* $configure_input  */" \
21280       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21281       || as_fn_error $? "could not create -" "$LINENO" 5
21282   fi
21283 # Compute "$ac_file"'s index in $config_headers.
21284 _am_arg="$ac_file"
21285 _am_stamp_count=1
21286 for _am_header in $config_headers :; do
21287   case $_am_header in
21288     $_am_arg | $_am_arg:* )
21289       break ;;
21290     * )
21291       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21292   esac
21293 done
21294 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21295 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21296          X"$_am_arg" : 'X\(//\)[^/]' \| \
21297          X"$_am_arg" : 'X\(//\)$' \| \
21298          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21299 $as_echo X"$_am_arg" |
21300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21301             s//\1/
21302             q
21303           }
21304           /^X\(\/\/\)[^/].*/{
21305             s//\1/
21306             q
21307           }
21308           /^X\(\/\/\)$/{
21309             s//\1/
21310             q
21311           }
21312           /^X\(\/\).*/{
21313             s//\1/
21314             q
21315           }
21316           s/.*/./; q'`/stamp-h$_am_stamp_count
21317  ;;
21318
21319   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21320 $as_echo "$as_me: executing $ac_file commands" >&6;}
21321  ;;
21322   esac
21323
21324
21325   case $ac_file$ac_mode in
21326     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21327   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21328   # are listed without --file.  Let's play safe and only enable the eval
21329   # if we detect the quoting.
21330   case $CONFIG_FILES in
21331   *\'*) eval set x "$CONFIG_FILES" ;;
21332   *)   set x $CONFIG_FILES ;;
21333   esac
21334   shift
21335   for mf
21336   do
21337     # Strip MF so we end up with the name of the file.
21338     mf=`echo "$mf" | sed -e 's/:.*$//'`
21339     # Check whether this is an Automake generated Makefile or not.
21340     # We used to match only the files named `Makefile.in', but
21341     # some people rename them; so instead we look at the file content.
21342     # Grep'ing the first line is not enough: some people post-process
21343     # each Makefile.in and add a new line on top of each file to say so.
21344     # Grep'ing the whole file is not good either: AIX grep has a line
21345     # limit of 2048, but all sed's we know have understand at least 4000.
21346     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21347       dirpart=`$as_dirname -- "$mf" ||
21348 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21349          X"$mf" : 'X\(//\)[^/]' \| \
21350          X"$mf" : 'X\(//\)$' \| \
21351          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21352 $as_echo X"$mf" |
21353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21354             s//\1/
21355             q
21356           }
21357           /^X\(\/\/\)[^/].*/{
21358             s//\1/
21359             q
21360           }
21361           /^X\(\/\/\)$/{
21362             s//\1/
21363             q
21364           }
21365           /^X\(\/\).*/{
21366             s//\1/
21367             q
21368           }
21369           s/.*/./; q'`
21370     else
21371       continue
21372     fi
21373     # Extract the definition of DEPDIR, am__include, and am__quote
21374     # from the Makefile without running `make'.
21375     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21376     test -z "$DEPDIR" && continue
21377     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21378     test -z "am__include" && continue
21379     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21380     # When using ansi2knr, U may be empty or an underscore; expand it
21381     U=`sed -n 's/^U = //p' < "$mf"`
21382     # Find all dependency output files, they are included files with
21383     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21384     # simplest approach to changing $(DEPDIR) to its actual value in the
21385     # expansion.
21386     for file in `sed -n "
21387       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21388          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21389       # Make sure the directory exists.
21390       test -f "$dirpart/$file" && continue
21391       fdir=`$as_dirname -- "$file" ||
21392 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21393          X"$file" : 'X\(//\)[^/]' \| \
21394          X"$file" : 'X\(//\)$' \| \
21395          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21396 $as_echo X"$file" |
21397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21398             s//\1/
21399             q
21400           }
21401           /^X\(\/\/\)[^/].*/{
21402             s//\1/
21403             q
21404           }
21405           /^X\(\/\/\)$/{
21406             s//\1/
21407             q
21408           }
21409           /^X\(\/\).*/{
21410             s//\1/
21411             q
21412           }
21413           s/.*/./; q'`
21414       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21415       # echo "creating $dirpart/$file"
21416       echo '# dummy' > "$dirpart/$file"
21417     done
21418   done
21419 }
21420  ;;
21421     "libtool":C)
21422
21423     # See if we are running on zsh, and set the options which allow our
21424     # commands through without removal of \ escapes.
21425     if test -n "${ZSH_VERSION+set}" ; then
21426       setopt NO_GLOB_SUBST
21427     fi
21428
21429     cfgfile="${ofile}T"
21430     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21431     $RM "$cfgfile"
21432
21433     cat <<_LT_EOF >> "$cfgfile"
21434 #! $SHELL
21435
21436 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21437 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21439 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21440 #
21441 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21442 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21443 #   Written by Gordon Matzigkeit, 1996
21444 #
21445 #   This file is part of GNU Libtool.
21446 #
21447 # GNU Libtool is free software; you can redistribute it and/or
21448 # modify it under the terms of the GNU General Public License as
21449 # published by the Free Software Foundation; either version 2 of
21450 # the License, or (at your option) any later version.
21451 #
21452 # As a special exception to the GNU General Public License,
21453 # if you distribute this file as part of a program or library that
21454 # is built using GNU Libtool, you may include this file under the
21455 # same distribution terms that you use for the rest of that program.
21456 #
21457 # GNU Libtool is distributed in the hope that it will be useful,
21458 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21459 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21460 # GNU General Public License for more details.
21461 #
21462 # You should have received a copy of the GNU General Public License
21463 # along with GNU Libtool; see the file COPYING.  If not, a copy
21464 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21465 # obtained by writing to the Free Software Foundation, Inc.,
21466 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21467
21468
21469 # The names of the tagged configurations supported by this script.
21470 available_tags="CXX "
21471
21472 # ### BEGIN LIBTOOL CONFIG
21473
21474 # Whether or not to build static libraries.
21475 build_old_libs=$enable_static
21476
21477 # Which release of libtool.m4 was used?
21478 macro_version=$macro_version
21479 macro_revision=$macro_revision
21480
21481 # Whether or not to build shared libraries.
21482 build_libtool_libs=$enable_shared
21483
21484 # What type of objects to build.
21485 pic_mode=$pic_mode
21486
21487 # Whether or not to optimize for fast installation.
21488 fast_install=$enable_fast_install
21489
21490 # The host system.
21491 host_alias=$host_alias
21492 host=$host
21493 host_os=$host_os
21494
21495 # The build system.
21496 build_alias=$build_alias
21497 build=$build
21498 build_os=$build_os
21499
21500 # A sed program that does not truncate output.
21501 SED=$lt_SED
21502
21503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21504 Xsed="\$SED -e 1s/^X//"
21505
21506 # A grep program that handles long lines.
21507 GREP=$lt_GREP
21508
21509 # An ERE matcher.
21510 EGREP=$lt_EGREP
21511
21512 # A literal string matcher.
21513 FGREP=$lt_FGREP
21514
21515 # A BSD- or MS-compatible name lister.
21516 NM=$lt_NM
21517
21518 # Whether we need soft or hard links.
21519 LN_S=$lt_LN_S
21520
21521 # What is the maximum length of a command?
21522 max_cmd_len=$max_cmd_len
21523
21524 # Object file suffix (normally "o").
21525 objext=$ac_objext
21526
21527 # Executable file suffix (normally "").
21528 exeext=$exeext
21529
21530 # whether the shell understands "unset".
21531 lt_unset=$lt_unset
21532
21533 # turn spaces into newlines.
21534 SP2NL=$lt_lt_SP2NL
21535
21536 # turn newlines into spaces.
21537 NL2SP=$lt_lt_NL2SP
21538
21539 # How to create reloadable object files.
21540 reload_flag=$lt_reload_flag
21541 reload_cmds=$lt_reload_cmds
21542
21543 # An object symbol dumper.
21544 OBJDUMP=$lt_OBJDUMP
21545
21546 # Method to check whether dependent libraries are shared objects.
21547 deplibs_check_method=$lt_deplibs_check_method
21548
21549 # Command to use when deplibs_check_method == "file_magic".
21550 file_magic_cmd=$lt_file_magic_cmd
21551
21552 # The archiver.
21553 AR=$lt_AR
21554 AR_FLAGS=$lt_AR_FLAGS
21555
21556 # A symbol stripping program.
21557 STRIP=$lt_STRIP
21558
21559 # Commands used to install an old-style archive.
21560 RANLIB=$lt_RANLIB
21561 old_postinstall_cmds=$lt_old_postinstall_cmds
21562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21563
21564 # A C compiler.
21565 LTCC=$lt_CC
21566
21567 # LTCC compiler flags.
21568 LTCFLAGS=$lt_CFLAGS
21569
21570 # Take the output of nm and produce a listing of raw symbols and C names.
21571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21572
21573 # Transform the output of nm in a proper C declaration.
21574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21575
21576 # Transform the output of nm in a C name address pair.
21577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21578
21579 # Transform the output of nm in a C name address pair when lib prefix is needed.
21580 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21581
21582 # The name of the directory that contains temporary libtool files.
21583 objdir=$objdir
21584
21585 # Shell to use when invoking shell scripts.
21586 SHELL=$lt_SHELL
21587
21588 # An echo program that does not interpret backslashes.
21589 ECHO=$lt_ECHO
21590
21591 # Used to examine libraries when file_magic_cmd begins with "file".
21592 MAGIC_CMD=$MAGIC_CMD
21593
21594 # Must we lock files when doing compilation?
21595 need_locks=$lt_need_locks
21596
21597 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21598 DSYMUTIL=$lt_DSYMUTIL
21599
21600 # Tool to change global to local symbols on Mac OS X.
21601 NMEDIT=$lt_NMEDIT
21602
21603 # Tool to manipulate fat objects and archives on Mac OS X.
21604 LIPO=$lt_LIPO
21605
21606 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21607 OTOOL=$lt_OTOOL
21608
21609 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21610 OTOOL64=$lt_OTOOL64
21611
21612 # Old archive suffix (normally "a").
21613 libext=$libext
21614
21615 # Shared library suffix (normally ".so").
21616 shrext_cmds=$lt_shrext_cmds
21617
21618 # The commands to extract the exported symbol list from a shared archive.
21619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21620
21621 # Variables whose values should be saved in libtool wrapper scripts and
21622 # restored at link time.
21623 variables_saved_for_relink=$lt_variables_saved_for_relink
21624
21625 # Do we need the "lib" prefix for modules?
21626 need_lib_prefix=$need_lib_prefix
21627
21628 # Do we need a version for libraries?
21629 need_version=$need_version
21630
21631 # Library versioning type.
21632 version_type=$version_type
21633
21634 # Shared library runtime path variable.
21635 runpath_var=$runpath_var
21636
21637 # Shared library path variable.
21638 shlibpath_var=$shlibpath_var
21639
21640 # Is shlibpath searched before the hard-coded library search path?
21641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21642
21643 # Format of library name prefix.
21644 libname_spec=$lt_libname_spec
21645
21646 # List of archive names.  First name is the real one, the rest are links.
21647 # The last name is the one that the linker finds with -lNAME
21648 library_names_spec=$lt_library_names_spec
21649
21650 # The coded name of the library, if different from the real name.
21651 soname_spec=$lt_soname_spec
21652
21653 # Command to use after installation of a shared archive.
21654 postinstall_cmds=$lt_postinstall_cmds
21655
21656 # Command to use after uninstallation of a shared archive.
21657 postuninstall_cmds=$lt_postuninstall_cmds
21658
21659 # Commands used to finish a libtool library installation in a directory.
21660 finish_cmds=$lt_finish_cmds
21661
21662 # As "finish_cmds", except a single script fragment to be evaled but
21663 # not shown.
21664 finish_eval=$lt_finish_eval
21665
21666 # Whether we should hardcode library paths into libraries.
21667 hardcode_into_libs=$hardcode_into_libs
21668
21669 # Compile-time system search path for libraries.
21670 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21671
21672 # Run-time system search path for libraries.
21673 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21674
21675 # Whether dlopen is supported.
21676 dlopen_support=$enable_dlopen
21677
21678 # Whether dlopen of programs is supported.
21679 dlopen_self=$enable_dlopen_self
21680
21681 # Whether dlopen of statically linked programs is supported.
21682 dlopen_self_static=$enable_dlopen_self_static
21683
21684 # Commands to strip libraries.
21685 old_striplib=$lt_old_striplib
21686 striplib=$lt_striplib
21687
21688
21689 # The linker used to build libraries.
21690 LD=$lt_LD
21691
21692 # Commands used to build an old-style archive.
21693 old_archive_cmds=$lt_old_archive_cmds
21694
21695 # A language specific compiler.
21696 CC=$lt_compiler
21697
21698 # Is the compiler the GNU compiler?
21699 with_gcc=$GCC
21700
21701 # Compiler flag to turn off builtin functions.
21702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21703
21704 # How to pass a linker flag through the compiler.
21705 wl=$lt_lt_prog_compiler_wl
21706
21707 # Additional compiler flags for building library objects.
21708 pic_flag=$lt_lt_prog_compiler_pic
21709
21710 # Compiler flag to prevent dynamic linking.
21711 link_static_flag=$lt_lt_prog_compiler_static
21712
21713 # Does compiler simultaneously support -c and -o options?
21714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21715
21716 # Whether or not to add -lc for building shared libraries.
21717 build_libtool_need_lc=$archive_cmds_need_lc
21718
21719 # Whether or not to disallow shared libs when runtime libs are static.
21720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21721
21722 # Compiler flag to allow reflexive dlopens.
21723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21724
21725 # Compiler flag to generate shared objects directly from archives.
21726 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21727
21728 # Whether the compiler copes with passing no objects directly.
21729 compiler_needs_object=$lt_compiler_needs_object
21730
21731 # Create an old-style archive from a shared archive.
21732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21733
21734 # Create a temporary old-style archive to link instead of a shared archive.
21735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21736
21737 # Commands used to build a shared archive.
21738 archive_cmds=$lt_archive_cmds
21739 archive_expsym_cmds=$lt_archive_expsym_cmds
21740
21741 # Commands used to build a loadable module if different from building
21742 # a shared archive.
21743 module_cmds=$lt_module_cmds
21744 module_expsym_cmds=$lt_module_expsym_cmds
21745
21746 # Whether we are building with GNU ld or not.
21747 with_gnu_ld=$lt_with_gnu_ld
21748
21749 # Flag that allows shared libraries with undefined symbols to be built.
21750 allow_undefined_flag=$lt_allow_undefined_flag
21751
21752 # Flag that enforces no undefined symbols.
21753 no_undefined_flag=$lt_no_undefined_flag
21754
21755 # Flag to hardcode \$libdir into a binary during linking.
21756 # This must work even if \$libdir does not exist
21757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21758
21759 # If ld is used when linking, flag to hardcode \$libdir into a binary
21760 # during linking.  This must work even if \$libdir does not exist.
21761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21762
21763 # Whether we need a single "-rpath" flag with a separated argument.
21764 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21765
21766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21767 # DIR into the resulting binary.
21768 hardcode_direct=$hardcode_direct
21769
21770 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21771 # DIR into the resulting binary and the resulting library dependency is
21772 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21773 # library is relocated.
21774 hardcode_direct_absolute=$hardcode_direct_absolute
21775
21776 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21777 # into the resulting binary.
21778 hardcode_minus_L=$hardcode_minus_L
21779
21780 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21781 # into the resulting binary.
21782 hardcode_shlibpath_var=$hardcode_shlibpath_var
21783
21784 # Set to "yes" if building a shared library automatically hardcodes DIR
21785 # into the library and all subsequent libraries and executables linked
21786 # against it.
21787 hardcode_automatic=$hardcode_automatic
21788
21789 # Set to yes if linker adds runtime paths of dependent libraries
21790 # to runtime path list.
21791 inherit_rpath=$inherit_rpath
21792
21793 # Whether libtool must link a program against all its dependency libraries.
21794 link_all_deplibs=$link_all_deplibs
21795
21796 # Fix the shell variable \$srcfile for the compiler.
21797 fix_srcfile_path=$lt_fix_srcfile_path
21798
21799 # Set to "yes" if exported symbols are required.
21800 always_export_symbols=$always_export_symbols
21801
21802 # The commands to list exported symbols.
21803 export_symbols_cmds=$lt_export_symbols_cmds
21804
21805 # Symbols that should not be listed in the preloaded symbols.
21806 exclude_expsyms=$lt_exclude_expsyms
21807
21808 # Symbols that must always be exported.
21809 include_expsyms=$lt_include_expsyms
21810
21811 # Commands necessary for linking programs (against libraries) with templates.
21812 prelink_cmds=$lt_prelink_cmds
21813
21814 # Specify filename containing input files.
21815 file_list_spec=$lt_file_list_spec
21816
21817 # How to hardcode a shared library path into an executable.
21818 hardcode_action=$hardcode_action
21819
21820 # The directories searched by this compiler when creating a shared library.
21821 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21822
21823 # Dependencies to place before and after the objects being linked to
21824 # create a shared library.
21825 predep_objects=$lt_predep_objects
21826 postdep_objects=$lt_postdep_objects
21827 predeps=$lt_predeps
21828 postdeps=$lt_postdeps
21829
21830 # The library search path used internally by the compiler when linking
21831 # a shared library.
21832 compiler_lib_search_path=$lt_compiler_lib_search_path
21833
21834 # ### END LIBTOOL CONFIG
21835
21836 _LT_EOF
21837
21838   case $host_os in
21839   aix3*)
21840     cat <<\_LT_EOF >> "$cfgfile"
21841 # AIX sometimes has problems with the GCC collect2 program.  For some
21842 # reason, if we set the COLLECT_NAMES environment variable, the problems
21843 # vanish in a puff of smoke.
21844 if test "X${COLLECT_NAMES+set}" != Xset; then
21845   COLLECT_NAMES=
21846   export COLLECT_NAMES
21847 fi
21848 _LT_EOF
21849     ;;
21850   esac
21851
21852
21853 ltmain="$ac_aux_dir/ltmain.sh"
21854
21855
21856   # We use sed instead of cat because bash on DJGPP gets confused if
21857   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21858   # text mode, it properly converts lines to CR/LF.  This bash problem
21859   # is reportedly fixed, but why not run on old versions too?
21860   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21861     || (rm -f "$cfgfile"; exit 1)
21862
21863   case $xsi_shell in
21864   yes)
21865     cat << \_LT_EOF >> "$cfgfile"
21866
21867 # func_dirname file append nondir_replacement
21868 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21869 # otherwise set result to NONDIR_REPLACEMENT.
21870 func_dirname ()
21871 {
21872   case ${1} in
21873     */*) func_dirname_result="${1%/*}${2}" ;;
21874     *  ) func_dirname_result="${3}" ;;
21875   esac
21876 }
21877
21878 # func_basename file
21879 func_basename ()
21880 {
21881   func_basename_result="${1##*/}"
21882 }
21883
21884 # func_dirname_and_basename file append nondir_replacement
21885 # perform func_basename and func_dirname in a single function
21886 # call:
21887 #   dirname:  Compute the dirname of FILE.  If nonempty,
21888 #             add APPEND to the result, otherwise set result
21889 #             to NONDIR_REPLACEMENT.
21890 #             value returned in "$func_dirname_result"
21891 #   basename: Compute filename of FILE.
21892 #             value retuned in "$func_basename_result"
21893 # Implementation must be kept synchronized with func_dirname
21894 # and func_basename. For efficiency, we do not delegate to
21895 # those functions but instead duplicate the functionality here.
21896 func_dirname_and_basename ()
21897 {
21898   case ${1} in
21899     */*) func_dirname_result="${1%/*}${2}" ;;
21900     *  ) func_dirname_result="${3}" ;;
21901   esac
21902   func_basename_result="${1##*/}"
21903 }
21904
21905 # func_stripname prefix suffix name
21906 # strip PREFIX and SUFFIX off of NAME.
21907 # PREFIX and SUFFIX must not contain globbing or regex special
21908 # characters, hashes, percent signs, but SUFFIX may contain a leading
21909 # dot (in which case that matches only a dot).
21910 func_stripname ()
21911 {
21912   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21913   # positional parameters, so assign one to ordinary parameter first.
21914   func_stripname_result=${3}
21915   func_stripname_result=${func_stripname_result#"${1}"}
21916   func_stripname_result=${func_stripname_result%"${2}"}
21917 }
21918
21919 # func_opt_split
21920 func_opt_split ()
21921 {
21922   func_opt_split_opt=${1%%=*}
21923   func_opt_split_arg=${1#*=}
21924 }
21925
21926 # func_lo2o object
21927 func_lo2o ()
21928 {
21929   case ${1} in
21930     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21931     *)    func_lo2o_result=${1} ;;
21932   esac
21933 }
21934
21935 # func_xform libobj-or-source
21936 func_xform ()
21937 {
21938   func_xform_result=${1%.*}.lo
21939 }
21940
21941 # func_arith arithmetic-term...
21942 func_arith ()
21943 {
21944   func_arith_result=$(( $* ))
21945 }
21946
21947 # func_len string
21948 # STRING may not start with a hyphen.
21949 func_len ()
21950 {
21951   func_len_result=${#1}
21952 }
21953
21954 _LT_EOF
21955     ;;
21956   *) # Bourne compatible functions.
21957     cat << \_LT_EOF >> "$cfgfile"
21958
21959 # func_dirname file append nondir_replacement
21960 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21961 # otherwise set result to NONDIR_REPLACEMENT.
21962 func_dirname ()
21963 {
21964   # Extract subdirectory from the argument.
21965   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21966   if test "X$func_dirname_result" = "X${1}"; then
21967     func_dirname_result="${3}"
21968   else
21969     func_dirname_result="$func_dirname_result${2}"
21970   fi
21971 }
21972
21973 # func_basename file
21974 func_basename ()
21975 {
21976   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21977 }
21978
21979
21980 # func_stripname prefix suffix name
21981 # strip PREFIX and SUFFIX off of NAME.
21982 # PREFIX and SUFFIX must not contain globbing or regex special
21983 # characters, hashes, percent signs, but SUFFIX may contain a leading
21984 # dot (in which case that matches only a dot).
21985 # func_strip_suffix prefix name
21986 func_stripname ()
21987 {
21988   case ${2} in
21989     .*) func_stripname_result=`$ECHO "X${3}" \
21990            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21991     *)  func_stripname_result=`$ECHO "X${3}" \
21992            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21993   esac
21994 }
21995
21996 # sed scripts:
21997 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21998 my_sed_long_arg='1s/^-[^=]*=//'
21999
22000 # func_opt_split
22001 func_opt_split ()
22002 {
22003   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22004   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22005 }
22006
22007 # func_lo2o object
22008 func_lo2o ()
22009 {
22010   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22011 }
22012
22013 # func_xform libobj-or-source
22014 func_xform ()
22015 {
22016   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22017 }
22018
22019 # func_arith arithmetic-term...
22020 func_arith ()
22021 {
22022   func_arith_result=`expr "$@"`
22023 }
22024
22025 # func_len string
22026 # STRING may not start with a hyphen.
22027 func_len ()
22028 {
22029   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22030 }
22031
22032 _LT_EOF
22033 esac
22034
22035 case $lt_shell_append in
22036   yes)
22037     cat << \_LT_EOF >> "$cfgfile"
22038
22039 # func_append var value
22040 # Append VALUE to the end of shell variable VAR.
22041 func_append ()
22042 {
22043   eval "$1+=\$2"
22044 }
22045 _LT_EOF
22046     ;;
22047   *)
22048     cat << \_LT_EOF >> "$cfgfile"
22049
22050 # func_append var value
22051 # Append VALUE to the end of shell variable VAR.
22052 func_append ()
22053 {
22054   eval "$1=\$$1\$2"
22055 }
22056
22057 _LT_EOF
22058     ;;
22059   esac
22060
22061
22062   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22063     || (rm -f "$cfgfile"; exit 1)
22064
22065   mv -f "$cfgfile" "$ofile" ||
22066     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22067   chmod +x "$ofile"
22068
22069
22070     cat <<_LT_EOF >> "$ofile"
22071
22072 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22073
22074 # The linker used to build libraries.
22075 LD=$lt_LD_CXX
22076
22077 # Commands used to build an old-style archive.
22078 old_archive_cmds=$lt_old_archive_cmds_CXX
22079
22080 # A language specific compiler.
22081 CC=$lt_compiler_CXX
22082
22083 # Is the compiler the GNU compiler?
22084 with_gcc=$GCC_CXX
22085
22086 # Compiler flag to turn off builtin functions.
22087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22088
22089 # How to pass a linker flag through the compiler.
22090 wl=$lt_lt_prog_compiler_wl_CXX
22091
22092 # Additional compiler flags for building library objects.
22093 pic_flag=$lt_lt_prog_compiler_pic_CXX
22094
22095 # Compiler flag to prevent dynamic linking.
22096 link_static_flag=$lt_lt_prog_compiler_static_CXX
22097
22098 # Does compiler simultaneously support -c and -o options?
22099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22100
22101 # Whether or not to add -lc for building shared libraries.
22102 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22103
22104 # Whether or not to disallow shared libs when runtime libs are static.
22105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22106
22107 # Compiler flag to allow reflexive dlopens.
22108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22109
22110 # Compiler flag to generate shared objects directly from archives.
22111 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22112
22113 # Whether the compiler copes with passing no objects directly.
22114 compiler_needs_object=$lt_compiler_needs_object_CXX
22115
22116 # Create an old-style archive from a shared archive.
22117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22118
22119 # Create a temporary old-style archive to link instead of a shared archive.
22120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22121
22122 # Commands used to build a shared archive.
22123 archive_cmds=$lt_archive_cmds_CXX
22124 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22125
22126 # Commands used to build a loadable module if different from building
22127 # a shared archive.
22128 module_cmds=$lt_module_cmds_CXX
22129 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22130
22131 # Whether we are building with GNU ld or not.
22132 with_gnu_ld=$lt_with_gnu_ld_CXX
22133
22134 # Flag that allows shared libraries with undefined symbols to be built.
22135 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22136
22137 # Flag that enforces no undefined symbols.
22138 no_undefined_flag=$lt_no_undefined_flag_CXX
22139
22140 # Flag to hardcode \$libdir into a binary during linking.
22141 # This must work even if \$libdir does not exist
22142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22143
22144 # If ld is used when linking, flag to hardcode \$libdir into a binary
22145 # during linking.  This must work even if \$libdir does not exist.
22146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22147
22148 # Whether we need a single "-rpath" flag with a separated argument.
22149 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22150
22151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22152 # DIR into the resulting binary.
22153 hardcode_direct=$hardcode_direct_CXX
22154
22155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22156 # DIR into the resulting binary and the resulting library dependency is
22157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22158 # library is relocated.
22159 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22160
22161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22162 # into the resulting binary.
22163 hardcode_minus_L=$hardcode_minus_L_CXX
22164
22165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22166 # into the resulting binary.
22167 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22168
22169 # Set to "yes" if building a shared library automatically hardcodes DIR
22170 # into the library and all subsequent libraries and executables linked
22171 # against it.
22172 hardcode_automatic=$hardcode_automatic_CXX
22173
22174 # Set to yes if linker adds runtime paths of dependent libraries
22175 # to runtime path list.
22176 inherit_rpath=$inherit_rpath_CXX
22177
22178 # Whether libtool must link a program against all its dependency libraries.
22179 link_all_deplibs=$link_all_deplibs_CXX
22180
22181 # Fix the shell variable \$srcfile for the compiler.
22182 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22183
22184 # Set to "yes" if exported symbols are required.
22185 always_export_symbols=$always_export_symbols_CXX
22186
22187 # The commands to list exported symbols.
22188 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22189
22190 # Symbols that should not be listed in the preloaded symbols.
22191 exclude_expsyms=$lt_exclude_expsyms_CXX
22192
22193 # Symbols that must always be exported.
22194 include_expsyms=$lt_include_expsyms_CXX
22195
22196 # Commands necessary for linking programs (against libraries) with templates.
22197 prelink_cmds=$lt_prelink_cmds_CXX
22198
22199 # Specify filename containing input files.
22200 file_list_spec=$lt_file_list_spec_CXX
22201
22202 # How to hardcode a shared library path into an executable.
22203 hardcode_action=$hardcode_action_CXX
22204
22205 # The directories searched by this compiler when creating a shared library.
22206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22207
22208 # Dependencies to place before and after the objects being linked to
22209 # create a shared library.
22210 predep_objects=$lt_predep_objects_CXX
22211 postdep_objects=$lt_postdep_objects_CXX
22212 predeps=$lt_predeps_CXX
22213 postdeps=$lt_postdeps_CXX
22214
22215 # The library search path used internally by the compiler when linking
22216 # a shared library.
22217 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22218
22219 # ### END LIBTOOL TAG CONFIG: CXX
22220 _LT_EOF
22221
22222  ;;
22223
22224   esac
22225 done # for ac_tag
22226
22227
22228 as_fn_exit 0
22229 _ACEOF
22230 ac_clean_files=$ac_clean_files_save
22231
22232 test $ac_write_fail = 0 ||
22233   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22234
22235
22236 # configure is writing to config.log, and then calls config.status.
22237 # config.status does its own redirection, appending to config.log.
22238 # Unfortunately, on DOS this fails, as config.log is still kept open
22239 # by configure, so config.status won't be able to write to it; its
22240 # output is simply discarded.  So we exec the FD to /dev/null,
22241 # effectively closing config.log, so it can be properly (re)opened and
22242 # appended to by config.status.  When coming back to configure, we
22243 # need to make the FD available again.
22244 if test "$no_create" != yes; then
22245   ac_cs_success=:
22246   ac_config_status_args=
22247   test "$silent" = yes &&
22248     ac_config_status_args="$ac_config_status_args --quiet"
22249   exec 5>/dev/null
22250   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22251   exec 5>>config.log
22252   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22253   # would make configure fail if this is the last instruction.
22254   $ac_cs_success || as_fn_exit 1
22255 fi
22256 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22257   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22258 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22259 fi
22260