Imported Upstream version 1.4.99.2
[platform/upstream/syncevolution.git] / src / synthesis / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/sysync/engineinterface.cpp"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 COND_STATIC_FALSE
748 COND_STATIC_TRUE
749 COND_XMLPARSE_FALSE
750 COND_XMLPARSE_TRUE
751 XMLPARSE_CFLAGS
752 XMLPARSE_LIBS
753 LIBECAL_LIBS
754 LIBECAL_CFLAGS
755 LIBICAL_LIBS
756 LIBICAL_CFLAGS
757 DLT_LIBS
758 DLT_CFLAGS
759 PCRE_LIBS
760 PCRE_CFLAGS
761 SQLITE3_LIBS
762 SQLITE3_CFLAGS
763 FOOBAR_LIBS
764 FOOBAR_CFLAGS
765 PKG_CONFIG
766 COND_DOXYGEN_FALSE
767 COND_DOXYGEN_TRUE
768 PIC_CXXFLAGS
769 SYNTHESIS_WFLAGS
770 CXXCPP
771 CPP
772 OTOOL64
773 OTOOL
774 LIPO
775 NMEDIT
776 DSYMUTIL
777 lt_ECHO
778 RANLIB
779 AR
780 OBJDUMP
781 LN_S
782 NM
783 ac_ct_DUMPBIN
784 DUMPBIN
785 LD
786 FGREP
787 EGREP
788 GREP
789 SED
790 am__fastdepCC_FALSE
791 am__fastdepCC_TRUE
792 CCDEPMODE
793 ac_ct_CC
794 CFLAGS
795 CC
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 LIBTOOL
805 am__fastdepCXX_FALSE
806 am__fastdepCXX_TRUE
807 CXXDEPMODE
808 AMDEPBACKSLASH
809 AMDEP_FALSE
810 AMDEP_TRUE
811 am__quote
812 am__include
813 DEPDIR
814 OBJEXT
815 EXEEXT
816 ac_ct_CXX
817 CPPFLAGS
818 LDFLAGS
819 CXXFLAGS
820 CXX
821 am__untar
822 am__tar
823 AMTAR
824 am__leading_dot
825 SET_MAKE
826 AWK
827 mkdir_p
828 MKDIR_P
829 INSTALL_STRIP_PROGRAM
830 STRIP
831 install_sh
832 MAKEINFO
833 AUTOHEADER
834 AUTOMAKE
835 AUTOCONF
836 ACLOCAL
837 VERSION
838 PACKAGE
839 CYGPATH_W
840 am__isrc
841 INSTALL_DATA
842 INSTALL_SCRIPT
843 INSTALL_PROGRAM
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files=''
883 ac_user_opts='
884 enable_option_checking
885 enable_dependency_tracking
886 enable_shared
887 enable_static
888 with_pic
889 enable_fast_install
890 with_gnu_ld
891 enable_libtool_lock
892 enable_warnings
893 enable_debug_logs
894 enable_sqlite
895 enable_regex
896 enable_dlt
897 enable_libical
898 enable_evolution_compatibility
899 with_xmltok
900 with_expat
901 '
902       ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CXX
906 CXXFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 CCC
911 CC
912 CFLAGS
913 CPP
914 CXXCPP
915 PKG_CONFIG
916 FOOBAR_CFLAGS
917 FOOBAR_LIBS
918 SQLITE3_CFLAGS
919 SQLITE3_LIBS
920 PCRE_CFLAGS
921 PCRE_LIBS
922 DLT_CFLAGS
923 DLT_LIBS
924 LIBICAL_CFLAGS
925 LIBICAL_LIBS
926 LIBECAL_CFLAGS
927 LIBECAL_LIBS'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *)    ac_optarg=yes ;;
992   esac
993
994   # Accept the important Cygnus configure options, so we can diagnose typos.
995
996   case $ac_dashdash$ac_option in
997   --)
998     ac_dashdash=yes ;;
999
1000   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001     ac_prev=bindir ;;
1002   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003     bindir=$ac_optarg ;;
1004
1005   -build | --build | --buil | --bui | --bu)
1006     ac_prev=build_alias ;;
1007   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008     build_alias=$ac_optarg ;;
1009
1010   -cache-file | --cache-file | --cache-fil | --cache-fi \
1011   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012     ac_prev=cache_file ;;
1013   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015     cache_file=$ac_optarg ;;
1016
1017   --config-cache | -C)
1018     cache_file=config.cache ;;
1019
1020   -datadir | --datadir | --datadi | --datad)
1021     ac_prev=datadir ;;
1022   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023     datadir=$ac_optarg ;;
1024
1025   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026   | --dataroo | --dataro | --datar)
1027     ac_prev=datarootdir ;;
1028   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030     datarootdir=$ac_optarg ;;
1031
1032   -disable-* | --disable-*)
1033     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036       as_fn_error "invalid feature name: $ac_useropt"
1037     ac_useropt_orig=$ac_useropt
1038     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039     case $ac_user_opts in
1040       *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044          ac_unrecognized_sep=', ';;
1045     esac
1046     eval enable_$ac_useropt=no ;;
1047
1048   -docdir | --docdir | --docdi | --doc | --do)
1049     ac_prev=docdir ;;
1050   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051     docdir=$ac_optarg ;;
1052
1053   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054     ac_prev=dvidir ;;
1055   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056     dvidir=$ac_optarg ;;
1057
1058   -enable-* | --enable-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       as_fn_error "invalid feature name: $ac_useropt"
1063     ac_useropt_orig=$ac_useropt
1064     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065     case $ac_user_opts in
1066       *"
1067 "enable_$ac_useropt"
1068 "*) ;;
1069       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070          ac_unrecognized_sep=', ';;
1071     esac
1072     eval enable_$ac_useropt=\$ac_optarg ;;
1073
1074   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076   | --exec | --exe | --ex)
1077     ac_prev=exec_prefix ;;
1078   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080   | --exec=* | --exe=* | --ex=*)
1081     exec_prefix=$ac_optarg ;;
1082
1083   -gas | --gas | --ga | --g)
1084     # Obsolete; use --with-gas.
1085     with_gas=yes ;;
1086
1087   -help | --help | --hel | --he | -h)
1088     ac_init_help=long ;;
1089   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090     ac_init_help=recursive ;;
1091   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092     ac_init_help=short ;;
1093
1094   -host | --host | --hos | --ho)
1095     ac_prev=host_alias ;;
1096   -host=* | --host=* | --hos=* | --ho=*)
1097     host_alias=$ac_optarg ;;
1098
1099   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100     ac_prev=htmldir ;;
1101   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102   | --ht=*)
1103     htmldir=$ac_optarg ;;
1104
1105   -includedir | --includedir | --includedi | --included | --include \
1106   | --includ | --inclu | --incl | --inc)
1107     ac_prev=includedir ;;
1108   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109   | --includ=* | --inclu=* | --incl=* | --inc=*)
1110     includedir=$ac_optarg ;;
1111
1112   -infodir | --infodir | --infodi | --infod | --info | --inf)
1113     ac_prev=infodir ;;
1114   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115     infodir=$ac_optarg ;;
1116
1117   -libdir | --libdir | --libdi | --libd)
1118     ac_prev=libdir ;;
1119   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120     libdir=$ac_optarg ;;
1121
1122   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123   | --libexe | --libex | --libe)
1124     ac_prev=libexecdir ;;
1125   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126   | --libexe=* | --libex=* | --libe=*)
1127     libexecdir=$ac_optarg ;;
1128
1129   -localedir | --localedir | --localedi | --localed | --locale)
1130     ac_prev=localedir ;;
1131   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132     localedir=$ac_optarg ;;
1133
1134   -localstatedir | --localstatedir | --localstatedi | --localstated \
1135   | --localstate | --localstat | --localsta | --localst | --locals)
1136     ac_prev=localstatedir ;;
1137   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139     localstatedir=$ac_optarg ;;
1140
1141   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142     ac_prev=mandir ;;
1143   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144     mandir=$ac_optarg ;;
1145
1146   -nfp | --nfp | --nf)
1147     # Obsolete; use --without-fp.
1148     with_fp=no ;;
1149
1150   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151   | --no-cr | --no-c | -n)
1152     no_create=yes ;;
1153
1154   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156     no_recursion=yes ;;
1157
1158   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160   | --oldin | --oldi | --old | --ol | --o)
1161     ac_prev=oldincludedir ;;
1162   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165     oldincludedir=$ac_optarg ;;
1166
1167   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168     ac_prev=prefix ;;
1169   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170     prefix=$ac_optarg ;;
1171
1172   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173   | --program-pre | --program-pr | --program-p)
1174     ac_prev=program_prefix ;;
1175   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177     program_prefix=$ac_optarg ;;
1178
1179   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180   | --program-suf | --program-su | --program-s)
1181     ac_prev=program_suffix ;;
1182   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184     program_suffix=$ac_optarg ;;
1185
1186   -program-transform-name | --program-transform-name \
1187   | --program-transform-nam | --program-transform-na \
1188   | --program-transform-n | --program-transform- \
1189   | --program-transform | --program-transfor \
1190   | --program-transfo | --program-transf \
1191   | --program-trans | --program-tran \
1192   | --progr-tra | --program-tr | --program-t)
1193     ac_prev=program_transform_name ;;
1194   -program-transform-name=* | --program-transform-name=* \
1195   | --program-transform-nam=* | --program-transform-na=* \
1196   | --program-transform-n=* | --program-transform-=* \
1197   | --program-transform=* | --program-transfor=* \
1198   | --program-transfo=* | --program-transf=* \
1199   | --program-trans=* | --program-tran=* \
1200   | --progr-tra=* | --program-tr=* | --program-t=*)
1201     program_transform_name=$ac_optarg ;;
1202
1203   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204     ac_prev=pdfdir ;;
1205   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206     pdfdir=$ac_optarg ;;
1207
1208   -psdir | --psdir | --psdi | --psd | --ps)
1209     ac_prev=psdir ;;
1210   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211     psdir=$ac_optarg ;;
1212
1213   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214   | -silent | --silent | --silen | --sile | --sil)
1215     silent=yes ;;
1216
1217   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218     ac_prev=sbindir ;;
1219   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220   | --sbi=* | --sb=*)
1221     sbindir=$ac_optarg ;;
1222
1223   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225   | --sharedst | --shareds | --shared | --share | --shar \
1226   | --sha | --sh)
1227     ac_prev=sharedstatedir ;;
1228   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231   | --sha=* | --sh=*)
1232     sharedstatedir=$ac_optarg ;;
1233
1234   -site | --site | --sit)
1235     ac_prev=site ;;
1236   -site=* | --site=* | --sit=*)
1237     site=$ac_optarg ;;
1238
1239   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240     ac_prev=srcdir ;;
1241   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242     srcdir=$ac_optarg ;;
1243
1244   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245   | --syscon | --sysco | --sysc | --sys | --sy)
1246     ac_prev=sysconfdir ;;
1247   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249     sysconfdir=$ac_optarg ;;
1250
1251   -target | --target | --targe | --targ | --tar | --ta | --t)
1252     ac_prev=target_alias ;;
1253   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254     target_alias=$ac_optarg ;;
1255
1256   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257     verbose=yes ;;
1258
1259   -version | --version | --versio | --versi | --vers | -V)
1260     ac_init_version=: ;;
1261
1262   -with-* | --with-*)
1263     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266       as_fn_error "invalid package name: $ac_useropt"
1267     ac_useropt_orig=$ac_useropt
1268     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269     case $ac_user_opts in
1270       *"
1271 "with_$ac_useropt"
1272 "*) ;;
1273       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274          ac_unrecognized_sep=', ';;
1275     esac
1276     eval with_$ac_useropt=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) as_fn_error "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information."
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     case $ac_envvar in #(
1320       '' | [0-9]* | *[!_$as_cr_alnum]* )
1321       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1322     esac
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   as_fn_error "missing argument to $ac_option"
1340 fi
1341
1342 if test -n "$ac_unrecognized_opts"; then
1343   case $enable_option_checking in
1344     no) ;;
1345     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1346     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347   esac
1348 fi
1349
1350 # Check all directory arguments for consistency.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir
1355 do
1356   eval ac_val=\$$ac_var
1357   # Remove trailing slashes.
1358   case $ac_val in
1359     */ )
1360       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361       eval $ac_var=\$ac_val;;
1362   esac
1363   # Be sure to have absolute directory names.
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383     If a cross compiler is detected then cross compile mode will be used." >&2
1384   elif test "x$build_alias" != "x$host_alias"; then
1385     cross_compiling=yes
1386   fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398   as_fn_error "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   as_fn_error "pwd does not report name of working directory"
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405   ac_srcdir_defaulted=yes
1406   # Try the directory containing this script, then the parent directory.
1407   ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409          X"$as_myself" : 'X\(//\)[^/]' \| \
1410          X"$as_myself" : 'X\(//\)$' \| \
1411          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)[^/].*/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\).*/{
1426             s//\1/
1427             q
1428           }
1429           s/.*/./; q'`
1430   srcdir=$ac_confdir
1431   if test ! -r "$srcdir/$ac_unique_file"; then
1432     srcdir=..
1433   fi
1434 else
1435   ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1440 fi
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1444         pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447   srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_env_${ac_var}_value=\$${ac_var}
1458   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466   # Omit some internal or obsolete options to make the list less imposing.
1467   # This message is too long to be a string in the A/UX 3.1 sh.
1468   cat <<_ACEOF
1469 \`configure' configures this package to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE.  See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479   -h, --help              display this help and exit
1480       --help=short        display options specific to this package
1481       --help=recursive    display the short help of all the included packages
1482   -V, --version           display version information and exit
1483   -q, --quiet, --silent   do not print \`checking...' messages
1484       --cache-file=FILE   cache test results in FILE [disabled]
1485   -C, --config-cache      alias for \`--cache-file=config.cache'
1486   -n, --no-create         do not create output files
1487       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1488
1489 Installation directories:
1490   --prefix=PREFIX         install architecture-independent files in PREFIX
1491                           [$ac_default_prefix]
1492   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1493                           [PREFIX]
1494
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503   --bindir=DIR            user executables [EPREFIX/bin]
1504   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1505   --libexecdir=DIR        program executables [EPREFIX/libexec]
1506   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1507   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1508   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1509   --libdir=DIR            object code libraries [EPREFIX/lib]
1510   --includedir=DIR        C header files [PREFIX/include]
1511   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1512   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1513   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1514   --infodir=DIR           info documentation [DATAROOTDIR/info]
1515   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1516   --mandir=DIR            man documentation [DATAROOTDIR/man]
1517   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1518   --htmldir=DIR           html documentation [DOCDIR]
1519   --dvidir=DIR            dvi documentation [DOCDIR]
1520   --pdfdir=DIR            pdf documentation [DOCDIR]
1521   --psdir=DIR             ps documentation [DOCDIR]
1522 _ACEOF
1523
1524   cat <<\_ACEOF
1525
1526 Program names:
1527   --program-prefix=PREFIX            prepend PREFIX to installed program names
1528   --program-suffix=SUFFIX            append SUFFIX to installed program names
1529   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1530
1531 System types:
1532   --build=BUILD     configure for building on BUILD [guessed]
1533   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534 _ACEOF
1535 fi
1536
1537 if test -n "$ac_init_help"; then
1538
1539   cat <<\_ACEOF
1540
1541 Optional Features:
1542   --disable-option-checking  ignore unrecognized --enable/--with options
1543   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545   --disable-dependency-tracking  speeds up one-time build
1546   --enable-dependency-tracking   do not reject slow dependency extractors
1547   --enable-shared[=PKGS]  build shared libraries [default=yes]
1548   --enable-static[=PKGS]  build static libraries [default=yes]
1549   --enable-fast-install[=PKGS]
1550                           optimize for fast installation [default=yes]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552   --enable-warnings=[min|max|fatal|no]
1553                           control compiler pickyness [min]
1554   --enable-debug-logs     For developers: add links to call location to HTML
1555                           log files. Depends on Doxygen (for HTML version of
1556                           source) and g++ (for __PRETTY_FUNCTION__).
1557   --enable-sqlite         enable the sqlite-based ODBC backend, depends on
1558                           libsqlite3, enabled by default
1559   --enable-regex          enable regular expression support in scripts,
1560                           depends on libpcre, enabled by default
1561   --enable-dlt            enable logging mode "dlt" = GENIVI Diagnostic Log
1562                           and Trace
1563   --enable-libical        use libical (if necessary, the one in libecal) to
1564                           improve time zone support, enabled by default if
1565                           necessary libs are found
1566   --enable-evolution-compatibility
1567                           build executables which only call Evolution via
1568                           dlopen/dlsym: this avoids all hard dependencies on
1569                           EDS shared objects, but might lead to crashes when
1570                           their ABI changes
1571
1572 Optional Packages:
1573   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1574   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1575   --with-pic              try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578   --with-xmltok=<builtin|system|path>
1579                           Chooses which xmltok/xmlparse gets used. "builtin" =
1580                           compile code into libsynthesis. "system" = use
1581                           header files and libxmlparse from standard search
1582                           paths. "path" = use header files in "path/include"
1583                           and libxmlparse in "path/lib". Default is system if
1584                           header files are found, otherwise builtin.
1585   --with-expat=<system|path>
1586                           Choose expat as the XML parser library. Replaces
1587                           --with-xmltok. "system" = use header files and
1588                           libexpat from standard search paths. "path" = use
1589                           header files in "path/include", and libexpat in
1590                           "path/lib".
1591
1592 Some influential environment variables:
1593   CXX         C++ compiler command
1594   CXXFLAGS    C++ compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CC          C compiler command
1601   CFLAGS      C compiler flags
1602   CPP         C preprocessor
1603   CXXCPP      C++ preprocessor
1604   PKG_CONFIG  path to pkg-config utility
1605   FOOBAR_CFLAGS
1606               C compiler flags for FOOBAR, overriding pkg-config
1607   FOOBAR_LIBS linker flags for FOOBAR, overriding pkg-config
1608   SQLITE3_CFLAGS
1609               C compiler flags for SQLITE3, overriding pkg-config
1610   SQLITE3_LIBS
1611               linker flags for SQLITE3, overriding pkg-config
1612   PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1613   PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1614   DLT_CFLAGS  C compiler flags for DLT, overriding pkg-config
1615   DLT_LIBS    linker flags for DLT, overriding pkg-config
1616   LIBICAL_CFLAGS
1617               C compiler flags for LIBICAL, overriding pkg-config
1618   LIBICAL_LIBS
1619               linker flags for LIBICAL, overriding pkg-config
1620   LIBECAL_CFLAGS
1621               C compiler flags for LIBECAL, overriding pkg-config
1622   LIBECAL_LIBS
1623               linker flags for LIBECAL, overriding pkg-config
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to the package provider.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634   # If there are subdirs, report their specific --help.
1635   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636     test -d "$ac_dir" ||
1637       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638       continue
1639     ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645   # A ".." for each directory in $ac_dir_suffix.
1646   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647   case $ac_top_builddir_sub in
1648   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650   esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658   .)  # We are building in place.
1659     ac_srcdir=.
1660     ac_top_srcdir=$ac_top_builddir_sub
1661     ac_abs_top_srcdir=$ac_pwd ;;
1662   [\\/]* | ?:[\\/]* )  # Absolute name.
1663     ac_srcdir=$srcdir$ac_dir_suffix;
1664     ac_top_srcdir=$srcdir
1665     ac_abs_top_srcdir=$srcdir ;;
1666   *) # Relative name.
1667     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668     ac_top_srcdir=$ac_top_build_prefix$srcdir
1669     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673     cd "$ac_dir" || { ac_status=$?; continue; }
1674     # Check for guested configure.
1675     if test -f "$ac_srcdir/configure.gnu"; then
1676       echo &&
1677       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678     elif test -f "$ac_srcdir/configure"; then
1679       echo &&
1680       $SHELL "$ac_srcdir/configure" --help=recursive
1681     else
1682       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683     fi || ac_status=$?
1684     cd "$ac_pwd" || { ac_status=$?; break; }
1685   done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690   cat <<\_ACEOF
1691 configure
1692 generated by GNU Autoconf 2.65
1693
1694 Copyright (C) 2009 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697 _ACEOF
1698   exit
1699 fi
1700
1701 ## ------------------------ ##
1702 ## Autoconf initialization. ##
1703 ## ------------------------ ##
1704
1705 # ac_fn_cxx_try_compile LINENO
1706 # ----------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_cxx_try_compile ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext
1712   if { { ac_try="$ac_compile"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_compile") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_cxx_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest.$ac_objext; then :
1731   ac_retval=0
1732 else
1733   $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736         ac_retval=1
1737 fi
1738   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739   as_fn_set_status $ac_retval
1740
1741 } # ac_fn_cxx_try_compile
1742
1743 # ac_fn_c_try_compile LINENO
1744 # --------------------------
1745 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_compile ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   rm -f conftest.$ac_objext
1750   if { { ac_try="$ac_compile"
1751 case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_compile") 2>conftest.err
1758   ac_status=$?
1759   if test -s conftest.err; then
1760     grep -v '^ *+' conftest.err >conftest.er1
1761     cat conftest.er1 >&5
1762     mv -f conftest.er1 conftest.err
1763   fi
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } && {
1766          test -z "$ac_c_werror_flag" ||
1767          test ! -s conftest.err
1768        } && test -s conftest.$ac_objext; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774         ac_retval=1
1775 fi
1776   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777   as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_compile
1780
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   rm -f conftest.$ac_objext conftest$ac_exeext
1788   if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_link") 2>conftest.err
1796   ac_status=$?
1797   if test -s conftest.err; then
1798     grep -v '^ *+' conftest.err >conftest.er1
1799     cat conftest.er1 >&5
1800     mv -f conftest.er1 conftest.err
1801   fi
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; } && {
1804          test -z "$ac_c_werror_flag" ||
1805          test ! -s conftest.err
1806        } && test -s conftest$ac_exeext && {
1807          test "$cross_compiling" = yes ||
1808          $as_test_x conftest$ac_exeext
1809        }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815         ac_retval=1
1816 fi
1817   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819   # interfere with the next link command; also delete a directory that is
1820   # left behind by Apple's compiler.  We do this before executing the actions.
1821   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823   as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists and can be compiled using the include files in
1830 # INCLUDES, setting the cache variable VAR accordingly.
1831 ac_fn_c_check_header_compile ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837   $as_echo_n "(cached) " >&6
1838 else
1839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h.  */
1841 $4
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845   eval "$3=yes"
1846 else
1847   eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 fi
1851 eval ac_res=\$$3
1852                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855
1856 } # ac_fn_c_check_header_compile
1857
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_cpp ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 case "(($ac_try" in
1866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867   *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872   ac_status=$?
1873   if test -s conftest.err; then
1874     grep -v '^ *+' conftest.err >conftest.er1
1875     cat conftest.er1 >&5
1876     mv -f conftest.er1 conftest.err
1877   fi
1878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879   test $ac_status = 0; } >/dev/null && {
1880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881          test ! -s conftest.err
1882        }; then :
1883   ac_retval=0
1884 else
1885   $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888     ac_retval=1
1889 fi
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891   as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_cpp
1894
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1899 ac_fn_c_try_run ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_link") 2>&5
1910   ac_status=$?
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913   { { case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_try") 2>&5
1920   ac_status=$?
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; }; }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: program exited with status $ac_status" >&5
1926        $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929        ac_retval=$ac_status
1930 fi
1931   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933   as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_run
1936
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1941 {
1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946   $as_echo_n "(cached) " >&6
1947 else
1948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1952 #define $2 innocuous_$2
1953
1954 /* System header to define __stub macros and hopefully few prototypes,
1955     which can conflict with char $2 (); below.
1956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957     <limits.h> exists even on freestanding compilers.  */
1958
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1964
1965 #undef $2
1966
1967 /* Override any GCC internal prototype to avoid an error.
1968    Use char because int might match the return type of a GCC
1969    builtin and then its argument prototype would still apply.  */
1970 #ifdef __cplusplus
1971 extern "C"
1972 #endif
1973 char $2 ();
1974 /* The GNU C library defines this for functions which it implements
1975     to always fail with ENOSYS.  Some functions are actually named
1976     something starting with __ and the normal name is an alias.  */
1977 #if defined __stub_$2 || defined __stub___$2
1978 choke me
1979 #endif
1980
1981 int
1982 main ()
1983 {
1984 return $2 ();
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990   eval "$3=yes"
1991 else
1992   eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext \
1995     conftest$ac_exeext conftest.$ac_ext
1996 fi
1997 eval ac_res=\$$3
1998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001
2002 } # ac_fn_c_check_func
2003
2004 # ac_fn_cxx_try_cpp LINENO
2005 # ------------------------
2006 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_cpp ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   if { { ac_try="$ac_cpp conftest.$ac_ext"
2011 case "(($ac_try" in
2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013   *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2018   ac_status=$?
2019   if test -s conftest.err; then
2020     grep -v '^ *+' conftest.err >conftest.er1
2021     cat conftest.er1 >&5
2022     mv -f conftest.er1 conftest.err
2023   fi
2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025   test $ac_status = 0; } >/dev/null && {
2026          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2027          test ! -s conftest.err
2028        }; then :
2029   ac_retval=0
2030 else
2031   $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034     ac_retval=1
2035 fi
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037   as_fn_set_status $ac_retval
2038
2039 } # ac_fn_cxx_try_cpp
2040
2041 # ac_fn_cxx_try_link LINENO
2042 # -------------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_cxx_try_link ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   rm -f conftest.$ac_objext conftest$ac_exeext
2048   if { { ac_try="$ac_link"
2049 case "(($ac_try" in
2050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051   *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055   (eval "$ac_link") 2>conftest.err
2056   ac_status=$?
2057   if test -s conftest.err; then
2058     grep -v '^ *+' conftest.err >conftest.er1
2059     cat conftest.er1 >&5
2060     mv -f conftest.er1 conftest.err
2061   fi
2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; } && {
2064          test -z "$ac_cxx_werror_flag" ||
2065          test ! -s conftest.err
2066        } && test -s conftest$ac_exeext && {
2067          test "$cross_compiling" = yes ||
2068          $as_test_x conftest$ac_exeext
2069        }; then :
2070   ac_retval=0
2071 else
2072   $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075         ac_retval=1
2076 fi
2077   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079   # interfere with the next link command; also delete a directory that is
2080   # left behind by Apple's compiler.  We do this before executing the actions.
2081   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083   as_fn_set_status $ac_retval
2084
2085 } # ac_fn_cxx_try_link
2086
2087 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # -------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_c_check_header_mongrel ()
2093 {
2094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2099   $as_echo_n "(cached) " >&6
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105   # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   ac_header_compiler=yes
2115 else
2116   ac_header_compiler=no
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2121
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_c_try_cpp "$LINENO"; then :
2130   ac_header_preproc=yes
2131 else
2132   ac_header_preproc=no
2133 fi
2134 rm -f conftest.err conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2137
2138 # So?  What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2140   yes:no: )
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145     ;;
2146   no:yes:* )
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157     ;;
2158 esac
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162   $as_echo_n "(cached) " >&6
2163 else
2164   eval "$3=\$ac_header_compiler"
2165 fi
2166 eval ac_res=\$$3
2167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 fi
2170   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171
2172 } # ac_fn_c_check_header_mongrel
2173 cat >config.log <<_ACEOF
2174 This file contains any messages produced by compilers while
2175 running configure, to aid debugging if configure makes a mistake.
2176
2177 It was created by $as_me, which was
2178 generated by GNU Autoconf 2.65.  Invocation command line was
2179
2180   $ $0 $@
2181
2182 _ACEOF
2183 exec 5>>config.log
2184 {
2185 cat <<_ASUNAME
2186 ## --------- ##
2187 ## Platform. ##
2188 ## --------- ##
2189
2190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195
2196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2198
2199 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2200 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2203 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2204 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2205 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2206
2207 _ASUNAME
2208
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214     $as_echo "PATH: $as_dir"
2215   done
2216 IFS=$as_save_IFS
2217
2218 } >&5
2219
2220 cat >&5 <<_ACEOF
2221
2222
2223 ## ----------- ##
2224 ## Core tests. ##
2225 ## ----------- ##
2226
2227 _ACEOF
2228
2229
2230 # Keep a trace of the command line.
2231 # Strip out --no-create and --no-recursion so they do not pile up.
2232 # Strip out --silent because we don't want to record it for future runs.
2233 # Also quote any args containing shell meta-characters.
2234 # Make two passes to allow for proper duplicate-argument suppression.
2235 ac_configure_args=
2236 ac_configure_args0=
2237 ac_configure_args1=
2238 ac_must_keep_next=false
2239 for ac_pass in 1 2
2240 do
2241   for ac_arg
2242   do
2243     case $ac_arg in
2244     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246     | -silent | --silent | --silen | --sile | --sil)
2247       continue ;;
2248     *\'*)
2249       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250     esac
2251     case $ac_pass in
2252     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253     2)
2254       as_fn_append ac_configure_args1 " '$ac_arg'"
2255       if test $ac_must_keep_next = true; then
2256         ac_must_keep_next=false # Got value, back to normal.
2257       else
2258         case $ac_arg in
2259           *=* | --config-cache | -C | -disable-* | --disable-* \
2260           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262           | -with-* | --with-* | -without-* | --without-* | --x)
2263             case "$ac_configure_args0 " in
2264               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265             esac
2266             ;;
2267           -* ) ac_must_keep_next=true ;;
2268         esac
2269       fi
2270       as_fn_append ac_configure_args " '$ac_arg'"
2271       ;;
2272     esac
2273   done
2274 done
2275 { ac_configure_args0=; unset ac_configure_args0;}
2276 { ac_configure_args1=; unset ac_configure_args1;}
2277
2278 # When interrupted or exit'd, cleanup temporary files, and complete
2279 # config.log.  We remove comments because anyway the quotes in there
2280 # would cause problems or look ugly.
2281 # WARNING: Use '\'' to represent an apostrophe within the trap.
2282 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283 trap 'exit_status=$?
2284   # Save into config.log some information that might help in debugging.
2285   {
2286     echo
2287
2288     cat <<\_ASBOX
2289 ## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##
2292 _ASBOX
2293     echo
2294     # The following way of writing the cache mishandles newlines in values,
2295 (
2296   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297     eval ac_val=\$$ac_var
2298     case $ac_val in #(
2299     *${as_nl}*)
2300       case $ac_var in #(
2301       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303       esac
2304       case $ac_var in #(
2305       _ | IFS | as_nl) ;; #(
2306       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307       *) { eval $ac_var=; unset $ac_var;} ;;
2308       esac ;;
2309     esac
2310   done
2311   (set) 2>&1 |
2312     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313     *${as_nl}ac_space=\ *)
2314       sed -n \
2315         "s/'\''/'\''\\\\'\'''\''/g;
2316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317       ;; #(
2318     *)
2319       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320       ;;
2321     esac |
2322     sort
2323 )
2324     echo
2325
2326     cat <<\_ASBOX
2327 ## ----------------- ##
2328 ## Output variables. ##
2329 ## ----------------- ##
2330 _ASBOX
2331     echo
2332     for ac_var in $ac_subst_vars
2333     do
2334       eval ac_val=\$$ac_var
2335       case $ac_val in
2336       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337       esac
2338       $as_echo "$ac_var='\''$ac_val'\''"
2339     done | sort
2340     echo
2341
2342     if test -n "$ac_subst_files"; then
2343       cat <<\_ASBOX
2344 ## ------------------- ##
2345 ## File substitutions. ##
2346 ## ------------------- ##
2347 _ASBOX
2348       echo
2349       for ac_var in $ac_subst_files
2350       do
2351         eval ac_val=\$$ac_var
2352         case $ac_val in
2353         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354         esac
2355         $as_echo "$ac_var='\''$ac_val'\''"
2356       done | sort
2357       echo
2358     fi
2359
2360     if test -s confdefs.h; then
2361       cat <<\_ASBOX
2362 ## ----------- ##
2363 ## confdefs.h. ##
2364 ## ----------- ##
2365 _ASBOX
2366       echo
2367       cat confdefs.h
2368       echo
2369     fi
2370     test "$ac_signal" != 0 &&
2371       $as_echo "$as_me: caught signal $ac_signal"
2372     $as_echo "$as_me: exit $exit_status"
2373   } >&5
2374   rm -f core *.core core.conftest.* &&
2375     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2376     exit $exit_status
2377 ' 0
2378 for ac_signal in 1 2 13 15; do
2379   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 done
2381 ac_signal=0
2382
2383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2384 rm -f -r conftest* confdefs.h
2385
2386 $as_echo "/* confdefs.h */" > confdefs.h
2387
2388 # Predefined preprocessor variables.
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_NAME "$PACKAGE_NAME"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_STRING "$PACKAGE_STRING"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_URL "$PACKAGE_URL"
2412 _ACEOF
2413
2414
2415 # Let the site file select an alternate cache file if it wants to.
2416 # Prefer an explicitly selected file to automatically selected ones.
2417 ac_site_file1=NONE
2418 ac_site_file2=NONE
2419 if test -n "$CONFIG_SITE"; then
2420   ac_site_file1=$CONFIG_SITE
2421 elif test "x$prefix" != xNONE; then
2422   ac_site_file1=$prefix/share/config.site
2423   ac_site_file2=$prefix/etc/config.site
2424 else
2425   ac_site_file1=$ac_default_prefix/share/config.site
2426   ac_site_file2=$ac_default_prefix/etc/config.site
2427 fi
2428 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2429 do
2430   test "x$ac_site_file" = xNONE && continue
2431   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2432     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2434     sed 's/^/| /' "$ac_site_file" >&5
2435     . "$ac_site_file"
2436   fi
2437 done
2438
2439 if test -r "$cache_file"; then
2440   # Some versions of bash will fail to source /dev/null (special files
2441   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2442   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2443     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2444 $as_echo "$as_me: loading cache $cache_file" >&6;}
2445     case $cache_file in
2446       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2447       *)                      . "./$cache_file";;
2448     esac
2449   fi
2450 else
2451   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2452 $as_echo "$as_me: creating cache $cache_file" >&6;}
2453   >$cache_file
2454 fi
2455
2456 # Check that the precious variables saved in the cache have kept the same
2457 # value.
2458 ac_cache_corrupted=false
2459 for ac_var in $ac_precious_vars; do
2460   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2461   eval ac_new_set=\$ac_env_${ac_var}_set
2462   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2463   eval ac_new_val=\$ac_env_${ac_var}_value
2464   case $ac_old_set,$ac_new_set in
2465     set,)
2466       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2467 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2468       ac_cache_corrupted=: ;;
2469     ,set)
2470       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2471 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2472       ac_cache_corrupted=: ;;
2473     ,);;
2474     *)
2475       if test "x$ac_old_val" != "x$ac_new_val"; then
2476         # differences in whitespace do not lead to failure.
2477         ac_old_val_w=`echo x $ac_old_val`
2478         ac_new_val_w=`echo x $ac_new_val`
2479         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2480           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2481 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2482           ac_cache_corrupted=:
2483         else
2484           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2485 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2486           eval $ac_var=\$ac_old_val
2487         fi
2488         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2489 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2490         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2491 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2492       fi;;
2493   esac
2494   # Pass precious variables to config.status.
2495   if test "$ac_new_set" = set; then
2496     case $ac_new_val in
2497     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2498     *) ac_arg=$ac_var=$ac_new_val ;;
2499     esac
2500     case " $ac_configure_args " in
2501       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2502       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503     esac
2504   fi
2505 done
2506 if $ac_cache_corrupted; then
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2510 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2511   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2512 fi
2513 ## -------------------- ##
2514 ## Main body of script. ##
2515 ## -------------------- ##
2516
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524
2525 # four digit upstream version, one additional digit for
2526 # Linux/SyncEvolution specific extensions:
2527 am__api_version='1.11'
2528
2529 ac_aux_dir=
2530 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2531   for ac_t in install-sh install.sh shtool; do
2532     if test -f "$ac_dir/$ac_t"; then
2533       ac_aux_dir=$ac_dir
2534       ac_install_sh="$ac_aux_dir/$ac_t -c"
2535       break 2
2536     fi
2537   done
2538 done
2539 if test -z "$ac_aux_dir"; then
2540   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2541 fi
2542
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2549 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2550
2551
2552 # Find a good install program.  We prefer a C program (faster),
2553 # so one script is as good as another.  But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2558 # AIX /bin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if test "${ac_cv_path_install+set}" = set; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577     # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579   ./ | .// | /[cC]/* | \
2580   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2582   /usr/ucb/* ) ;;
2583   *)
2584     # OSF1 and SCO ODT 3.0 have their own names for install.
2585     # Don't use installbsd from OSF since it installs stuff as root
2586     # by default.
2587     for ac_prog in ginstall scoinst install; do
2588       for ac_exec_ext in '' $ac_executable_extensions; do
2589         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2590           if test $ac_prog = install &&
2591             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592             # AIX install.  It has an incompatible calling convention.
2593             :
2594           elif test $ac_prog = install &&
2595             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596             # program-specific install script used by HP pwplus--don't use.
2597             :
2598           else
2599             rm -rf conftest.one conftest.two conftest.dir
2600             echo one > conftest.one
2601             echo two > conftest.two
2602             mkdir conftest.dir
2603             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2604               test -s conftest.one && test -s conftest.two &&
2605               test -s conftest.dir/conftest.one &&
2606               test -s conftest.dir/conftest.two
2607             then
2608               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2609               break 3
2610             fi
2611           fi
2612         fi
2613       done
2614     done
2615     ;;
2616 esac
2617
2618   done
2619 IFS=$as_save_IFS
2620
2621 rm -rf conftest.one conftest.two conftest.dir
2622
2623 fi
2624   if test "${ac_cv_path_install+set}" = set; then
2625     INSTALL=$ac_cv_path_install
2626   else
2627     # As a last resort, use the slow shell script.  Don't cache a
2628     # value for INSTALL within a source directory, because that will
2629     # break other packages using the cache if that directory is
2630     # removed, or if the value is a relative name.
2631     INSTALL=$ac_install_sh
2632   fi
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2636
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2640
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2642
2643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2646 $as_echo_n "checking whether build environment is sane... " >&6; }
2647 # Just in case
2648 sleep 1
2649 echo timestamp > conftest.file
2650 # Reject unsafe characters in $srcdir or the absolute working directory
2651 # name.  Accept space and tab only in the latter.
2652 am_lf='
2653 '
2654 case `pwd` in
2655   *[\\\"\#\$\&\'\`$am_lf]*)
2656     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2657 esac
2658 case $srcdir in
2659   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2660     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2661 esac
2662
2663 # Do `set' in a subshell so we don't clobber the current shell's
2664 # arguments.  Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2667 # directory).
2668 if (
2669    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2670    if test "$*" = "X"; then
2671       # -L didn't work.
2672       set X `ls -t "$srcdir/configure" conftest.file`
2673    fi
2674    rm -f conftest.file
2675    if test "$*" != "X $srcdir/configure conftest.file" \
2676       && test "$*" != "X conftest.file $srcdir/configure"; then
2677
2678       # If neither matched, then we have a broken ls.  This can happen
2679       # if, for instance, CONFIG_SHELL is bash and it inherits a
2680       # broken ls alias from the environment.  This has actually
2681       # happened.  Such a system could not be considered "sane".
2682       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2684    fi
2685
2686    test "$2" = conftest.file
2687    )
2688 then
2689    # Ok.
2690    :
2691 else
2692    as_fn_error "newly created file is older than distributed files!
2693 Check your system clock" "$LINENO" 5
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 test "$program_prefix" != NONE &&
2698   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was `s,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2706
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2709
2710 if test x"${MISSING+set}" != xset; then
2711   case $am_aux_dir in
2712   *\ * | *\     *)
2713     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2714   *)
2715     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2716   esac
2717 fi
2718 # Use eval to expand $SHELL
2719 if eval "$MISSING --run true"; then
2720   am_missing_run="$MISSING --run "
2721 else
2722   am_missing_run=
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2724 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2725 fi
2726
2727 if test x"${install_sh}" != xset; then
2728   case $am_aux_dir in
2729   *\ * | *\     *)
2730     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2731   *)
2732     install_sh="\${SHELL} $am_aux_dir/install-sh"
2733   esac
2734 fi
2735
2736 # Installed binaries are usually stripped using `strip' when the user
2737 # run `make install-strip'.  However `strip' might not be the right
2738 # tool to use in cross-compilation environments, therefore Automake
2739 # will honor the `STRIP' environment variable to overrule this program.
2740 if test "$cross_compiling" != no; then
2741   if test -n "$ac_tool_prefix"; then
2742   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}strip; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_STRIP+set}" = set; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   if test -n "$STRIP"; then
2750   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764   done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 STRIP=$ac_cv_prog_STRIP
2770 if test -n "$STRIP"; then
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2772 $as_echo "$STRIP" >&6; }
2773 else
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_STRIP"; then
2781   ac_ct_STRIP=$STRIP
2782   # Extract the first word of "strip", so it can be a program name with args.
2783 set dummy strip; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$ac_ct_STRIP"; then
2790   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_STRIP="strip"
2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804   done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2810 if test -n "$ac_ct_STRIP"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2812 $as_echo "$ac_ct_STRIP" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818   if test "x$ac_ct_STRIP" = x; then
2819     STRIP=":"
2820   else
2821     case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827     STRIP=$ac_ct_STRIP
2828   fi
2829 else
2830   STRIP="$ac_cv_prog_STRIP"
2831 fi
2832
2833 fi
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2837 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2838 if test -z "$MKDIR_P"; then
2839   if test "${ac_cv_path_mkdir+set}" = set; then :
2840   $as_echo_n "(cached) " >&6
2841 else
2842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847     for ac_prog in mkdir gmkdir; do
2848          for ac_exec_ext in '' $ac_executable_extensions; do
2849            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2850            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2851              'mkdir (GNU coreutils) '* | \
2852              'mkdir (coreutils) '* | \
2853              'mkdir (fileutils) '4.1*)
2854                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2855                break 3;;
2856            esac
2857          done
2858        done
2859   done
2860 IFS=$as_save_IFS
2861
2862 fi
2863
2864   test -d ./--version && rmdir ./--version
2865   if test "${ac_cv_path_mkdir+set}" = set; then
2866     MKDIR_P="$ac_cv_path_mkdir -p"
2867   else
2868     # As a last resort, use the slow shell script.  Don't cache a
2869     # value for MKDIR_P within a source directory, because that will
2870     # break other packages using the cache if that directory is
2871     # removed, or if the value is a relative name.
2872     MKDIR_P="$ac_install_sh -d"
2873   fi
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2876 $as_echo "$MKDIR_P" >&6; }
2877
2878 mkdir_p="$MKDIR_P"
2879 case $mkdir_p in
2880   [\\/$]* | ?:[\\/]*) ;;
2881   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2882 esac
2883
2884 for ac_prog in gawk mawk nawk awk
2885 do
2886   # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_AWK+set}" = set; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   if test -n "$AWK"; then
2894   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903     ac_cv_prog_AWK="$ac_prog"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 AWK=$ac_cv_prog_AWK
2914 if test -n "$AWK"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2916 $as_echo "$AWK" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923   test -n "$AWK" && break
2924 done
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2927 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2928 set x ${MAKE-make}
2929 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2930 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   cat >conftest.make <<\_ACEOF
2934 SHELL = /bin/sh
2935 all:
2936         @echo '@@@%%%=$(MAKE)=@@@%%%'
2937 _ACEOF
2938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2940   *@@@%%%=?*=@@@%%%*)
2941     eval ac_cv_prog_make_${ac_make}_set=yes;;
2942   *)
2943     eval ac_cv_prog_make_${ac_make}_set=no;;
2944 esac
2945 rm -f conftest.make
2946 fi
2947 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2950   SET_MAKE=
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954   SET_MAKE="MAKE=${MAKE-make}"
2955 fi
2956
2957 rm -rf .tst 2>/dev/null
2958 mkdir .tst 2>/dev/null
2959 if test -d .tst; then
2960   am__leading_dot=.
2961 else
2962   am__leading_dot=_
2963 fi
2964 rmdir .tst 2>/dev/null
2965
2966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2967   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2968   # is not polluted with repeated "-I."
2969   am__isrc=' -I$(srcdir)'
2970   # test to see if srcdir already configured
2971   if test -f $srcdir/config.status; then
2972     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2973   fi
2974 fi
2975
2976 # test whether we have cygpath
2977 if test -z "$CYGPATH_W"; then
2978   if (cygpath --version) >/dev/null 2>/dev/null; then
2979     CYGPATH_W='cygpath -w'
2980   else
2981     CYGPATH_W=echo
2982   fi
2983 fi
2984
2985
2986 # Define the identity of the package.
2987  PACKAGE=synthesis
2988  VERSION=3.4.0.47.2
2989
2990
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE "$PACKAGE"
2993 _ACEOF
2994
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define VERSION "$VERSION"
2998 _ACEOF
2999
3000 # Some tools Automake needs.
3001
3002 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
3016 # We need awk for the "check" target.  The system "awk" is bad on
3017 # some platforms.
3018 # Always define AMTAR for backward compatibility.
3019
3020 AMTAR=${AMTAR-"${am_missing_run}tar"}
3021
3022 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3023
3024
3025
3026
3027
3028 ac_config_headers="$ac_config_headers config.h"
3029
3030 enable_dlopen=yes
3031
3032
3033
3034
3035 ac_ext=cpp
3036 ac_cpp='$CXXCPP $CPPFLAGS'
3037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3040 if test -z "$CXX"; then
3041   if test -n "$CCC"; then
3042     CXX=$CCC
3043   else
3044     if test -n "$ac_tool_prefix"; then
3045   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3046   do
3047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CXX+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$CXX"; then
3055   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CXX=$ac_cv_prog_CXX
3075 if test -n "$CXX"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3077 $as_echo "$CXX" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084     test -n "$CXX" && break
3085   done
3086 fi
3087 if test -z "$CXX"; then
3088   ac_ct_CXX=$CXX
3089   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3090 do
3091   # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -n "$ac_ct_CXX"; then
3099   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108     ac_cv_prog_ac_ct_CXX="$ac_prog"
3109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113   done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3119 if test -n "$ac_ct_CXX"; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3121 $as_echo "$ac_ct_CXX" >&6; }
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128   test -n "$ac_ct_CXX" && break
3129 done
3130
3131   if test "x$ac_ct_CXX" = x; then
3132     CXX="g++"
3133   else
3134     case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CXX=$ac_ct_CXX
3141   fi
3142 fi
3143
3144   fi
3145 fi
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3148 set X $ac_compile
3149 ac_compiler=$2
3150 for ac_option in --version -v -V -qversion; do
3151   { { ac_try="$ac_compiler $ac_option >&5"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159   ac_status=$?
3160   if test -s conftest.err; then
3161     sed '10a\
3162 ... rest of stderr output deleted ...
3163          10q' conftest.err >conftest.er1
3164     cat conftest.er1 >&5
3165   fi
3166   rm -f conftest.er1 conftest.err
3167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168   test $ac_status = 0; }
3169 done
3170
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h.  */
3173
3174 int
3175 main ()
3176 {
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3186 # of exeext.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3188 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194 ac_rmfiles=
3195 for ac_file in $ac_files
3196 do
3197   case $ac_file in
3198     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200   esac
3201 done
3202 rm -f $ac_rmfiles
3203
3204 if { { ac_try="$ac_link_default"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211   (eval "$ac_link_default") 2>&5
3212   ac_status=$?
3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214   test $ac_status = 0; }; then :
3215   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3219 # Autoconf.
3220 for ac_file in $ac_files ''
3221 do
3222   test -f "$ac_file" || continue
3223   case $ac_file in
3224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225         ;;
3226     [ab].out )
3227         # We found the default executable, but exeext='' is most
3228         # certainly right.
3229         break;;
3230     *.* )
3231         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232         then :; else
3233            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234         fi
3235         # We set ac_cv_exeext here because the later test for it is not
3236         # safe: cross compilers may not add the suffix if given an `-o'
3237         # argument, so we may need to know it at that point already.
3238         # Even if this section looks crufty: it has the advantage of
3239         # actually working.
3240         break;;
3241     * )
3242         break;;
3243   esac
3244 done
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247 else
3248   ac_file=''
3249 fi
3250 if test -z "$ac_file"; then :
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 { as_fn_set_status 77
3259 as_fn_error "C++ compiler cannot create executables
3260 See \`config.log' for more details." "$LINENO" 5; }; }
3261 else
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3266 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3268 $as_echo "$ac_file" >&6; }
3269 ac_exeext=$ac_cv_exeext
3270
3271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3274 $as_echo_n "checking for suffix of executables... " >&6; }
3275 if { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_link") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; then :
3286   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3287 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3288 # work properly (i.e., refer to `conftest.exe'), while it won't with
3289 # `rm'.
3290 for ac_file in conftest.exe conftest conftest.*; do
3291   test -f "$ac_file" || continue
3292   case $ac_file in
3293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3294     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295           break;;
3296     * ) break;;
3297   esac
3298 done
3299 else
3300   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error "cannot compute suffix of executables: cannot compile and link
3303 See \`config.log' for more details." "$LINENO" 5; }
3304 fi
3305 rm -f conftest conftest$ac_cv_exeext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3307 $as_echo "$ac_cv_exeext" >&6; }
3308
3309 rm -f conftest.$ac_ext
3310 EXEEXT=$ac_cv_exeext
3311 ac_exeext=$EXEEXT
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h.  */
3314 #include <stdio.h>
3315 int
3316 main ()
3317 {
3318 FILE *f = fopen ("conftest.out", "w");
3319  return ferror (f) || fclose (f) != 0;
3320
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 ac_clean_files="$ac_clean_files conftest.out"
3326 # Check that the compiler produces executables we can run.  If not, either
3327 # the compiler is broken, or we cross compile.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3329 $as_echo_n "checking whether we are cross compiling... " >&6; }
3330 if test "$cross_compiling" != yes; then
3331   { { ac_try="$ac_link"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338   (eval "$ac_link") 2>&5
3339   ac_status=$?
3340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341   test $ac_status = 0; }
3342   if { ac_try='./conftest$ac_cv_exeext'
3343   { { case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349   (eval "$ac_try") 2>&5
3350   ac_status=$?
3351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352   test $ac_status = 0; }; }; then
3353     cross_compiling=no
3354   else
3355     if test "$cross_compiling" = maybe; then
3356         cross_compiling=yes
3357     else
3358         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error "cannot run C++ compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details." "$LINENO" 5; }
3363     fi
3364   fi
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3367 $as_echo "$cross_compiling" >&6; }
3368
3369 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3370 ac_clean_files=$ac_clean_files_save
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372 $as_echo_n "checking for suffix of object files... " >&6; }
3373 if test "${ac_cv_objext+set}" = set; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h.  */
3378
3379 int
3380 main ()
3381 {
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_compile") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; then :
3399   for ac_file in conftest.o conftest.obj conftest.*; do
3400   test -f "$ac_file" || continue;
3401   case $ac_file in
3402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404        break;;
3405   esac
3406 done
3407 else
3408   $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error "cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details." "$LINENO" 5; }
3415 fi
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 $as_echo "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3421 ac_objext=$OBJEXT
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3423 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_cxx_try_compile "$LINENO"; then :
3442   ac_compiler_gnu=yes
3443 else
3444   ac_compiler_gnu=no
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3448
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3451 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3452 if test $ac_compiler_gnu = yes; then
3453   GXX=yes
3454 else
3455   GXX=
3456 fi
3457 ac_test_CXXFLAGS=${CXXFLAGS+set}
3458 ac_save_CXXFLAGS=$CXXFLAGS
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3460 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3461 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3462   $as_echo_n "(cached) " >&6
3463 else
3464   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3465    ac_cxx_werror_flag=yes
3466    ac_cv_prog_cxx_g=no
3467    CXXFLAGS="-g"
3468    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_cxx_try_compile "$LINENO"; then :
3480   ac_cv_prog_cxx_g=yes
3481 else
3482   CXXFLAGS=""
3483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_cxx_try_compile "$LINENO"; then :
3495
3496 else
3497   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3498          CXXFLAGS="-g"
3499          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_cxx_try_compile "$LINENO"; then :
3511   ac_cv_prog_cxx_g=yes
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3521 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3522 if test "$ac_test_CXXFLAGS" = set; then
3523   CXXFLAGS=$ac_save_CXXFLAGS
3524 elif test $ac_cv_prog_cxx_g = yes; then
3525   if test "$GXX" = yes; then
3526     CXXFLAGS="-g -O2"
3527   else
3528     CXXFLAGS="-g"
3529   fi
3530 else
3531   if test "$GXX" = yes; then
3532     CXXFLAGS="-O2"
3533   else
3534     CXXFLAGS=
3535   fi
3536 fi
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 DEPDIR="${am__leading_dot}deps"
3543
3544 ac_config_commands="$ac_config_commands depfiles"
3545
3546
3547 am_make=${MAKE-make}
3548 cat > confinc << 'END'
3549 am__doit:
3550         @echo this is the am__doit target
3551 .PHONY: am__doit
3552 END
3553 # If we don't find an include directive, just comment out the code.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3555 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3556 am__include="#"
3557 am__quote=
3558 _am_result=none
3559 # First try GNU make style include.
3560 echo "include confinc" > confmf
3561 # Ignore all kinds of additional output from `make'.
3562 case `$am_make -s -f confmf 2> /dev/null` in #(
3563 *the\ am__doit\ target*)
3564   am__include=include
3565   am__quote=
3566   _am_result=GNU
3567   ;;
3568 esac
3569 # Now try BSD make style include.
3570 if test "$am__include" = "#"; then
3571    echo '.include "confinc"' > confmf
3572    case `$am_make -s -f confmf 2> /dev/null` in #(
3573    *the\ am__doit\ target*)
3574      am__include=.include
3575      am__quote="\""
3576      _am_result=BSD
3577      ;;
3578    esac
3579 fi
3580
3581
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3583 $as_echo "$_am_result" >&6; }
3584 rm -f confinc confmf
3585
3586 # Check whether --enable-dependency-tracking was given.
3587 if test "${enable_dependency_tracking+set}" = set; then :
3588   enableval=$enable_dependency_tracking;
3589 fi
3590
3591 if test "x$enable_dependency_tracking" != xno; then
3592   am_depcomp="$ac_aux_dir/depcomp"
3593   AMDEPBACKSLASH='\'
3594 fi
3595  if test "x$enable_dependency_tracking" != xno; then
3596   AMDEP_TRUE=
3597   AMDEP_FALSE='#'
3598 else
3599   AMDEP_TRUE='#'
3600   AMDEP_FALSE=
3601 fi
3602
3603
3604
3605 depcc="$CXX"  am_compiler_list=
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3608 $as_echo_n "checking dependency style of $depcc... " >&6; }
3609 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613   # We make a subdir and do the tests there.  Otherwise we can end up
3614   # making bogus files that we don't know about and never remove.  For
3615   # instance it was reported that on HP-UX the gcc test will end up
3616   # making a dummy file named `D' -- because `-MD' means `put the output
3617   # in D'.
3618   mkdir conftest.dir
3619   # Copy depcomp to subdir because otherwise we won't find it if we're
3620   # using a relative directory.
3621   cp "$am_depcomp" conftest.dir
3622   cd conftest.dir
3623   # We will build objects and dependencies in a subdirectory because
3624   # it helps to detect inapplicable dependency modes.  For instance
3625   # both Tru64's cc and ICC support -MD to output dependencies as a
3626   # side effect of compilation, but ICC will put the dependencies in
3627   # the current directory while Tru64 will put them in the object
3628   # directory.
3629   mkdir sub
3630
3631   am_cv_CXX_dependencies_compiler_type=none
3632   if test "$am_compiler_list" = ""; then
3633      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3634   fi
3635   am__universal=false
3636   case " $depcc " in #(
3637      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3638      esac
3639
3640   for depmode in $am_compiler_list; do
3641     # Setup a source with many dependencies, because some compilers
3642     # like to wrap large dependency lists on column 80 (with \), and
3643     # we should not choose a depcomp mode which is confused by this.
3644     #
3645     # We need to recreate these files for each test, as the compiler may
3646     # overwrite some of them when testing with obscure command lines.
3647     # This happens at least with the AIX C compiler.
3648     : > sub/conftest.c
3649     for i in 1 2 3 4 5 6; do
3650       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3651       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3652       # Solaris 8's {/usr,}/bin/sh.
3653       touch sub/conftst$i.h
3654     done
3655     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3656
3657     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3658     # mode.  It turns out that the SunPro C++ compiler does not properly
3659     # handle `-M -o', and we need to detect this.  Also, some Intel
3660     # versions had trouble with output in subdirs
3661     am__obj=sub/conftest.${OBJEXT-o}
3662     am__minus_obj="-o $am__obj"
3663     case $depmode in
3664     gcc)
3665       # This depmode causes a compiler race in universal mode.
3666       test "$am__universal" = false || continue
3667       ;;
3668     nosideeffect)
3669       # after this tag, mechanisms are not by side-effect, so they'll
3670       # only be used when explicitly requested
3671       if test "x$enable_dependency_tracking" = xyes; then
3672         continue
3673       else
3674         break
3675       fi
3676       ;;
3677     msvisualcpp | msvcmsys)
3678       # This compiler won't grok `-c -o', but also, the minuso test has
3679       # not run yet.  These depmodes are late enough in the game, and
3680       # so weak that their functioning should not be impacted.
3681       am__obj=conftest.${OBJEXT-o}
3682       am__minus_obj=
3683       ;;
3684     none) break ;;
3685     esac
3686     if depmode=$depmode \
3687        source=sub/conftest.c object=$am__obj \
3688        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3689        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3690          >/dev/null 2>conftest.err &&
3691        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3692        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3693        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3694        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3695       # icc doesn't choke on unknown options, it will just issue warnings
3696       # or remarks (even with -Werror).  So we grep stderr for any message
3697       # that says an option was ignored or not supported.
3698       # When given -MP, icc 7.0 and 7.1 complain thusly:
3699       #   icc: Command line warning: ignoring option '-M'; no argument required
3700       # The diagnosis changed in icc 8.0:
3701       #   icc: Command line remark: option '-MP' not supported
3702       if (grep 'ignoring option' conftest.err ||
3703           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3704         am_cv_CXX_dependencies_compiler_type=$depmode
3705         break
3706       fi
3707     fi
3708   done
3709
3710   cd ..
3711   rm -rf conftest.dir
3712 else
3713   am_cv_CXX_dependencies_compiler_type=none
3714 fi
3715
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3718 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3720
3721  if
3722   test "x$enable_dependency_tracking" != xno \
3723   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3724   am__fastdepCXX_TRUE=
3725   am__fastdepCXX_FALSE='#'
3726 else
3727   am__fastdepCXX_TRUE='#'
3728   am__fastdepCXX_FALSE=
3729 fi
3730
3731
3732 case `pwd` in
3733   *\ * | *\     *)
3734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3735 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3736 esac
3737
3738
3739
3740 macro_version='2.2.6b'
3741 macro_revision='1.3017'
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755 ltmain="$ac_aux_dir/ltmain.sh"
3756
3757 # Make sure we can run config.sub.
3758 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3759   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3762 $as_echo_n "checking build system type... " >&6; }
3763 if test "${ac_cv_build+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   ac_build_alias=$build_alias
3767 test "x$ac_build_alias" = x &&
3768   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3769 test "x$ac_build_alias" = x &&
3770   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3771 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3772   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3773
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3776 $as_echo "$ac_cv_build" >&6; }
3777 case $ac_cv_build in
3778 *-*-*) ;;
3779 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3780 esac
3781 build=$ac_cv_build
3782 ac_save_IFS=$IFS; IFS='-'
3783 set x $ac_cv_build
3784 shift
3785 build_cpu=$1
3786 build_vendor=$2
3787 shift; shift
3788 # Remember, the first character of IFS is used to create $*,
3789 # except with old shells:
3790 build_os=$*
3791 IFS=$ac_save_IFS
3792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3793
3794
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3796 $as_echo_n "checking host system type... " >&6; }
3797 if test "${ac_cv_host+set}" = set; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   if test "x$host_alias" = x; then
3801   ac_cv_host=$ac_cv_build
3802 else
3803   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3804     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3805 fi
3806
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3809 $as_echo "$ac_cv_host" >&6; }
3810 case $ac_cv_host in
3811 *-*-*) ;;
3812 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3813 esac
3814 host=$ac_cv_host
3815 ac_save_IFS=$IFS; IFS='-'
3816 set x $ac_cv_host
3817 shift
3818 host_cpu=$1
3819 host_vendor=$2
3820 shift; shift
3821 # Remember, the first character of IFS is used to create $*,
3822 # except with old shells:
3823 host_os=$*
3824 IFS=$ac_save_IFS
3825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3826
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 if test -n "$ac_tool_prefix"; then
3834   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_CC+set}" = set; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   if test -n "$CC"; then
3842   ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856   done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3865 else
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870
3871 fi
3872 if test -z "$ac_cv_prog_CC"; then
3873   ac_ct_CC=$CC
3874   # Extract the first word of "gcc", so it can be a program name with args.
3875 set dummy gcc; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   if test -n "$ac_ct_CC"; then
3882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889     for ac_exec_ext in '' $ac_executable_extensions; do
3890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891     ac_cv_prog_ac_ct_CC="gcc"
3892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893     break 2
3894   fi
3895 done
3896   done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902 if test -n "$ac_ct_CC"; then
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904 $as_echo "$ac_ct_CC" >&6; }
3905 else
3906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910   if test "x$ac_ct_CC" = x; then
3911     CC=""
3912   else
3913     case $cross_compiling:$ac_tool_warned in
3914 yes:)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917 ac_tool_warned=yes ;;
3918 esac
3919     CC=$ac_ct_CC
3920   fi
3921 else
3922   CC="$ac_cv_prog_CC"
3923 fi
3924
3925 if test -z "$CC"; then
3926           if test -n "$ac_tool_prefix"; then
3927     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3928 set dummy ${ac_tool_prefix}cc; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_CC+set}" = set; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   if test -n "$CC"; then
3935   ac_cv_prog_CC="$CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940   IFS=$as_save_IFS
3941   test -z "$as_dir" && as_dir=.
3942     for ac_exec_ext in '' $ac_executable_extensions; do
3943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944     ac_cv_prog_CC="${ac_tool_prefix}cc"
3945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946     break 2
3947   fi
3948 done
3949   done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 $as_echo "$CC" >&6; }
3958 else
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 fi
3962
3963
3964   fi
3965 fi
3966 if test -z "$CC"; then
3967   # Extract the first word of "cc", so it can be a program name with args.
3968 set dummy cc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if test "${ac_cv_prog_CC+set}" = set; then :
3972   $as_echo_n "(cached) " >&6
3973 else
3974   if test -n "$CC"; then
3975   ac_cv_prog_CC="$CC" # Let the user override the test.
3976 else
3977   ac_prog_rejected=no
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983     for ac_exec_ext in '' $ac_executable_extensions; do
3984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3986        ac_prog_rejected=yes
3987        continue
3988      fi
3989     ac_cv_prog_CC="cc"
3990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994   done
3995 IFS=$as_save_IFS
3996
3997 if test $ac_prog_rejected = yes; then
3998   # We found a bogon in the path, so make sure we never use it.
3999   set dummy $ac_cv_prog_CC
4000   shift
4001   if test $# != 0; then
4002     # We chose a different compiler from the bogus one.
4003     # However, it has the same basename, so the bogon will be chosen
4004     # first if we set CC to just the basename; use the full file name.
4005     shift
4006     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4007   fi
4008 fi
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 if test -z "$CC"; then
4023   if test -n "$ac_tool_prefix"; then
4024   for ac_prog in cl.exe
4025   do
4026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   if test -n "$CC"; then
4034   ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041     for ac_exec_ext in '' $ac_executable_extensions; do
4042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045     break 2
4046   fi
4047 done
4048   done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063     test -n "$CC" && break
4064   done
4065 fi
4066 if test -z "$CC"; then
4067   ac_ct_CC=$CC
4068   for ac_prog in cl.exe
4069 do
4070   # Extract the first word of "$ac_prog", so it can be a program name with args.
4071 set dummy $ac_prog; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   if test -n "$ac_ct_CC"; then
4078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085     for ac_exec_ext in '' $ac_executable_extensions; do
4086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087     ac_cv_prog_ac_ct_CC="$ac_prog"
4088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089     break 2
4090   fi
4091 done
4092   done
4093 IFS=$as_save_IFS
4094
4095 fi
4096 fi
4097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4098 if test -n "$ac_ct_CC"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4100 $as_echo "$ac_ct_CC" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106
4107   test -n "$ac_ct_CC" && break
4108 done
4109
4110   if test "x$ac_ct_CC" = x; then
4111     CC=""
4112   else
4113     case $cross_compiling:$ac_tool_warned in
4114 yes:)
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117 ac_tool_warned=yes ;;
4118 esac
4119     CC=$ac_ct_CC
4120   fi
4121 fi
4122
4123 fi
4124
4125
4126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error "no acceptable C compiler found in \$PATH
4129 See \`config.log' for more details." "$LINENO" 5; }
4130
4131 # Provide some information about the compiler.
4132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4133 set X $ac_compile
4134 ac_compiler=$2
4135 for ac_option in --version -v -V -qversion; do
4136   { { ac_try="$ac_compiler $ac_option >&5"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142 $as_echo "$ac_try_echo"; } >&5
4143   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4144   ac_status=$?
4145   if test -s conftest.err; then
4146     sed '10a\
4147 ... rest of stderr output deleted ...
4148          10q' conftest.err >conftest.er1
4149     cat conftest.er1 >&5
4150   fi
4151   rm -f conftest.er1 conftest.err
4152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153   test $ac_status = 0; }
4154 done
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4157 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4158 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h.  */
4163
4164 int
4165 main ()
4166 {
4167 #ifndef __GNUC__
4168        choke me
4169 #endif
4170
4171   ;
4172   return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176   ac_compiler_gnu=yes
4177 else
4178   ac_compiler_gnu=no
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4182
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4185 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4186 if test $ac_compiler_gnu = yes; then
4187   GCC=yes
4188 else
4189   GCC=
4190 fi
4191 ac_test_CFLAGS=${CFLAGS+set}
4192 ac_save_CFLAGS=$CFLAGS
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4194 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4195 if test "${ac_cv_prog_cc_g+set}" = set; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   ac_save_c_werror_flag=$ac_c_werror_flag
4199    ac_c_werror_flag=yes
4200    ac_cv_prog_cc_g=no
4201    CFLAGS="-g"
4202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204
4205 int
4206 main ()
4207 {
4208
4209   ;
4210   return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214   ac_cv_prog_cc_g=yes
4215 else
4216   CFLAGS=""
4217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h.  */
4219
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229
4230 else
4231   ac_c_werror_flag=$ac_save_c_werror_flag
4232          CFLAGS="-g"
4233          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235
4236 int
4237 main ()
4238 {
4239
4240   ;
4241   return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245   ac_cv_prog_cc_g=yes
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252    ac_c_werror_flag=$ac_save_c_werror_flag
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4255 $as_echo "$ac_cv_prog_cc_g" >&6; }
4256 if test "$ac_test_CFLAGS" = set; then
4257   CFLAGS=$ac_save_CFLAGS
4258 elif test $ac_cv_prog_cc_g = yes; then
4259   if test "$GCC" = yes; then
4260     CFLAGS="-g -O2"
4261   else
4262     CFLAGS="-g"
4263   fi
4264 else
4265   if test "$GCC" = yes; then
4266     CFLAGS="-O2"
4267   else
4268     CFLAGS=
4269   fi
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4272 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4273 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   ac_cv_prog_cc_c89=no
4277 ac_save_CC=$CC
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280 #include <stdarg.h>
4281 #include <stdio.h>
4282 #include <sys/types.h>
4283 #include <sys/stat.h>
4284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4285 struct buf { int x; };
4286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4287 static char *e (p, i)
4288      char **p;
4289      int i;
4290 {
4291   return p[i];
4292 }
4293 static char *f (char * (*g) (char **, int), char **p, ...)
4294 {
4295   char *s;
4296   va_list v;
4297   va_start (v,p);
4298   s = g (p, va_arg (v,int));
4299   va_end (v);
4300   return s;
4301 }
4302
4303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4304    function prototypes and stuff, but not '\xHH' hex character constants.
4305    These don't provoke an error unfortunately, instead are silently treated
4306    as 'x'.  The following induces an error, until -std is added to get
4307    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4308    array size at least.  It's necessary to write '\x00'==0 to get something
4309    that's true only with -std.  */
4310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4311
4312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4313    inside strings and character constants.  */
4314 #define FOO(x) 'x'
4315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4316
4317 int test (int i, double x);
4318 struct s1 {int (*f) (int a);};
4319 struct s2 {int (*f) (double a);};
4320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4321 int argc;
4322 char **argv;
4323 int
4324 main ()
4325 {
4326 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4332         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4333 do
4334   CC="$ac_save_CC $ac_arg"
4335   if ac_fn_c_try_compile "$LINENO"; then :
4336   ac_cv_prog_cc_c89=$ac_arg
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext
4339   test "x$ac_cv_prog_cc_c89" != "xno" && break
4340 done
4341 rm -f conftest.$ac_ext
4342 CC=$ac_save_CC
4343
4344 fi
4345 # AC_CACHE_VAL
4346 case "x$ac_cv_prog_cc_c89" in
4347   x)
4348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4349 $as_echo "none needed" >&6; } ;;
4350   xno)
4351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352 $as_echo "unsupported" >&6; } ;;
4353   *)
4354     CC="$CC $ac_cv_prog_cc_c89"
4355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4356 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4357 esac
4358 if test "x$ac_cv_prog_cc_c89" != xno; then :
4359
4360 fi
4361
4362 ac_ext=c
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
4368 depcc="$CC"   am_compiler_list=
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4371 $as_echo_n "checking dependency style of $depcc... " >&6; }
4372 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376   # We make a subdir and do the tests there.  Otherwise we can end up
4377   # making bogus files that we don't know about and never remove.  For
4378   # instance it was reported that on HP-UX the gcc test will end up
4379   # making a dummy file named `D' -- because `-MD' means `put the output
4380   # in D'.
4381   mkdir conftest.dir
4382   # Copy depcomp to subdir because otherwise we won't find it if we're
4383   # using a relative directory.
4384   cp "$am_depcomp" conftest.dir
4385   cd conftest.dir
4386   # We will build objects and dependencies in a subdirectory because
4387   # it helps to detect inapplicable dependency modes.  For instance
4388   # both Tru64's cc and ICC support -MD to output dependencies as a
4389   # side effect of compilation, but ICC will put the dependencies in
4390   # the current directory while Tru64 will put them in the object
4391   # directory.
4392   mkdir sub
4393
4394   am_cv_CC_dependencies_compiler_type=none
4395   if test "$am_compiler_list" = ""; then
4396      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4397   fi
4398   am__universal=false
4399   case " $depcc " in #(
4400      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4401      esac
4402
4403   for depmode in $am_compiler_list; do
4404     # Setup a source with many dependencies, because some compilers
4405     # like to wrap large dependency lists on column 80 (with \), and
4406     # we should not choose a depcomp mode which is confused by this.
4407     #
4408     # We need to recreate these files for each test, as the compiler may
4409     # overwrite some of them when testing with obscure command lines.
4410     # This happens at least with the AIX C compiler.
4411     : > sub/conftest.c
4412     for i in 1 2 3 4 5 6; do
4413       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4414       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4415       # Solaris 8's {/usr,}/bin/sh.
4416       touch sub/conftst$i.h
4417     done
4418     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4419
4420     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4421     # mode.  It turns out that the SunPro C++ compiler does not properly
4422     # handle `-M -o', and we need to detect this.  Also, some Intel
4423     # versions had trouble with output in subdirs
4424     am__obj=sub/conftest.${OBJEXT-o}
4425     am__minus_obj="-o $am__obj"
4426     case $depmode in
4427     gcc)
4428       # This depmode causes a compiler race in universal mode.
4429       test "$am__universal" = false || continue
4430       ;;
4431     nosideeffect)
4432       # after this tag, mechanisms are not by side-effect, so they'll
4433       # only be used when explicitly requested
4434       if test "x$enable_dependency_tracking" = xyes; then
4435         continue
4436       else
4437         break
4438       fi
4439       ;;
4440     msvisualcpp | msvcmsys)
4441       # This compiler won't grok `-c -o', but also, the minuso test has
4442       # not run yet.  These depmodes are late enough in the game, and
4443       # so weak that their functioning should not be impacted.
4444       am__obj=conftest.${OBJEXT-o}
4445       am__minus_obj=
4446       ;;
4447     none) break ;;
4448     esac
4449     if depmode=$depmode \
4450        source=sub/conftest.c object=$am__obj \
4451        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4452        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4453          >/dev/null 2>conftest.err &&
4454        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4455        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4456        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4457        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4458       # icc doesn't choke on unknown options, it will just issue warnings
4459       # or remarks (even with -Werror).  So we grep stderr for any message
4460       # that says an option was ignored or not supported.
4461       # When given -MP, icc 7.0 and 7.1 complain thusly:
4462       #   icc: Command line warning: ignoring option '-M'; no argument required
4463       # The diagnosis changed in icc 8.0:
4464       #   icc: Command line remark: option '-MP' not supported
4465       if (grep 'ignoring option' conftest.err ||
4466           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4467         am_cv_CC_dependencies_compiler_type=$depmode
4468         break
4469       fi
4470     fi
4471   done
4472
4473   cd ..
4474   rm -rf conftest.dir
4475 else
4476   am_cv_CC_dependencies_compiler_type=none
4477 fi
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4481 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4482 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4483
4484  if
4485   test "x$enable_dependency_tracking" != xno \
4486   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4487   am__fastdepCC_TRUE=
4488   am__fastdepCC_FALSE='#'
4489 else
4490   am__fastdepCC_TRUE='#'
4491   am__fastdepCC_FALSE=
4492 fi
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497 if test "${ac_cv_path_SED+set}" = set; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501      for ac_i in 1 2 3 4 5 6 7; do
4502        ac_script="$ac_script$as_nl$ac_script"
4503      done
4504      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505      { ac_script=; unset ac_script;}
4506      if test -z "$SED"; then
4507   ac_path_SED_found=false
4508   # Loop through the user's path and test for each of PROGNAME-LIST
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514     for ac_prog in sed gsed; do
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4518 # Check for GNU ac_path_SED and select it if it is found.
4519   # Check for GNU $ac_path_SED
4520 case `"$ac_path_SED" --version 2>&1` in
4521 *GNU*)
4522   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4523 *)
4524   ac_count=0
4525   $as_echo_n 0123456789 >"conftest.in"
4526   while :
4527   do
4528     cat "conftest.in" "conftest.in" >"conftest.tmp"
4529     mv "conftest.tmp" "conftest.in"
4530     cp "conftest.in" "conftest.nl"
4531     $as_echo '' >> "conftest.nl"
4532     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534     as_fn_arith $ac_count + 1 && ac_count=$as_val
4535     if test $ac_count -gt ${ac_path_SED_max-0}; then
4536       # Best one so far, save it but keep looking for a better one
4537       ac_cv_path_SED="$ac_path_SED"
4538       ac_path_SED_max=$ac_count
4539     fi
4540     # 10*(2^10) chars as input seems more than enough
4541     test $ac_count -gt 10 && break
4542   done
4543   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546       $ac_path_SED_found && break 3
4547     done
4548   done
4549   done
4550 IFS=$as_save_IFS
4551   if test -z "$ac_cv_path_SED"; then
4552     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4553   fi
4554 else
4555   ac_cv_path_SED=$SED
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560 $as_echo "$ac_cv_path_SED" >&6; }
4561  SED="$ac_cv_path_SED"
4562   rm -f conftest.sed
4563
4564 test -z "$SED" && SED=sed
4565 Xsed="$SED -e 1s/^X//"
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579 if test "${ac_cv_path_GREP+set}" = set; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   if test -z "$GREP"; then
4583   ac_path_GREP_found=false
4584   # Loop through the user's path and test for each of PROGNAME-LIST
4585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590     for ac_prog in grep ggrep; do
4591     for ac_exec_ext in '' $ac_executable_extensions; do
4592       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4594 # Check for GNU ac_path_GREP and select it if it is found.
4595   # Check for GNU $ac_path_GREP
4596 case `"$ac_path_GREP" --version 2>&1` in
4597 *GNU*)
4598   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 *)
4600   ac_count=0
4601   $as_echo_n 0123456789 >"conftest.in"
4602   while :
4603   do
4604     cat "conftest.in" "conftest.in" >"conftest.tmp"
4605     mv "conftest.tmp" "conftest.in"
4606     cp "conftest.in" "conftest.nl"
4607     $as_echo 'GREP' >> "conftest.nl"
4608     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610     as_fn_arith $ac_count + 1 && ac_count=$as_val
4611     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612       # Best one so far, save it but keep looking for a better one
4613       ac_cv_path_GREP="$ac_path_GREP"
4614       ac_path_GREP_max=$ac_count
4615     fi
4616     # 10*(2^10) chars as input seems more than enough
4617     test $ac_count -gt 10 && break
4618   done
4619   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 esac
4621
4622       $ac_path_GREP_found && break 3
4623     done
4624   done
4625   done
4626 IFS=$as_save_IFS
4627   if test -z "$ac_cv_path_GREP"; then
4628     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629   fi
4630 else
4631   ac_cv_path_GREP=$GREP
4632 fi
4633
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636 $as_echo "$ac_cv_path_GREP" >&6; }
4637  GREP="$ac_cv_path_GREP"
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641 $as_echo_n "checking for egrep... " >&6; }
4642 if test "${ac_cv_path_EGREP+set}" = set; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646    then ac_cv_path_EGREP="$GREP -E"
4647    else
4648      if test -z "$EGREP"; then
4649   ac_path_EGREP_found=false
4650   # Loop through the user's path and test for each of PROGNAME-LIST
4651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656     for ac_prog in egrep; do
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4660 # Check for GNU ac_path_EGREP and select it if it is found.
4661   # Check for GNU $ac_path_EGREP
4662 case `"$ac_path_EGREP" --version 2>&1` in
4663 *GNU*)
4664   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 *)
4666   ac_count=0
4667   $as_echo_n 0123456789 >"conftest.in"
4668   while :
4669   do
4670     cat "conftest.in" "conftest.in" >"conftest.tmp"
4671     mv "conftest.tmp" "conftest.in"
4672     cp "conftest.in" "conftest.nl"
4673     $as_echo 'EGREP' >> "conftest.nl"
4674     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676     as_fn_arith $ac_count + 1 && ac_count=$as_val
4677     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678       # Best one so far, save it but keep looking for a better one
4679       ac_cv_path_EGREP="$ac_path_EGREP"
4680       ac_path_EGREP_max=$ac_count
4681     fi
4682     # 10*(2^10) chars as input seems more than enough
4683     test $ac_count -gt 10 && break
4684   done
4685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4687
4688       $ac_path_EGREP_found && break 3
4689     done
4690   done
4691   done
4692 IFS=$as_save_IFS
4693   if test -z "$ac_cv_path_EGREP"; then
4694     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695   fi
4696 else
4697   ac_cv_path_EGREP=$EGREP
4698 fi
4699
4700    fi
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703 $as_echo "$ac_cv_path_EGREP" >&6; }
4704  EGREP="$ac_cv_path_EGREP"
4705
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4708 $as_echo_n "checking for fgrep... " >&6; }
4709 if test "${ac_cv_path_FGREP+set}" = set; then :
4710   $as_echo_n "(cached) " >&6
4711 else
4712   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4713    then ac_cv_path_FGREP="$GREP -F"
4714    else
4715      if test -z "$FGREP"; then
4716   ac_path_FGREP_found=false
4717   # Loop through the user's path and test for each of PROGNAME-LIST
4718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723     for ac_prog in fgrep; do
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4726       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4727 # Check for GNU ac_path_FGREP and select it if it is found.
4728   # Check for GNU $ac_path_FGREP
4729 case `"$ac_path_FGREP" --version 2>&1` in
4730 *GNU*)
4731   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4732 *)
4733   ac_count=0
4734   $as_echo_n 0123456789 >"conftest.in"
4735   while :
4736   do
4737     cat "conftest.in" "conftest.in" >"conftest.tmp"
4738     mv "conftest.tmp" "conftest.in"
4739     cp "conftest.in" "conftest.nl"
4740     $as_echo 'FGREP' >> "conftest.nl"
4741     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743     as_fn_arith $ac_count + 1 && ac_count=$as_val
4744     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4745       # Best one so far, save it but keep looking for a better one
4746       ac_cv_path_FGREP="$ac_path_FGREP"
4747       ac_path_FGREP_max=$ac_count
4748     fi
4749     # 10*(2^10) chars as input seems more than enough
4750     test $ac_count -gt 10 && break
4751   done
4752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753 esac
4754
4755       $ac_path_FGREP_found && break 3
4756     done
4757   done
4758   done
4759 IFS=$as_save_IFS
4760   if test -z "$ac_cv_path_FGREP"; then
4761     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762   fi
4763 else
4764   ac_cv_path_FGREP=$FGREP
4765 fi
4766
4767    fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4770 $as_echo "$ac_cv_path_FGREP" >&6; }
4771  FGREP="$ac_cv_path_FGREP"
4772
4773
4774 test -z "$GREP" && GREP=grep
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 # Check whether --with-gnu-ld was given.
4795 if test "${with_gnu_ld+set}" = set; then :
4796   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4797 else
4798   with_gnu_ld=no
4799 fi
4800
4801 ac_prog=ld
4802 if test "$GCC" = yes; then
4803   # Check if gcc -print-prog-name=ld gives a path.
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4805 $as_echo_n "checking for ld used by $CC... " >&6; }
4806   case $host in
4807   *-*-mingw*)
4808     # gcc leaves a trailing carriage return which upsets mingw
4809     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4810   *)
4811     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4812   esac
4813   case $ac_prog in
4814     # Accept absolute paths.
4815     [\\/]* | ?:[\\/]*)
4816       re_direlt='/[^/][^/]*/\.\./'
4817       # Canonicalize the pathname of ld
4818       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4819       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4820         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4821       done
4822       test -z "$LD" && LD="$ac_prog"
4823       ;;
4824   "")
4825     # If it fails, then pretend we aren't using GCC.
4826     ac_prog=ld
4827     ;;
4828   *)
4829     # If it is relative, then search for the first ld in PATH.
4830     with_gnu_ld=unknown
4831     ;;
4832   esac
4833 elif test "$with_gnu_ld" = yes; then
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4835 $as_echo_n "checking for GNU ld... " >&6; }
4836 else
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4838 $as_echo_n "checking for non-GNU ld... " >&6; }
4839 fi
4840 if test "${lt_cv_path_LD+set}" = set; then :
4841   $as_echo_n "(cached) " >&6
4842 else
4843   if test -z "$LD"; then
4844   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4845   for ac_dir in $PATH; do
4846     IFS="$lt_save_ifs"
4847     test -z "$ac_dir" && ac_dir=.
4848     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4849       lt_cv_path_LD="$ac_dir/$ac_prog"
4850       # Check to see if the program is GNU ld.  I'd rather use --version,
4851       # but apparently some variants of GNU ld only accept -v.
4852       # Break only if it was the GNU/non-GNU ld that we prefer.
4853       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4854       *GNU* | *'with BFD'*)
4855         test "$with_gnu_ld" != no && break
4856         ;;
4857       *)
4858         test "$with_gnu_ld" != yes && break
4859         ;;
4860       esac
4861     fi
4862   done
4863   IFS="$lt_save_ifs"
4864 else
4865   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4866 fi
4867 fi
4868
4869 LD="$lt_cv_path_LD"
4870 if test -n "$LD"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4872 $as_echo "$LD" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4880 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884 case `$LD -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886   lt_cv_prog_gnu_ld=yes
4887   ;;
4888 *)
4889   lt_cv_prog_gnu_ld=no
4890   ;;
4891 esac
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4895 with_gnu_ld=$lt_cv_prog_gnu_ld
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4906 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4907 if test "${lt_cv_path_NM+set}" = set; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if test -n "$NM"; then
4911   # Let the user override the test.
4912   lt_cv_path_NM="$NM"
4913 else
4914   lt_nm_to_check="${ac_tool_prefix}nm"
4915   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4916     lt_nm_to_check="$lt_nm_to_check nm"
4917   fi
4918   for lt_tmp_nm in $lt_nm_to_check; do
4919     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4920     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4921       IFS="$lt_save_ifs"
4922       test -z "$ac_dir" && ac_dir=.
4923       tmp_nm="$ac_dir/$lt_tmp_nm"
4924       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4925         # Check to see if the nm accepts a BSD-compat flag.
4926         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4927         #   nm: unknown option "B" ignored
4928         # Tru64's nm complains that /dev/null is an invalid object file
4929         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4930         */dev/null* | *'Invalid file or object type'*)
4931           lt_cv_path_NM="$tmp_nm -B"
4932           break
4933           ;;
4934         *)
4935           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4936           */dev/null*)
4937             lt_cv_path_NM="$tmp_nm -p"
4938             break
4939             ;;
4940           *)
4941             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4942             continue # so that we can try to find one that supports BSD flags
4943             ;;
4944           esac
4945           ;;
4946         esac
4947       fi
4948     done
4949     IFS="$lt_save_ifs"
4950   done
4951   : ${lt_cv_path_NM=no}
4952 fi
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4955 $as_echo "$lt_cv_path_NM" >&6; }
4956 if test "$lt_cv_path_NM" != "no"; then
4957   NM="$lt_cv_path_NM"
4958 else
4959   # Didn't find any BSD compatible name lister, look for dumpbin.
4960   if test -n "$ac_tool_prefix"; then
4961   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4962   do
4963     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   if test -n "$DUMPBIN"; then
4971   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985   done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 DUMPBIN=$ac_cv_prog_DUMPBIN
4991 if test -n "$DUMPBIN"; then
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4993 $as_echo "$DUMPBIN" >&6; }
4994 else
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999
5000     test -n "$DUMPBIN" && break
5001   done
5002 fi
5003 if test -z "$DUMPBIN"; then
5004   ac_ct_DUMPBIN=$DUMPBIN
5005   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5006 do
5007   # Extract the first word of "$ac_prog", so it can be a program name with args.
5008 set dummy $ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   if test -n "$ac_ct_DUMPBIN"; then
5015   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020   IFS=$as_save_IFS
5021   test -z "$as_dir" && as_dir=.
5022     for ac_exec_ext in '' $ac_executable_extensions; do
5023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029   done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5035 if test -n "$ac_ct_DUMPBIN"; then
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5037 $as_echo "$ac_ct_DUMPBIN" >&6; }
5038 else
5039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043
5044   test -n "$ac_ct_DUMPBIN" && break
5045 done
5046
5047   if test "x$ac_ct_DUMPBIN" = x; then
5048     DUMPBIN=":"
5049   else
5050     case $cross_compiling:$ac_tool_warned in
5051 yes:)
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned=yes ;;
5055 esac
5056     DUMPBIN=$ac_ct_DUMPBIN
5057   fi
5058 fi
5059
5060
5061   if test "$DUMPBIN" != ":"; then
5062     NM="$DUMPBIN"
5063   fi
5064 fi
5065 test -z "$NM" && NM=nm
5066
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5073 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5074 if test "${lt_cv_nm_interface+set}" = set; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   lt_cv_nm_interface="BSD nm"
5078   echo "int some_variable = 0;" > conftest.$ac_ext
5079   (eval echo "\"\$as_me:5079: $ac_compile\"" >&5)
5080   (eval "$ac_compile" 2>conftest.err)
5081   cat conftest.err >&5
5082   (eval echo "\"\$as_me:5082: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5083   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5084   cat conftest.err >&5
5085   (eval echo "\"\$as_me:5085: output\"" >&5)
5086   cat conftest.out >&5
5087   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5088     lt_cv_nm_interface="MS dumpbin"
5089   fi
5090   rm -f conftest*
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5093 $as_echo "$lt_cv_nm_interface" >&6; }
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5096 $as_echo_n "checking whether ln -s works... " >&6; }
5097 LN_S=$as_ln_s
5098 if test "$LN_S" = "ln -s"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5100 $as_echo "yes" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5103 $as_echo "no, using $LN_S" >&6; }
5104 fi
5105
5106 # find the maximum length of command line arguments
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5108 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5109 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112     i=0
5113   teststring="ABCD"
5114
5115   case $build_os in
5116   msdosdjgpp*)
5117     # On DJGPP, this test can blow up pretty badly due to problems in libc
5118     # (any single argument exceeding 2000 bytes causes a buffer overrun
5119     # during glob expansion).  Even if it were fixed, the result of this
5120     # check would be larger than it should be.
5121     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5122     ;;
5123
5124   gnu*)
5125     # Under GNU Hurd, this test is not required because there is
5126     # no limit to the length of command line arguments.
5127     # Libtool will interpret -1 as no limit whatsoever
5128     lt_cv_sys_max_cmd_len=-1;
5129     ;;
5130
5131   cygwin* | mingw* | cegcc*)
5132     # On Win9x/ME, this test blows up -- it succeeds, but takes
5133     # about 5 minutes as the teststring grows exponentially.
5134     # Worse, since 9x/ME are not pre-emptively multitasking,
5135     # you end up with a "frozen" computer, even though with patience
5136     # the test eventually succeeds (with a max line length of 256k).
5137     # Instead, let's just punt: use the minimum linelength reported by
5138     # all of the supported platforms: 8192 (on NT/2K/XP).
5139     lt_cv_sys_max_cmd_len=8192;
5140     ;;
5141
5142   amigaos*)
5143     # On AmigaOS with pdksh, this test takes hours, literally.
5144     # So we just punt and use a minimum line length of 8192.
5145     lt_cv_sys_max_cmd_len=8192;
5146     ;;
5147
5148   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5149     # This has been around since 386BSD, at least.  Likely further.
5150     if test -x /sbin/sysctl; then
5151       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5152     elif test -x /usr/sbin/sysctl; then
5153       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5154     else
5155       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5156     fi
5157     # And add a safety zone
5158     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5159     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5160     ;;
5161
5162   interix*)
5163     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5164     lt_cv_sys_max_cmd_len=196608
5165     ;;
5166
5167   osf*)
5168     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5169     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5170     # nice to cause kernel panics so lets avoid the loop below.
5171     # First set a reasonable default.
5172     lt_cv_sys_max_cmd_len=16384
5173     #
5174     if test -x /sbin/sysconfig; then
5175       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5176         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5177       esac
5178     fi
5179     ;;
5180   sco3.2v5*)
5181     lt_cv_sys_max_cmd_len=102400
5182     ;;
5183   sysv5* | sco5v6* | sysv4.2uw2*)
5184     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5185     if test -n "$kargmax"; then
5186       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5187     else
5188       lt_cv_sys_max_cmd_len=32768
5189     fi
5190     ;;
5191   *)
5192     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5193     if test -n "$lt_cv_sys_max_cmd_len"; then
5194       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5195       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5196     else
5197       # Make teststring a little bigger before we do anything with it.
5198       # a 1K string should be a reasonable start.
5199       for i in 1 2 3 4 5 6 7 8 ; do
5200         teststring=$teststring$teststring
5201       done
5202       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5203       # If test is not a shell built-in, we'll probably end up computing a
5204       # maximum length that is only half of the actual maximum length, but
5205       # we can't tell.
5206       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5207                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5208               test $i != 17 # 1/2 MB should be enough
5209       do
5210         i=`expr $i + 1`
5211         teststring=$teststring$teststring
5212       done
5213       # Only check the string length outside the loop.
5214       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5215       teststring=
5216       # Add a significant safety factor because C++ compilers can tack on
5217       # massive amounts of additional arguments before passing them to the
5218       # linker.  It appears as though 1/2 is a usable value.
5219       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5220     fi
5221     ;;
5222   esac
5223
5224 fi
5225
5226 if test -n $lt_cv_sys_max_cmd_len ; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5228 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5231 $as_echo "none" >&6; }
5232 fi
5233 max_cmd_len=$lt_cv_sys_max_cmd_len
5234
5235
5236
5237
5238
5239
5240 : ${CP="cp -f"}
5241 : ${MV="mv -f"}
5242 : ${RM="rm -f"}
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5245 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5246 # Try some XSI features
5247 xsi_shell=no
5248 ( _lt_dummy="a/b/c"
5249   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5250       = c,a/b,, \
5251     && eval 'test $(( 1 + 1 )) -eq 2 \
5252     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5253   && xsi_shell=yes
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5255 $as_echo "$xsi_shell" >&6; }
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5259 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5260 lt_shell_append=no
5261 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5262     >/dev/null 2>&1 \
5263   && lt_shell_append=yes
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5265 $as_echo "$lt_shell_append" >&6; }
5266
5267
5268 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5269   lt_unset=unset
5270 else
5271   lt_unset=false
5272 fi
5273
5274
5275
5276
5277
5278 # test EBCDIC or ASCII
5279 case `echo X|tr X '\101'` in
5280  A) # ASCII based system
5281     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5282   lt_SP2NL='tr \040 \012'
5283   lt_NL2SP='tr \015\012 \040\040'
5284   ;;
5285  *) # EBCDIC based system
5286   lt_SP2NL='tr \100 \n'
5287   lt_NL2SP='tr \r\n \100\100'
5288   ;;
5289 esac
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5300 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5301 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   lt_cv_ld_reload_flag='-r'
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5307 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5308 reload_flag=$lt_cv_ld_reload_flag
5309 case $reload_flag in
5310 "" | " "*) ;;
5311 *) reload_flag=" $reload_flag" ;;
5312 esac
5313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5314 case $host_os in
5315   darwin*)
5316     if test "$GCC" = yes; then
5317       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5318     else
5319       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5320     fi
5321     ;;
5322 esac
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 if test -n "$ac_tool_prefix"; then
5333   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5334 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$OBJDUMP"; then
5341   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 OBJDUMP=$ac_cv_prog_OBJDUMP
5361 if test -n "$OBJDUMP"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5363 $as_echo "$OBJDUMP" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370 fi
5371 if test -z "$ac_cv_prog_OBJDUMP"; then
5372   ac_ct_OBJDUMP=$OBJDUMP
5373   # Extract the first word of "objdump", so it can be a program name with args.
5374 set dummy objdump; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   if test -n "$ac_ct_OBJDUMP"; then
5381   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388     for ac_exec_ext in '' $ac_executable_extensions; do
5389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392     break 2
5393   fi
5394 done
5395   done
5396 IFS=$as_save_IFS
5397
5398 fi
5399 fi
5400 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5401 if test -n "$ac_ct_OBJDUMP"; then
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5403 $as_echo "$ac_ct_OBJDUMP" >&6; }
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408
5409   if test "x$ac_ct_OBJDUMP" = x; then
5410     OBJDUMP="false"
5411   else
5412     case $cross_compiling:$ac_tool_warned in
5413 yes:)
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5417 esac
5418     OBJDUMP=$ac_ct_OBJDUMP
5419   fi
5420 else
5421   OBJDUMP="$ac_cv_prog_OBJDUMP"
5422 fi
5423
5424 test -z "$OBJDUMP" && OBJDUMP=objdump
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5435 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5436 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   lt_cv_file_magic_cmd='$MAGIC_CMD'
5440 lt_cv_file_magic_test_file=
5441 lt_cv_deplibs_check_method='unknown'
5442 # Need to set the preceding variable on all platforms that support
5443 # interlibrary dependencies.
5444 # 'none' -- dependencies not supported.
5445 # `unknown' -- same as none, but documents that we really don't know.
5446 # 'pass_all' -- all dependencies passed with no checks.
5447 # 'test_compile' -- check by making test program.
5448 # 'file_magic [[regex]]' -- check by looking for files in library path
5449 # which responds to the $file_magic_cmd with a given extended regex.
5450 # If you have `file' or equivalent on your system and you're not sure
5451 # whether `pass_all' will *always* work, you probably want this one.
5452
5453 case $host_os in
5454 aix[4-9]*)
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 beos*)
5459   lt_cv_deplibs_check_method=pass_all
5460   ;;
5461
5462 bsdi[45]*)
5463   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5464   lt_cv_file_magic_cmd='/usr/bin/file -L'
5465   lt_cv_file_magic_test_file=/shlib/libc.so
5466   ;;
5467
5468 cygwin*)
5469   # func_win32_libid is a shell function defined in ltmain.sh
5470   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5471   lt_cv_file_magic_cmd='func_win32_libid'
5472   ;;
5473
5474 mingw* | pw32*)
5475   # Base MSYS/MinGW do not provide the 'file' command needed by
5476   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5477   # unless we find 'file', for example because we are cross-compiling.
5478   if ( file / ) >/dev/null 2>&1; then
5479     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5480     lt_cv_file_magic_cmd='func_win32_libid'
5481   else
5482     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5483     lt_cv_file_magic_cmd='$OBJDUMP -f'
5484   fi
5485   ;;
5486
5487 cegcc)
5488   # use the weaker test based on 'objdump'. See mingw*.
5489   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5490   lt_cv_file_magic_cmd='$OBJDUMP -f'
5491   ;;
5492
5493 darwin* | rhapsody*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496
5497 freebsd* | dragonfly*)
5498   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5499     case $host_cpu in
5500     i*86 )
5501       # Not sure whether the presence of OpenBSD here was a mistake.
5502       # Let's accept both of them until this is cleared up.
5503       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5504       lt_cv_file_magic_cmd=/usr/bin/file
5505       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5506       ;;
5507     esac
5508   else
5509     lt_cv_deplibs_check_method=pass_all
5510   fi
5511   ;;
5512
5513 gnu*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 hpux10.20* | hpux11*)
5518   lt_cv_file_magic_cmd=/usr/bin/file
5519   case $host_cpu in
5520   ia64*)
5521     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5522     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5523     ;;
5524   hppa*64*)
5525     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]'
5526     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5527     ;;
5528   *)
5529     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5530     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5531     ;;
5532   esac
5533   ;;
5534
5535 interix[3-9]*)
5536   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5537   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5538   ;;
5539
5540 irix5* | irix6* | nonstopux*)
5541   case $LD in
5542   *-32|*"-32 ") libmagic=32-bit;;
5543   *-n32|*"-n32 ") libmagic=N32;;
5544   *-64|*"-64 ") libmagic=64-bit;;
5545   *) libmagic=never-match;;
5546   esac
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 # This must be Linux ELF.
5551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5552   lt_cv_deplibs_check_method=pass_all
5553   ;;
5554
5555 netbsd* | netbsdelf*-gnu)
5556   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5557     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5558   else
5559     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5560   fi
5561   ;;
5562
5563 newos6*)
5564   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5565   lt_cv_file_magic_cmd=/usr/bin/file
5566   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5567   ;;
5568
5569 *nto* | *qnx*)
5570   lt_cv_deplibs_check_method=pass_all
5571   ;;
5572
5573 openbsd*)
5574   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5575     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5576   else
5577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578   fi
5579   ;;
5580
5581 osf3* | osf4* | osf5*)
5582   lt_cv_deplibs_check_method=pass_all
5583   ;;
5584
5585 rdos*)
5586   lt_cv_deplibs_check_method=pass_all
5587   ;;
5588
5589 solaris*)
5590   lt_cv_deplibs_check_method=pass_all
5591   ;;
5592
5593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 sysv4 | sysv4.3*)
5598   case $host_vendor in
5599   motorola)
5600     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]'
5601     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5602     ;;
5603   ncr)
5604     lt_cv_deplibs_check_method=pass_all
5605     ;;
5606   sequent)
5607     lt_cv_file_magic_cmd='/bin/file'
5608     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5609     ;;
5610   sni)
5611     lt_cv_file_magic_cmd='/bin/file'
5612     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5613     lt_cv_file_magic_test_file=/lib/libc.so
5614     ;;
5615   siemens)
5616     lt_cv_deplibs_check_method=pass_all
5617     ;;
5618   pc)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   esac
5622   ;;
5623
5624 tpf*)
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627 esac
5628
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5631 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5632 file_magic_cmd=$lt_cv_file_magic_cmd
5633 deplibs_check_method=$lt_cv_deplibs_check_method
5634 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 if test -n "$ac_tool_prefix"; then
5648   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5649 set dummy ${ac_tool_prefix}ar; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if test "${ac_cv_prog_AR+set}" = set; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   if test -n "$AR"; then
5656   ac_cv_prog_AR="$AR" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663     for ac_exec_ext in '' $ac_executable_extensions; do
5664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665     ac_cv_prog_AR="${ac_tool_prefix}ar"
5666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670   done
5671 IFS=$as_save_IFS
5672
5673 fi
5674 fi
5675 AR=$ac_cv_prog_AR
5676 if test -n "$AR"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5678 $as_echo "$AR" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685 fi
5686 if test -z "$ac_cv_prog_AR"; then
5687   ac_ct_AR=$AR
5688   # Extract the first word of "ar", so it can be a program name with args.
5689 set dummy ar; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5693   $as_echo_n "(cached) " >&6
5694 else
5695   if test -n "$ac_ct_AR"; then
5696   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703     for ac_exec_ext in '' $ac_executable_extensions; do
5704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705     ac_cv_prog_ac_ct_AR="ar"
5706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710   done
5711 IFS=$as_save_IFS
5712
5713 fi
5714 fi
5715 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5716 if test -n "$ac_ct_AR"; then
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5718 $as_echo "$ac_ct_AR" >&6; }
5719 else
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724   if test "x$ac_ct_AR" = x; then
5725     AR="false"
5726   else
5727     case $cross_compiling:$ac_tool_warned in
5728 yes:)
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731 ac_tool_warned=yes ;;
5732 esac
5733     AR=$ac_ct_AR
5734   fi
5735 else
5736   AR="$ac_cv_prog_AR"
5737 fi
5738
5739 test -z "$AR" && AR=ar
5740 test -z "$AR_FLAGS" && AR_FLAGS=cru
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 if test -n "$ac_tool_prefix"; then
5753   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}strip; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_STRIP+set}" = set; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   if test -n "$STRIP"; then
5761   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775   done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 STRIP=$ac_cv_prog_STRIP
5781 if test -n "$STRIP"; then
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5783 $as_echo "$STRIP" >&6; }
5784 else
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_STRIP"; then
5792   ac_ct_STRIP=$STRIP
5793   # Extract the first word of "strip", so it can be a program name with args.
5794 set dummy strip; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   if test -n "$ac_ct_STRIP"; then
5801   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_prog_ac_ct_STRIP="strip"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5821 if test -n "$ac_ct_STRIP"; then
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5823 $as_echo "$ac_ct_STRIP" >&6; }
5824 else
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829   if test "x$ac_ct_STRIP" = x; then
5830     STRIP=":"
5831   else
5832     case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838     STRIP=$ac_ct_STRIP
5839   fi
5840 else
5841   STRIP="$ac_cv_prog_STRIP"
5842 fi
5843
5844 test -z "$STRIP" && STRIP=:
5845
5846
5847
5848
5849
5850
5851 if test -n "$ac_tool_prefix"; then
5852   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   if test -n "$RANLIB"; then
5860   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867     for ac_exec_ext in '' $ac_executable_extensions; do
5868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874   done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 RANLIB=$ac_cv_prog_RANLIB
5880 if test -n "$RANLIB"; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5882 $as_echo "$RANLIB" >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888
5889 fi
5890 if test -z "$ac_cv_prog_RANLIB"; then
5891   ac_ct_RANLIB=$RANLIB
5892   # Extract the first word of "ranlib", so it can be a program name with args.
5893 set dummy ranlib; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   if test -n "$ac_ct_RANLIB"; then
5900   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907     for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_prog_ac_ct_RANLIB="ranlib"
5910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914   done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5920 if test -n "$ac_ct_RANLIB"; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5922 $as_echo "$ac_ct_RANLIB" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928   if test "x$ac_ct_RANLIB" = x; then
5929     RANLIB=":"
5930   else
5931     case $cross_compiling:$ac_tool_warned in
5932 yes:)
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935 ac_tool_warned=yes ;;
5936 esac
5937     RANLIB=$ac_ct_RANLIB
5938   fi
5939 else
5940   RANLIB="$ac_cv_prog_RANLIB"
5941 fi
5942
5943 test -z "$RANLIB" && RANLIB=:
5944
5945
5946
5947
5948
5949
5950 # Determine commands to create old-style static archives.
5951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5952 old_postinstall_cmds='chmod 644 $oldlib'
5953 old_postuninstall_cmds=
5954
5955 if test -n "$RANLIB"; then
5956   case $host_os in
5957   openbsd*)
5958     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5959     ;;
5960   *)
5961     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5962     ;;
5963   esac
5964   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5965 fi
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 # If no C compiler was specified, use CC.
6001 LTCC=${LTCC-"$CC"}
6002
6003 # If no C compiler flags were specified, use CFLAGS.
6004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6005
6006 # Allow CC to be a program name with arguments.
6007 compiler=$CC
6008
6009
6010 # Check for command to grab the raw symbol name followed by C symbol from nm.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6012 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016
6017 # These are sane defaults that work on at least a few old systems.
6018 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6019
6020 # Character class describing NM global symbol codes.
6021 symcode='[BCDEGRST]'
6022
6023 # Regexp to match symbols that can be accessed directly from C.
6024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6025
6026 # Define system-specific variables.
6027 case $host_os in
6028 aix*)
6029   symcode='[BCDT]'
6030   ;;
6031 cygwin* | mingw* | pw32* | cegcc*)
6032   symcode='[ABCDGISTW]'
6033   ;;
6034 hpux*)
6035   if test "$host_cpu" = ia64; then
6036     symcode='[ABCDEGRST]'
6037   fi
6038   ;;
6039 irix* | nonstopux*)
6040   symcode='[BCDEGRST]'
6041   ;;
6042 osf*)
6043   symcode='[BCDEGQRST]'
6044   ;;
6045 solaris*)
6046   symcode='[BDRT]'
6047   ;;
6048 sco3.2v5*)
6049   symcode='[DT]'
6050   ;;
6051 sysv4.2uw2*)
6052   symcode='[DT]'
6053   ;;
6054 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6055   symcode='[ABDT]'
6056   ;;
6057 sysv4)
6058   symcode='[DFNSTU]'
6059   ;;
6060 esac
6061
6062 # If we're using GNU nm, then use its standard symbol codes.
6063 case `$NM -V 2>&1` in
6064 *GNU* | *'with BFD'*)
6065   symcode='[ABCDGIRSTW]' ;;
6066 esac
6067
6068 # Transform an extracted symbol line into a proper C declaration.
6069 # Some systems (esp. on ia64) link data and code symbols differently,
6070 # so use this general approach.
6071 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6072
6073 # Transform an extracted symbol line into symbol name and symbol address
6074 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6075 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'"
6076
6077 # Handle CRLF in mingw tool chain
6078 opt_cr=
6079 case $build_os in
6080 mingw*)
6081   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6082   ;;
6083 esac
6084
6085 # Try without a prefix underscore, then with it.
6086 for ac_symprfx in "" "_"; do
6087
6088   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6089   symxfrm="\\1 $ac_symprfx\\2 \\2"
6090
6091   # Write the raw and C identifiers.
6092   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6093     # Fake it for dumpbin and say T for any non-static function
6094     # and D for any global variable.
6095     # Also find C++ and __fastcall symbols from MSVC++,
6096     # which start with @ or ?.
6097     lt_cv_sys_global_symbol_pipe="$AWK '"\
6098 "     {last_section=section; section=\$ 3};"\
6099 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6100 "     \$ 0!~/External *\|/{next};"\
6101 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6102 "     {if(hide[section]) next};"\
6103 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6104 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6105 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6106 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6107 "     ' prfx=^$ac_symprfx"
6108   else
6109     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6110   fi
6111
6112   # Check to see that the pipe works correctly.
6113   pipe_works=no
6114
6115   rm -f conftest*
6116   cat > conftest.$ac_ext <<_LT_EOF
6117 #ifdef __cplusplus
6118 extern "C" {
6119 #endif
6120 char nm_test_var;
6121 void nm_test_func(void);
6122 void nm_test_func(void){}
6123 #ifdef __cplusplus
6124 }
6125 #endif
6126 int main(){nm_test_var='a';nm_test_func();return(0);}
6127 _LT_EOF
6128
6129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6130   (eval $ac_compile) 2>&5
6131   ac_status=$?
6132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133   test $ac_status = 0; }; then
6134     # Now try to grab the symbols.
6135     nlist=conftest.nm
6136     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6137   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6138   ac_status=$?
6139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140   test $ac_status = 0; } && test -s "$nlist"; then
6141       # Try sorting and uniquifying the output.
6142       if sort "$nlist" | uniq > "$nlist"T; then
6143         mv -f "$nlist"T "$nlist"
6144       else
6145         rm -f "$nlist"T
6146       fi
6147
6148       # Make sure that we snagged all the symbols we need.
6149       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6150         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6151           cat <<_LT_EOF > conftest.$ac_ext
6152 #ifdef __cplusplus
6153 extern "C" {
6154 #endif
6155
6156 _LT_EOF
6157           # Now generate the symbol file.
6158           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6159
6160           cat <<_LT_EOF >> conftest.$ac_ext
6161
6162 /* The mapping between symbol names and symbols.  */
6163 const struct {
6164   const char *name;
6165   void       *address;
6166 }
6167 lt__PROGRAM__LTX_preloaded_symbols[] =
6168 {
6169   { "@PROGRAM@", (void *) 0 },
6170 _LT_EOF
6171           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6172           cat <<\_LT_EOF >> conftest.$ac_ext
6173   {0, (void *) 0}
6174 };
6175
6176 /* This works around a problem in FreeBSD linker */
6177 #ifdef FREEBSD_WORKAROUND
6178 static const void *lt_preloaded_setup() {
6179   return lt__PROGRAM__LTX_preloaded_symbols;
6180 }
6181 #endif
6182
6183 #ifdef __cplusplus
6184 }
6185 #endif
6186 _LT_EOF
6187           # Now try linking the two files.
6188           mv conftest.$ac_objext conftstm.$ac_objext
6189           lt_save_LIBS="$LIBS"
6190           lt_save_CFLAGS="$CFLAGS"
6191           LIBS="conftstm.$ac_objext"
6192           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6193           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6194   (eval $ac_link) 2>&5
6195   ac_status=$?
6196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6198             pipe_works=yes
6199           fi
6200           LIBS="$lt_save_LIBS"
6201           CFLAGS="$lt_save_CFLAGS"
6202         else
6203           echo "cannot find nm_test_func in $nlist" >&5
6204         fi
6205       else
6206         echo "cannot find nm_test_var in $nlist" >&5
6207       fi
6208     else
6209       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6210     fi
6211   else
6212     echo "$progname: failed program was:" >&5
6213     cat conftest.$ac_ext >&5
6214   fi
6215   rm -rf conftest* conftst*
6216
6217   # Do not use the global_symbol_pipe unless it works.
6218   if test "$pipe_works" = yes; then
6219     break
6220   else
6221     lt_cv_sys_global_symbol_pipe=
6222   fi
6223 done
6224
6225 fi
6226
6227 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6228   lt_cv_sys_global_symbol_to_cdecl=
6229 fi
6230 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6232 $as_echo "failed" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6235 $as_echo "ok" >&6; }
6236 fi
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260 # Check whether --enable-libtool-lock was given.
6261 if test "${enable_libtool_lock+set}" = set; then :
6262   enableval=$enable_libtool_lock;
6263 fi
6264
6265 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6266
6267 # Some flags need to be propagated to the compiler or linker for good
6268 # libtool support.
6269 case $host in
6270 ia64-*-hpux*)
6271   # Find out which ABI we are using.
6272   echo 'int i;' > conftest.$ac_ext
6273   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6274   (eval $ac_compile) 2>&5
6275   ac_status=$?
6276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277   test $ac_status = 0; }; then
6278     case `/usr/bin/file conftest.$ac_objext` in
6279       *ELF-32*)
6280         HPUX_IA64_MODE="32"
6281         ;;
6282       *ELF-64*)
6283         HPUX_IA64_MODE="64"
6284         ;;
6285     esac
6286   fi
6287   rm -rf conftest*
6288   ;;
6289 *-*-irix6*)
6290   # Find out which ABI we are using.
6291   echo '#line 6291 "configure"' > conftest.$ac_ext
6292   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6293   (eval $ac_compile) 2>&5
6294   ac_status=$?
6295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296   test $ac_status = 0; }; then
6297     if test "$lt_cv_prog_gnu_ld" = yes; then
6298       case `/usr/bin/file conftest.$ac_objext` in
6299         *32-bit*)
6300           LD="${LD-ld} -melf32bsmip"
6301           ;;
6302         *N32*)
6303           LD="${LD-ld} -melf32bmipn32"
6304           ;;
6305         *64-bit*)
6306           LD="${LD-ld} -melf64bmip"
6307         ;;
6308       esac
6309     else
6310       case `/usr/bin/file conftest.$ac_objext` in
6311         *32-bit*)
6312           LD="${LD-ld} -32"
6313           ;;
6314         *N32*)
6315           LD="${LD-ld} -n32"
6316           ;;
6317         *64-bit*)
6318           LD="${LD-ld} -64"
6319           ;;
6320       esac
6321     fi
6322   fi
6323   rm -rf conftest*
6324   ;;
6325
6326 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6327 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6328   # Find out which ABI we are using.
6329   echo 'int i;' > conftest.$ac_ext
6330   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6331   (eval $ac_compile) 2>&5
6332   ac_status=$?
6333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334   test $ac_status = 0; }; then
6335     case `/usr/bin/file conftest.o` in
6336       *32-bit*)
6337         case $host in
6338           x86_64-*kfreebsd*-gnu)
6339             LD="${LD-ld} -m elf_i386_fbsd"
6340             ;;
6341           x86_64-*linux*)
6342             LD="${LD-ld} -m elf_i386"
6343             ;;
6344           ppc64-*linux*|powerpc64-*linux*)
6345             LD="${LD-ld} -m elf32ppclinux"
6346             ;;
6347           s390x-*linux*)
6348             LD="${LD-ld} -m elf_s390"
6349             ;;
6350           sparc64-*linux*)
6351             LD="${LD-ld} -m elf32_sparc"
6352             ;;
6353         esac
6354         ;;
6355       *64-bit*)
6356         case $host in
6357           x86_64-*kfreebsd*-gnu)
6358             LD="${LD-ld} -m elf_x86_64_fbsd"
6359             ;;
6360           x86_64-*linux*)
6361             LD="${LD-ld} -m elf_x86_64"
6362             ;;
6363           ppc*-*linux*|powerpc*-*linux*)
6364             LD="${LD-ld} -m elf64ppc"
6365             ;;
6366           s390*-*linux*|s390*-*tpf*)
6367             LD="${LD-ld} -m elf64_s390"
6368             ;;
6369           sparc*-*linux*)
6370             LD="${LD-ld} -m elf64_sparc"
6371             ;;
6372         esac
6373         ;;
6374     esac
6375   fi
6376   rm -rf conftest*
6377   ;;
6378
6379 *-*-sco3.2v5*)
6380   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6381   SAVE_CFLAGS="$CFLAGS"
6382   CFLAGS="$CFLAGS -belf"
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6384 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6385 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h.  */
6396
6397 int
6398 main ()
6399 {
6400
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
6405 if ac_fn_c_try_link "$LINENO"; then :
6406   lt_cv_cc_needs_belf=yes
6407 else
6408   lt_cv_cc_needs_belf=no
6409 fi
6410 rm -f core conftest.err conftest.$ac_objext \
6411     conftest$ac_exeext conftest.$ac_ext
6412      ac_ext=c
6413 ac_cpp='$CPP $CPPFLAGS'
6414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417
6418 fi
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6420 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6421   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6422     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6423     CFLAGS="$SAVE_CFLAGS"
6424   fi
6425   ;;
6426 sparc*-*solaris*)
6427   # Find out which ABI we are using.
6428   echo 'int i;' > conftest.$ac_ext
6429   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6430   (eval $ac_compile) 2>&5
6431   ac_status=$?
6432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433   test $ac_status = 0; }; then
6434     case `/usr/bin/file conftest.o` in
6435     *64-bit*)
6436       case $lt_cv_prog_gnu_ld in
6437       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6438       *)
6439         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6440           LD="${LD-ld} -64"
6441         fi
6442         ;;
6443       esac
6444       ;;
6445     esac
6446   fi
6447   rm -rf conftest*
6448   ;;
6449 esac
6450
6451 need_locks="$enable_libtool_lock"
6452
6453
6454   case $host_os in
6455     rhapsody* | darwin*)
6456     if test -n "$ac_tool_prefix"; then
6457   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   if test -n "$DSYMUTIL"; then
6465   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472     for ac_exec_ext in '' $ac_executable_extensions; do
6473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479   done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6485 if test -n "$DSYMUTIL"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6487 $as_echo "$DSYMUTIL" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 fi
6495 if test -z "$ac_cv_prog_DSYMUTIL"; then
6496   ac_ct_DSYMUTIL=$DSYMUTIL
6497   # Extract the first word of "dsymutil", so it can be a program name with args.
6498 set dummy dsymutil; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   if test -n "$ac_ct_DSYMUTIL"; then
6505   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6525 if test -n "$ac_ct_DSYMUTIL"; then
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6527 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6528 else
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533   if test "x$ac_ct_DSYMUTIL" = x; then
6534     DSYMUTIL=":"
6535   else
6536     case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542     DSYMUTIL=$ac_ct_DSYMUTIL
6543   fi
6544 else
6545   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6546 fi
6547
6548     if test -n "$ac_tool_prefix"; then
6549   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   if test -n "$NMEDIT"; then
6557   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 NMEDIT=$ac_cv_prog_NMEDIT
6577 if test -n "$NMEDIT"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6579 $as_echo "$NMEDIT" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_NMEDIT"; then
6588   ac_ct_NMEDIT=$NMEDIT
6589   # Extract the first word of "nmedit", so it can be a program name with args.
6590 set dummy nmedit; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test -n "$ac_ct_NMEDIT"; then
6597   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604     for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611   done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6617 if test -n "$ac_ct_NMEDIT"; then
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6619 $as_echo "$ac_ct_NMEDIT" >&6; }
6620 else
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625   if test "x$ac_ct_NMEDIT" = x; then
6626     NMEDIT=":"
6627   else
6628     case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634     NMEDIT=$ac_ct_NMEDIT
6635   fi
6636 else
6637   NMEDIT="$ac_cv_prog_NMEDIT"
6638 fi
6639
6640     if test -n "$ac_tool_prefix"; then
6641   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if test "${ac_cv_prog_LIPO+set}" = set; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$LIPO"; then
6649   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 LIPO=$ac_cv_prog_LIPO
6669 if test -n "$LIPO"; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6671 $as_echo "$LIPO" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_prog_LIPO"; then
6680   ac_ct_LIPO=$LIPO
6681   # Extract the first word of "lipo", so it can be a program name with args.
6682 set dummy lipo; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6686   $as_echo_n "(cached) " >&6
6687 else
6688   if test -n "$ac_ct_LIPO"; then
6689   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696     for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_prog_ac_ct_LIPO="lipo"
6699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703   done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6709 if test -n "$ac_ct_LIPO"; then
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6711 $as_echo "$ac_ct_LIPO" >&6; }
6712 else
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717   if test "x$ac_ct_LIPO" = x; then
6718     LIPO=":"
6719   else
6720     case $cross_compiling:$ac_tool_warned in
6721 yes:)
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6725 esac
6726     LIPO=$ac_ct_LIPO
6727   fi
6728 else
6729   LIPO="$ac_cv_prog_LIPO"
6730 fi
6731
6732     if test -n "$ac_tool_prefix"; then
6733   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}otool; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$OTOOL"; then
6741   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748     for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755   done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 OTOOL=$ac_cv_prog_OTOOL
6761 if test -n "$OTOOL"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6763 $as_echo "$OTOOL" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_OTOOL"; then
6772   ac_ct_OTOOL=$OTOOL
6773   # Extract the first word of "otool", so it can be a program name with args.
6774 set dummy otool; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   if test -n "$ac_ct_OTOOL"; then
6781   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_ac_ct_OTOOL="otool"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6801 if test -n "$ac_ct_OTOOL"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6803 $as_echo "$ac_ct_OTOOL" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809   if test "x$ac_ct_OTOOL" = x; then
6810     OTOOL=":"
6811   else
6812     case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     OTOOL=$ac_ct_OTOOL
6819   fi
6820 else
6821   OTOOL="$ac_cv_prog_OTOOL"
6822 fi
6823
6824     if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$OTOOL64"; then
6833   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6834 else
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_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 OTOOL64=$ac_cv_prog_OTOOL64
6853 if test -n "$OTOOL64"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6855 $as_echo "$OTOOL64" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_OTOOL64"; then
6864   ac_ct_OTOOL64=$OTOOL64
6865   # Extract the first word of "otool64", so it can be a program name with args.
6866 set dummy otool64; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$ac_ct_OTOOL64"; then
6873   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_ac_ct_OTOOL64="otool64"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6893 if test -n "$ac_ct_OTOOL64"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6895 $as_echo "$ac_ct_OTOOL64" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_OTOOL64" = x; then
6902     OTOOL64=":"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910     OTOOL64=$ac_ct_OTOOL64
6911   fi
6912 else
6913   OTOOL64="$ac_cv_prog_OTOOL64"
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6943 $as_echo_n "checking for -single_module linker flag... " >&6; }
6944 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   lt_cv_apple_cc_single_mod=no
6948       if test -z "${LT_MULTI_MODULE}"; then
6949         # By default we will add the -single_module flag. You can override
6950         # by either setting the environment variable LT_MULTI_MODULE
6951         # non-empty at configure time, or by adding -multi_module to the
6952         # link flags.
6953         rm -rf libconftest.dylib*
6954         echo "int foo(void){return 1;}" > conftest.c
6955         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6956 -dynamiclib -Wl,-single_module conftest.c" >&5
6957         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6958           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6959         _lt_result=$?
6960         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6961           lt_cv_apple_cc_single_mod=yes
6962         else
6963           cat conftest.err >&5
6964         fi
6965         rm -rf libconftest.dylib*
6966         rm -f conftest.*
6967       fi
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6970 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6972 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6973 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   lt_cv_ld_exported_symbols_list=no
6977       save_LDFLAGS=$LDFLAGS
6978       echo "_main" > conftest.sym
6979       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6980       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h.  */
6982
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992   lt_cv_ld_exported_symbols_list=yes
6993 else
6994   lt_cv_ld_exported_symbols_list=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997     conftest$ac_exeext conftest.$ac_ext
6998         LDFLAGS="$save_LDFLAGS"
6999
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7002 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7003     case $host_os in
7004     rhapsody* | darwin1.[012])
7005       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7006     darwin1.*)
7007       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7008     darwin*) # darwin 5.x on
7009       # if running on 10.5 or later, the deployment target defaults
7010       # to the OS version, if on x86, and 10.4, the deployment
7011       # target defaults to 10.4. Don't you love it?
7012       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7013         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7014           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7015         10.[012]*)
7016           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7017         10.*)
7018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7019       esac
7020     ;;
7021   esac
7022     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7023       _lt_dar_single_mod='$single_module'
7024     fi
7025     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7026       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7027     else
7028       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7029     fi
7030     if test "$DSYMUTIL" != ":"; then
7031       _lt_dsymutil='~$DSYMUTIL $lib || :'
7032     else
7033       _lt_dsymutil=
7034     fi
7035     ;;
7036   esac
7037
7038 ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7045 # On Suns, sometimes $CPP names a directory.
7046 if test -n "$CPP" && test -d "$CPP"; then
7047   CPP=
7048 fi
7049 if test -z "$CPP"; then
7050   if test "${ac_cv_prog_CPP+set}" = set; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053       # Double quotes because CPP needs to be expanded
7054     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7055     do
7056       ac_preproc_ok=false
7057 for ac_c_preproc_warn_flag in '' yes
7058 do
7059   # Use a header file that comes with gcc, so configuring glibc
7060   # with a fresh cross-compiler works.
7061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062   # <limits.h> exists even on freestanding compilers.
7063   # On the NeXT, cc -E runs the code through the compiler's parser,
7064   # not just through cpp. "Syntax error" is here to catch this case.
7065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h.  */
7067 #ifdef __STDC__
7068 # include <limits.h>
7069 #else
7070 # include <assert.h>
7071 #endif
7072                      Syntax error
7073 _ACEOF
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075
7076 else
7077   # Broken: fails on valid input.
7078 continue
7079 fi
7080 rm -f conftest.err conftest.$ac_ext
7081
7082   # OK, works on sane cases.  Now check whether nonexistent headers
7083   # can be detected and how.
7084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h.  */
7086 #include <ac_nonexistent.h>
7087 _ACEOF
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7089   # Broken: success on invalid input.
7090 continue
7091 else
7092   # Passes both tests.
7093 ac_preproc_ok=:
7094 break
7095 fi
7096 rm -f conftest.err conftest.$ac_ext
7097
7098 done
7099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7100 rm -f conftest.err conftest.$ac_ext
7101 if $ac_preproc_ok; then :
7102   break
7103 fi
7104
7105     done
7106     ac_cv_prog_CPP=$CPP
7107
7108 fi
7109   CPP=$ac_cv_prog_CPP
7110 else
7111   ac_cv_prog_CPP=$CPP
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7114 $as_echo "$CPP" >&6; }
7115 ac_preproc_ok=false
7116 for ac_c_preproc_warn_flag in '' yes
7117 do
7118   # Use a header file that comes with gcc, so configuring glibc
7119   # with a fresh cross-compiler works.
7120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7121   # <limits.h> exists even on freestanding compilers.
7122   # On the NeXT, cc -E runs the code through the compiler's parser,
7123   # not just through cpp. "Syntax error" is here to catch this case.
7124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h.  */
7126 #ifdef __STDC__
7127 # include <limits.h>
7128 #else
7129 # include <assert.h>
7130 #endif
7131                      Syntax error
7132 _ACEOF
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134
7135 else
7136   # Broken: fails on valid input.
7137 continue
7138 fi
7139 rm -f conftest.err conftest.$ac_ext
7140
7141   # OK, works on sane cases.  Now check whether nonexistent headers
7142   # can be detected and how.
7143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h.  */
7145 #include <ac_nonexistent.h>
7146 _ACEOF
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7148   # Broken: success on invalid input.
7149 continue
7150 else
7151   # Passes both tests.
7152 ac_preproc_ok=:
7153 break
7154 fi
7155 rm -f conftest.err conftest.$ac_ext
7156
7157 done
7158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7159 rm -f conftest.err conftest.$ac_ext
7160 if $ac_preproc_ok; then :
7161
7162 else
7163   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7165 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7166 See \`config.log' for more details." "$LINENO" 5; }
7167 fi
7168
7169 ac_ext=c
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7177 $as_echo_n "checking for ANSI C header files... " >&6; }
7178 if test "${ac_cv_header_stdc+set}" = set; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h.  */
7183 #include <stdlib.h>
7184 #include <stdarg.h>
7185 #include <string.h>
7186 #include <float.h>
7187
7188 int
7189 main ()
7190 {
7191
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197   ac_cv_header_stdc=yes
7198 else
7199   ac_cv_header_stdc=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202
7203 if test $ac_cv_header_stdc = yes; then
7204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h.  */
7207 #include <string.h>
7208
7209 _ACEOF
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211   $EGREP "memchr" >/dev/null 2>&1; then :
7212
7213 else
7214   ac_cv_header_stdc=no
7215 fi
7216 rm -f conftest*
7217
7218 fi
7219
7220 if test $ac_cv_header_stdc = yes; then
7221   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h.  */
7224 #include <stdlib.h>
7225
7226 _ACEOF
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228   $EGREP "free" >/dev/null 2>&1; then :
7229
7230 else
7231   ac_cv_header_stdc=no
7232 fi
7233 rm -f conftest*
7234
7235 fi
7236
7237 if test $ac_cv_header_stdc = yes; then
7238   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7239   if test "$cross_compiling" = yes; then :
7240   :
7241 else
7242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 #include <ctype.h>
7245 #include <stdlib.h>
7246 #if ((' ' & 0x0FF) == 0x020)
7247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7249 #else
7250 # define ISLOWER(c) \
7251                    (('a' <= (c) && (c) <= 'i') \
7252                      || ('j' <= (c) && (c) <= 'r') \
7253                      || ('s' <= (c) && (c) <= 'z'))
7254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7255 #endif
7256
7257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7258 int
7259 main ()
7260 {
7261   int i;
7262   for (i = 0; i < 256; i++)
7263     if (XOR (islower (i), ISLOWER (i))
7264         || toupper (i) != TOUPPER (i))
7265       return 2;
7266   return 0;
7267 }
7268 _ACEOF
7269 if ac_fn_c_try_run "$LINENO"; then :
7270
7271 else
7272   ac_cv_header_stdc=no
7273 fi
7274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7275   conftest.$ac_objext conftest.beam conftest.$ac_ext
7276 fi
7277
7278 fi
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7281 $as_echo "$ac_cv_header_stdc" >&6; }
7282 if test $ac_cv_header_stdc = yes; then
7283
7284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7285
7286 fi
7287
7288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7290                   inttypes.h stdint.h unistd.h
7291 do :
7292   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7294 "
7295 eval as_val=\$$as_ac_Header
7296    if test "x$as_val" = x""yes; then :
7297   cat >>confdefs.h <<_ACEOF
7298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 _ACEOF
7300
7301 fi
7302
7303 done
7304
7305
7306 for ac_header in dlfcn.h
7307 do :
7308   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7309 "
7310 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7311   cat >>confdefs.h <<_ACEOF
7312 #define HAVE_DLFCN_H 1
7313 _ACEOF
7314
7315 fi
7316
7317 done
7318
7319
7320
7321 ac_ext=cpp
7322 ac_cpp='$CXXCPP $CPPFLAGS'
7323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7326 if test -z "$CXX"; then
7327   if test -n "$CCC"; then
7328     CXX=$CCC
7329   else
7330     if test -n "$ac_tool_prefix"; then
7331   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7332   do
7333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7334 set dummy $ac_tool_prefix$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_CXX+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$CXX"; then
7341   ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
7361 if test -n "$CXX"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7363 $as_echo "$CXX" >&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 "$CXX" && break
7371   done
7372 fi
7373 if test -z "$CXX"; then
7374   ac_ct_CXX=$CXX
7375   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7376 do
7377   # Extract the first word of "$ac_prog", so it can be a program name with args.
7378 set dummy $ac_prog; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   if test -n "$ac_ct_CXX"; then
7385   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392     for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_prog_ac_ct_CXX="$ac_prog"
7395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399   done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7405 if test -n "$ac_ct_CXX"; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7407 $as_echo "$ac_ct_CXX" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413
7414   test -n "$ac_ct_CXX" && break
7415 done
7416
7417   if test "x$ac_ct_CXX" = x; then
7418     CXX="g++"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426     CXX=$ac_ct_CXX
7427   fi
7428 fi
7429
7430   fi
7431 fi
7432 # Provide some information about the compiler.
7433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7434 set X $ac_compile
7435 ac_compiler=$2
7436 for ac_option in --version -v -V -qversion; do
7437   { { ac_try="$ac_compiler $ac_option >&5"
7438 case "(($ac_try" in
7439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440   *) ac_try_echo=$ac_try;;
7441 esac
7442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7443 $as_echo "$ac_try_echo"; } >&5
7444   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7445   ac_status=$?
7446   if test -s conftest.err; then
7447     sed '10a\
7448 ... rest of stderr output deleted ...
7449          10q' conftest.err >conftest.er1
7450     cat conftest.er1 >&5
7451   fi
7452   rm -f conftest.er1 conftest.err
7453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7454   test $ac_status = 0; }
7455 done
7456
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7458 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7459 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h.  */
7464
7465 int
7466 main ()
7467 {
7468 #ifndef __GNUC__
7469        choke me
7470 #endif
7471
7472   ;
7473   return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_cxx_try_compile "$LINENO"; then :
7477   ac_compiler_gnu=yes
7478 else
7479   ac_compiler_gnu=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7483
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7486 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7487 if test $ac_compiler_gnu = yes; then
7488   GXX=yes
7489 else
7490   GXX=
7491 fi
7492 ac_test_CXXFLAGS=${CXXFLAGS+set}
7493 ac_save_CXXFLAGS=$CXXFLAGS
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7495 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7496 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7500    ac_cxx_werror_flag=yes
7501    ac_cv_prog_cxx_g=no
7502    CXXFLAGS="-g"
7503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505
7506 int
7507 main ()
7508 {
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_cxx_try_compile "$LINENO"; then :
7515   ac_cv_prog_cxx_g=yes
7516 else
7517   CXXFLAGS=""
7518       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h.  */
7520
7521 int
7522 main ()
7523 {
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_cxx_try_compile "$LINENO"; then :
7530
7531 else
7532   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7533          CXXFLAGS="-g"
7534          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h.  */
7536
7537 int
7538 main ()
7539 {
7540
7541   ;
7542   return 0;
7543 }
7544 _ACEOF
7545 if ac_fn_cxx_try_compile "$LINENO"; then :
7546   ac_cv_prog_cxx_g=yes
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7556 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7557 if test "$ac_test_CXXFLAGS" = set; then
7558   CXXFLAGS=$ac_save_CXXFLAGS
7559 elif test $ac_cv_prog_cxx_g = yes; then
7560   if test "$GXX" = yes; then
7561     CXXFLAGS="-g -O2"
7562   else
7563     CXXFLAGS="-g"
7564   fi
7565 else
7566   if test "$GXX" = yes; then
7567     CXXFLAGS="-O2"
7568   else
7569     CXXFLAGS=
7570   fi
7571 fi
7572 ac_ext=c
7573 ac_cpp='$CPP $CPPFLAGS'
7574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577
7578 depcc="$CXX"  am_compiler_list=
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7581 $as_echo_n "checking dependency style of $depcc... " >&6; }
7582 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7586   # We make a subdir and do the tests there.  Otherwise we can end up
7587   # making bogus files that we don't know about and never remove.  For
7588   # instance it was reported that on HP-UX the gcc test will end up
7589   # making a dummy file named `D' -- because `-MD' means `put the output
7590   # in D'.
7591   mkdir conftest.dir
7592   # Copy depcomp to subdir because otherwise we won't find it if we're
7593   # using a relative directory.
7594   cp "$am_depcomp" conftest.dir
7595   cd conftest.dir
7596   # We will build objects and dependencies in a subdirectory because
7597   # it helps to detect inapplicable dependency modes.  For instance
7598   # both Tru64's cc and ICC support -MD to output dependencies as a
7599   # side effect of compilation, but ICC will put the dependencies in
7600   # the current directory while Tru64 will put them in the object
7601   # directory.
7602   mkdir sub
7603
7604   am_cv_CXX_dependencies_compiler_type=none
7605   if test "$am_compiler_list" = ""; then
7606      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7607   fi
7608   am__universal=false
7609   case " $depcc " in #(
7610      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7611      esac
7612
7613   for depmode in $am_compiler_list; do
7614     # Setup a source with many dependencies, because some compilers
7615     # like to wrap large dependency lists on column 80 (with \), and
7616     # we should not choose a depcomp mode which is confused by this.
7617     #
7618     # We need to recreate these files for each test, as the compiler may
7619     # overwrite some of them when testing with obscure command lines.
7620     # This happens at least with the AIX C compiler.
7621     : > sub/conftest.c
7622     for i in 1 2 3 4 5 6; do
7623       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7624       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7625       # Solaris 8's {/usr,}/bin/sh.
7626       touch sub/conftst$i.h
7627     done
7628     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7629
7630     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7631     # mode.  It turns out that the SunPro C++ compiler does not properly
7632     # handle `-M -o', and we need to detect this.  Also, some Intel
7633     # versions had trouble with output in subdirs
7634     am__obj=sub/conftest.${OBJEXT-o}
7635     am__minus_obj="-o $am__obj"
7636     case $depmode in
7637     gcc)
7638       # This depmode causes a compiler race in universal mode.
7639       test "$am__universal" = false || continue
7640       ;;
7641     nosideeffect)
7642       # after this tag, mechanisms are not by side-effect, so they'll
7643       # only be used when explicitly requested
7644       if test "x$enable_dependency_tracking" = xyes; then
7645         continue
7646       else
7647         break
7648       fi
7649       ;;
7650     msvisualcpp | msvcmsys)
7651       # This compiler won't grok `-c -o', but also, the minuso test has
7652       # not run yet.  These depmodes are late enough in the game, and
7653       # so weak that their functioning should not be impacted.
7654       am__obj=conftest.${OBJEXT-o}
7655       am__minus_obj=
7656       ;;
7657     none) break ;;
7658     esac
7659     if depmode=$depmode \
7660        source=sub/conftest.c object=$am__obj \
7661        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7662        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7663          >/dev/null 2>conftest.err &&
7664        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7665        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7666        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7667        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7668       # icc doesn't choke on unknown options, it will just issue warnings
7669       # or remarks (even with -Werror).  So we grep stderr for any message
7670       # that says an option was ignored or not supported.
7671       # When given -MP, icc 7.0 and 7.1 complain thusly:
7672       #   icc: Command line warning: ignoring option '-M'; no argument required
7673       # The diagnosis changed in icc 8.0:
7674       #   icc: Command line remark: option '-MP' not supported
7675       if (grep 'ignoring option' conftest.err ||
7676           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7677         am_cv_CXX_dependencies_compiler_type=$depmode
7678         break
7679       fi
7680     fi
7681   done
7682
7683   cd ..
7684   rm -rf conftest.dir
7685 else
7686   am_cv_CXX_dependencies_compiler_type=none
7687 fi
7688
7689 fi
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7693
7694  if
7695   test "x$enable_dependency_tracking" != xno \
7696   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7697   am__fastdepCXX_TRUE=
7698   am__fastdepCXX_FALSE='#'
7699 else
7700   am__fastdepCXX_TRUE='#'
7701   am__fastdepCXX_FALSE=
7702 fi
7703
7704
7705 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7706     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7707     (test "X$CXX" != "Xg++"))) ; then
7708   ac_ext=cpp
7709 ac_cpp='$CXXCPP $CPPFLAGS'
7710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7714 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7715 if test -z "$CXXCPP"; then
7716   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7717   $as_echo_n "(cached) " >&6
7718 else
7719       # Double quotes because CXXCPP needs to be expanded
7720     for CXXCPP in "$CXX -E" "/lib/cpp"
7721     do
7722       ac_preproc_ok=false
7723 for ac_cxx_preproc_warn_flag in '' yes
7724 do
7725   # Use a header file that comes with gcc, so configuring glibc
7726   # with a fresh cross-compiler works.
7727   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7728   # <limits.h> exists even on freestanding compilers.
7729   # On the NeXT, cc -E runs the code through the compiler's parser,
7730   # not just through cpp. "Syntax error" is here to catch this case.
7731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h.  */
7733 #ifdef __STDC__
7734 # include <limits.h>
7735 #else
7736 # include <assert.h>
7737 #endif
7738                      Syntax error
7739 _ACEOF
7740 if ac_fn_cxx_try_cpp "$LINENO"; then :
7741
7742 else
7743   # Broken: fails on valid input.
7744 continue
7745 fi
7746 rm -f conftest.err conftest.$ac_ext
7747
7748   # OK, works on sane cases.  Now check whether nonexistent headers
7749   # can be detected and how.
7750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h.  */
7752 #include <ac_nonexistent.h>
7753 _ACEOF
7754 if ac_fn_cxx_try_cpp "$LINENO"; then :
7755   # Broken: success on invalid input.
7756 continue
7757 else
7758   # Passes both tests.
7759 ac_preproc_ok=:
7760 break
7761 fi
7762 rm -f conftest.err conftest.$ac_ext
7763
7764 done
7765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7766 rm -f conftest.err conftest.$ac_ext
7767 if $ac_preproc_ok; then :
7768   break
7769 fi
7770
7771     done
7772     ac_cv_prog_CXXCPP=$CXXCPP
7773
7774 fi
7775   CXXCPP=$ac_cv_prog_CXXCPP
7776 else
7777   ac_cv_prog_CXXCPP=$CXXCPP
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7780 $as_echo "$CXXCPP" >&6; }
7781 ac_preproc_ok=false
7782 for ac_cxx_preproc_warn_flag in '' yes
7783 do
7784   # Use a header file that comes with gcc, so configuring glibc
7785   # with a fresh cross-compiler works.
7786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787   # <limits.h> exists even on freestanding compilers.
7788   # On the NeXT, cc -E runs the code through the compiler's parser,
7789   # not just through cpp. "Syntax error" is here to catch this case.
7790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h.  */
7792 #ifdef __STDC__
7793 # include <limits.h>
7794 #else
7795 # include <assert.h>
7796 #endif
7797                      Syntax error
7798 _ACEOF
7799 if ac_fn_cxx_try_cpp "$LINENO"; then :
7800
7801 else
7802   # Broken: fails on valid input.
7803 continue
7804 fi
7805 rm -f conftest.err conftest.$ac_ext
7806
7807   # OK, works on sane cases.  Now check whether nonexistent headers
7808   # can be detected and how.
7809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h.  */
7811 #include <ac_nonexistent.h>
7812 _ACEOF
7813 if ac_fn_cxx_try_cpp "$LINENO"; then :
7814   # Broken: success on invalid input.
7815 continue
7816 else
7817   # Passes both tests.
7818 ac_preproc_ok=:
7819 break
7820 fi
7821 rm -f conftest.err conftest.$ac_ext
7822
7823 done
7824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7825 rm -f conftest.err conftest.$ac_ext
7826 if $ac_preproc_ok; then :
7827
7828 else
7829   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7831 _lt_caught_CXX_error=yes; }
7832 fi
7833
7834 ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840 else
7841   _lt_caught_CXX_error=yes
7842 fi
7843
7844
7845
7846
7847
7848 # Set options
7849
7850
7851
7852
7853   enable_win32_dll=no
7854
7855
7856             # Check whether --enable-shared was given.
7857 if test "${enable_shared+set}" = set; then :
7858   enableval=$enable_shared; p=${PACKAGE-default}
7859     case $enableval in
7860     yes) enable_shared=yes ;;
7861     no) enable_shared=no ;;
7862     *)
7863       enable_shared=no
7864       # Look at the argument we got.  We use all the common list separators.
7865       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7866       for pkg in $enableval; do
7867         IFS="$lt_save_ifs"
7868         if test "X$pkg" = "X$p"; then
7869           enable_shared=yes
7870         fi
7871       done
7872       IFS="$lt_save_ifs"
7873       ;;
7874     esac
7875 else
7876   enable_shared=yes
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887   # Check whether --enable-static was given.
7888 if test "${enable_static+set}" = set; then :
7889   enableval=$enable_static; p=${PACKAGE-default}
7890     case $enableval in
7891     yes) enable_static=yes ;;
7892     no) enable_static=no ;;
7893     *)
7894      enable_static=no
7895       # Look at the argument we got.  We use all the common list separators.
7896       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7897       for pkg in $enableval; do
7898         IFS="$lt_save_ifs"
7899         if test "X$pkg" = "X$p"; then
7900           enable_static=yes
7901         fi
7902       done
7903       IFS="$lt_save_ifs"
7904       ;;
7905     esac
7906 else
7907   enable_static=yes
7908 fi
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 # Check whether --with-pic was given.
7920 if test "${with_pic+set}" = set; then :
7921   withval=$with_pic; pic_mode="$withval"
7922 else
7923   pic_mode=default
7924 fi
7925
7926
7927 test -z "$pic_mode" && pic_mode=default
7928
7929
7930
7931
7932
7933
7934
7935   # Check whether --enable-fast-install was given.
7936 if test "${enable_fast_install+set}" = set; then :
7937   enableval=$enable_fast_install; p=${PACKAGE-default}
7938     case $enableval in
7939     yes) enable_fast_install=yes ;;
7940     no) enable_fast_install=no ;;
7941     *)
7942       enable_fast_install=no
7943       # Look at the argument we got.  We use all the common list separators.
7944       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7945       for pkg in $enableval; do
7946         IFS="$lt_save_ifs"
7947         if test "X$pkg" = "X$p"; then
7948           enable_fast_install=yes
7949         fi
7950       done
7951       IFS="$lt_save_ifs"
7952       ;;
7953     esac
7954 else
7955   enable_fast_install=yes
7956 fi
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968 # This can be used to rebuild libtool when needed
7969 LIBTOOL_DEPS="$ltmain"
7970
7971 # Always use our own libtool.
7972 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998 test -z "$LN_S" && LN_S="ln -s"
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013 if test -n "${ZSH_VERSION+set}" ; then
8014    setopt NO_GLOB_SUBST
8015 fi
8016
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8018 $as_echo_n "checking for objdir... " >&6; }
8019 if test "${lt_cv_objdir+set}" = set; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   rm -f .libs 2>/dev/null
8023 mkdir .libs 2>/dev/null
8024 if test -d .libs; then
8025   lt_cv_objdir=.libs
8026 else
8027   # MS-DOS does not allow filenames that begin with a dot.
8028   lt_cv_objdir=_libs
8029 fi
8030 rmdir .libs 2>/dev/null
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8033 $as_echo "$lt_cv_objdir" >&6; }
8034 objdir=$lt_cv_objdir
8035
8036
8037
8038
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define LT_OBJDIR "$lt_cv_objdir/"
8042 _ACEOF
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 case $host_os in
8061 aix3*)
8062   # AIX sometimes has problems with the GCC collect2 program.  For some
8063   # reason, if we set the COLLECT_NAMES environment variable, the problems
8064   # vanish in a puff of smoke.
8065   if test "X${COLLECT_NAMES+set}" != Xset; then
8066     COLLECT_NAMES=
8067     export COLLECT_NAMES
8068   fi
8069   ;;
8070 esac
8071
8072 # Sed substitution that helps us do robust quoting.  It backslashifies
8073 # metacharacters that are still active within double-quoted strings.
8074 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8075
8076 # Same as above, but do not quote variable references.
8077 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8078
8079 # Sed substitution to delay expansion of an escaped shell variable in a
8080 # double_quote_subst'ed string.
8081 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8082
8083 # Sed substitution to delay expansion of an escaped single quote.
8084 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8085
8086 # Sed substitution to avoid accidental globbing in evaled expressions
8087 no_glob_subst='s/\*/\\\*/g'
8088
8089 # Global variables:
8090 ofile=libtool
8091 can_build_shared=yes
8092
8093 # All known linkers require a `.a' archive for static linking (except MSVC,
8094 # which needs '.lib').
8095 libext=a
8096
8097 with_gnu_ld="$lt_cv_prog_gnu_ld"
8098
8099 old_CC="$CC"
8100 old_CFLAGS="$CFLAGS"
8101
8102 # Set sane defaults for various variables
8103 test -z "$CC" && CC=cc
8104 test -z "$LTCC" && LTCC=$CC
8105 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8106 test -z "$LD" && LD=ld
8107 test -z "$ac_objext" && ac_objext=o
8108
8109 for cc_temp in $compiler""; do
8110   case $cc_temp in
8111     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8112     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8113     \-*) ;;
8114     *) break;;
8115   esac
8116 done
8117 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8118
8119
8120 # Only perform the check for file, if the check method requires it
8121 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8122 case $deplibs_check_method in
8123 file_magic*)
8124   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8126 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8127 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   case $MAGIC_CMD in
8131 [\\/*] |  ?:[\\/]*)
8132   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8133   ;;
8134 *)
8135   lt_save_MAGIC_CMD="$MAGIC_CMD"
8136   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8137   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8138   for ac_dir in $ac_dummy; do
8139     IFS="$lt_save_ifs"
8140     test -z "$ac_dir" && ac_dir=.
8141     if test -f $ac_dir/${ac_tool_prefix}file; then
8142       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8143       if test -n "$file_magic_test_file"; then
8144         case $deplibs_check_method in
8145         "file_magic "*)
8146           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8147           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8148           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8149             $EGREP "$file_magic_regex" > /dev/null; then
8150             :
8151           else
8152             cat <<_LT_EOF 1>&2
8153
8154 *** Warning: the command libtool uses to detect shared libraries,
8155 *** $file_magic_cmd, produces output that libtool cannot recognize.
8156 *** The result is that libtool may fail to recognize shared libraries
8157 *** as such.  This will affect the creation of libtool libraries that
8158 *** depend on shared libraries, but programs linked with such libtool
8159 *** libraries will work regardless of this problem.  Nevertheless, you
8160 *** may want to report the problem to your system manager and/or to
8161 *** bug-libtool@gnu.org
8162
8163 _LT_EOF
8164           fi ;;
8165         esac
8166       fi
8167       break
8168     fi
8169   done
8170   IFS="$lt_save_ifs"
8171   MAGIC_CMD="$lt_save_MAGIC_CMD"
8172   ;;
8173 esac
8174 fi
8175
8176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8177 if test -n "$MAGIC_CMD"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8179 $as_echo "$MAGIC_CMD" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186
8187
8188
8189 if test -z "$lt_cv_path_MAGIC_CMD"; then
8190   if test -n "$ac_tool_prefix"; then
8191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8192 $as_echo_n "checking for file... " >&6; }
8193 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   case $MAGIC_CMD in
8197 [\\/*] |  ?:[\\/]*)
8198   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8199   ;;
8200 *)
8201   lt_save_MAGIC_CMD="$MAGIC_CMD"
8202   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8203   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8204   for ac_dir in $ac_dummy; do
8205     IFS="$lt_save_ifs"
8206     test -z "$ac_dir" && ac_dir=.
8207     if test -f $ac_dir/file; then
8208       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8209       if test -n "$file_magic_test_file"; then
8210         case $deplibs_check_method in
8211         "file_magic "*)
8212           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8213           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8214           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8215             $EGREP "$file_magic_regex" > /dev/null; then
8216             :
8217           else
8218             cat <<_LT_EOF 1>&2
8219
8220 *** Warning: the command libtool uses to detect shared libraries,
8221 *** $file_magic_cmd, produces output that libtool cannot recognize.
8222 *** The result is that libtool may fail to recognize shared libraries
8223 *** as such.  This will affect the creation of libtool libraries that
8224 *** depend on shared libraries, but programs linked with such libtool
8225 *** libraries will work regardless of this problem.  Nevertheless, you
8226 *** may want to report the problem to your system manager and/or to
8227 *** bug-libtool@gnu.org
8228
8229 _LT_EOF
8230           fi ;;
8231         esac
8232       fi
8233       break
8234     fi
8235   done
8236   IFS="$lt_save_ifs"
8237   MAGIC_CMD="$lt_save_MAGIC_CMD"
8238   ;;
8239 esac
8240 fi
8241
8242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8243 if test -n "$MAGIC_CMD"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8245 $as_echo "$MAGIC_CMD" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251
8252   else
8253     MAGIC_CMD=:
8254   fi
8255 fi
8256
8257   fi
8258   ;;
8259 esac
8260
8261 # Use C for the default configuration in the libtool script
8262
8263 lt_save_CC="$CC"
8264 ac_ext=c
8265 ac_cpp='$CPP $CPPFLAGS'
8266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8269
8270
8271 # Source file extension for C test sources.
8272 ac_ext=c
8273
8274 # Object file extension for compiled C test sources.
8275 objext=o
8276 objext=$objext
8277
8278 # Code to be used in simple compile tests
8279 lt_simple_compile_test_code="int some_variable = 0;"
8280
8281 # Code to be used in simple link tests
8282 lt_simple_link_test_code='int main(){return(0);}'
8283
8284
8285
8286
8287
8288
8289
8290 # If no C compiler was specified, use CC.
8291 LTCC=${LTCC-"$CC"}
8292
8293 # If no C compiler flags were specified, use CFLAGS.
8294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8295
8296 # Allow CC to be a program name with arguments.
8297 compiler=$CC
8298
8299 # Save the default compiler, since it gets overwritten when the other
8300 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8301 compiler_DEFAULT=$CC
8302
8303 # save warnings/boilerplate of simple test code
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8307 _lt_compiler_boilerplate=`cat conftest.err`
8308 $RM conftest*
8309
8310 ac_outfile=conftest.$ac_objext
8311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8313 _lt_linker_boilerplate=`cat conftest.err`
8314 $RM -r conftest*
8315
8316
8317 ## CAVEAT EMPTOR:
8318 ## There is no encapsulation within the following macros, do not change
8319 ## the running order or otherwise move them around unless you know exactly
8320 ## what you are doing...
8321 if test -n "$compiler"; then
8322
8323 lt_prog_compiler_no_builtin_flag=
8324
8325 if test "$GCC" = yes; then
8326   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8327
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   lt_cv_prog_compiler_rtti_exceptions=no
8334    ac_outfile=conftest.$ac_objext
8335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336    lt_compiler_flag="-fno-rtti -fno-exceptions"
8337    # Insert the option either (1) after the last *FLAGS variable, or
8338    # (2) before a word containing "conftest.", or (3) at the end.
8339    # Note that $ac_compile itself does not contain backslashes and begins
8340    # with a dollar sign (not a hyphen), so the echo should work correctly.
8341    # The option is referenced via a variable to avoid confusing sed.
8342    lt_compile=`echo "$ac_compile" | $SED \
8343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345    -e 's:$: $lt_compiler_flag:'`
8346    (eval echo "\"\$as_me:8346: $lt_compile\"" >&5)
8347    (eval "$lt_compile" 2>conftest.err)
8348    ac_status=$?
8349    cat conftest.err >&5
8350    echo "$as_me:8350: \$? = $ac_status" >&5
8351    if (exit $ac_status) && test -s "$ac_outfile"; then
8352      # The compiler can only warn and ignore the option if not recognized
8353      # So say no if there are warnings other than the usual output.
8354      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357        lt_cv_prog_compiler_rtti_exceptions=yes
8358      fi
8359    fi
8360    $RM conftest*
8361
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8365
8366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8367     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8368 else
8369     :
8370 fi
8371
8372 fi
8373
8374
8375
8376
8377
8378
8379   lt_prog_compiler_wl=
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_static=
8382
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8385
8386   if test "$GCC" = yes; then
8387     lt_prog_compiler_wl='-Wl,'
8388     lt_prog_compiler_static='-static'
8389
8390     case $host_os in
8391       aix*)
8392       # All AIX code is PIC.
8393       if test "$host_cpu" = ia64; then
8394         # AIX 5 now supports IA64 processor
8395         lt_prog_compiler_static='-Bstatic'
8396       fi
8397       ;;
8398
8399     amigaos*)
8400       case $host_cpu in
8401       powerpc)
8402             # see comment about AmigaOS4 .so support
8403             lt_prog_compiler_pic='-fPIC'
8404         ;;
8405       m68k)
8406             # FIXME: we need at least 68020 code to build shared libraries, but
8407             # adding the `-m68020' flag to GCC prevents building anything better,
8408             # like `-m68040'.
8409             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8410         ;;
8411       esac
8412       ;;
8413
8414     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8415       # PIC is the default for these OSes.
8416       ;;
8417
8418     mingw* | cygwin* | pw32* | os2* | cegcc*)
8419       # This hack is so that the source file can tell whether it is being
8420       # built for inclusion in a dll (and should export symbols for example).
8421       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8422       # (--disable-auto-import) libraries
8423       lt_prog_compiler_pic='-DDLL_EXPORT'
8424       ;;
8425
8426     darwin* | rhapsody*)
8427       # PIC is the default on this platform
8428       # Common symbols not allowed in MH_DYLIB files
8429       lt_prog_compiler_pic='-fno-common'
8430       ;;
8431
8432     hpux*)
8433       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8434       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8435       # sets the default TLS model and affects inlining.
8436       case $host_cpu in
8437       hppa*64*)
8438         # +Z the default
8439         ;;
8440       *)
8441         lt_prog_compiler_pic='-fPIC'
8442         ;;
8443       esac
8444       ;;
8445
8446     interix[3-9]*)
8447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8448       # Instead, we relocate shared libraries at runtime.
8449       ;;
8450
8451     msdosdjgpp*)
8452       # Just because we use GCC doesn't mean we suddenly get shared libraries
8453       # on systems that don't support them.
8454       lt_prog_compiler_can_build_shared=no
8455       enable_shared=no
8456       ;;
8457
8458     *nto* | *qnx*)
8459       # QNX uses GNU C++, but need to define -shared option too, otherwise
8460       # it will coredump.
8461       lt_prog_compiler_pic='-fPIC -shared'
8462       ;;
8463
8464     sysv4*MP*)
8465       if test -d /usr/nec; then
8466         lt_prog_compiler_pic=-Kconform_pic
8467       fi
8468       ;;
8469
8470     *)
8471       lt_prog_compiler_pic='-fPIC'
8472       ;;
8473     esac
8474   else
8475     # PORTME Check for flag to pass linker flags through the system compiler.
8476     case $host_os in
8477     aix*)
8478       lt_prog_compiler_wl='-Wl,'
8479       if test "$host_cpu" = ia64; then
8480         # AIX 5 now supports IA64 processor
8481         lt_prog_compiler_static='-Bstatic'
8482       else
8483         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8484       fi
8485       ;;
8486
8487     mingw* | cygwin* | pw32* | os2* | cegcc*)
8488       # This hack is so that the source file can tell whether it is being
8489       # built for inclusion in a dll (and should export symbols for example).
8490       lt_prog_compiler_pic='-DDLL_EXPORT'
8491       ;;
8492
8493     hpux9* | hpux10* | hpux11*)
8494       lt_prog_compiler_wl='-Wl,'
8495       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8496       # not for PA HP-UX.
8497       case $host_cpu in
8498       hppa*64*|ia64*)
8499         # +Z the default
8500         ;;
8501       *)
8502         lt_prog_compiler_pic='+Z'
8503         ;;
8504       esac
8505       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8506       lt_prog_compiler_static='${wl}-a ${wl}archive'
8507       ;;
8508
8509     irix5* | irix6* | nonstopux*)
8510       lt_prog_compiler_wl='-Wl,'
8511       # PIC (with -KPIC) is the default.
8512       lt_prog_compiler_static='-non_shared'
8513       ;;
8514
8515     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8516       case $cc_basename in
8517       # old Intel for x86_64 which still supported -KPIC.
8518       ecc*)
8519         lt_prog_compiler_wl='-Wl,'
8520         lt_prog_compiler_pic='-KPIC'
8521         lt_prog_compiler_static='-static'
8522         ;;
8523       # icc used to be incompatible with GCC.
8524       # ICC 10 doesn't accept -KPIC any more.
8525       icc* | ifort*)
8526         lt_prog_compiler_wl='-Wl,'
8527         lt_prog_compiler_pic='-fPIC'
8528         lt_prog_compiler_static='-static'
8529         ;;
8530       # Lahey Fortran 8.1.
8531       lf95*)
8532         lt_prog_compiler_wl='-Wl,'
8533         lt_prog_compiler_pic='--shared'
8534         lt_prog_compiler_static='--static'
8535         ;;
8536       pgcc* | pgf77* | pgf90* | pgf95*)
8537         # Portland Group compilers (*not* the Pentium gcc compiler,
8538         # which looks to be a dead project)
8539         lt_prog_compiler_wl='-Wl,'
8540         lt_prog_compiler_pic='-fpic'
8541         lt_prog_compiler_static='-Bstatic'
8542         ;;
8543       ccc*)
8544         lt_prog_compiler_wl='-Wl,'
8545         # All Alpha code is PIC.
8546         lt_prog_compiler_static='-non_shared'
8547         ;;
8548       xl*)
8549         # IBM XL C 8.0/Fortran 10.1 on PPC
8550         lt_prog_compiler_wl='-Wl,'
8551         lt_prog_compiler_pic='-qpic'
8552         lt_prog_compiler_static='-qstaticlink'
8553         ;;
8554       *)
8555         case `$CC -V 2>&1 | sed 5q` in
8556         *Sun\ C*)
8557           # Sun C 5.9
8558           lt_prog_compiler_pic='-KPIC'
8559           lt_prog_compiler_static='-Bstatic'
8560           lt_prog_compiler_wl='-Wl,'
8561           ;;
8562         *Sun\ F*)
8563           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8564           lt_prog_compiler_pic='-KPIC'
8565           lt_prog_compiler_static='-Bstatic'
8566           lt_prog_compiler_wl=''
8567           ;;
8568         esac
8569         ;;
8570       esac
8571       ;;
8572
8573     newsos6)
8574       lt_prog_compiler_pic='-KPIC'
8575       lt_prog_compiler_static='-Bstatic'
8576       ;;
8577
8578     *nto* | *qnx*)
8579       # QNX uses GNU C++, but need to define -shared option too, otherwise
8580       # it will coredump.
8581       lt_prog_compiler_pic='-fPIC -shared'
8582       ;;
8583
8584     osf3* | osf4* | osf5*)
8585       lt_prog_compiler_wl='-Wl,'
8586       # All OSF/1 code is PIC.
8587       lt_prog_compiler_static='-non_shared'
8588       ;;
8589
8590     rdos*)
8591       lt_prog_compiler_static='-non_shared'
8592       ;;
8593
8594     solaris*)
8595       lt_prog_compiler_pic='-KPIC'
8596       lt_prog_compiler_static='-Bstatic'
8597       case $cc_basename in
8598       f77* | f90* | f95*)
8599         lt_prog_compiler_wl='-Qoption ld ';;
8600       *)
8601         lt_prog_compiler_wl='-Wl,';;
8602       esac
8603       ;;
8604
8605     sunos4*)
8606       lt_prog_compiler_wl='-Qoption ld '
8607       lt_prog_compiler_pic='-PIC'
8608       lt_prog_compiler_static='-Bstatic'
8609       ;;
8610
8611     sysv4 | sysv4.2uw2* | sysv4.3*)
8612       lt_prog_compiler_wl='-Wl,'
8613       lt_prog_compiler_pic='-KPIC'
8614       lt_prog_compiler_static='-Bstatic'
8615       ;;
8616
8617     sysv4*MP*)
8618       if test -d /usr/nec ;then
8619         lt_prog_compiler_pic='-Kconform_pic'
8620         lt_prog_compiler_static='-Bstatic'
8621       fi
8622       ;;
8623
8624     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8625       lt_prog_compiler_wl='-Wl,'
8626       lt_prog_compiler_pic='-KPIC'
8627       lt_prog_compiler_static='-Bstatic'
8628       ;;
8629
8630     unicos*)
8631       lt_prog_compiler_wl='-Wl,'
8632       lt_prog_compiler_can_build_shared=no
8633       ;;
8634
8635     uts4*)
8636       lt_prog_compiler_pic='-pic'
8637       lt_prog_compiler_static='-Bstatic'
8638       ;;
8639
8640     *)
8641       lt_prog_compiler_can_build_shared=no
8642       ;;
8643     esac
8644   fi
8645
8646 case $host_os in
8647   # For platforms which do not support PIC, -DPIC is meaningless:
8648   *djgpp*)
8649     lt_prog_compiler_pic=
8650     ;;
8651   *)
8652     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8653     ;;
8654 esac
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8656 $as_echo "$lt_prog_compiler_pic" >&6; }
8657
8658
8659
8660
8661
8662
8663 #
8664 # Check to make sure the PIC flag actually works.
8665 #
8666 if test -n "$lt_prog_compiler_pic"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8668 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8669 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8670   $as_echo_n "(cached) " >&6
8671 else
8672   lt_cv_prog_compiler_pic_works=no
8673    ac_outfile=conftest.$ac_objext
8674    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8675    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8676    # Insert the option either (1) after the last *FLAGS variable, or
8677    # (2) before a word containing "conftest.", or (3) at the end.
8678    # Note that $ac_compile itself does not contain backslashes and begins
8679    # with a dollar sign (not a hyphen), so the echo should work correctly.
8680    # The option is referenced via a variable to avoid confusing sed.
8681    lt_compile=`echo "$ac_compile" | $SED \
8682    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8684    -e 's:$: $lt_compiler_flag:'`
8685    (eval echo "\"\$as_me:8685: $lt_compile\"" >&5)
8686    (eval "$lt_compile" 2>conftest.err)
8687    ac_status=$?
8688    cat conftest.err >&5
8689    echo "$as_me:8689: \$? = $ac_status" >&5
8690    if (exit $ac_status) && test -s "$ac_outfile"; then
8691      # The compiler can only warn and ignore the option if not recognized
8692      # So say no if there are warnings other than the usual output.
8693      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8694      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8695      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8696        lt_cv_prog_compiler_pic_works=yes
8697      fi
8698    fi
8699    $RM conftest*
8700
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8703 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8704
8705 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8706     case $lt_prog_compiler_pic in
8707      "" | " "*) ;;
8708      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8709      esac
8710 else
8711     lt_prog_compiler_pic=
8712      lt_prog_compiler_can_build_shared=no
8713 fi
8714
8715 fi
8716
8717
8718
8719
8720
8721
8722 #
8723 # Check to make sure the static flag actually works.
8724 #
8725 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8727 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8728 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   lt_cv_prog_compiler_static_works=no
8732    save_LDFLAGS="$LDFLAGS"
8733    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8734    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8735    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8736      # The linker can only warn and ignore the option if not recognized
8737      # So say no if there are warnings
8738      if test -s conftest.err; then
8739        # Append any errors to the config.log.
8740        cat conftest.err 1>&5
8741        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8742        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8743        if diff conftest.exp conftest.er2 >/dev/null; then
8744          lt_cv_prog_compiler_static_works=yes
8745        fi
8746      else
8747        lt_cv_prog_compiler_static_works=yes
8748      fi
8749    fi
8750    $RM -r conftest*
8751    LDFLAGS="$save_LDFLAGS"
8752
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8755 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8756
8757 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8758     :
8759 else
8760     lt_prog_compiler_static=
8761 fi
8762
8763
8764
8765
8766
8767
8768
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8771 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   lt_cv_prog_compiler_c_o=no
8775    $RM -r conftest 2>/dev/null
8776    mkdir conftest
8777    cd conftest
8778    mkdir out
8779    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8780
8781    lt_compiler_flag="-o out/conftest2.$ac_objext"
8782    # Insert the option either (1) after the last *FLAGS variable, or
8783    # (2) before a word containing "conftest.", or (3) at the end.
8784    # Note that $ac_compile itself does not contain backslashes and begins
8785    # with a dollar sign (not a hyphen), so the echo should work correctly.
8786    lt_compile=`echo "$ac_compile" | $SED \
8787    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8788    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8789    -e 's:$: $lt_compiler_flag:'`
8790    (eval echo "\"\$as_me:8790: $lt_compile\"" >&5)
8791    (eval "$lt_compile" 2>out/conftest.err)
8792    ac_status=$?
8793    cat out/conftest.err >&5
8794    echo "$as_me:8794: \$? = $ac_status" >&5
8795    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8796    then
8797      # The compiler can only warn and ignore the option if not recognized
8798      # So say no if there are warnings
8799      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8800      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8801      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8802        lt_cv_prog_compiler_c_o=yes
8803      fi
8804    fi
8805    chmod u+w . 2>&5
8806    $RM conftest*
8807    # SGI C++ compiler will create directory out/ii_files/ for
8808    # template instantiation
8809    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8810    $RM out/* && rmdir out
8811    cd ..
8812    $RM -r conftest
8813    $RM conftest*
8814
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8817 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8818
8819
8820
8821
8822
8823
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8826 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   lt_cv_prog_compiler_c_o=no
8830    $RM -r conftest 2>/dev/null
8831    mkdir conftest
8832    cd conftest
8833    mkdir out
8834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8835
8836    lt_compiler_flag="-o out/conftest2.$ac_objext"
8837    # Insert the option either (1) after the last *FLAGS variable, or
8838    # (2) before a word containing "conftest.", or (3) at the end.
8839    # Note that $ac_compile itself does not contain backslashes and begins
8840    # with a dollar sign (not a hyphen), so the echo should work correctly.
8841    lt_compile=`echo "$ac_compile" | $SED \
8842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8844    -e 's:$: $lt_compiler_flag:'`
8845    (eval echo "\"\$as_me:8845: $lt_compile\"" >&5)
8846    (eval "$lt_compile" 2>out/conftest.err)
8847    ac_status=$?
8848    cat out/conftest.err >&5
8849    echo "$as_me:8849: \$? = $ac_status" >&5
8850    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8851    then
8852      # The compiler can only warn and ignore the option if not recognized
8853      # So say no if there are warnings
8854      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8855      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8856      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8857        lt_cv_prog_compiler_c_o=yes
8858      fi
8859    fi
8860    chmod u+w . 2>&5
8861    $RM conftest*
8862    # SGI C++ compiler will create directory out/ii_files/ for
8863    # template instantiation
8864    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8865    $RM out/* && rmdir out
8866    cd ..
8867    $RM -r conftest
8868    $RM conftest*
8869
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8872 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8873
8874
8875
8876
8877 hard_links="nottested"
8878 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8879   # do not overwrite the value of need_locks provided by the user
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8881 $as_echo_n "checking if we can lock with hard links... " >&6; }
8882   hard_links=yes
8883   $RM conftest*
8884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8885   touch conftest.a
8886   ln conftest.a conftest.b 2>&5 || hard_links=no
8887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8889 $as_echo "$hard_links" >&6; }
8890   if test "$hard_links" = no; then
8891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8892 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8893     need_locks=warn
8894   fi
8895 else
8896   need_locks=no
8897 fi
8898
8899
8900
8901
8902
8903
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8905 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8906
8907   runpath_var=
8908   allow_undefined_flag=
8909   always_export_symbols=no
8910   archive_cmds=
8911   archive_expsym_cmds=
8912   compiler_needs_object=no
8913   enable_shared_with_static_runtimes=no
8914   export_dynamic_flag_spec=
8915   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8916   hardcode_automatic=no
8917   hardcode_direct=no
8918   hardcode_direct_absolute=no
8919   hardcode_libdir_flag_spec=
8920   hardcode_libdir_flag_spec_ld=
8921   hardcode_libdir_separator=
8922   hardcode_minus_L=no
8923   hardcode_shlibpath_var=unsupported
8924   inherit_rpath=no
8925   link_all_deplibs=unknown
8926   module_cmds=
8927   module_expsym_cmds=
8928   old_archive_from_new_cmds=
8929   old_archive_from_expsyms_cmds=
8930   thread_safe_flag_spec=
8931   whole_archive_flag_spec=
8932   # include_expsyms should be a list of space-separated symbols to be *always*
8933   # included in the symbol list
8934   include_expsyms=
8935   # exclude_expsyms can be an extended regexp of symbols to exclude
8936   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8937   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8938   # as well as any symbol that contains `d'.
8939   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8940   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8941   # platforms (ab)use it in PIC code, but their linkers get confused if
8942   # the symbol is explicitly referenced.  Since portable code cannot
8943   # rely on this symbol name, it's probably fine to never include it in
8944   # preloaded symbol tables.
8945   # Exclude shared library initialization/finalization symbols.
8946   extract_expsyms_cmds=
8947
8948   case $host_os in
8949   cygwin* | mingw* | pw32* | cegcc*)
8950     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8951     # When not using gcc, we currently assume that we are using
8952     # Microsoft Visual C++.
8953     if test "$GCC" != yes; then
8954       with_gnu_ld=no
8955     fi
8956     ;;
8957   interix*)
8958     # we just hope/assume this is gcc and not c89 (= MSVC++)
8959     with_gnu_ld=yes
8960     ;;
8961   openbsd*)
8962     with_gnu_ld=no
8963     ;;
8964   linux* | k*bsd*-gnu)
8965     link_all_deplibs=no
8966     ;;
8967   esac
8968
8969   ld_shlibs=yes
8970   if test "$with_gnu_ld" = yes; then
8971     # If archive_cmds runs LD, not CC, wlarc should be empty
8972     wlarc='${wl}'
8973
8974     # Set some defaults for GNU ld with shared library support. These
8975     # are reset later if shared libraries are not supported. Putting them
8976     # here allows them to be overridden if necessary.
8977     runpath_var=LD_RUN_PATH
8978     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979     export_dynamic_flag_spec='${wl}--export-dynamic'
8980     # ancient GNU ld didn't support --whole-archive et. al.
8981     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8982       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8983     else
8984       whole_archive_flag_spec=
8985     fi
8986     supports_anon_versioning=no
8987     case `$LD -v 2>&1` in
8988       *GNU\ gold*) supports_anon_versioning=yes ;;
8989       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8990       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8991       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8992       *\ 2.11.*) ;; # other 2.11 versions
8993       *) supports_anon_versioning=yes ;;
8994     esac
8995
8996     # See if GNU ld supports shared libraries.
8997     case $host_os in
8998     aix[3-9]*)
8999       # On AIX/PPC, the GNU linker is very broken
9000       if test "$host_cpu" != ia64; then
9001         ld_shlibs=no
9002         cat <<_LT_EOF 1>&2
9003
9004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9005 *** to be unable to reliably create shared libraries on AIX.
9006 *** Therefore, libtool is disabling shared libraries support.  If you
9007 *** really care for shared libraries, you may want to modify your PATH
9008 *** so that a non-GNU linker is found, and then restart.
9009
9010 _LT_EOF
9011       fi
9012       ;;
9013
9014     amigaos*)
9015       case $host_cpu in
9016       powerpc)
9017             # see comment about AmigaOS4 .so support
9018             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019             archive_expsym_cmds=''
9020         ;;
9021       m68k)
9022             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)'
9023             hardcode_libdir_flag_spec='-L$libdir'
9024             hardcode_minus_L=yes
9025         ;;
9026       esac
9027       ;;
9028
9029     beos*)
9030       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031         allow_undefined_flag=unsupported
9032         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9033         # support --undefined.  This deserves some investigation.  FIXME
9034         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035       else
9036         ld_shlibs=no
9037       fi
9038       ;;
9039
9040     cygwin* | mingw* | pw32* | cegcc*)
9041       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9042       # as there is no search path for DLLs.
9043       hardcode_libdir_flag_spec='-L$libdir'
9044       allow_undefined_flag=unsupported
9045       always_export_symbols=no
9046       enable_shared_with_static_runtimes=yes
9047       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9048
9049       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9051         # If the export-symbols file already is a .def file (1st line
9052         # is EXPORTS), use it as is; otherwise, prepend...
9053         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9054           cp $export_symbols $output_objdir/$soname.def;
9055         else
9056           echo EXPORTS > $output_objdir/$soname.def;
9057           cat $export_symbols >> $output_objdir/$soname.def;
9058         fi~
9059         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9060       else
9061         ld_shlibs=no
9062       fi
9063       ;;
9064
9065     interix[3-9]*)
9066       hardcode_direct=no
9067       hardcode_shlibpath_var=no
9068       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9069       export_dynamic_flag_spec='${wl}-E'
9070       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9071       # Instead, shared libraries are loaded at an image base (0x10000000 by
9072       # default) and relocated if they conflict, which is a slow very memory
9073       # consuming and fragmenting process.  To avoid this, we pick a random,
9074       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9075       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9076       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9077       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'
9078       ;;
9079
9080     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9081       tmp_diet=no
9082       if test "$host_os" = linux-dietlibc; then
9083         case $cc_basename in
9084           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9085         esac
9086       fi
9087       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9088          && test "$tmp_diet" = no
9089       then
9090         tmp_addflag=
9091         tmp_sharedflag='-shared'
9092         case $cc_basename,$host_cpu in
9093         pgcc*)                          # Portland Group C compiler
9094           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'
9095           tmp_addflag=' $pic_flag'
9096           ;;
9097         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9098           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'
9099           tmp_addflag=' $pic_flag -Mnomain' ;;
9100         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9101           tmp_addflag=' -i_dynamic' ;;
9102         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9103           tmp_addflag=' -i_dynamic -nofor_main' ;;
9104         ifc* | ifort*)                  # Intel Fortran compiler
9105           tmp_addflag=' -nofor_main' ;;
9106         lf95*)                          # Lahey Fortran 8.1
9107           whole_archive_flag_spec=
9108           tmp_sharedflag='--shared' ;;
9109         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9110           tmp_sharedflag='-qmkshrobj'
9111           tmp_addflag= ;;
9112         esac
9113         case `$CC -V 2>&1 | sed 5q` in
9114         *Sun\ C*)                       # Sun C 5.9
9115           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'
9116           compiler_needs_object=yes
9117           tmp_sharedflag='-G' ;;
9118         *Sun\ F*)                       # Sun Fortran 8.3
9119           tmp_sharedflag='-G' ;;
9120         esac
9121         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122
9123         if test "x$supports_anon_versioning" = xyes; then
9124           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9125             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9126             echo "local: *; };" >> $output_objdir/$libname.ver~
9127             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9128         fi
9129
9130         case $cc_basename in
9131         xlf*)
9132           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9133           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9134           hardcode_libdir_flag_spec=
9135           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9136           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9137           if test "x$supports_anon_versioning" = xyes; then
9138             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9139               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9140               echo "local: *; };" >> $output_objdir/$libname.ver~
9141               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9142           fi
9143           ;;
9144         esac
9145       else
9146         ld_shlibs=no
9147       fi
9148       ;;
9149
9150     netbsd* | netbsdelf*-gnu)
9151       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9152         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9153         wlarc=
9154       else
9155         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9157       fi
9158       ;;
9159
9160     solaris*)
9161       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9162         ld_shlibs=no
9163         cat <<_LT_EOF 1>&2
9164
9165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9166 *** create shared libraries on Solaris systems.  Therefore, libtool
9167 *** is disabling shared libraries support.  We urge you to upgrade GNU
9168 *** binutils to release 2.9.1 or newer.  Another option is to modify
9169 *** your PATH or compiler configuration so that the native linker is
9170 *** used, and then restart.
9171
9172 _LT_EOF
9173       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9174         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9176       else
9177         ld_shlibs=no
9178       fi
9179       ;;
9180
9181     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9182       case `$LD -v 2>&1` in
9183         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9184         ld_shlibs=no
9185         cat <<_LT_EOF 1>&2
9186
9187 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9188 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9189 *** is disabling shared libraries support.  We urge you to upgrade GNU
9190 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9191 *** your PATH or compiler configuration so that the native linker is
9192 *** used, and then restart.
9193
9194 _LT_EOF
9195         ;;
9196         *)
9197           # For security reasons, it is highly recommended that you always
9198           # use absolute paths for naming shared libraries, and exclude the
9199           # DT_RUNPATH tag from executables and libraries.  But doing so
9200           # requires that you compile everything twice, which is a pain.
9201           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9202             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9203             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9205           else
9206             ld_shlibs=no
9207           fi
9208         ;;
9209       esac
9210       ;;
9211
9212     sunos4*)
9213       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9214       wlarc=
9215       hardcode_direct=yes
9216       hardcode_shlibpath_var=no
9217       ;;
9218
9219     *)
9220       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9223       else
9224         ld_shlibs=no
9225       fi
9226       ;;
9227     esac
9228
9229     if test "$ld_shlibs" = no; then
9230       runpath_var=
9231       hardcode_libdir_flag_spec=
9232       export_dynamic_flag_spec=
9233       whole_archive_flag_spec=
9234     fi
9235   else
9236     # PORTME fill in a description of your system's linker (not GNU ld)
9237     case $host_os in
9238     aix3*)
9239       allow_undefined_flag=unsupported
9240       always_export_symbols=yes
9241       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'
9242       # Note: this linker hardcodes the directories in LIBPATH if there
9243       # are no directories specified by -L.
9244       hardcode_minus_L=yes
9245       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9246         # Neither direct hardcoding nor static linking is supported with a
9247         # broken collect2.
9248         hardcode_direct=unsupported
9249       fi
9250       ;;
9251
9252     aix[4-9]*)
9253       if test "$host_cpu" = ia64; then
9254         # On IA64, the linker does run time linking by default, so we don't
9255         # have to do anything special.
9256         aix_use_runtimelinking=no
9257         exp_sym_flag='-Bexport'
9258         no_entry_flag=""
9259       else
9260         # If we're using GNU nm, then we don't want the "-C" option.
9261         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9262         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9263           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'
9264         else
9265           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'
9266         fi
9267         aix_use_runtimelinking=no
9268
9269         # Test if we are trying to use run time linking or normal
9270         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9271         # need to do runtime linking.
9272         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9273           for ld_flag in $LDFLAGS; do
9274           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9275             aix_use_runtimelinking=yes
9276             break
9277           fi
9278           done
9279           ;;
9280         esac
9281
9282         exp_sym_flag='-bexport'
9283         no_entry_flag='-bnoentry'
9284       fi
9285
9286       # When large executables or shared objects are built, AIX ld can
9287       # have problems creating the table of contents.  If linking a library
9288       # or program results in "error TOC overflow" add -mminimal-toc to
9289       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9290       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9291
9292       archive_cmds=''
9293       hardcode_direct=yes
9294       hardcode_direct_absolute=yes
9295       hardcode_libdir_separator=':'
9296       link_all_deplibs=yes
9297       file_list_spec='${wl}-f,'
9298
9299       if test "$GCC" = yes; then
9300         case $host_os in aix4.[012]|aix4.[012].*)
9301         # We only want to do this on AIX 4.2 and lower, the check
9302         # below for broken collect2 doesn't work under 4.3+
9303           collect2name=`${CC} -print-prog-name=collect2`
9304           if test -f "$collect2name" &&
9305            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9306           then
9307           # We have reworked collect2
9308           :
9309           else
9310           # We have old collect2
9311           hardcode_direct=unsupported
9312           # It fails to find uninstalled libraries when the uninstalled
9313           # path is not listed in the libpath.  Setting hardcode_minus_L
9314           # to unsupported forces relinking
9315           hardcode_minus_L=yes
9316           hardcode_libdir_flag_spec='-L$libdir'
9317           hardcode_libdir_separator=
9318           fi
9319           ;;
9320         esac
9321         shared_flag='-shared'
9322         if test "$aix_use_runtimelinking" = yes; then
9323           shared_flag="$shared_flag "'${wl}-G'
9324         fi
9325         link_all_deplibs=no
9326       else
9327         # not using gcc
9328         if test "$host_cpu" = ia64; then
9329         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9330         # chokes on -Wl,-G. The following line is correct:
9331           shared_flag='-G'
9332         else
9333           if test "$aix_use_runtimelinking" = yes; then
9334             shared_flag='${wl}-G'
9335           else
9336             shared_flag='${wl}-bM:SRE'
9337           fi
9338         fi
9339       fi
9340
9341       export_dynamic_flag_spec='${wl}-bexpall'
9342       # It seems that -bexpall does not export symbols beginning with
9343       # underscore (_), so it is better to generate a list of symbols to export.
9344       always_export_symbols=yes
9345       if test "$aix_use_runtimelinking" = yes; then
9346         # Warning - without using the other runtime loading flags (-brtl),
9347         # -berok will link without error, but may produce a broken library.
9348         allow_undefined_flag='-berok'
9349         # Determine the default libpath from the value encoded in an
9350         # empty executable.
9351         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h.  */
9353
9354 int
9355 main ()
9356 {
9357
9358   ;
9359   return 0;
9360 }
9361 _ACEOF
9362 if ac_fn_c_try_link "$LINENO"; then :
9363
9364 lt_aix_libpath_sed='
9365     /Import File Strings/,/^$/ {
9366         /^0/ {
9367             s/^0  *\(.*\)$/\1/
9368             p
9369         }
9370     }'
9371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9372 # Check for a 64-bit object if we didn't find anything.
9373 if test -z "$aix_libpath"; then
9374   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9375 fi
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext \
9378     conftest$ac_exeext conftest.$ac_ext
9379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9380
9381         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9382         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"
9383       else
9384         if test "$host_cpu" = ia64; then
9385           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9386           allow_undefined_flag="-z nodefs"
9387           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"
9388         else
9389          # Determine the default libpath from the value encoded in an
9390          # empty executable.
9391          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h.  */
9393
9394 int
9395 main ()
9396 {
9397
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403
9404 lt_aix_libpath_sed='
9405     /Import File Strings/,/^$/ {
9406         /^0/ {
9407             s/^0  *\(.*\)$/\1/
9408             p
9409         }
9410     }'
9411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9412 # Check for a 64-bit object if we didn't find anything.
9413 if test -z "$aix_libpath"; then
9414   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9415 fi
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext \
9418     conftest$ac_exeext conftest.$ac_ext
9419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9420
9421          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9422           # Warning - without using the other run time loading flags,
9423           # -berok will link without error, but may produce a broken library.
9424           no_undefined_flag=' ${wl}-bernotok'
9425           allow_undefined_flag=' ${wl}-berok'
9426           # Exported symbols can be pulled into shared objects from archives
9427           whole_archive_flag_spec='$convenience'
9428           archive_cmds_need_lc=yes
9429           # This is similar to how AIX traditionally builds its shared libraries.
9430           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'
9431         fi
9432       fi
9433       ;;
9434
9435     amigaos*)
9436       case $host_cpu in
9437       powerpc)
9438             # see comment about AmigaOS4 .so support
9439             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440             archive_expsym_cmds=''
9441         ;;
9442       m68k)
9443             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)'
9444             hardcode_libdir_flag_spec='-L$libdir'
9445             hardcode_minus_L=yes
9446         ;;
9447       esac
9448       ;;
9449
9450     bsdi[45]*)
9451       export_dynamic_flag_spec=-rdynamic
9452       ;;
9453
9454     cygwin* | mingw* | pw32* | cegcc*)
9455       # When not using gcc, we currently assume that we are using
9456       # Microsoft Visual C++.
9457       # hardcode_libdir_flag_spec is actually meaningless, as there is
9458       # no search path for DLLs.
9459       hardcode_libdir_flag_spec=' '
9460       allow_undefined_flag=unsupported
9461       # Tell ltmain to make .lib files, not .a files.
9462       libext=lib
9463       # Tell ltmain to make .dll files, not .so files.
9464       shrext_cmds=".dll"
9465       # FIXME: Setting linknames here is a bad hack.
9466       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9467       # The linker will automatically build a .lib file if we build a DLL.
9468       old_archive_from_new_cmds='true'
9469       # FIXME: Should let the user specify the lib program.
9470       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9471       fix_srcfile_path='`cygpath -w "$srcfile"`'
9472       enable_shared_with_static_runtimes=yes
9473       ;;
9474
9475     darwin* | rhapsody*)
9476
9477
9478   archive_cmds_need_lc=no
9479   hardcode_direct=no
9480   hardcode_automatic=yes
9481   hardcode_shlibpath_var=unsupported
9482   whole_archive_flag_spec=''
9483   link_all_deplibs=yes
9484   allow_undefined_flag="$_lt_dar_allow_undefined"
9485   case $cc_basename in
9486      ifort*) _lt_dar_can_shared=yes ;;
9487      *) _lt_dar_can_shared=$GCC ;;
9488   esac
9489   if test "$_lt_dar_can_shared" = "yes"; then
9490     output_verbose_link_cmd=echo
9491     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9492     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9493     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}"
9494     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}"
9495
9496   else
9497   ld_shlibs=no
9498   fi
9499
9500       ;;
9501
9502     dgux*)
9503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504       hardcode_libdir_flag_spec='-L$libdir'
9505       hardcode_shlibpath_var=no
9506       ;;
9507
9508     freebsd1*)
9509       ld_shlibs=no
9510       ;;
9511
9512     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9513     # support.  Future versions do this automatically, but an explicit c++rt0.o
9514     # does not break anything, and helps significantly (at the cost of a little
9515     # extra space).
9516     freebsd2.2*)
9517       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9518       hardcode_libdir_flag_spec='-R$libdir'
9519       hardcode_direct=yes
9520       hardcode_shlibpath_var=no
9521       ;;
9522
9523     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9524     freebsd2*)
9525       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9526       hardcode_direct=yes
9527       hardcode_minus_L=yes
9528       hardcode_shlibpath_var=no
9529       ;;
9530
9531     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9532     freebsd* | dragonfly*)
9533       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9534       hardcode_libdir_flag_spec='-R$libdir'
9535       hardcode_direct=yes
9536       hardcode_shlibpath_var=no
9537       ;;
9538
9539     hpux9*)
9540       if test "$GCC" = yes; then
9541         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'
9542       else
9543         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'
9544       fi
9545       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9546       hardcode_libdir_separator=:
9547       hardcode_direct=yes
9548
9549       # hardcode_minus_L: Not really in the search PATH,
9550       # but as the default location of the library.
9551       hardcode_minus_L=yes
9552       export_dynamic_flag_spec='${wl}-E'
9553       ;;
9554
9555     hpux10*)
9556       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9557         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9558       else
9559         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9560       fi
9561       if test "$with_gnu_ld" = no; then
9562         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563         hardcode_libdir_flag_spec_ld='+b $libdir'
9564         hardcode_libdir_separator=:
9565         hardcode_direct=yes
9566         hardcode_direct_absolute=yes
9567         export_dynamic_flag_spec='${wl}-E'
9568         # hardcode_minus_L: Not really in the search PATH,
9569         # but as the default location of the library.
9570         hardcode_minus_L=yes
9571       fi
9572       ;;
9573
9574     hpux11*)
9575       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9576         case $host_cpu in
9577         hppa*64*)
9578           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9579           ;;
9580         ia64*)
9581           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9582           ;;
9583         *)
9584           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9585           ;;
9586         esac
9587       else
9588         case $host_cpu in
9589         hppa*64*)
9590           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591           ;;
9592         ia64*)
9593           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9594           ;;
9595         *)
9596           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9597           ;;
9598         esac
9599       fi
9600       if test "$with_gnu_ld" = no; then
9601         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9602         hardcode_libdir_separator=:
9603
9604         case $host_cpu in
9605         hppa*64*|ia64*)
9606           hardcode_direct=no
9607           hardcode_shlibpath_var=no
9608           ;;
9609         *)
9610           hardcode_direct=yes
9611           hardcode_direct_absolute=yes
9612           export_dynamic_flag_spec='${wl}-E'
9613
9614           # hardcode_minus_L: Not really in the search PATH,
9615           # but as the default location of the library.
9616           hardcode_minus_L=yes
9617           ;;
9618         esac
9619       fi
9620       ;;
9621
9622     irix5* | irix6* | nonstopux*)
9623       if test "$GCC" = yes; then
9624         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'
9625         # Try to use the -exported_symbol ld option, if it does not
9626         # work, assume that -exports_file does not work either and
9627         # implicitly export all symbols.
9628         save_LDFLAGS="$LDFLAGS"
9629         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h.  */
9632 int foo(void) {}
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9635   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'
9636
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext \
9639     conftest$ac_exeext conftest.$ac_ext
9640         LDFLAGS="$save_LDFLAGS"
9641       else
9642         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'
9643         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'
9644       fi
9645       archive_cmds_need_lc='no'
9646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647       hardcode_libdir_separator=:
9648       inherit_rpath=yes
9649       link_all_deplibs=yes
9650       ;;
9651
9652     netbsd* | netbsdelf*-gnu)
9653       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9654         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9655       else
9656         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9657       fi
9658       hardcode_libdir_flag_spec='-R$libdir'
9659       hardcode_direct=yes
9660       hardcode_shlibpath_var=no
9661       ;;
9662
9663     newsos6)
9664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665       hardcode_direct=yes
9666       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9667       hardcode_libdir_separator=:
9668       hardcode_shlibpath_var=no
9669       ;;
9670
9671     *nto* | *qnx*)
9672       ;;
9673
9674     openbsd*)
9675       if test -f /usr/libexec/ld.so; then
9676         hardcode_direct=yes
9677         hardcode_shlibpath_var=no
9678         hardcode_direct_absolute=yes
9679         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9681           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9682           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9683           export_dynamic_flag_spec='${wl}-E'
9684         else
9685           case $host_os in
9686            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9687              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688              hardcode_libdir_flag_spec='-R$libdir'
9689              ;;
9690            *)
9691              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9692              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9693              ;;
9694           esac
9695         fi
9696       else
9697         ld_shlibs=no
9698       fi
9699       ;;
9700
9701     os2*)
9702       hardcode_libdir_flag_spec='-L$libdir'
9703       hardcode_minus_L=yes
9704       allow_undefined_flag=unsupported
9705       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'
9706       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9707       ;;
9708
9709     osf3*)
9710       if test "$GCC" = yes; then
9711         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9712         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'
9713       else
9714         allow_undefined_flag=' -expect_unresolved \*'
9715         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'
9716       fi
9717       archive_cmds_need_lc='no'
9718       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719       hardcode_libdir_separator=:
9720       ;;
9721
9722     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9723       if test "$GCC" = yes; then
9724         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9725         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'
9726         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9727       else
9728         allow_undefined_flag=' -expect_unresolved \*'
9729         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'
9730         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~
9731         $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'
9732
9733         # Both c and cxx compiler support -rpath directly
9734         hardcode_libdir_flag_spec='-rpath $libdir'
9735       fi
9736       archive_cmds_need_lc='no'
9737       hardcode_libdir_separator=:
9738       ;;
9739
9740     solaris*)
9741       no_undefined_flag=' -z defs'
9742       if test "$GCC" = yes; then
9743         wlarc='${wl}'
9744         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9746           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9747       else
9748         case `$CC -V 2>&1` in
9749         *"Compilers 5.0"*)
9750           wlarc=''
9751           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9753           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9754           ;;
9755         *)
9756           wlarc='${wl}'
9757           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9758           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9759           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9760           ;;
9761         esac
9762       fi
9763       hardcode_libdir_flag_spec='-R$libdir'
9764       hardcode_shlibpath_var=no
9765       case $host_os in
9766       solaris2.[0-5] | solaris2.[0-5].*) ;;
9767       *)
9768         # The compiler driver will combine and reorder linker options,
9769         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9770         # but is careful enough not to reorder.
9771         # Supported since Solaris 2.6 (maybe 2.5.1?)
9772         if test "$GCC" = yes; then
9773           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9774         else
9775           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9776         fi
9777         ;;
9778       esac
9779       link_all_deplibs=yes
9780       ;;
9781
9782     sunos4*)
9783       if test "x$host_vendor" = xsequent; then
9784         # Use $CC to link under sequent, because it throws in some extra .o
9785         # files that make .init and .fini sections work.
9786         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9787       else
9788         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9789       fi
9790       hardcode_libdir_flag_spec='-L$libdir'
9791       hardcode_direct=yes
9792       hardcode_minus_L=yes
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     sysv4)
9797       case $host_vendor in
9798         sni)
9799           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800           hardcode_direct=yes # is this really true???
9801         ;;
9802         siemens)
9803           ## LD is ld it makes a PLAMLIB
9804           ## CC just makes a GrossModule.
9805           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9806           reload_cmds='$CC -r -o $output$reload_objs'
9807           hardcode_direct=no
9808         ;;
9809         motorola)
9810           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9812         ;;
9813       esac
9814       runpath_var='LD_RUN_PATH'
9815       hardcode_shlibpath_var=no
9816       ;;
9817
9818     sysv4.3*)
9819       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820       hardcode_shlibpath_var=no
9821       export_dynamic_flag_spec='-Bexport'
9822       ;;
9823
9824     sysv4*MP*)
9825       if test -d /usr/nec; then
9826         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827         hardcode_shlibpath_var=no
9828         runpath_var=LD_RUN_PATH
9829         hardcode_runpath_var=yes
9830         ld_shlibs=yes
9831       fi
9832       ;;
9833
9834     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9835       no_undefined_flag='${wl}-z,text'
9836       archive_cmds_need_lc=no
9837       hardcode_shlibpath_var=no
9838       runpath_var='LD_RUN_PATH'
9839
9840       if test "$GCC" = yes; then
9841         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843       else
9844         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846       fi
9847       ;;
9848
9849     sysv5* | sco3.2v5* | sco5v6*)
9850       # Note: We can NOT use -z defs as we might desire, because we do not
9851       # link with -lc, and that would cause any symbols used from libc to
9852       # always be unresolved, which means just about no library would
9853       # ever link correctly.  If we're not using GNU ld we use -z text
9854       # though, which does catch some bad symbols but isn't as heavy-handed
9855       # as -z defs.
9856       no_undefined_flag='${wl}-z,text'
9857       allow_undefined_flag='${wl}-z,nodefs'
9858       archive_cmds_need_lc=no
9859       hardcode_shlibpath_var=no
9860       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9861       hardcode_libdir_separator=':'
9862       link_all_deplibs=yes
9863       export_dynamic_flag_spec='${wl}-Bexport'
9864       runpath_var='LD_RUN_PATH'
9865
9866       if test "$GCC" = yes; then
9867         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869       else
9870         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9872       fi
9873       ;;
9874
9875     uts4*)
9876       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877       hardcode_libdir_flag_spec='-L$libdir'
9878       hardcode_shlibpath_var=no
9879       ;;
9880
9881     *)
9882       ld_shlibs=no
9883       ;;
9884     esac
9885
9886     if test x$host_vendor = xsni; then
9887       case $host in
9888       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9889         export_dynamic_flag_spec='${wl}-Blargedynsym'
9890         ;;
9891       esac
9892     fi
9893   fi
9894
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9896 $as_echo "$ld_shlibs" >&6; }
9897 test "$ld_shlibs" = no && can_build_shared=no
9898
9899 with_gnu_ld=$with_gnu_ld
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915 #
9916 # Do we need to explicitly link libc?
9917 #
9918 case "x$archive_cmds_need_lc" in
9919 x|xyes)
9920   # Assume -lc should be added
9921   archive_cmds_need_lc=yes
9922
9923   if test "$enable_shared" = yes && test "$GCC" = yes; then
9924     case $archive_cmds in
9925     *'~'*)
9926       # FIXME: we may have to deal with multi-command sequences.
9927       ;;
9928     '$CC '*)
9929       # Test whether the compiler implicitly links with -lc since on some
9930       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9931       # to ld, don't add -lc before -lgcc.
9932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9933 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9934       $RM conftest*
9935       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9936
9937       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9938   (eval $ac_compile) 2>&5
9939   ac_status=$?
9940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9941   test $ac_status = 0; } 2>conftest.err; then
9942         soname=conftest
9943         lib=conftest
9944         libobjs=conftest.$ac_objext
9945         deplibs=
9946         wl=$lt_prog_compiler_wl
9947         pic_flag=$lt_prog_compiler_pic
9948         compiler_flags=-v
9949         linker_flags=-v
9950         verstring=
9951         output_objdir=.
9952         libname=conftest
9953         lt_save_allow_undefined_flag=$allow_undefined_flag
9954         allow_undefined_flag=
9955         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9956   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9957   ac_status=$?
9958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959   test $ac_status = 0; }
9960         then
9961           archive_cmds_need_lc=no
9962         else
9963           archive_cmds_need_lc=yes
9964         fi
9965         allow_undefined_flag=$lt_save_allow_undefined_flag
9966       else
9967         cat conftest.err 1>&5
9968       fi
9969       $RM conftest*
9970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9971 $as_echo "$archive_cmds_need_lc" >&6; }
9972       ;;
9973     esac
9974   fi
9975   ;;
9976 esac
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10135 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10136
10137 if test "$GCC" = yes; then
10138   case $host_os in
10139     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10140     *) lt_awk_arg="/^libraries:/" ;;
10141   esac
10142   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10143   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10144     # if the path contains ";" then we assume it to be the separator
10145     # otherwise default to the standard path separator (i.e. ":") - it is
10146     # assumed that no part of a normal pathname contains ";" but that should
10147     # okay in the real world where ";" in dirpaths is itself problematic.
10148     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10149   else
10150     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10151   fi
10152   # Ok, now we have the path, separated by spaces, we can step through it
10153   # and add multilib dir if necessary.
10154   lt_tmp_lt_search_path_spec=
10155   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10156   for lt_sys_path in $lt_search_path_spec; do
10157     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10158       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10159     else
10160       test -d "$lt_sys_path" && \
10161         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10162     fi
10163   done
10164   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10165 BEGIN {RS=" "; FS="/|\n";} {
10166   lt_foo="";
10167   lt_count=0;
10168   for (lt_i = NF; lt_i > 0; lt_i--) {
10169     if ($lt_i != "" && $lt_i != ".") {
10170       if ($lt_i == "..") {
10171         lt_count++;
10172       } else {
10173         if (lt_count == 0) {
10174           lt_foo="/" $lt_i lt_foo;
10175         } else {
10176           lt_count--;
10177         }
10178       }
10179     }
10180   }
10181   if (lt_foo != "") { lt_freq[lt_foo]++; }
10182   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10183 }'`
10184   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10185 else
10186   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10187 fi
10188 library_names_spec=
10189 libname_spec='lib$name'
10190 soname_spec=
10191 shrext_cmds=".so"
10192 postinstall_cmds=
10193 postuninstall_cmds=
10194 finish_cmds=
10195 finish_eval=
10196 shlibpath_var=
10197 shlibpath_overrides_runpath=unknown
10198 version_type=none
10199 dynamic_linker="$host_os ld.so"
10200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10201 need_lib_prefix=unknown
10202 hardcode_into_libs=no
10203
10204 # when you set need_version to no, make sure it does not cause -set_version
10205 # flags to be left without arguments
10206 need_version=unknown
10207
10208 case $host_os in
10209 aix3*)
10210   version_type=linux
10211   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10212   shlibpath_var=LIBPATH
10213
10214   # AIX 3 has no versioning support, so we append a major version to the name.
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   ;;
10217
10218 aix[4-9]*)
10219   version_type=linux
10220   need_lib_prefix=no
10221   need_version=no
10222   hardcode_into_libs=yes
10223   if test "$host_cpu" = ia64; then
10224     # AIX 5 supports IA64
10225     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10226     shlibpath_var=LD_LIBRARY_PATH
10227   else
10228     # With GCC up to 2.95.x, collect2 would create an import file
10229     # for dependence libraries.  The import file would start with
10230     # the line `#! .'.  This would cause the generated library to
10231     # depend on `.', always an invalid library.  This was fixed in
10232     # development snapshots of GCC prior to 3.0.
10233     case $host_os in
10234       aix4 | aix4.[01] | aix4.[01].*)
10235       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10236            echo ' yes '
10237            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10238         :
10239       else
10240         can_build_shared=no
10241       fi
10242       ;;
10243     esac
10244     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10245     # soname into executable. Probably we can add versioning support to
10246     # collect2, so additional links can be useful in future.
10247     if test "$aix_use_runtimelinking" = yes; then
10248       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10249       # instead of lib<name>.a to let people know that these are not
10250       # typical AIX shared libraries.
10251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252     else
10253       # We preserve .a as extension for shared libraries through AIX4.2
10254       # and later when we are not doing run time linking.
10255       library_names_spec='${libname}${release}.a $libname.a'
10256       soname_spec='${libname}${release}${shared_ext}$major'
10257     fi
10258     shlibpath_var=LIBPATH
10259   fi
10260   ;;
10261
10262 amigaos*)
10263   case $host_cpu in
10264   powerpc)
10265     # Since July 2007 AmigaOS4 officially supports .so libraries.
10266     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268     ;;
10269   m68k)
10270     library_names_spec='$libname.ixlibrary $libname.a'
10271     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10272     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'
10273     ;;
10274   esac
10275   ;;
10276
10277 beos*)
10278   library_names_spec='${libname}${shared_ext}'
10279   dynamic_linker="$host_os ld.so"
10280   shlibpath_var=LIBRARY_PATH
10281   ;;
10282
10283 bsdi[45]*)
10284   version_type=linux
10285   need_version=no
10286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10291   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10292   # the default ld.so.conf also contains /usr/contrib/lib and
10293   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10294   # libtool to hard-code these into programs
10295   ;;
10296
10297 cygwin* | mingw* | pw32* | cegcc*)
10298   version_type=windows
10299   shrext_cmds=".dll"
10300   need_version=no
10301   need_lib_prefix=no
10302
10303   case $GCC,$host_os in
10304   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10305     library_names_spec='$libname.dll.a'
10306     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10307     postinstall_cmds='base_file=`basename \${file}`~
10308       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10309       dldir=$destdir/`dirname \$dlpath`~
10310       test -d \$dldir || mkdir -p \$dldir~
10311       $install_prog $dir/$dlname \$dldir/$dlname~
10312       chmod a+x \$dldir/$dlname~
10313       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10314         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10315       fi'
10316     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10317       dlpath=$dir/\$dldll~
10318        $RM \$dlpath'
10319     shlibpath_overrides_runpath=yes
10320
10321     case $host_os in
10322     cygwin*)
10323       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10324       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10326       ;;
10327     mingw* | cegcc*)
10328       # MinGW DLLs use traditional 'lib' prefix
10329       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10331       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10332         # It is most probably a Windows format PATH printed by
10333         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10334         # path with ; separators, and with drive letters. We can handle the
10335         # drive letters (cygwin fileutils understands them), so leave them,
10336         # especially as we might pass files found there to a mingw objdump,
10337         # which wouldn't understand a cygwinified path. Ahh.
10338         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10339       else
10340         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10341       fi
10342       ;;
10343     pw32*)
10344       # pw32 DLLs use 'pw' prefix rather than 'lib'
10345       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10346       ;;
10347     esac
10348     ;;
10349
10350   *)
10351     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10352     ;;
10353   esac
10354   dynamic_linker='Win32 ld.exe'
10355   # FIXME: first we should search . and the directory the executable is in
10356   shlibpath_var=PATH
10357   ;;
10358
10359 darwin* | rhapsody*)
10360   dynamic_linker="$host_os dyld"
10361   version_type=darwin
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10365   soname_spec='${libname}${release}${major}$shared_ext'
10366   shlibpath_overrides_runpath=yes
10367   shlibpath_var=DYLD_LIBRARY_PATH
10368   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10369
10370   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10371   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10372   ;;
10373
10374 dgux*)
10375   version_type=linux
10376   need_lib_prefix=no
10377   need_version=no
10378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10379   soname_spec='${libname}${release}${shared_ext}$major'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   ;;
10382
10383 freebsd1*)
10384   dynamic_linker=no
10385   ;;
10386
10387 freebsd* | dragonfly*)
10388   # DragonFly does not have aout.  When/if they implement a new
10389   # versioning mechanism, adjust this.
10390   if test -x /usr/bin/objformat; then
10391     objformat=`/usr/bin/objformat`
10392   else
10393     case $host_os in
10394     freebsd[123]*) objformat=aout ;;
10395     *) objformat=elf ;;
10396     esac
10397   fi
10398   version_type=freebsd-$objformat
10399   case $version_type in
10400     freebsd-elf*)
10401       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10402       need_version=no
10403       need_lib_prefix=no
10404       ;;
10405     freebsd-*)
10406       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10407       need_version=yes
10408       ;;
10409   esac
10410   shlibpath_var=LD_LIBRARY_PATH
10411   case $host_os in
10412   freebsd2*)
10413     shlibpath_overrides_runpath=yes
10414     ;;
10415   freebsd3.[01]* | freebsdelf3.[01]*)
10416     shlibpath_overrides_runpath=yes
10417     hardcode_into_libs=yes
10418     ;;
10419   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10420   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10421     shlibpath_overrides_runpath=no
10422     hardcode_into_libs=yes
10423     ;;
10424   *) # from 4.6 on, and DragonFly
10425     shlibpath_overrides_runpath=yes
10426     hardcode_into_libs=yes
10427     ;;
10428   esac
10429   ;;
10430
10431 gnu*)
10432   version_type=linux
10433   need_lib_prefix=no
10434   need_version=no
10435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10436   soname_spec='${libname}${release}${shared_ext}$major'
10437   shlibpath_var=LD_LIBRARY_PATH
10438   hardcode_into_libs=yes
10439   ;;
10440
10441 hpux9* | hpux10* | hpux11*)
10442   # Give a soname corresponding to the major version so that dld.sl refuses to
10443   # link against other versions.
10444   version_type=sunos
10445   need_lib_prefix=no
10446   need_version=no
10447   case $host_cpu in
10448   ia64*)
10449     shrext_cmds='.so'
10450     hardcode_into_libs=yes
10451     dynamic_linker="$host_os dld.so"
10452     shlibpath_var=LD_LIBRARY_PATH
10453     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455     soname_spec='${libname}${release}${shared_ext}$major'
10456     if test "X$HPUX_IA64_MODE" = X32; then
10457       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10458     else
10459       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10460     fi
10461     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10462     ;;
10463   hppa*64*)
10464     shrext_cmds='.sl'
10465     hardcode_into_libs=yes
10466     dynamic_linker="$host_os dld.sl"
10467     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10468     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470     soname_spec='${libname}${release}${shared_ext}$major'
10471     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10472     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10473     ;;
10474   *)
10475     shrext_cmds='.sl'
10476     dynamic_linker="$host_os dld.sl"
10477     shlibpath_var=SHLIB_PATH
10478     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480     soname_spec='${libname}${release}${shared_ext}$major'
10481     ;;
10482   esac
10483   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10484   postinstall_cmds='chmod 555 $lib'
10485   ;;
10486
10487 interix[3-9]*)
10488   version_type=linux
10489   need_lib_prefix=no
10490   need_version=no
10491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492   soname_spec='${libname}${release}${shared_ext}$major'
10493   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10494   shlibpath_var=LD_LIBRARY_PATH
10495   shlibpath_overrides_runpath=no
10496   hardcode_into_libs=yes
10497   ;;
10498
10499 irix5* | irix6* | nonstopux*)
10500   case $host_os in
10501     nonstopux*) version_type=nonstopux ;;
10502     *)
10503         if test "$lt_cv_prog_gnu_ld" = yes; then
10504                 version_type=linux
10505         else
10506                 version_type=irix
10507         fi ;;
10508   esac
10509   need_lib_prefix=no
10510   need_version=no
10511   soname_spec='${libname}${release}${shared_ext}$major'
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10513   case $host_os in
10514   irix5* | nonstopux*)
10515     libsuff= shlibsuff=
10516     ;;
10517   *)
10518     case $LD in # libtool.m4 will add one of these switches to LD
10519     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10520       libsuff= shlibsuff= libmagic=32-bit;;
10521     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10522       libsuff=32 shlibsuff=N32 libmagic=N32;;
10523     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10524       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10525     *) libsuff= shlibsuff= libmagic=never-match;;
10526     esac
10527     ;;
10528   esac
10529   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10530   shlibpath_overrides_runpath=no
10531   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10532   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10533   hardcode_into_libs=yes
10534   ;;
10535
10536 # No shared lib support for Linux oldld, aout, or coff.
10537 linux*oldld* | linux*aout* | linux*coff*)
10538   dynamic_linker=no
10539   ;;
10540
10541 # This must be Linux ELF.
10542 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10543   version_type=linux
10544   need_lib_prefix=no
10545   need_version=no
10546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547   soname_spec='${libname}${release}${shared_ext}$major'
10548   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10549   shlibpath_var=LD_LIBRARY_PATH
10550   shlibpath_overrides_runpath=no
10551   # Some binutils ld are patched to set DT_RUNPATH
10552   save_LDFLAGS=$LDFLAGS
10553   save_libdir=$libdir
10554   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10555        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h.  */
10558
10559 int
10560 main ()
10561 {
10562
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10569   shlibpath_overrides_runpath=yes
10570 fi
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext \
10573     conftest$ac_exeext conftest.$ac_ext
10574   LDFLAGS=$save_LDFLAGS
10575   libdir=$save_libdir
10576
10577   # This implies no fast_install, which is unacceptable.
10578   # Some rework will be needed to allow for fast_install
10579   # before this can be enabled.
10580   hardcode_into_libs=yes
10581
10582   # Append ld.so.conf contents to the search path
10583   if test -f /etc/ld.so.conf; then
10584     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' ' '`
10585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10586   fi
10587
10588   # We used to test for /lib/ld.so.1 and disable shared libraries on
10589   # powerpc, because MkLinux only supported shared libraries with the
10590   # GNU dynamic linker.  Since this was broken with cross compilers,
10591   # most powerpc-linux boxes support dynamic linking these days and
10592   # people can always --disable-shared, the test was removed, and we
10593   # assume the GNU/Linux dynamic linker is in use.
10594   dynamic_linker='GNU/Linux ld.so'
10595   ;;
10596
10597 netbsdelf*-gnu)
10598   version_type=linux
10599   need_lib_prefix=no
10600   need_version=no
10601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   shlibpath_var=LD_LIBRARY_PATH
10604   shlibpath_overrides_runpath=no
10605   hardcode_into_libs=yes
10606   dynamic_linker='NetBSD ld.elf_so'
10607   ;;
10608
10609 netbsd*)
10610   version_type=sunos
10611   need_lib_prefix=no
10612   need_version=no
10613   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616     dynamic_linker='NetBSD (a.out) ld.so'
10617   else
10618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619     soname_spec='${libname}${release}${shared_ext}$major'
10620     dynamic_linker='NetBSD ld.elf_so'
10621   fi
10622   shlibpath_var=LD_LIBRARY_PATH
10623   shlibpath_overrides_runpath=yes
10624   hardcode_into_libs=yes
10625   ;;
10626
10627 newsos6)
10628   version_type=linux
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   shlibpath_overrides_runpath=yes
10632   ;;
10633
10634 *nto* | *qnx*)
10635   version_type=qnx
10636   need_lib_prefix=no
10637   need_version=no
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639   soname_spec='${libname}${release}${shared_ext}$major'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   shlibpath_overrides_runpath=no
10642   hardcode_into_libs=yes
10643   dynamic_linker='ldqnx.so'
10644   ;;
10645
10646 openbsd*)
10647   version_type=sunos
10648   sys_lib_dlsearch_path_spec="/usr/lib"
10649   need_lib_prefix=no
10650   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10651   case $host_os in
10652     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10653     *)                          need_version=no  ;;
10654   esac
10655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657   shlibpath_var=LD_LIBRARY_PATH
10658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10659     case $host_os in
10660       openbsd2.[89] | openbsd2.[89].*)
10661         shlibpath_overrides_runpath=no
10662         ;;
10663       *)
10664         shlibpath_overrides_runpath=yes
10665         ;;
10666       esac
10667   else
10668     shlibpath_overrides_runpath=yes
10669   fi
10670   ;;
10671
10672 os2*)
10673   libname_spec='$name'
10674   shrext_cmds=".dll"
10675   need_lib_prefix=no
10676   library_names_spec='$libname${shared_ext} $libname.a'
10677   dynamic_linker='OS/2 ld.exe'
10678   shlibpath_var=LIBPATH
10679   ;;
10680
10681 osf3* | osf4* | osf5*)
10682   version_type=osf
10683   need_lib_prefix=no
10684   need_version=no
10685   soname_spec='${libname}${release}${shared_ext}$major'
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10690   ;;
10691
10692 rdos*)
10693   dynamic_linker=no
10694   ;;
10695
10696 solaris*)
10697   version_type=linux
10698   need_lib_prefix=no
10699   need_version=no
10700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701   soname_spec='${libname}${release}${shared_ext}$major'
10702   shlibpath_var=LD_LIBRARY_PATH
10703   shlibpath_overrides_runpath=yes
10704   hardcode_into_libs=yes
10705   # ldd complains unless libraries are executable
10706   postinstall_cmds='chmod +x $lib'
10707   ;;
10708
10709 sunos4*)
10710   version_type=sunos
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713   shlibpath_var=LD_LIBRARY_PATH
10714   shlibpath_overrides_runpath=yes
10715   if test "$with_gnu_ld" = yes; then
10716     need_lib_prefix=no
10717   fi
10718   need_version=yes
10719   ;;
10720
10721 sysv4 | sysv4.3*)
10722   version_type=linux
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   case $host_vendor in
10727     sni)
10728       shlibpath_overrides_runpath=no
10729       need_lib_prefix=no
10730       runpath_var=LD_RUN_PATH
10731       ;;
10732     siemens)
10733       need_lib_prefix=no
10734       ;;
10735     motorola)
10736       need_lib_prefix=no
10737       need_version=no
10738       shlibpath_overrides_runpath=no
10739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740       ;;
10741   esac
10742   ;;
10743
10744 sysv4*MP*)
10745   if test -d /usr/nec ;then
10746     version_type=linux
10747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748     soname_spec='$libname${shared_ext}.$major'
10749     shlibpath_var=LD_LIBRARY_PATH
10750   fi
10751   ;;
10752
10753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754   version_type=freebsd-elf
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   shlibpath_overrides_runpath=yes
10761   hardcode_into_libs=yes
10762   if test "$with_gnu_ld" = yes; then
10763     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10764   else
10765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10766     case $host_os in
10767       sco3.2v5*)
10768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10769         ;;
10770     esac
10771   fi
10772   sys_lib_dlsearch_path_spec='/usr/lib'
10773   ;;
10774
10775 tpf*)
10776   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10777   version_type=linux
10778   need_lib_prefix=no
10779   need_version=no
10780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781   shlibpath_var=LD_LIBRARY_PATH
10782   shlibpath_overrides_runpath=no
10783   hardcode_into_libs=yes
10784   ;;
10785
10786 uts4*)
10787   version_type=linux
10788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   shlibpath_var=LD_LIBRARY_PATH
10791   ;;
10792
10793 *)
10794   dynamic_linker=no
10795   ;;
10796 esac
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798 $as_echo "$dynamic_linker" >&6; }
10799 test "$dynamic_linker" = no && can_build_shared=no
10800
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804 fi
10805
10806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10808 fi
10809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10811 fi
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10900 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10901 hardcode_action=
10902 if test -n "$hardcode_libdir_flag_spec" ||
10903    test -n "$runpath_var" ||
10904    test "X$hardcode_automatic" = "Xyes" ; then
10905
10906   # We can hardcode non-existent directories.
10907   if test "$hardcode_direct" != no &&
10908      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10909      # have to relink, otherwise we might link with an installed library
10910      # when we should be linking with a yet-to-be-installed one
10911      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10912      test "$hardcode_minus_L" != no; then
10913     # Linking always hardcodes the temporary library directory.
10914     hardcode_action=relink
10915   else
10916     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10917     hardcode_action=immediate
10918   fi
10919 else
10920   # We cannot hardcode anything, or else we can only hardcode existing
10921   # directories.
10922   hardcode_action=unsupported
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10925 $as_echo "$hardcode_action" >&6; }
10926
10927 if test "$hardcode_action" = relink ||
10928    test "$inherit_rpath" = yes; then
10929   # Fast installation is not supported
10930   enable_fast_install=no
10931 elif test "$shlibpath_overrides_runpath" = yes ||
10932      test "$enable_shared" = no; then
10933   # Fast installation is not necessary
10934   enable_fast_install=needless
10935 fi
10936
10937
10938
10939
10940
10941
10942   if test "x$enable_dlopen" != xyes; then
10943   enable_dlopen=unknown
10944   enable_dlopen_self=unknown
10945   enable_dlopen_self_static=unknown
10946 else
10947   lt_cv_dlopen=no
10948   lt_cv_dlopen_libs=
10949
10950   case $host_os in
10951   beos*)
10952     lt_cv_dlopen="load_add_on"
10953     lt_cv_dlopen_libs=
10954     lt_cv_dlopen_self=yes
10955     ;;
10956
10957   mingw* | pw32* | cegcc*)
10958     lt_cv_dlopen="LoadLibrary"
10959     lt_cv_dlopen_libs=
10960     ;;
10961
10962   cygwin*)
10963     lt_cv_dlopen="dlopen"
10964     lt_cv_dlopen_libs=
10965     ;;
10966
10967   darwin*)
10968   # if libdl is installed we need to link against it
10969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10972   $as_echo_n "(cached) " >&6
10973 else
10974   ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-ldl  $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h.  */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980    Use char because int might match the return type of a GCC
10981    builtin and then its argument prototype would still apply.  */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10986 int
10987 main ()
10988 {
10989 return dlopen ();
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995   ac_cv_lib_dl_dlopen=yes
10996 else
10997   ac_cv_lib_dl_dlopen=no
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000     conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008
11009     lt_cv_dlopen="dyld"
11010     lt_cv_dlopen_libs=
11011     lt_cv_dlopen_self=yes
11012
11013 fi
11014
11015     ;;
11016
11017   *)
11018     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11019 if test "x$ac_cv_func_shl_load" = x""yes; then :
11020   lt_cv_dlopen="shl_load"
11021 else
11022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11025   $as_echo_n "(cached) " >&6
11026 else
11027   ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-ldld  $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h.  */
11031
11032 /* Override any GCC internal prototype to avoid an error.
11033    Use char because int might match the return type of a GCC
11034    builtin and then its argument prototype would still apply.  */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char shl_load ();
11039 int
11040 main ()
11041 {
11042 return shl_load ();
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048   ac_cv_lib_dld_shl_load=yes
11049 else
11050   ac_cv_lib_dld_shl_load=no
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053     conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11058 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11059   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11060 else
11061   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11062 if test "x$ac_cv_func_dlopen" = x""yes; then :
11063   lt_cv_dlopen="dlopen"
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldl  $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h.  */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dlopen ();
11082 int
11083 main ()
11084 {
11085 return dlopen ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091   ac_cv_lib_dl_dlopen=yes
11092 else
11093   ac_cv_lib_dl_dlopen=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096     conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11101 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11103 else
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-lsvld  $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h.  */
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115    Use char because int might match the return type of a GCC
11116    builtin and then its argument prototype would still apply.  */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char dlopen ();
11121 int
11122 main ()
11123 {
11124 return dlopen ();
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130   ac_cv_lib_svld_dlopen=yes
11131 else
11132   ac_cv_lib_svld_dlopen=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135     conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11140 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11142 else
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11145 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-ldld  $LIBS"
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h.  */
11152
11153 /* Override any GCC internal prototype to avoid an error.
11154    Use char because int might match the return type of a GCC
11155    builtin and then its argument prototype would still apply.  */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char dld_link ();
11160 int
11161 main ()
11162 {
11163 return dld_link ();
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169   ac_cv_lib_dld_dld_link=yes
11170 else
11171   ac_cv_lib_dld_dld_link=no
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext \
11174     conftest$ac_exeext conftest.$ac_ext
11175 LIBS=$ac_check_lib_save_LIBS
11176 fi
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11179 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11180   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11181 fi
11182
11183
11184 fi
11185
11186
11187 fi
11188
11189
11190 fi
11191
11192
11193 fi
11194
11195
11196 fi
11197
11198     ;;
11199   esac
11200
11201   if test "x$lt_cv_dlopen" != xno; then
11202     enable_dlopen=yes
11203   else
11204     enable_dlopen=no
11205   fi
11206
11207   case $lt_cv_dlopen in
11208   dlopen)
11209     save_CPPFLAGS="$CPPFLAGS"
11210     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11211
11212     save_LDFLAGS="$LDFLAGS"
11213     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214
11215     save_LIBS="$LIBS"
11216     LIBS="$lt_cv_dlopen_libs $LIBS"
11217
11218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11220 if test "${lt_cv_dlopen_self+set}" = set; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223           if test "$cross_compiling" = yes; then :
11224   lt_cv_dlopen_self=cross
11225 else
11226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227   lt_status=$lt_dlunknown
11228   cat > conftest.$ac_ext <<_LT_EOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11231
11232 #if HAVE_DLFCN_H
11233 #include <dlfcn.h>
11234 #endif
11235
11236 #include <stdio.h>
11237
11238 #ifdef RTLD_GLOBAL
11239 #  define LT_DLGLOBAL           RTLD_GLOBAL
11240 #else
11241 #  ifdef DL_GLOBAL
11242 #    define LT_DLGLOBAL         DL_GLOBAL
11243 #  else
11244 #    define LT_DLGLOBAL         0
11245 #  endif
11246 #endif
11247
11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249    find out it does not work in some platform. */
11250 #ifndef LT_DLLAZY_OR_NOW
11251 #  ifdef RTLD_LAZY
11252 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11253 #  else
11254 #    ifdef DL_LAZY
11255 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11256 #    else
11257 #      ifdef RTLD_NOW
11258 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11259 #      else
11260 #        ifdef DL_NOW
11261 #          define LT_DLLAZY_OR_NOW      DL_NOW
11262 #        else
11263 #          define LT_DLLAZY_OR_NOW      0
11264 #        endif
11265 #      endif
11266 #    endif
11267 #  endif
11268 #endif
11269
11270 void fnord() { int i=42;}
11271 int main ()
11272 {
11273   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11274   int status = $lt_dlunknown;
11275
11276   if (self)
11277     {
11278       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11279       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11280       /* dlclose (self); */
11281     }
11282   else
11283     puts (dlerror ());
11284
11285   return status;
11286 }
11287 _LT_EOF
11288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11289   (eval $ac_link) 2>&5
11290   ac_status=$?
11291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11293     (./conftest; exit; ) >&5 2>/dev/null
11294     lt_status=$?
11295     case x$lt_status in
11296       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11299     esac
11300   else :
11301     # compilation failed
11302     lt_cv_dlopen_self=no
11303   fi
11304 fi
11305 rm -fr conftest*
11306
11307
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11310 $as_echo "$lt_cv_dlopen_self" >&6; }
11311
11312     if test "x$lt_cv_dlopen_self" = xyes; then
11313       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11314       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11315 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11316 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11317   $as_echo_n "(cached) " >&6
11318 else
11319           if test "$cross_compiling" = yes; then :
11320   lt_cv_dlopen_self_static=cross
11321 else
11322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323   lt_status=$lt_dlunknown
11324   cat > conftest.$ac_ext <<_LT_EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11327
11328 #if HAVE_DLFCN_H
11329 #include <dlfcn.h>
11330 #endif
11331
11332 #include <stdio.h>
11333
11334 #ifdef RTLD_GLOBAL
11335 #  define LT_DLGLOBAL           RTLD_GLOBAL
11336 #else
11337 #  ifdef DL_GLOBAL
11338 #    define LT_DLGLOBAL         DL_GLOBAL
11339 #  else
11340 #    define LT_DLGLOBAL         0
11341 #  endif
11342 #endif
11343
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345    find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11347 #  ifdef RTLD_LAZY
11348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11349 #  else
11350 #    ifdef DL_LAZY
11351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11352 #    else
11353 #      ifdef RTLD_NOW
11354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11355 #      else
11356 #        ifdef DL_NOW
11357 #          define LT_DLLAZY_OR_NOW      DL_NOW
11358 #        else
11359 #          define LT_DLLAZY_OR_NOW      0
11360 #        endif
11361 #      endif
11362 #    endif
11363 #  endif
11364 #endif
11365
11366 void fnord() { int i=42;}
11367 int main ()
11368 {
11369   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11370   int status = $lt_dlunknown;
11371
11372   if (self)
11373     {
11374       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11375       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11376       /* dlclose (self); */
11377     }
11378   else
11379     puts (dlerror ());
11380
11381   return status;
11382 }
11383 _LT_EOF
11384   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385   (eval $ac_link) 2>&5
11386   ac_status=$?
11387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11389     (./conftest; exit; ) >&5 2>/dev/null
11390     lt_status=$?
11391     case x$lt_status in
11392       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11393       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11394       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11395     esac
11396   else :
11397     # compilation failed
11398     lt_cv_dlopen_self_static=no
11399   fi
11400 fi
11401 rm -fr conftest*
11402
11403
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11406 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11407     fi
11408
11409     CPPFLAGS="$save_CPPFLAGS"
11410     LDFLAGS="$save_LDFLAGS"
11411     LIBS="$save_LIBS"
11412     ;;
11413   esac
11414
11415   case $lt_cv_dlopen_self in
11416   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11417   *) enable_dlopen_self=unknown ;;
11418   esac
11419
11420   case $lt_cv_dlopen_self_static in
11421   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11422   *) enable_dlopen_self_static=unknown ;;
11423   esac
11424 fi
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442 striplib=
11443 old_striplib=
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11445 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11446 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11447   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11448   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11450 $as_echo "yes" >&6; }
11451 else
11452 # FIXME - insert some real tests, host_os isn't really good enough
11453   case $host_os in
11454   darwin*)
11455     if test -n "$STRIP" ; then
11456       striplib="$STRIP -x"
11457       old_striplib="$STRIP -S"
11458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459 $as_echo "yes" >&6; }
11460     else
11461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11463     fi
11464     ;;
11465   *)
11466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468     ;;
11469   esac
11470 fi
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483   # Report which library types will actually be built
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11485 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11487 $as_echo "$can_build_shared" >&6; }
11488
11489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11490 $as_echo_n "checking whether to build shared libraries... " >&6; }
11491   test "$can_build_shared" = "no" && enable_shared=no
11492
11493   # On AIX, shared libraries and static libraries use the same namespace, and
11494   # are all built from PIC.
11495   case $host_os in
11496   aix3*)
11497     test "$enable_shared" = yes && enable_static=no
11498     if test -n "$RANLIB"; then
11499       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11500       postinstall_cmds='$RANLIB $lib'
11501     fi
11502     ;;
11503
11504   aix[4-9]*)
11505     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11506       test "$enable_shared" = yes && enable_static=no
11507     fi
11508     ;;
11509   esac
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11511 $as_echo "$enable_shared" >&6; }
11512
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11514 $as_echo_n "checking whether to build static libraries... " >&6; }
11515   # Make sure either enable_shared or enable_static is yes.
11516   test "$enable_shared" = yes || enable_static=yes
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11518 $as_echo "$enable_static" >&6; }
11519
11520
11521
11522
11523 fi
11524 ac_ext=c
11525 ac_cpp='$CPP $CPPFLAGS'
11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530 CC="$lt_save_CC"
11531
11532
11533 ac_ext=cpp
11534 ac_cpp='$CXXCPP $CPPFLAGS'
11535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11538
11539 archive_cmds_need_lc_CXX=no
11540 allow_undefined_flag_CXX=
11541 always_export_symbols_CXX=no
11542 archive_expsym_cmds_CXX=
11543 compiler_needs_object_CXX=no
11544 export_dynamic_flag_spec_CXX=
11545 hardcode_direct_CXX=no
11546 hardcode_direct_absolute_CXX=no
11547 hardcode_libdir_flag_spec_CXX=
11548 hardcode_libdir_flag_spec_ld_CXX=
11549 hardcode_libdir_separator_CXX=
11550 hardcode_minus_L_CXX=no
11551 hardcode_shlibpath_var_CXX=unsupported
11552 hardcode_automatic_CXX=no
11553 inherit_rpath_CXX=no
11554 module_cmds_CXX=
11555 module_expsym_cmds_CXX=
11556 link_all_deplibs_CXX=unknown
11557 old_archive_cmds_CXX=$old_archive_cmds
11558 no_undefined_flag_CXX=
11559 whole_archive_flag_spec_CXX=
11560 enable_shared_with_static_runtimes_CXX=no
11561
11562 # Source file extension for C++ test sources.
11563 ac_ext=cpp
11564
11565 # Object file extension for compiled C++ test sources.
11566 objext=o
11567 objext_CXX=$objext
11568
11569 # No sense in running all these tests if we already determined that
11570 # the CXX compiler isn't working.  Some variables (like enable_shared)
11571 # are currently assumed to apply to all compilers on this platform,
11572 # and will be corrupted by setting them based on a non-working compiler.
11573 if test "$_lt_caught_CXX_error" != yes; then
11574   # Code to be used in simple compile tests
11575   lt_simple_compile_test_code="int some_variable = 0;"
11576
11577   # Code to be used in simple link tests
11578   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11579
11580   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11581
11582
11583
11584
11585
11586
11587 # If no C compiler was specified, use CC.
11588 LTCC=${LTCC-"$CC"}
11589
11590 # If no C compiler flags were specified, use CFLAGS.
11591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11592
11593 # Allow CC to be a program name with arguments.
11594 compiler=$CC
11595
11596
11597   # save warnings/boilerplate of simple test code
11598   ac_outfile=conftest.$ac_objext
11599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11601 _lt_compiler_boilerplate=`cat conftest.err`
11602 $RM conftest*
11603
11604   ac_outfile=conftest.$ac_objext
11605 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11607 _lt_linker_boilerplate=`cat conftest.err`
11608 $RM -r conftest*
11609
11610
11611   # Allow CC to be a program name with arguments.
11612   lt_save_CC=$CC
11613   lt_save_LD=$LD
11614   lt_save_GCC=$GCC
11615   GCC=$GXX
11616   lt_save_with_gnu_ld=$with_gnu_ld
11617   lt_save_path_LD=$lt_cv_path_LD
11618   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11619     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11620   else
11621     $as_unset lt_cv_prog_gnu_ld
11622   fi
11623   if test -n "${lt_cv_path_LDCXX+set}"; then
11624     lt_cv_path_LD=$lt_cv_path_LDCXX
11625   else
11626     $as_unset lt_cv_path_LD
11627   fi
11628   test -z "${LDCXX+set}" || LD=$LDCXX
11629   CC=${CXX-"c++"}
11630   compiler=$CC
11631   compiler_CXX=$CC
11632   for cc_temp in $compiler""; do
11633   case $cc_temp in
11634     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11635     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11636     \-*) ;;
11637     *) break;;
11638   esac
11639 done
11640 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11641
11642
11643   if test -n "$compiler"; then
11644     # We don't want -fno-exception when compiling C++ code, so set the
11645     # no_builtin_flag separately
11646     if test "$GXX" = yes; then
11647       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11648     else
11649       lt_prog_compiler_no_builtin_flag_CXX=
11650     fi
11651
11652     if test "$GXX" = yes; then
11653       # Set up default GNU C++ configuration
11654
11655
11656
11657 # Check whether --with-gnu-ld was given.
11658 if test "${with_gnu_ld+set}" = set; then :
11659   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11660 else
11661   with_gnu_ld=no
11662 fi
11663
11664 ac_prog=ld
11665 if test "$GCC" = yes; then
11666   # Check if gcc -print-prog-name=ld gives a path.
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11668 $as_echo_n "checking for ld used by $CC... " >&6; }
11669   case $host in
11670   *-*-mingw*)
11671     # gcc leaves a trailing carriage return which upsets mingw
11672     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11673   *)
11674     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11675   esac
11676   case $ac_prog in
11677     # Accept absolute paths.
11678     [\\/]* | ?:[\\/]*)
11679       re_direlt='/[^/][^/]*/\.\./'
11680       # Canonicalize the pathname of ld
11681       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11682       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11683         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11684       done
11685       test -z "$LD" && LD="$ac_prog"
11686       ;;
11687   "")
11688     # If it fails, then pretend we aren't using GCC.
11689     ac_prog=ld
11690     ;;
11691   *)
11692     # If it is relative, then search for the first ld in PATH.
11693     with_gnu_ld=unknown
11694     ;;
11695   esac
11696 elif test "$with_gnu_ld" = yes; then
11697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11698 $as_echo_n "checking for GNU ld... " >&6; }
11699 else
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11701 $as_echo_n "checking for non-GNU ld... " >&6; }
11702 fi
11703 if test "${lt_cv_path_LD+set}" = set; then :
11704   $as_echo_n "(cached) " >&6
11705 else
11706   if test -z "$LD"; then
11707   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11708   for ac_dir in $PATH; do
11709     IFS="$lt_save_ifs"
11710     test -z "$ac_dir" && ac_dir=.
11711     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11712       lt_cv_path_LD="$ac_dir/$ac_prog"
11713       # Check to see if the program is GNU ld.  I'd rather use --version,
11714       # but apparently some variants of GNU ld only accept -v.
11715       # Break only if it was the GNU/non-GNU ld that we prefer.
11716       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11717       *GNU* | *'with BFD'*)
11718         test "$with_gnu_ld" != no && break
11719         ;;
11720       *)
11721         test "$with_gnu_ld" != yes && break
11722         ;;
11723       esac
11724     fi
11725   done
11726   IFS="$lt_save_ifs"
11727 else
11728   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11729 fi
11730 fi
11731
11732 LD="$lt_cv_path_LD"
11733 if test -n "$LD"; then
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11735 $as_echo "$LD" >&6; }
11736 else
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 fi
11740 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11743 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11747 case `$LD -v 2>&1 </dev/null` in
11748 *GNU* | *'with BFD'*)
11749   lt_cv_prog_gnu_ld=yes
11750   ;;
11751 *)
11752   lt_cv_prog_gnu_ld=no
11753   ;;
11754 esac
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11757 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11758 with_gnu_ld=$lt_cv_prog_gnu_ld
11759
11760
11761
11762
11763
11764
11765
11766       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11767       # archiving commands below assume that GNU ld is being used.
11768       if test "$with_gnu_ld" = yes; then
11769         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11770         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'
11771
11772         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11773         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11774
11775         # If archive_cmds runs LD, not CC, wlarc should be empty
11776         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11777         #     investigate it a little bit more. (MM)
11778         wlarc='${wl}'
11779
11780         # ancient GNU ld didn't support --whole-archive et. al.
11781         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11782           $GREP 'no-whole-archive' > /dev/null; then
11783           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11784         else
11785           whole_archive_flag_spec_CXX=
11786         fi
11787       else
11788         with_gnu_ld=no
11789         wlarc=
11790
11791         # A generic and very simple default shared library creation
11792         # command for GNU C++ for the case where it uses the native
11793         # linker, instead of GNU ld.  If possible, this setting should
11794         # overridden to take advantage of the native linker features on
11795         # the platform it is being used on.
11796         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11797       fi
11798
11799       # Commands to make compiler produce verbose output that lists
11800       # what "hidden" libraries, object files and flags are used when
11801       # linking a shared library.
11802       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11803
11804     else
11805       GXX=no
11806       with_gnu_ld=no
11807       wlarc=
11808     fi
11809
11810     # PORTME: fill in a description of your system's C++ link characteristics
11811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11813     ld_shlibs_CXX=yes
11814     case $host_os in
11815       aix3*)
11816         # FIXME: insert proper C++ library support
11817         ld_shlibs_CXX=no
11818         ;;
11819       aix[4-9]*)
11820         if test "$host_cpu" = ia64; then
11821           # On IA64, the linker does run time linking by default, so we don't
11822           # have to do anything special.
11823           aix_use_runtimelinking=no
11824           exp_sym_flag='-Bexport'
11825           no_entry_flag=""
11826         else
11827           aix_use_runtimelinking=no
11828
11829           # Test if we are trying to use run time linking or normal
11830           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11831           # need to do runtime linking.
11832           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11833             for ld_flag in $LDFLAGS; do
11834               case $ld_flag in
11835               *-brtl*)
11836                 aix_use_runtimelinking=yes
11837                 break
11838                 ;;
11839               esac
11840             done
11841             ;;
11842           esac
11843
11844           exp_sym_flag='-bexport'
11845           no_entry_flag='-bnoentry'
11846         fi
11847
11848         # When large executables or shared objects are built, AIX ld can
11849         # have problems creating the table of contents.  If linking a library
11850         # or program results in "error TOC overflow" add -mminimal-toc to
11851         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11852         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11853
11854         archive_cmds_CXX=''
11855         hardcode_direct_CXX=yes
11856         hardcode_direct_absolute_CXX=yes
11857         hardcode_libdir_separator_CXX=':'
11858         link_all_deplibs_CXX=yes
11859         file_list_spec_CXX='${wl}-f,'
11860
11861         if test "$GXX" = yes; then
11862           case $host_os in aix4.[012]|aix4.[012].*)
11863           # We only want to do this on AIX 4.2 and lower, the check
11864           # below for broken collect2 doesn't work under 4.3+
11865           collect2name=`${CC} -print-prog-name=collect2`
11866           if test -f "$collect2name" &&
11867              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11868           then
11869             # We have reworked collect2
11870             :
11871           else
11872             # We have old collect2
11873             hardcode_direct_CXX=unsupported
11874             # It fails to find uninstalled libraries when the uninstalled
11875             # path is not listed in the libpath.  Setting hardcode_minus_L
11876             # to unsupported forces relinking
11877             hardcode_minus_L_CXX=yes
11878             hardcode_libdir_flag_spec_CXX='-L$libdir'
11879             hardcode_libdir_separator_CXX=
11880           fi
11881           esac
11882           shared_flag='-shared'
11883           if test "$aix_use_runtimelinking" = yes; then
11884             shared_flag="$shared_flag "'${wl}-G'
11885           fi
11886         else
11887           # not using gcc
11888           if test "$host_cpu" = ia64; then
11889           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11890           # chokes on -Wl,-G. The following line is correct:
11891           shared_flag='-G'
11892           else
11893             if test "$aix_use_runtimelinking" = yes; then
11894               shared_flag='${wl}-G'
11895             else
11896               shared_flag='${wl}-bM:SRE'
11897             fi
11898           fi
11899         fi
11900
11901         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11902         # It seems that -bexpall does not export symbols beginning with
11903         # underscore (_), so it is better to generate a list of symbols to
11904         # export.
11905         always_export_symbols_CXX=yes
11906         if test "$aix_use_runtimelinking" = yes; then
11907           # Warning - without using the other runtime loading flags (-brtl),
11908           # -berok will link without error, but may produce a broken library.
11909           allow_undefined_flag_CXX='-berok'
11910           # Determine the default libpath from the value encoded in an empty
11911           # executable.
11912           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h.  */
11914
11915 int
11916 main ()
11917 {
11918
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_cxx_try_link "$LINENO"; then :
11924
11925 lt_aix_libpath_sed='
11926     /Import File Strings/,/^$/ {
11927         /^0/ {
11928             s/^0  *\(.*\)$/\1/
11929             p
11930         }
11931     }'
11932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11933 # Check for a 64-bit object if we didn't find anything.
11934 if test -z "$aix_libpath"; then
11935   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11936 fi
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939     conftest$ac_exeext conftest.$ac_ext
11940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11941
11942           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11943
11944           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"
11945         else
11946           if test "$host_cpu" = ia64; then
11947             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11948             allow_undefined_flag_CXX="-z nodefs"
11949             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"
11950           else
11951             # Determine the default libpath from the value encoded in an
11952             # empty executable.
11953             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955
11956 int
11957 main ()
11958 {
11959
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_cxx_try_link "$LINENO"; then :
11965
11966 lt_aix_libpath_sed='
11967     /Import File Strings/,/^$/ {
11968         /^0/ {
11969             s/^0  *\(.*\)$/\1/
11970             p
11971         }
11972     }'
11973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11974 # Check for a 64-bit object if we didn't find anything.
11975 if test -z "$aix_libpath"; then
11976   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11977 fi
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext \
11980     conftest$ac_exeext conftest.$ac_ext
11981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11982
11983             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11984             # Warning - without using the other run time loading flags,
11985             # -berok will link without error, but may produce a broken library.
11986             no_undefined_flag_CXX=' ${wl}-bernotok'
11987             allow_undefined_flag_CXX=' ${wl}-berok'
11988             # Exported symbols can be pulled into shared objects from archives
11989             whole_archive_flag_spec_CXX='$convenience'
11990             archive_cmds_need_lc_CXX=yes
11991             # This is similar to how AIX traditionally builds its shared
11992             # libraries.
11993             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'
11994           fi
11995         fi
11996         ;;
11997
11998       beos*)
11999         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12000           allow_undefined_flag_CXX=unsupported
12001           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12002           # support --undefined.  This deserves some investigation.  FIXME
12003           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12004         else
12005           ld_shlibs_CXX=no
12006         fi
12007         ;;
12008
12009       chorus*)
12010         case $cc_basename in
12011           *)
12012           # FIXME: insert proper C++ library support
12013           ld_shlibs_CXX=no
12014           ;;
12015         esac
12016         ;;
12017
12018       cygwin* | mingw* | pw32* | cegcc*)
12019         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12020         # as there is no search path for DLLs.
12021         hardcode_libdir_flag_spec_CXX='-L$libdir'
12022         allow_undefined_flag_CXX=unsupported
12023         always_export_symbols_CXX=no
12024         enable_shared_with_static_runtimes_CXX=yes
12025
12026         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12027           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'
12028           # If the export-symbols file already is a .def file (1st line
12029           # is EXPORTS), use it as is; otherwise, prepend...
12030           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12031             cp $export_symbols $output_objdir/$soname.def;
12032           else
12033             echo EXPORTS > $output_objdir/$soname.def;
12034             cat $export_symbols >> $output_objdir/$soname.def;
12035           fi~
12036           $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'
12037         else
12038           ld_shlibs_CXX=no
12039         fi
12040         ;;
12041       darwin* | rhapsody*)
12042
12043
12044   archive_cmds_need_lc_CXX=no
12045   hardcode_direct_CXX=no
12046   hardcode_automatic_CXX=yes
12047   hardcode_shlibpath_var_CXX=unsupported
12048   whole_archive_flag_spec_CXX=''
12049   link_all_deplibs_CXX=yes
12050   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12051   case $cc_basename in
12052      ifort*) _lt_dar_can_shared=yes ;;
12053      *) _lt_dar_can_shared=$GCC ;;
12054   esac
12055   if test "$_lt_dar_can_shared" = "yes"; then
12056     output_verbose_link_cmd=echo
12057     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}"
12058     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12059     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}"
12060     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}"
12061        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12062       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}"
12063       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}"
12064     fi
12065
12066   else
12067   ld_shlibs_CXX=no
12068   fi
12069
12070         ;;
12071
12072       dgux*)
12073         case $cc_basename in
12074           ec++*)
12075             # FIXME: insert proper C++ library support
12076             ld_shlibs_CXX=no
12077             ;;
12078           ghcx*)
12079             # Green Hills C++ Compiler
12080             # FIXME: insert proper C++ library support
12081             ld_shlibs_CXX=no
12082             ;;
12083           *)
12084             # FIXME: insert proper C++ library support
12085             ld_shlibs_CXX=no
12086             ;;
12087         esac
12088         ;;
12089
12090       freebsd[12]*)
12091         # C++ shared libraries reported to be fairly broken before
12092         # switch to ELF
12093         ld_shlibs_CXX=no
12094         ;;
12095
12096       freebsd-elf*)
12097         archive_cmds_need_lc_CXX=no
12098         ;;
12099
12100       freebsd* | dragonfly*)
12101         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12102         # conventions
12103         ld_shlibs_CXX=yes
12104         ;;
12105
12106       gnu*)
12107         ;;
12108
12109       hpux9*)
12110         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12111         hardcode_libdir_separator_CXX=:
12112         export_dynamic_flag_spec_CXX='${wl}-E'
12113         hardcode_direct_CXX=yes
12114         hardcode_minus_L_CXX=yes # Not in the search PATH,
12115                                              # but as the default
12116                                              # location of the library.
12117
12118         case $cc_basename in
12119           CC*)
12120             # FIXME: insert proper C++ library support
12121             ld_shlibs_CXX=no
12122             ;;
12123           aCC*)
12124             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'
12125             # Commands to make compiler produce verbose output that lists
12126             # what "hidden" libraries, object files and flags are used when
12127             # linking a shared library.
12128             #
12129             # There doesn't appear to be a way to prevent this compiler from
12130             # explicitly linking system object files so we need to strip them
12131             # from the output so that they don't get included in the library
12132             # dependencies.
12133             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'
12134             ;;
12135           *)
12136             if test "$GXX" = yes; then
12137               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'
12138             else
12139               # FIXME: insert proper C++ library support
12140               ld_shlibs_CXX=no
12141             fi
12142             ;;
12143         esac
12144         ;;
12145
12146       hpux10*|hpux11*)
12147         if test $with_gnu_ld = no; then
12148           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12149           hardcode_libdir_separator_CXX=:
12150
12151           case $host_cpu in
12152             hppa*64*|ia64*)
12153               ;;
12154             *)
12155               export_dynamic_flag_spec_CXX='${wl}-E'
12156               ;;
12157           esac
12158         fi
12159         case $host_cpu in
12160           hppa*64*|ia64*)
12161             hardcode_direct_CXX=no
12162             hardcode_shlibpath_var_CXX=no
12163             ;;
12164           *)
12165             hardcode_direct_CXX=yes
12166             hardcode_direct_absolute_CXX=yes
12167             hardcode_minus_L_CXX=yes # Not in the search PATH,
12168                                                  # but as the default
12169                                                  # location of the library.
12170             ;;
12171         esac
12172
12173         case $cc_basename in
12174           CC*)
12175             # FIXME: insert proper C++ library support
12176             ld_shlibs_CXX=no
12177             ;;
12178           aCC*)
12179             case $host_cpu in
12180               hppa*64*)
12181                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12182                 ;;
12183               ia64*)
12184                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12185                 ;;
12186               *)
12187                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12188                 ;;
12189             esac
12190             # Commands to make compiler produce verbose output that lists
12191             # what "hidden" libraries, object files and flags are used when
12192             # linking a shared library.
12193             #
12194             # There doesn't appear to be a way to prevent this compiler from
12195             # explicitly linking system object files so we need to strip them
12196             # from the output so that they don't get included in the library
12197             # dependencies.
12198             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'
12199             ;;
12200           *)
12201             if test "$GXX" = yes; then
12202               if test $with_gnu_ld = no; then
12203                 case $host_cpu in
12204                   hppa*64*)
12205                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206                     ;;
12207                   ia64*)
12208                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12209                     ;;
12210                   *)
12211                     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'
12212                     ;;
12213                 esac
12214               fi
12215             else
12216               # FIXME: insert proper C++ library support
12217               ld_shlibs_CXX=no
12218             fi
12219             ;;
12220         esac
12221         ;;
12222
12223       interix[3-9]*)
12224         hardcode_direct_CXX=no
12225         hardcode_shlibpath_var_CXX=no
12226         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12227         export_dynamic_flag_spec_CXX='${wl}-E'
12228         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12229         # Instead, shared libraries are loaded at an image base (0x10000000 by
12230         # default) and relocated if they conflict, which is a slow very memory
12231         # consuming and fragmenting process.  To avoid this, we pick a random,
12232         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12233         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12234         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'
12235         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'
12236         ;;
12237       irix5* | irix6*)
12238         case $cc_basename in
12239           CC*)
12240             # SGI C++
12241             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'
12242
12243             # Archives containing C++ object files must be created using
12244             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12245             # necessary to make sure instantiated templates are included
12246             # in the archive.
12247             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12248             ;;
12249           *)
12250             if test "$GXX" = yes; then
12251               if test "$with_gnu_ld" = no; then
12252                 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'
12253               else
12254                 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'
12255               fi
12256             fi
12257             link_all_deplibs_CXX=yes
12258             ;;
12259         esac
12260         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12261         hardcode_libdir_separator_CXX=:
12262         inherit_rpath_CXX=yes
12263         ;;
12264
12265       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12266         case $cc_basename in
12267           KCC*)
12268             # Kuck and Associates, Inc. (KAI) C++ Compiler
12269
12270             # KCC will only create a shared library if the output file
12271             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12272             # to its proper name (with version) after linking.
12273             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'
12274             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'
12275             # Commands to make compiler produce verbose output that lists
12276             # what "hidden" libraries, object files and flags are used when
12277             # linking a shared library.
12278             #
12279             # There doesn't appear to be a way to prevent this compiler from
12280             # explicitly linking system object files so we need to strip them
12281             # from the output so that they don't get included in the library
12282             # dependencies.
12283             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'
12284
12285             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12286             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12287
12288             # Archives containing C++ object files must be created using
12289             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12290             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12291             ;;
12292           icpc* | ecpc* )
12293             # Intel C++
12294             with_gnu_ld=yes
12295             # version 8.0 and above of icpc choke on multiply defined symbols
12296             # if we add $predep_objects and $postdep_objects, however 7.1 and
12297             # earlier do not add the objects themselves.
12298             case `$CC -V 2>&1` in
12299               *"Version 7."*)
12300                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301                 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'
12302                 ;;
12303               *)  # Version 8.0 or newer
12304                 tmp_idyn=
12305                 case $host_cpu in
12306                   ia64*) tmp_idyn=' -i_dynamic';;
12307                 esac
12308                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12309                 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'
12310                 ;;
12311             esac
12312             archive_cmds_need_lc_CXX=no
12313             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12314             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12315             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12316             ;;
12317           pgCC* | pgcpp*)
12318             # Portland Group C++ compiler
12319             case `$CC -V` in
12320             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12321               prelink_cmds_CXX='tpldir=Template.dir~
12322                 rm -rf $tpldir~
12323                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12324                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12325               old_archive_cmds_CXX='tpldir=Template.dir~
12326                 rm -rf $tpldir~
12327                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12328                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12329                 $RANLIB $oldlib'
12330               archive_cmds_CXX='tpldir=Template.dir~
12331                 rm -rf $tpldir~
12332                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12333                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12334               archive_expsym_cmds_CXX='tpldir=Template.dir~
12335                 rm -rf $tpldir~
12336                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12337                 $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'
12338               ;;
12339             *) # Version 6 will use weak symbols
12340               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12341               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'
12342               ;;
12343             esac
12344
12345             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12346             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12347             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'
12348             ;;
12349           cxx*)
12350             # Compaq C++
12351             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12352             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'
12353
12354             runpath_var=LD_RUN_PATH
12355             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12356             hardcode_libdir_separator_CXX=:
12357
12358             # Commands to make compiler produce verbose output that lists
12359             # what "hidden" libraries, object files and flags are used when
12360             # linking a shared library.
12361             #
12362             # There doesn't appear to be a way to prevent this compiler from
12363             # explicitly linking system object files so we need to strip them
12364             # from the output so that they don't get included in the library
12365             # dependencies.
12366             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'
12367             ;;
12368           xl*)
12369             # IBM XL 8.0 on PPC, with GNU ld
12370             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12371             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12372             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12373             if test "x$supports_anon_versioning" = xyes; then
12374               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12375                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12376                 echo "local: *; };" >> $output_objdir/$libname.ver~
12377                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12378             fi
12379             ;;
12380           *)
12381             case `$CC -V 2>&1 | sed 5q` in
12382             *Sun\ C*)
12383               # Sun C++ 5.9
12384               no_undefined_flag_CXX=' -zdefs'
12385               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12386               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'
12387               hardcode_libdir_flag_spec_CXX='-R$libdir'
12388               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'
12389               compiler_needs_object_CXX=yes
12390
12391               # Not sure whether something based on
12392               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12393               # would be better.
12394               output_verbose_link_cmd='echo'
12395
12396               # Archives containing C++ object files must be created using
12397               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12398               # necessary to make sure instantiated templates are included
12399               # in the archive.
12400               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12401               ;;
12402             esac
12403             ;;
12404         esac
12405         ;;
12406
12407       lynxos*)
12408         # FIXME: insert proper C++ library support
12409         ld_shlibs_CXX=no
12410         ;;
12411
12412       m88k*)
12413         # FIXME: insert proper C++ library support
12414         ld_shlibs_CXX=no
12415         ;;
12416
12417       mvs*)
12418         case $cc_basename in
12419           cxx*)
12420             # FIXME: insert proper C++ library support
12421             ld_shlibs_CXX=no
12422             ;;
12423           *)
12424             # FIXME: insert proper C++ library support
12425             ld_shlibs_CXX=no
12426             ;;
12427         esac
12428         ;;
12429
12430       netbsd*)
12431         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12432           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12433           wlarc=
12434           hardcode_libdir_flag_spec_CXX='-R$libdir'
12435           hardcode_direct_CXX=yes
12436           hardcode_shlibpath_var_CXX=no
12437         fi
12438         # Workaround some broken pre-1.5 toolchains
12439         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12440         ;;
12441
12442       *nto* | *qnx*)
12443         ld_shlibs_CXX=yes
12444         ;;
12445
12446       openbsd2*)
12447         # C++ shared libraries are fairly broken
12448         ld_shlibs_CXX=no
12449         ;;
12450
12451       openbsd*)
12452         if test -f /usr/libexec/ld.so; then
12453           hardcode_direct_CXX=yes
12454           hardcode_shlibpath_var_CXX=no
12455           hardcode_direct_absolute_CXX=yes
12456           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12457           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12458           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12459             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12460             export_dynamic_flag_spec_CXX='${wl}-E'
12461             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12462           fi
12463           output_verbose_link_cmd=echo
12464         else
12465           ld_shlibs_CXX=no
12466         fi
12467         ;;
12468
12469       osf3* | osf4* | osf5*)
12470         case $cc_basename in
12471           KCC*)
12472             # Kuck and Associates, Inc. (KAI) C++ Compiler
12473
12474             # KCC will only create a shared library if the output file
12475             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12476             # to its proper name (with version) after linking.
12477             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'
12478
12479             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12480             hardcode_libdir_separator_CXX=:
12481
12482             # Archives containing C++ object files must be created using
12483             # the KAI C++ compiler.
12484             case $host in
12485               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12486               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12487             esac
12488             ;;
12489           RCC*)
12490             # Rational C++ 2.4.1
12491             # FIXME: insert proper C++ library support
12492             ld_shlibs_CXX=no
12493             ;;
12494           cxx*)
12495             case $host in
12496               osf3*)
12497                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12498                 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'
12499                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12500                 ;;
12501               *)
12502                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12503                 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'
12504                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12505                   echo "-hidden">> $lib.exp~
12506                   $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~
12507                   $RM $lib.exp'
12508                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12509                 ;;
12510             esac
12511
12512             hardcode_libdir_separator_CXX=:
12513
12514             # Commands to make compiler produce verbose output that lists
12515             # what "hidden" libraries, object files and flags are used when
12516             # linking a shared library.
12517             #
12518             # There doesn't appear to be a way to prevent this compiler from
12519             # explicitly linking system object files so we need to strip them
12520             # from the output so that they don't get included in the library
12521             # dependencies.
12522             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'
12523             ;;
12524           *)
12525             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12526               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12527               case $host in
12528                 osf3*)
12529                   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'
12530                   ;;
12531                 *)
12532                   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'
12533                   ;;
12534               esac
12535
12536               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12537               hardcode_libdir_separator_CXX=:
12538
12539               # Commands to make compiler produce verbose output that lists
12540               # what "hidden" libraries, object files and flags are used when
12541               # linking a shared library.
12542               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12543
12544             else
12545               # FIXME: insert proper C++ library support
12546               ld_shlibs_CXX=no
12547             fi
12548             ;;
12549         esac
12550         ;;
12551
12552       psos*)
12553         # FIXME: insert proper C++ library support
12554         ld_shlibs_CXX=no
12555         ;;
12556
12557       sunos4*)
12558         case $cc_basename in
12559           CC*)
12560             # Sun C++ 4.x
12561             # FIXME: insert proper C++ library support
12562             ld_shlibs_CXX=no
12563             ;;
12564           lcc*)
12565             # Lucid
12566             # FIXME: insert proper C++ library support
12567             ld_shlibs_CXX=no
12568             ;;
12569           *)
12570             # FIXME: insert proper C++ library support
12571             ld_shlibs_CXX=no
12572             ;;
12573         esac
12574         ;;
12575
12576       solaris*)
12577         case $cc_basename in
12578           CC*)
12579             # Sun C++ 4.2, 5.x and Centerline C++
12580             archive_cmds_need_lc_CXX=yes
12581             no_undefined_flag_CXX=' -zdefs'
12582             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12583             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12584               $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'
12585
12586             hardcode_libdir_flag_spec_CXX='-R$libdir'
12587             hardcode_shlibpath_var_CXX=no
12588             case $host_os in
12589               solaris2.[0-5] | solaris2.[0-5].*) ;;
12590               *)
12591                 # The compiler driver will combine and reorder linker options,
12592                 # but understands `-z linker_flag'.
12593                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12594                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12595                 ;;
12596             esac
12597             link_all_deplibs_CXX=yes
12598
12599             output_verbose_link_cmd='echo'
12600
12601             # Archives containing C++ object files must be created using
12602             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12603             # necessary to make sure instantiated templates are included
12604             # in the archive.
12605             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12606             ;;
12607           gcx*)
12608             # Green Hills C++ Compiler
12609             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12610
12611             # The C++ compiler must be used to create the archive.
12612             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12613             ;;
12614           *)
12615             # GNU C++ compiler with Solaris linker
12616             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12617               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12618               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12619                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12620                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12621                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12622
12623                 # Commands to make compiler produce verbose output that lists
12624                 # what "hidden" libraries, object files and flags are used when
12625                 # linking a shared library.
12626                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12627               else
12628                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12629                 # platform.
12630                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12631                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12632                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12633
12634                 # Commands to make compiler produce verbose output that lists
12635                 # what "hidden" libraries, object files and flags are used when
12636                 # linking a shared library.
12637                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12638               fi
12639
12640               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12641               case $host_os in
12642                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12643                 *)
12644                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12645                   ;;
12646               esac
12647             fi
12648             ;;
12649         esac
12650         ;;
12651
12652     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12653       no_undefined_flag_CXX='${wl}-z,text'
12654       archive_cmds_need_lc_CXX=no
12655       hardcode_shlibpath_var_CXX=no
12656       runpath_var='LD_RUN_PATH'
12657
12658       case $cc_basename in
12659         CC*)
12660           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12662           ;;
12663         *)
12664           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666           ;;
12667       esac
12668       ;;
12669
12670       sysv5* | sco3.2v5* | sco5v6*)
12671         # Note: We can NOT use -z defs as we might desire, because we do not
12672         # link with -lc, and that would cause any symbols used from libc to
12673         # always be unresolved, which means just about no library would
12674         # ever link correctly.  If we're not using GNU ld we use -z text
12675         # though, which does catch some bad symbols but isn't as heavy-handed
12676         # as -z defs.
12677         no_undefined_flag_CXX='${wl}-z,text'
12678         allow_undefined_flag_CXX='${wl}-z,nodefs'
12679         archive_cmds_need_lc_CXX=no
12680         hardcode_shlibpath_var_CXX=no
12681         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12682         hardcode_libdir_separator_CXX=':'
12683         link_all_deplibs_CXX=yes
12684         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12685         runpath_var='LD_RUN_PATH'
12686
12687         case $cc_basename in
12688           CC*)
12689             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12690             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691             ;;
12692           *)
12693             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12694             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695             ;;
12696         esac
12697       ;;
12698
12699       tandem*)
12700         case $cc_basename in
12701           NCC*)
12702             # NonStop-UX NCC 3.20
12703             # FIXME: insert proper C++ library support
12704             ld_shlibs_CXX=no
12705             ;;
12706           *)
12707             # FIXME: insert proper C++ library support
12708             ld_shlibs_CXX=no
12709             ;;
12710         esac
12711         ;;
12712
12713       vxworks*)
12714         # FIXME: insert proper C++ library support
12715         ld_shlibs_CXX=no
12716         ;;
12717
12718       *)
12719         # FIXME: insert proper C++ library support
12720         ld_shlibs_CXX=no
12721         ;;
12722     esac
12723
12724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12725 $as_echo "$ld_shlibs_CXX" >&6; }
12726     test "$ld_shlibs_CXX" = no && can_build_shared=no
12727
12728     GCC_CXX="$GXX"
12729     LD_CXX="$LD"
12730
12731     ## CAVEAT EMPTOR:
12732     ## There is no encapsulation within the following macros, do not change
12733     ## the running order or otherwise move them around unless you know exactly
12734     ## what you are doing...
12735     # Dependencies to place before and after the object being linked:
12736 predep_objects_CXX=
12737 postdep_objects_CXX=
12738 predeps_CXX=
12739 postdeps_CXX=
12740 compiler_lib_search_path_CXX=
12741
12742 cat > conftest.$ac_ext <<_LT_EOF
12743 class Foo
12744 {
12745 public:
12746   Foo (void) { a = 0; }
12747 private:
12748   int a;
12749 };
12750 _LT_EOF
12751
12752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12753   (eval $ac_compile) 2>&5
12754   ac_status=$?
12755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12756   test $ac_status = 0; }; then
12757   # Parse the compiler output and extract the necessary
12758   # objects, libraries and library flags.
12759
12760   # Sentinel used to keep track of whether or not we are before
12761   # the conftest object file.
12762   pre_test_object_deps_done=no
12763
12764   for p in `eval "$output_verbose_link_cmd"`; do
12765     case $p in
12766
12767     -L* | -R* | -l*)
12768        # Some compilers place space between "-{L,R}" and the path.
12769        # Remove the space.
12770        if test $p = "-L" ||
12771           test $p = "-R"; then
12772          prev=$p
12773          continue
12774        else
12775          prev=
12776        fi
12777
12778        if test "$pre_test_object_deps_done" = no; then
12779          case $p in
12780          -L* | -R*)
12781            # Internal compiler library paths should come after those
12782            # provided the user.  The postdeps already come after the
12783            # user supplied libs so there is no need to process them.
12784            if test -z "$compiler_lib_search_path_CXX"; then
12785              compiler_lib_search_path_CXX="${prev}${p}"
12786            else
12787              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12788            fi
12789            ;;
12790          # The "-l" case would never come before the object being
12791          # linked, so don't bother handling this case.
12792          esac
12793        else
12794          if test -z "$postdeps_CXX"; then
12795            postdeps_CXX="${prev}${p}"
12796          else
12797            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12798          fi
12799        fi
12800        ;;
12801
12802     *.$objext)
12803        # This assumes that the test object file only shows up
12804        # once in the compiler output.
12805        if test "$p" = "conftest.$objext"; then
12806          pre_test_object_deps_done=yes
12807          continue
12808        fi
12809
12810        if test "$pre_test_object_deps_done" = no; then
12811          if test -z "$predep_objects_CXX"; then
12812            predep_objects_CXX="$p"
12813          else
12814            predep_objects_CXX="$predep_objects_CXX $p"
12815          fi
12816        else
12817          if test -z "$postdep_objects_CXX"; then
12818            postdep_objects_CXX="$p"
12819          else
12820            postdep_objects_CXX="$postdep_objects_CXX $p"
12821          fi
12822        fi
12823        ;;
12824
12825     *) ;; # Ignore the rest.
12826
12827     esac
12828   done
12829
12830   # Clean up.
12831   rm -f a.out a.exe
12832 else
12833   echo "libtool.m4: error: problem compiling CXX test program"
12834 fi
12835
12836 $RM -f confest.$objext
12837
12838 # PORTME: override above test on systems where it is broken
12839 case $host_os in
12840 interix[3-9]*)
12841   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12842   # hack all around it, let's just trust "g++" to DTRT.
12843   predep_objects_CXX=
12844   postdep_objects_CXX=
12845   postdeps_CXX=
12846   ;;
12847
12848 linux*)
12849   case `$CC -V 2>&1 | sed 5q` in
12850   *Sun\ C*)
12851     # Sun C++ 5.9
12852
12853     # The more standards-conforming stlport4 library is
12854     # incompatible with the Cstd library. Avoid specifying
12855     # it if it's in CXXFLAGS. Ignore libCrun as
12856     # -library=stlport4 depends on it.
12857     case " $CXX $CXXFLAGS " in
12858     *" -library=stlport4 "*)
12859       solaris_use_stlport4=yes
12860       ;;
12861     esac
12862
12863     if test "$solaris_use_stlport4" != yes; then
12864       postdeps_CXX='-library=Cstd -library=Crun'
12865     fi
12866     ;;
12867   esac
12868   ;;
12869
12870 solaris*)
12871   case $cc_basename in
12872   CC*)
12873     # The more standards-conforming stlport4 library is
12874     # incompatible with the Cstd library. Avoid specifying
12875     # it if it's in CXXFLAGS. Ignore libCrun as
12876     # -library=stlport4 depends on it.
12877     case " $CXX $CXXFLAGS " in
12878     *" -library=stlport4 "*)
12879       solaris_use_stlport4=yes
12880       ;;
12881     esac
12882
12883     # Adding this requires a known-good setup of shared libraries for
12884     # Sun compiler versions before 5.6, else PIC objects from an old
12885     # archive will be linked into the output, leading to subtle bugs.
12886     if test "$solaris_use_stlport4" != yes; then
12887       postdeps_CXX='-library=Cstd -library=Crun'
12888     fi
12889     ;;
12890   esac
12891   ;;
12892 esac
12893
12894
12895 case " $postdeps_CXX " in
12896 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12897 esac
12898  compiler_lib_search_dirs_CXX=
12899 if test -n "${compiler_lib_search_path_CXX}"; then
12900  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12901 fi
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933     lt_prog_compiler_wl_CXX=
12934 lt_prog_compiler_pic_CXX=
12935 lt_prog_compiler_static_CXX=
12936
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12939
12940   # C++ specific cases for pic, static, wl, etc.
12941   if test "$GXX" = yes; then
12942     lt_prog_compiler_wl_CXX='-Wl,'
12943     lt_prog_compiler_static_CXX='-static'
12944
12945     case $host_os in
12946     aix*)
12947       # All AIX code is PIC.
12948       if test "$host_cpu" = ia64; then
12949         # AIX 5 now supports IA64 processor
12950         lt_prog_compiler_static_CXX='-Bstatic'
12951       fi
12952       ;;
12953
12954     amigaos*)
12955       case $host_cpu in
12956       powerpc)
12957             # see comment about AmigaOS4 .so support
12958             lt_prog_compiler_pic_CXX='-fPIC'
12959         ;;
12960       m68k)
12961             # FIXME: we need at least 68020 code to build shared libraries, but
12962             # adding the `-m68020' flag to GCC prevents building anything better,
12963             # like `-m68040'.
12964             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12965         ;;
12966       esac
12967       ;;
12968
12969     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12970       # PIC is the default for these OSes.
12971       ;;
12972     mingw* | cygwin* | os2* | pw32* | cegcc*)
12973       # This hack is so that the source file can tell whether it is being
12974       # built for inclusion in a dll (and should export symbols for example).
12975       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12976       # (--disable-auto-import) libraries
12977       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12978       ;;
12979     darwin* | rhapsody*)
12980       # PIC is the default on this platform
12981       # Common symbols not allowed in MH_DYLIB files
12982       lt_prog_compiler_pic_CXX='-fno-common'
12983       ;;
12984     *djgpp*)
12985       # DJGPP does not support shared libraries at all
12986       lt_prog_compiler_pic_CXX=
12987       ;;
12988     interix[3-9]*)
12989       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990       # Instead, we relocate shared libraries at runtime.
12991       ;;
12992     sysv4*MP*)
12993       if test -d /usr/nec; then
12994         lt_prog_compiler_pic_CXX=-Kconform_pic
12995       fi
12996       ;;
12997     hpux*)
12998       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12999       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13000       # sets the default TLS model and affects inlining.
13001       case $host_cpu in
13002       hppa*64*)
13003         ;;
13004       *)
13005         lt_prog_compiler_pic_CXX='-fPIC'
13006         ;;
13007       esac
13008       ;;
13009     *qnx* | *nto*)
13010       # QNX uses GNU C++, but need to define -shared option too, otherwise
13011       # it will coredump.
13012       lt_prog_compiler_pic_CXX='-fPIC -shared'
13013       ;;
13014     *)
13015       lt_prog_compiler_pic_CXX='-fPIC'
13016       ;;
13017     esac
13018   else
13019     case $host_os in
13020       aix[4-9]*)
13021         # All AIX code is PIC.
13022         if test "$host_cpu" = ia64; then
13023           # AIX 5 now supports IA64 processor
13024           lt_prog_compiler_static_CXX='-Bstatic'
13025         else
13026           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13027         fi
13028         ;;
13029       chorus*)
13030         case $cc_basename in
13031         cxch68*)
13032           # Green Hills C++ Compiler
13033           # _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"
13034           ;;
13035         esac
13036         ;;
13037       dgux*)
13038         case $cc_basename in
13039           ec++*)
13040             lt_prog_compiler_pic_CXX='-KPIC'
13041             ;;
13042           ghcx*)
13043             # Green Hills C++ Compiler
13044             lt_prog_compiler_pic_CXX='-pic'
13045             ;;
13046           *)
13047             ;;
13048         esac
13049         ;;
13050       freebsd* | dragonfly*)
13051         # FreeBSD uses GNU C++
13052         ;;
13053       hpux9* | hpux10* | hpux11*)
13054         case $cc_basename in
13055           CC*)
13056             lt_prog_compiler_wl_CXX='-Wl,'
13057             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13058             if test "$host_cpu" != ia64; then
13059               lt_prog_compiler_pic_CXX='+Z'
13060             fi
13061             ;;
13062           aCC*)
13063             lt_prog_compiler_wl_CXX='-Wl,'
13064             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13065             case $host_cpu in
13066             hppa*64*|ia64*)
13067               # +Z the default
13068               ;;
13069             *)
13070               lt_prog_compiler_pic_CXX='+Z'
13071               ;;
13072             esac
13073             ;;
13074           *)
13075             ;;
13076         esac
13077         ;;
13078       interix*)
13079         # This is c89, which is MS Visual C++ (no shared libs)
13080         # Anyone wants to do a port?
13081         ;;
13082       irix5* | irix6* | nonstopux*)
13083         case $cc_basename in
13084           CC*)
13085             lt_prog_compiler_wl_CXX='-Wl,'
13086             lt_prog_compiler_static_CXX='-non_shared'
13087             # CC pic flag -KPIC is the default.
13088             ;;
13089           *)
13090             ;;
13091         esac
13092         ;;
13093       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13094         case $cc_basename in
13095           KCC*)
13096             # KAI C++ Compiler
13097             lt_prog_compiler_wl_CXX='--backend -Wl,'
13098             lt_prog_compiler_pic_CXX='-fPIC'
13099             ;;
13100           ecpc* )
13101             # old Intel C++ for x86_64 which still supported -KPIC.
13102             lt_prog_compiler_wl_CXX='-Wl,'
13103             lt_prog_compiler_pic_CXX='-KPIC'
13104             lt_prog_compiler_static_CXX='-static'
13105             ;;
13106           icpc* )
13107             # Intel C++, used to be incompatible with GCC.
13108             # ICC 10 doesn't accept -KPIC any more.
13109             lt_prog_compiler_wl_CXX='-Wl,'
13110             lt_prog_compiler_pic_CXX='-fPIC'
13111             lt_prog_compiler_static_CXX='-static'
13112             ;;
13113           pgCC* | pgcpp*)
13114             # Portland Group C++ compiler
13115             lt_prog_compiler_wl_CXX='-Wl,'
13116             lt_prog_compiler_pic_CXX='-fpic'
13117             lt_prog_compiler_static_CXX='-Bstatic'
13118             ;;
13119           cxx*)
13120             # Compaq C++
13121             # Make sure the PIC flag is empty.  It appears that all Alpha
13122             # Linux and Compaq Tru64 Unix objects are PIC.
13123             lt_prog_compiler_pic_CXX=
13124             lt_prog_compiler_static_CXX='-non_shared'
13125             ;;
13126           xlc* | xlC*)
13127             # IBM XL 8.0 on PPC
13128             lt_prog_compiler_wl_CXX='-Wl,'
13129             lt_prog_compiler_pic_CXX='-qpic'
13130             lt_prog_compiler_static_CXX='-qstaticlink'
13131             ;;
13132           *)
13133             case `$CC -V 2>&1 | sed 5q` in
13134             *Sun\ C*)
13135               # Sun C++ 5.9
13136               lt_prog_compiler_pic_CXX='-KPIC'
13137               lt_prog_compiler_static_CXX='-Bstatic'
13138               lt_prog_compiler_wl_CXX='-Qoption ld '
13139               ;;
13140             esac
13141             ;;
13142         esac
13143         ;;
13144       lynxos*)
13145         ;;
13146       m88k*)
13147         ;;
13148       mvs*)
13149         case $cc_basename in
13150           cxx*)
13151             lt_prog_compiler_pic_CXX='-W c,exportall'
13152             ;;
13153           *)
13154             ;;
13155         esac
13156         ;;
13157       netbsd* | netbsdelf*-gnu)
13158         ;;
13159       *qnx* | *nto*)
13160         # QNX uses GNU C++, but need to define -shared option too, otherwise
13161         # it will coredump.
13162         lt_prog_compiler_pic_CXX='-fPIC -shared'
13163         ;;
13164       osf3* | osf4* | osf5*)
13165         case $cc_basename in
13166           KCC*)
13167             lt_prog_compiler_wl_CXX='--backend -Wl,'
13168             ;;
13169           RCC*)
13170             # Rational C++ 2.4.1
13171             lt_prog_compiler_pic_CXX='-pic'
13172             ;;
13173           cxx*)
13174             # Digital/Compaq C++
13175             lt_prog_compiler_wl_CXX='-Wl,'
13176             # Make sure the PIC flag is empty.  It appears that all Alpha
13177             # Linux and Compaq Tru64 Unix objects are PIC.
13178             lt_prog_compiler_pic_CXX=
13179             lt_prog_compiler_static_CXX='-non_shared'
13180             ;;
13181           *)
13182             ;;
13183         esac
13184         ;;
13185       psos*)
13186         ;;
13187       solaris*)
13188         case $cc_basename in
13189           CC*)
13190             # Sun C++ 4.2, 5.x and Centerline C++
13191             lt_prog_compiler_pic_CXX='-KPIC'
13192             lt_prog_compiler_static_CXX='-Bstatic'
13193             lt_prog_compiler_wl_CXX='-Qoption ld '
13194             ;;
13195           gcx*)
13196             # Green Hills C++ Compiler
13197             lt_prog_compiler_pic_CXX='-PIC'
13198             ;;
13199           *)
13200             ;;
13201         esac
13202         ;;
13203       sunos4*)
13204         case $cc_basename in
13205           CC*)
13206             # Sun C++ 4.x
13207             lt_prog_compiler_pic_CXX='-pic'
13208             lt_prog_compiler_static_CXX='-Bstatic'
13209             ;;
13210           lcc*)
13211             # Lucid
13212             lt_prog_compiler_pic_CXX='-pic'
13213             ;;
13214           *)
13215             ;;
13216         esac
13217         ;;
13218       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13219         case $cc_basename in
13220           CC*)
13221             lt_prog_compiler_wl_CXX='-Wl,'
13222             lt_prog_compiler_pic_CXX='-KPIC'
13223             lt_prog_compiler_static_CXX='-Bstatic'
13224             ;;
13225         esac
13226         ;;
13227       tandem*)
13228         case $cc_basename in
13229           NCC*)
13230             # NonStop-UX NCC 3.20
13231             lt_prog_compiler_pic_CXX='-KPIC'
13232             ;;
13233           *)
13234             ;;
13235         esac
13236         ;;
13237       vxworks*)
13238         ;;
13239       *)
13240         lt_prog_compiler_can_build_shared_CXX=no
13241         ;;
13242     esac
13243   fi
13244
13245 case $host_os in
13246   # For platforms which do not support PIC, -DPIC is meaningless:
13247   *djgpp*)
13248     lt_prog_compiler_pic_CXX=
13249     ;;
13250   *)
13251     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13252     ;;
13253 esac
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13255 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13256
13257
13258
13259 #
13260 # Check to make sure the PIC flag actually works.
13261 #
13262 if test -n "$lt_prog_compiler_pic_CXX"; then
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13264 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13265 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   lt_cv_prog_compiler_pic_works_CXX=no
13269    ac_outfile=conftest.$ac_objext
13270    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13271    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13272    # Insert the option either (1) after the last *FLAGS variable, or
13273    # (2) before a word containing "conftest.", or (3) at the end.
13274    # Note that $ac_compile itself does not contain backslashes and begins
13275    # with a dollar sign (not a hyphen), so the echo should work correctly.
13276    # The option is referenced via a variable to avoid confusing sed.
13277    lt_compile=`echo "$ac_compile" | $SED \
13278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13280    -e 's:$: $lt_compiler_flag:'`
13281    (eval echo "\"\$as_me:13281: $lt_compile\"" >&5)
13282    (eval "$lt_compile" 2>conftest.err)
13283    ac_status=$?
13284    cat conftest.err >&5
13285    echo "$as_me:13285: \$? = $ac_status" >&5
13286    if (exit $ac_status) && test -s "$ac_outfile"; then
13287      # The compiler can only warn and ignore the option if not recognized
13288      # So say no if there are warnings other than the usual output.
13289      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13290      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13291      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13292        lt_cv_prog_compiler_pic_works_CXX=yes
13293      fi
13294    fi
13295    $RM conftest*
13296
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13299 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13300
13301 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13302     case $lt_prog_compiler_pic_CXX in
13303      "" | " "*) ;;
13304      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13305      esac
13306 else
13307     lt_prog_compiler_pic_CXX=
13308      lt_prog_compiler_can_build_shared_CXX=no
13309 fi
13310
13311 fi
13312
13313
13314
13315 #
13316 # Check to make sure the static flag actually works.
13317 #
13318 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13320 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13321 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   lt_cv_prog_compiler_static_works_CXX=no
13325    save_LDFLAGS="$LDFLAGS"
13326    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13327    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13328    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13329      # The linker can only warn and ignore the option if not recognized
13330      # So say no if there are warnings
13331      if test -s conftest.err; then
13332        # Append any errors to the config.log.
13333        cat conftest.err 1>&5
13334        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13335        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13336        if diff conftest.exp conftest.er2 >/dev/null; then
13337          lt_cv_prog_compiler_static_works_CXX=yes
13338        fi
13339      else
13340        lt_cv_prog_compiler_static_works_CXX=yes
13341      fi
13342    fi
13343    $RM -r conftest*
13344    LDFLAGS="$save_LDFLAGS"
13345
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13348 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13349
13350 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13351     :
13352 else
13353     lt_prog_compiler_static_CXX=
13354 fi
13355
13356
13357
13358
13359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13361 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   lt_cv_prog_compiler_c_o_CXX=no
13365    $RM -r conftest 2>/dev/null
13366    mkdir conftest
13367    cd conftest
13368    mkdir out
13369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13370
13371    lt_compiler_flag="-o out/conftest2.$ac_objext"
13372    # Insert the option either (1) after the last *FLAGS variable, or
13373    # (2) before a word containing "conftest.", or (3) at the end.
13374    # Note that $ac_compile itself does not contain backslashes and begins
13375    # with a dollar sign (not a hyphen), so the echo should work correctly.
13376    lt_compile=`echo "$ac_compile" | $SED \
13377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13379    -e 's:$: $lt_compiler_flag:'`
13380    (eval echo "\"\$as_me:13380: $lt_compile\"" >&5)
13381    (eval "$lt_compile" 2>out/conftest.err)
13382    ac_status=$?
13383    cat out/conftest.err >&5
13384    echo "$as_me:13384: \$? = $ac_status" >&5
13385    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13386    then
13387      # The compiler can only warn and ignore the option if not recognized
13388      # So say no if there are warnings
13389      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13390      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13391      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13392        lt_cv_prog_compiler_c_o_CXX=yes
13393      fi
13394    fi
13395    chmod u+w . 2>&5
13396    $RM conftest*
13397    # SGI C++ compiler will create directory out/ii_files/ for
13398    # template instantiation
13399    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13400    $RM out/* && rmdir out
13401    cd ..
13402    $RM -r conftest
13403    $RM conftest*
13404
13405 fi
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13407 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13408
13409
13410
13411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13413 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   lt_cv_prog_compiler_c_o_CXX=no
13417    $RM -r conftest 2>/dev/null
13418    mkdir conftest
13419    cd conftest
13420    mkdir out
13421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13422
13423    lt_compiler_flag="-o out/conftest2.$ac_objext"
13424    # Insert the option either (1) after the last *FLAGS variable, or
13425    # (2) before a word containing "conftest.", or (3) at the end.
13426    # Note that $ac_compile itself does not contain backslashes and begins
13427    # with a dollar sign (not a hyphen), so the echo should work correctly.
13428    lt_compile=`echo "$ac_compile" | $SED \
13429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13431    -e 's:$: $lt_compiler_flag:'`
13432    (eval echo "\"\$as_me:13432: $lt_compile\"" >&5)
13433    (eval "$lt_compile" 2>out/conftest.err)
13434    ac_status=$?
13435    cat out/conftest.err >&5
13436    echo "$as_me:13436: \$? = $ac_status" >&5
13437    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13438    then
13439      # The compiler can only warn and ignore the option if not recognized
13440      # So say no if there are warnings
13441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13442      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13443      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13444        lt_cv_prog_compiler_c_o_CXX=yes
13445      fi
13446    fi
13447    chmod u+w . 2>&5
13448    $RM conftest*
13449    # SGI C++ compiler will create directory out/ii_files/ for
13450    # template instantiation
13451    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13452    $RM out/* && rmdir out
13453    cd ..
13454    $RM -r conftest
13455    $RM conftest*
13456
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13459 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13460
13461
13462
13463
13464 hard_links="nottested"
13465 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13466   # do not overwrite the value of need_locks provided by the user
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13468 $as_echo_n "checking if we can lock with hard links... " >&6; }
13469   hard_links=yes
13470   $RM conftest*
13471   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13472   touch conftest.a
13473   ln conftest.a conftest.b 2>&5 || hard_links=no
13474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13476 $as_echo "$hard_links" >&6; }
13477   if test "$hard_links" = no; then
13478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13480     need_locks=warn
13481   fi
13482 else
13483   need_locks=no
13484 fi
13485
13486
13487
13488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13489 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13490
13491   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13492   case $host_os in
13493   aix[4-9]*)
13494     # If we're using GNU nm, then we don't want the "-C" option.
13495     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13496     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13497       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'
13498     else
13499       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'
13500     fi
13501     ;;
13502   pw32*)
13503     export_symbols_cmds_CXX="$ltdll_cmds"
13504   ;;
13505   cygwin* | mingw* | cegcc*)
13506     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'
13507   ;;
13508   linux* | k*bsd*-gnu)
13509     link_all_deplibs_CXX=no
13510   ;;
13511   *)
13512     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13513   ;;
13514   esac
13515   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13518 $as_echo "$ld_shlibs_CXX" >&6; }
13519 test "$ld_shlibs_CXX" = no && can_build_shared=no
13520
13521 with_gnu_ld_CXX=$with_gnu_ld
13522
13523
13524
13525
13526
13527
13528 #
13529 # Do we need to explicitly link libc?
13530 #
13531 case "x$archive_cmds_need_lc_CXX" in
13532 x|xyes)
13533   # Assume -lc should be added
13534   archive_cmds_need_lc_CXX=yes
13535
13536   if test "$enable_shared" = yes && test "$GCC" = yes; then
13537     case $archive_cmds_CXX in
13538     *'~'*)
13539       # FIXME: we may have to deal with multi-command sequences.
13540       ;;
13541     '$CC '*)
13542       # Test whether the compiler implicitly links with -lc since on some
13543       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13544       # to ld, don't add -lc before -lgcc.
13545       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13547       $RM conftest*
13548       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13549
13550       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551   (eval $ac_compile) 2>&5
13552   ac_status=$?
13553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554   test $ac_status = 0; } 2>conftest.err; then
13555         soname=conftest
13556         lib=conftest
13557         libobjs=conftest.$ac_objext
13558         deplibs=
13559         wl=$lt_prog_compiler_wl_CXX
13560         pic_flag=$lt_prog_compiler_pic_CXX
13561         compiler_flags=-v
13562         linker_flags=-v
13563         verstring=
13564         output_objdir=.
13565         libname=conftest
13566         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13567         allow_undefined_flag_CXX=
13568         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13569   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13570   ac_status=$?
13571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13572   test $ac_status = 0; }
13573         then
13574           archive_cmds_need_lc_CXX=no
13575         else
13576           archive_cmds_need_lc_CXX=yes
13577         fi
13578         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13579       else
13580         cat conftest.err 1>&5
13581       fi
13582       $RM conftest*
13583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13584 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13585       ;;
13586     esac
13587   fi
13588   ;;
13589 esac
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13656
13657 library_names_spec=
13658 libname_spec='lib$name'
13659 soname_spec=
13660 shrext_cmds=".so"
13661 postinstall_cmds=
13662 postuninstall_cmds=
13663 finish_cmds=
13664 finish_eval=
13665 shlibpath_var=
13666 shlibpath_overrides_runpath=unknown
13667 version_type=none
13668 dynamic_linker="$host_os ld.so"
13669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13670 need_lib_prefix=unknown
13671 hardcode_into_libs=no
13672
13673 # when you set need_version to no, make sure it does not cause -set_version
13674 # flags to be left without arguments
13675 need_version=unknown
13676
13677 case $host_os in
13678 aix3*)
13679   version_type=linux
13680   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13681   shlibpath_var=LIBPATH
13682
13683   # AIX 3 has no versioning support, so we append a major version to the name.
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   ;;
13686
13687 aix[4-9]*)
13688   version_type=linux
13689   need_lib_prefix=no
13690   need_version=no
13691   hardcode_into_libs=yes
13692   if test "$host_cpu" = ia64; then
13693     # AIX 5 supports IA64
13694     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13695     shlibpath_var=LD_LIBRARY_PATH
13696   else
13697     # With GCC up to 2.95.x, collect2 would create an import file
13698     # for dependence libraries.  The import file would start with
13699     # the line `#! .'.  This would cause the generated library to
13700     # depend on `.', always an invalid library.  This was fixed in
13701     # development snapshots of GCC prior to 3.0.
13702     case $host_os in
13703       aix4 | aix4.[01] | aix4.[01].*)
13704       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13705            echo ' yes '
13706            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13707         :
13708       else
13709         can_build_shared=no
13710       fi
13711       ;;
13712     esac
13713     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13714     # soname into executable. Probably we can add versioning support to
13715     # collect2, so additional links can be useful in future.
13716     if test "$aix_use_runtimelinking" = yes; then
13717       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13718       # instead of lib<name>.a to let people know that these are not
13719       # typical AIX shared libraries.
13720       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13721     else
13722       # We preserve .a as extension for shared libraries through AIX4.2
13723       # and later when we are not doing run time linking.
13724       library_names_spec='${libname}${release}.a $libname.a'
13725       soname_spec='${libname}${release}${shared_ext}$major'
13726     fi
13727     shlibpath_var=LIBPATH
13728   fi
13729   ;;
13730
13731 amigaos*)
13732   case $host_cpu in
13733   powerpc)
13734     # Since July 2007 AmigaOS4 officially supports .so libraries.
13735     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13737     ;;
13738   m68k)
13739     library_names_spec='$libname.ixlibrary $libname.a'
13740     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13741     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'
13742     ;;
13743   esac
13744   ;;
13745
13746 beos*)
13747   library_names_spec='${libname}${shared_ext}'
13748   dynamic_linker="$host_os ld.so"
13749   shlibpath_var=LIBRARY_PATH
13750   ;;
13751
13752 bsdi[45]*)
13753   version_type=linux
13754   need_version=no
13755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756   soname_spec='${libname}${release}${shared_ext}$major'
13757   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13758   shlibpath_var=LD_LIBRARY_PATH
13759   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13760   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13761   # the default ld.so.conf also contains /usr/contrib/lib and
13762   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13763   # libtool to hard-code these into programs
13764   ;;
13765
13766 cygwin* | mingw* | pw32* | cegcc*)
13767   version_type=windows
13768   shrext_cmds=".dll"
13769   need_version=no
13770   need_lib_prefix=no
13771
13772   case $GCC,$host_os in
13773   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13774     library_names_spec='$libname.dll.a'
13775     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13776     postinstall_cmds='base_file=`basename \${file}`~
13777       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13778       dldir=$destdir/`dirname \$dlpath`~
13779       test -d \$dldir || mkdir -p \$dldir~
13780       $install_prog $dir/$dlname \$dldir/$dlname~
13781       chmod a+x \$dldir/$dlname~
13782       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13783         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13784       fi'
13785     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13786       dlpath=$dir/\$dldll~
13787        $RM \$dlpath'
13788     shlibpath_overrides_runpath=yes
13789
13790     case $host_os in
13791     cygwin*)
13792       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13793       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13794       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13795       ;;
13796     mingw* | cegcc*)
13797       # MinGW DLLs use traditional 'lib' prefix
13798       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13799       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13800       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13801         # It is most probably a Windows format PATH printed by
13802         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13803         # path with ; separators, and with drive letters. We can handle the
13804         # drive letters (cygwin fileutils understands them), so leave them,
13805         # especially as we might pass files found there to a mingw objdump,
13806         # which wouldn't understand a cygwinified path. Ahh.
13807         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13808       else
13809         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13810       fi
13811       ;;
13812     pw32*)
13813       # pw32 DLLs use 'pw' prefix rather than 'lib'
13814       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815       ;;
13816     esac
13817     ;;
13818
13819   *)
13820     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13821     ;;
13822   esac
13823   dynamic_linker='Win32 ld.exe'
13824   # FIXME: first we should search . and the directory the executable is in
13825   shlibpath_var=PATH
13826   ;;
13827
13828 darwin* | rhapsody*)
13829   dynamic_linker="$host_os dyld"
13830   version_type=darwin
13831   need_lib_prefix=no
13832   need_version=no
13833   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13834   soname_spec='${libname}${release}${major}$shared_ext'
13835   shlibpath_overrides_runpath=yes
13836   shlibpath_var=DYLD_LIBRARY_PATH
13837   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13838
13839   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13840   ;;
13841
13842 dgux*)
13843   version_type=linux
13844   need_lib_prefix=no
13845   need_version=no
13846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13847   soname_spec='${libname}${release}${shared_ext}$major'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   ;;
13850
13851 freebsd1*)
13852   dynamic_linker=no
13853   ;;
13854
13855 freebsd* | dragonfly*)
13856   # DragonFly does not have aout.  When/if they implement a new
13857   # versioning mechanism, adjust this.
13858   if test -x /usr/bin/objformat; then
13859     objformat=`/usr/bin/objformat`
13860   else
13861     case $host_os in
13862     freebsd[123]*) objformat=aout ;;
13863     *) objformat=elf ;;
13864     esac
13865   fi
13866   version_type=freebsd-$objformat
13867   case $version_type in
13868     freebsd-elf*)
13869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13870       need_version=no
13871       need_lib_prefix=no
13872       ;;
13873     freebsd-*)
13874       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13875       need_version=yes
13876       ;;
13877   esac
13878   shlibpath_var=LD_LIBRARY_PATH
13879   case $host_os in
13880   freebsd2*)
13881     shlibpath_overrides_runpath=yes
13882     ;;
13883   freebsd3.[01]* | freebsdelf3.[01]*)
13884     shlibpath_overrides_runpath=yes
13885     hardcode_into_libs=yes
13886     ;;
13887   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13888   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13889     shlibpath_overrides_runpath=no
13890     hardcode_into_libs=yes
13891     ;;
13892   *) # from 4.6 on, and DragonFly
13893     shlibpath_overrides_runpath=yes
13894     hardcode_into_libs=yes
13895     ;;
13896   esac
13897   ;;
13898
13899 gnu*)
13900   version_type=linux
13901   need_lib_prefix=no
13902   need_version=no
13903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13904   soname_spec='${libname}${release}${shared_ext}$major'
13905   shlibpath_var=LD_LIBRARY_PATH
13906   hardcode_into_libs=yes
13907   ;;
13908
13909 hpux9* | hpux10* | hpux11*)
13910   # Give a soname corresponding to the major version so that dld.sl refuses to
13911   # link against other versions.
13912   version_type=sunos
13913   need_lib_prefix=no
13914   need_version=no
13915   case $host_cpu in
13916   ia64*)
13917     shrext_cmds='.so'
13918     hardcode_into_libs=yes
13919     dynamic_linker="$host_os dld.so"
13920     shlibpath_var=LD_LIBRARY_PATH
13921     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923     soname_spec='${libname}${release}${shared_ext}$major'
13924     if test "X$HPUX_IA64_MODE" = X32; then
13925       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13926     else
13927       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13928     fi
13929     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13930     ;;
13931   hppa*64*)
13932     shrext_cmds='.sl'
13933     hardcode_into_libs=yes
13934     dynamic_linker="$host_os dld.sl"
13935     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938     soname_spec='${libname}${release}${shared_ext}$major'
13939     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13940     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13941     ;;
13942   *)
13943     shrext_cmds='.sl'
13944     dynamic_linker="$host_os dld.sl"
13945     shlibpath_var=SHLIB_PATH
13946     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948     soname_spec='${libname}${release}${shared_ext}$major'
13949     ;;
13950   esac
13951   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13952   postinstall_cmds='chmod 555 $lib'
13953   ;;
13954
13955 interix[3-9]*)
13956   version_type=linux
13957   need_lib_prefix=no
13958   need_version=no
13959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13960   soname_spec='${libname}${release}${shared_ext}$major'
13961   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13962   shlibpath_var=LD_LIBRARY_PATH
13963   shlibpath_overrides_runpath=no
13964   hardcode_into_libs=yes
13965   ;;
13966
13967 irix5* | irix6* | nonstopux*)
13968   case $host_os in
13969     nonstopux*) version_type=nonstopux ;;
13970     *)
13971         if test "$lt_cv_prog_gnu_ld" = yes; then
13972                 version_type=linux
13973         else
13974                 version_type=irix
13975         fi ;;
13976   esac
13977   need_lib_prefix=no
13978   need_version=no
13979   soname_spec='${libname}${release}${shared_ext}$major'
13980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13981   case $host_os in
13982   irix5* | nonstopux*)
13983     libsuff= shlibsuff=
13984     ;;
13985   *)
13986     case $LD in # libtool.m4 will add one of these switches to LD
13987     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13988       libsuff= shlibsuff= libmagic=32-bit;;
13989     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13990       libsuff=32 shlibsuff=N32 libmagic=N32;;
13991     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13992       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13993     *) libsuff= shlibsuff= libmagic=never-match;;
13994     esac
13995     ;;
13996   esac
13997   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13998   shlibpath_overrides_runpath=no
13999   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14000   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14001   hardcode_into_libs=yes
14002   ;;
14003
14004 # No shared lib support for Linux oldld, aout, or coff.
14005 linux*oldld* | linux*aout* | linux*coff*)
14006   dynamic_linker=no
14007   ;;
14008
14009 # This must be Linux ELF.
14010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14011   version_type=linux
14012   need_lib_prefix=no
14013   need_version=no
14014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015   soname_spec='${libname}${release}${shared_ext}$major'
14016   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   shlibpath_overrides_runpath=no
14019   # Some binutils ld are patched to set DT_RUNPATH
14020   save_LDFLAGS=$LDFLAGS
14021   save_libdir=$libdir
14022   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14023        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h.  */
14026
14027 int
14028 main ()
14029 {
14030
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_cxx_try_link "$LINENO"; then :
14036   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14037   shlibpath_overrides_runpath=yes
14038 fi
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext \
14041     conftest$ac_exeext conftest.$ac_ext
14042   LDFLAGS=$save_LDFLAGS
14043   libdir=$save_libdir
14044
14045   # This implies no fast_install, which is unacceptable.
14046   # Some rework will be needed to allow for fast_install
14047   # before this can be enabled.
14048   hardcode_into_libs=yes
14049
14050   # Append ld.so.conf contents to the search path
14051   if test -f /etc/ld.so.conf; then
14052     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' ' '`
14053     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14054   fi
14055
14056   # We used to test for /lib/ld.so.1 and disable shared libraries on
14057   # powerpc, because MkLinux only supported shared libraries with the
14058   # GNU dynamic linker.  Since this was broken with cross compilers,
14059   # most powerpc-linux boxes support dynamic linking these days and
14060   # people can always --disable-shared, the test was removed, and we
14061   # assume the GNU/Linux dynamic linker is in use.
14062   dynamic_linker='GNU/Linux ld.so'
14063   ;;
14064
14065 netbsdelf*-gnu)
14066   version_type=linux
14067   need_lib_prefix=no
14068   need_version=no
14069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14070   soname_spec='${libname}${release}${shared_ext}$major'
14071   shlibpath_var=LD_LIBRARY_PATH
14072   shlibpath_overrides_runpath=no
14073   hardcode_into_libs=yes
14074   dynamic_linker='NetBSD ld.elf_so'
14075   ;;
14076
14077 netbsd*)
14078   version_type=sunos
14079   need_lib_prefix=no
14080   need_version=no
14081   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14084     dynamic_linker='NetBSD (a.out) ld.so'
14085   else
14086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14087     soname_spec='${libname}${release}${shared_ext}$major'
14088     dynamic_linker='NetBSD ld.elf_so'
14089   fi
14090   shlibpath_var=LD_LIBRARY_PATH
14091   shlibpath_overrides_runpath=yes
14092   hardcode_into_libs=yes
14093   ;;
14094
14095 newsos6)
14096   version_type=linux
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098   shlibpath_var=LD_LIBRARY_PATH
14099   shlibpath_overrides_runpath=yes
14100   ;;
14101
14102 *nto* | *qnx*)
14103   version_type=qnx
14104   need_lib_prefix=no
14105   need_version=no
14106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107   soname_spec='${libname}${release}${shared_ext}$major'
14108   shlibpath_var=LD_LIBRARY_PATH
14109   shlibpath_overrides_runpath=no
14110   hardcode_into_libs=yes
14111   dynamic_linker='ldqnx.so'
14112   ;;
14113
14114 openbsd*)
14115   version_type=sunos
14116   sys_lib_dlsearch_path_spec="/usr/lib"
14117   need_lib_prefix=no
14118   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14119   case $host_os in
14120     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14121     *)                          need_version=no  ;;
14122   esac
14123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14125   shlibpath_var=LD_LIBRARY_PATH
14126   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14127     case $host_os in
14128       openbsd2.[89] | openbsd2.[89].*)
14129         shlibpath_overrides_runpath=no
14130         ;;
14131       *)
14132         shlibpath_overrides_runpath=yes
14133         ;;
14134       esac
14135   else
14136     shlibpath_overrides_runpath=yes
14137   fi
14138   ;;
14139
14140 os2*)
14141   libname_spec='$name'
14142   shrext_cmds=".dll"
14143   need_lib_prefix=no
14144   library_names_spec='$libname${shared_ext} $libname.a'
14145   dynamic_linker='OS/2 ld.exe'
14146   shlibpath_var=LIBPATH
14147   ;;
14148
14149 osf3* | osf4* | osf5*)
14150   version_type=osf
14151   need_lib_prefix=no
14152   need_version=no
14153   soname_spec='${libname}${release}${shared_ext}$major'
14154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155   shlibpath_var=LD_LIBRARY_PATH
14156   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14157   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14158   ;;
14159
14160 rdos*)
14161   dynamic_linker=no
14162   ;;
14163
14164 solaris*)
14165   version_type=linux
14166   need_lib_prefix=no
14167   need_version=no
14168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169   soname_spec='${libname}${release}${shared_ext}$major'
14170   shlibpath_var=LD_LIBRARY_PATH
14171   shlibpath_overrides_runpath=yes
14172   hardcode_into_libs=yes
14173   # ldd complains unless libraries are executable
14174   postinstall_cmds='chmod +x $lib'
14175   ;;
14176
14177 sunos4*)
14178   version_type=sunos
14179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14180   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14181   shlibpath_var=LD_LIBRARY_PATH
14182   shlibpath_overrides_runpath=yes
14183   if test "$with_gnu_ld" = yes; then
14184     need_lib_prefix=no
14185   fi
14186   need_version=yes
14187   ;;
14188
14189 sysv4 | sysv4.3*)
14190   version_type=linux
14191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192   soname_spec='${libname}${release}${shared_ext}$major'
14193   shlibpath_var=LD_LIBRARY_PATH
14194   case $host_vendor in
14195     sni)
14196       shlibpath_overrides_runpath=no
14197       need_lib_prefix=no
14198       runpath_var=LD_RUN_PATH
14199       ;;
14200     siemens)
14201       need_lib_prefix=no
14202       ;;
14203     motorola)
14204       need_lib_prefix=no
14205       need_version=no
14206       shlibpath_overrides_runpath=no
14207       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14208       ;;
14209   esac
14210   ;;
14211
14212 sysv4*MP*)
14213   if test -d /usr/nec ;then
14214     version_type=linux
14215     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14216     soname_spec='$libname${shared_ext}.$major'
14217     shlibpath_var=LD_LIBRARY_PATH
14218   fi
14219   ;;
14220
14221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14222   version_type=freebsd-elf
14223   need_lib_prefix=no
14224   need_version=no
14225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226   soname_spec='${libname}${release}${shared_ext}$major'
14227   shlibpath_var=LD_LIBRARY_PATH
14228   shlibpath_overrides_runpath=yes
14229   hardcode_into_libs=yes
14230   if test "$with_gnu_ld" = yes; then
14231     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14232   else
14233     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14234     case $host_os in
14235       sco3.2v5*)
14236         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14237         ;;
14238     esac
14239   fi
14240   sys_lib_dlsearch_path_spec='/usr/lib'
14241   ;;
14242
14243 tpf*)
14244   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14245   version_type=linux
14246   need_lib_prefix=no
14247   need_version=no
14248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249   shlibpath_var=LD_LIBRARY_PATH
14250   shlibpath_overrides_runpath=no
14251   hardcode_into_libs=yes
14252   ;;
14253
14254 uts4*)
14255   version_type=linux
14256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257   soname_spec='${libname}${release}${shared_ext}$major'
14258   shlibpath_var=LD_LIBRARY_PATH
14259   ;;
14260
14261 *)
14262   dynamic_linker=no
14263   ;;
14264 esac
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14266 $as_echo "$dynamic_linker" >&6; }
14267 test "$dynamic_linker" = no && can_build_shared=no
14268
14269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14270 if test "$GCC" = yes; then
14271   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14272 fi
14273
14274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14275   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14276 fi
14277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14278   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14279 fi
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14317 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14318 hardcode_action_CXX=
14319 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14320    test -n "$runpath_var_CXX" ||
14321    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14322
14323   # We can hardcode non-existent directories.
14324   if test "$hardcode_direct_CXX" != no &&
14325      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14326      # have to relink, otherwise we might link with an installed library
14327      # when we should be linking with a yet-to-be-installed one
14328      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14329      test "$hardcode_minus_L_CXX" != no; then
14330     # Linking always hardcodes the temporary library directory.
14331     hardcode_action_CXX=relink
14332   else
14333     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14334     hardcode_action_CXX=immediate
14335   fi
14336 else
14337   # We cannot hardcode anything, or else we can only hardcode existing
14338   # directories.
14339   hardcode_action_CXX=unsupported
14340 fi
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14342 $as_echo "$hardcode_action_CXX" >&6; }
14343
14344 if test "$hardcode_action_CXX" = relink ||
14345    test "$inherit_rpath_CXX" = yes; then
14346   # Fast installation is not supported
14347   enable_fast_install=no
14348 elif test "$shlibpath_overrides_runpath" = yes ||
14349      test "$enable_shared" = no; then
14350   # Fast installation is not necessary
14351   enable_fast_install=needless
14352 fi
14353
14354
14355
14356
14357
14358
14359
14360   fi # test -n "$compiler"
14361
14362   CC=$lt_save_CC
14363   LDCXX=$LD
14364   LD=$lt_save_LD
14365   GCC=$lt_save_GCC
14366   with_gnu_ld=$lt_save_with_gnu_ld
14367   lt_cv_path_LDCXX=$lt_cv_path_LD
14368   lt_cv_path_LD=$lt_save_path_LD
14369   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14370   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14371 fi # test "$_lt_caught_CXX_error" != yes
14372
14373 ac_ext=c
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391         ac_config_commands="$ac_config_commands libtool"
14392
14393
14394
14395
14396 # Only expand once:
14397
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14401 set x ${MAKE-make}
14402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14403 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14404   $as_echo_n "(cached) " >&6
14405 else
14406   cat >conftest.make <<\_ACEOF
14407 SHELL = /bin/sh
14408 all:
14409         @echo '@@@%%%=$(MAKE)=@@@%%%'
14410 _ACEOF
14411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14413   *@@@%%%=?*=@@@%%%*)
14414     eval ac_cv_prog_make_${ac_make}_set=yes;;
14415   *)
14416     eval ac_cv_prog_make_${ac_make}_set=no;;
14417 esac
14418 rm -f conftest.make
14419 fi
14420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14422 $as_echo "yes" >&6; }
14423   SET_MAKE=
14424 else
14425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14427   SET_MAKE="MAKE=${MAKE-make}"
14428 fi
14429
14430 if test "x$CC" != xcc; then
14431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
14432 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
14433 else
14434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
14435 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
14436 fi
14437 set dummy $CC; ac_cc=`$as_echo "$2" |
14438                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14439 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
14440   $as_echo_n "(cached) " >&6
14441 else
14442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h.  */
14444
14445 int
14446 main ()
14447 {
14448
14449   ;
14450   return 0;
14451 }
14452 _ACEOF
14453 # Make sure it works both with $CC and with simple cc.
14454 # We do the test twice because some compilers refuse to overwrite an
14455 # existing .o file with -o, though they will create one.
14456 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14457 rm -f conftest2.*
14458 if { { case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14463 $as_echo "$ac_try_echo"; } >&5
14464   (eval "$ac_try") 2>&5
14465   ac_status=$?
14466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14467   test $ac_status = 0; } &&
14468    test -f conftest2.$ac_objext && { { case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14473 $as_echo "$ac_try_echo"; } >&5
14474   (eval "$ac_try") 2>&5
14475   ac_status=$?
14476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14477   test $ac_status = 0; };
14478 then
14479   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14480   if test "x$CC" != xcc; then
14481     # Test first that cc exists at all.
14482     if { ac_try='cc -c conftest.$ac_ext >&5'
14483   { { case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14488 $as_echo "$ac_try_echo"; } >&5
14489   (eval "$ac_try") 2>&5
14490   ac_status=$?
14491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14492   test $ac_status = 0; }; }; then
14493       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14494       rm -f conftest2.*
14495       if { { case "(($ac_try" in
14496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497   *) ac_try_echo=$ac_try;;
14498 esac
14499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14500 $as_echo "$ac_try_echo"; } >&5
14501   (eval "$ac_try") 2>&5
14502   ac_status=$?
14503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14504   test $ac_status = 0; } &&
14505          test -f conftest2.$ac_objext && { { case "(($ac_try" in
14506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507   *) ac_try_echo=$ac_try;;
14508 esac
14509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14510 $as_echo "$ac_try_echo"; } >&5
14511   (eval "$ac_try") 2>&5
14512   ac_status=$?
14513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14514   test $ac_status = 0; };
14515       then
14516         # cc works too.
14517         :
14518       else
14519         # cc exists but doesn't like -o.
14520         eval ac_cv_prog_cc_${ac_cc}_c_o=no
14521       fi
14522     fi
14523   fi
14524 else
14525   eval ac_cv_prog_cc_${ac_cc}_c_o=no
14526 fi
14527 rm -f core conftest*
14528
14529 fi
14530 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14532 $as_echo "yes" >&6; }
14533 else
14534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535 $as_echo "no" >&6; }
14536
14537 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
14538
14539 fi
14540
14541 # FIXME: we rely on the cache variable name because
14542 # there is no other way.
14543 set dummy $CC
14544 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14545 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
14546 if test "$am_t" != yes; then
14547    # Losing compiler, so override with the script.
14548    # FIXME: It is wrong to rewrite CC.
14549    # But if we don't then we get into trouble of one sort or another.
14550    # A longer-term fix would be to have automake use am__CC in this case,
14551    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14552    CC="$am_aux_dir/compile $CC"
14553 fi
14554
14555
14556
14557 # --enable-warning=min/max/fatal/none
14558 # Check whether --enable-warnings was given.
14559 if test "${enable_warnings+set}" = set; then :
14560   enableval=$enable_warnings; dk_enable_warnings=$enableval
14561 else
14562   dk_enable_warnings=min
14563 fi
14564
14565 dk_lang=
14566 case $ac_compile in
14567   *'$CXXFLAGS '*)
14568     dk_lang='C++'
14569     dk_cc=$CXX
14570     dk_conftest=conftest.${ac_ext-cc}
14571     ;;
14572   *'$CFLAGS '*)
14573     dk_lang=C
14574     dk_cc=$CC
14575     dk_conftest=conftest.${ac_ext-c}
14576     ;;
14577 esac
14578
14579 if test "x$dk_lang" != x; then :
14580
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $dk_lang compiler warning flags to use" >&5
14582 $as_echo_n "checking which $dk_lang compiler warning flags to use... " >&6; }
14583
14584   case $dk_enable_warnings in
14585     no) dk_warning_flags=;;
14586     max) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-unused-but-set-variable";;
14587     fatal) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-unused-but-set-variable -Werror";;
14588     *) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-unused-but-set-variable";;
14589   esac
14590
14591   dk_deprecation_flags=
14592   dk_tested_flags=
14593
14594   if test "x$dk_warning_flags" != x; then :
14595
14596     # Keep in mind that the dummy source must be devoid of any
14597     # problems that might cause diagnostics.
14598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h.  */
14600 int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
14601 _ACEOF
14602
14603     for dk_flag in $dk_warning_flags
14604     do
14605       # Test whether the compiler accepts the flag. GCC doesn't bail
14606       # out when given an unsupported flag but prints a warning, so
14607       # check the compiler output instead.
14608       dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
14609       rm -f "conftest.${OBJEXT-o}"
14610
14611       if test "x$dk_cc_out" = x; then :
14612
14613         if test "x$dk_tested_flags" = x; then :
14614   dk_tested_flags=$dk_flag
14615 else
14616   dk_tested_flags="$dk_tested_flags $dk_flag"
14617 fi
14618
14619 else
14620
14621         echo "$dk_cc_out" >&5
14622
14623 fi
14624     done
14625
14626     rm -f "$dk_conftest"
14627
14628 fi
14629   dk_all_flags=$dk_deprecation_flags$dk_tested_flags
14630   SYNTHESIS_WFLAGS=$dk_all_flags
14631
14632
14633   test "x$dk_all_flags" != x || dk_all_flags=none
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dk_all_flags" >&5
14635 $as_echo "$dk_all_flags" >&6; }
14636
14637 fi
14638
14639
14640 PIC_CXXFLAGS="$lt_prog_compiler_pic_CXX"
14641
14642
14643 # Check whether --enable-debug-logs was given.
14644 if test "${enable_debug_logs+set}" = set; then :
14645   enableval=$enable_debug_logs; enable_debug_logs="$enableval"
14646 else
14647   enable_debug_logs="no"
14648 fi
14649
14650 if test "$enable_debug_logs" = "yes"; then
14651
14652 cat >>confdefs.h <<_ACEOF
14653 #define SYDEBUG_LOCATION "`pwd`/src/html"
14654 _ACEOF
14655
14656 fi
14657  if test "$enable_debug_logs" = "yes"; then
14658   COND_DOXYGEN_TRUE=
14659   COND_DOXYGEN_FALSE='#'
14660 else
14661   COND_DOXYGEN_TRUE='#'
14662   COND_DOXYGEN_FALSE=
14663 fi
14664
14665
14666
14667
14668 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14669         if test -n "$ac_tool_prefix"; then
14670   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14671 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14675   $as_echo_n "(cached) " >&6
14676 else
14677   case $PKG_CONFIG in
14678   [\\/]* | ?:[\\/]*)
14679   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14680   ;;
14681   *)
14682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in $PATH
14684 do
14685   IFS=$as_save_IFS
14686   test -z "$as_dir" && as_dir=.
14687     for ac_exec_ext in '' $ac_executable_extensions; do
14688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14689     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14691     break 2
14692   fi
14693 done
14694   done
14695 IFS=$as_save_IFS
14696
14697   ;;
14698 esac
14699 fi
14700 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14701 if test -n "$PKG_CONFIG"; then
14702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14703 $as_echo "$PKG_CONFIG" >&6; }
14704 else
14705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14707 fi
14708
14709
14710 fi
14711 if test -z "$ac_cv_path_PKG_CONFIG"; then
14712   ac_pt_PKG_CONFIG=$PKG_CONFIG
14713   # Extract the first word of "pkg-config", so it can be a program name with args.
14714 set dummy pkg-config; ac_word=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716 $as_echo_n "checking for $ac_word... " >&6; }
14717 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
14718   $as_echo_n "(cached) " >&6
14719 else
14720   case $ac_pt_PKG_CONFIG in
14721   [\\/]* | ?:[\\/]*)
14722   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14723   ;;
14724   *)
14725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14726 for as_dir in $PATH
14727 do
14728   IFS=$as_save_IFS
14729   test -z "$as_dir" && as_dir=.
14730     for ac_exec_ext in '' $ac_executable_extensions; do
14731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14732     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14734     break 2
14735   fi
14736 done
14737   done
14738 IFS=$as_save_IFS
14739
14740   ;;
14741 esac
14742 fi
14743 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14744 if test -n "$ac_pt_PKG_CONFIG"; then
14745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14746 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14747 else
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14750 fi
14751
14752   if test "x$ac_pt_PKG_CONFIG" = x; then
14753     PKG_CONFIG=""
14754   else
14755     case $cross_compiling:$ac_tool_warned in
14756 yes:)
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14759 ac_tool_warned=yes ;;
14760 esac
14761     PKG_CONFIG=$ac_pt_PKG_CONFIG
14762   fi
14763 else
14764   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14765 fi
14766
14767 fi
14768 if test -n "$PKG_CONFIG"; then
14769         _pkg_min_version=0.9.0
14770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14771 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14772         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14773                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14774 $as_echo "yes" >&6; }
14775         else
14776                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14778                 PKG_CONFIG=""
14779         fi
14780
14781 fi
14782
14783 pkg_failed=no
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOOBAR" >&5
14785 $as_echo_n "checking for FOOBAR... " >&6; }
14786
14787 if test -n "$PKG_CONFIG"; then
14788     if test -n "$FOOBAR_CFLAGS"; then
14789         pkg_cv_FOOBAR_CFLAGS="$FOOBAR_CFLAGS"
14790     else
14791         if test -n "$PKG_CONFIG" && \
14792     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"foobar\""; } >&5
14793   ($PKG_CONFIG --exists --print-errors "foobar") 2>&5
14794   ac_status=$?
14795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14796   test $ac_status = 0; }; then
14797   pkg_cv_FOOBAR_CFLAGS=`$PKG_CONFIG --cflags "foobar" 2>/dev/null`
14798 else
14799   pkg_failed=yes
14800 fi
14801     fi
14802 else
14803         pkg_failed=untried
14804 fi
14805 if test -n "$PKG_CONFIG"; then
14806     if test -n "$FOOBAR_LIBS"; then
14807         pkg_cv_FOOBAR_LIBS="$FOOBAR_LIBS"
14808     else
14809         if test -n "$PKG_CONFIG" && \
14810     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"foobar\""; } >&5
14811   ($PKG_CONFIG --exists --print-errors "foobar") 2>&5
14812   ac_status=$?
14813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814   test $ac_status = 0; }; then
14815   pkg_cv_FOOBAR_LIBS=`$PKG_CONFIG --libs "foobar" 2>/dev/null`
14816 else
14817   pkg_failed=yes
14818 fi
14819     fi
14820 else
14821         pkg_failed=untried
14822 fi
14823
14824
14825
14826 if test $pkg_failed = yes; then
14827
14828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14829         _pkg_short_errors_supported=yes
14830 else
14831         _pkg_short_errors_supported=no
14832 fi
14833         if test $_pkg_short_errors_supported = yes; then
14834                 FOOBAR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "foobar"`
14835         else
14836                 FOOBAR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "foobar"`
14837         fi
14838         # Put the nasty error message in config.log where it belongs
14839         echo "$FOOBAR_PKG_ERRORS" >&5
14840
14841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842 $as_echo "no" >&6; }
14843                 true
14844 elif test $pkg_failed = untried; then
14845         true
14846 else
14847         FOOBAR_CFLAGS=$pkg_cv_FOOBAR_CFLAGS
14848         FOOBAR_LIBS=$pkg_cv_FOOBAR_LIBS
14849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14850 $as_echo "yes" >&6; }
14851         true
14852 fi
14853
14854 # Check whether --enable-sqlite was given.
14855 if test "${enable_sqlite+set}" = set; then :
14856   enableval=$enable_sqlite; enable_sqlite=$enableval
14857 else
14858   enable_sqlite="yes"
14859 fi
14860
14861 if test "$enable_sqlite" == "yes"; then
14862
14863 pkg_failed=no
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
14865 $as_echo_n "checking for SQLITE3... " >&6; }
14866
14867 if test -n "$PKG_CONFIG"; then
14868     if test -n "$SQLITE3_CFLAGS"; then
14869         pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
14870     else
14871         if test -n "$PKG_CONFIG" && \
14872     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
14873   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
14874   ac_status=$?
14875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876   test $ac_status = 0; }; then
14877   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
14878 else
14879   pkg_failed=yes
14880 fi
14881     fi
14882 else
14883         pkg_failed=untried
14884 fi
14885 if test -n "$PKG_CONFIG"; then
14886     if test -n "$SQLITE3_LIBS"; then
14887         pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
14888     else
14889         if test -n "$PKG_CONFIG" && \
14890     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
14891   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
14892   ac_status=$?
14893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14894   test $ac_status = 0; }; then
14895   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
14896 else
14897   pkg_failed=yes
14898 fi
14899     fi
14900 else
14901         pkg_failed=untried
14902 fi
14903
14904
14905
14906 if test $pkg_failed = yes; then
14907
14908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14909         _pkg_short_errors_supported=yes
14910 else
14911         _pkg_short_errors_supported=no
14912 fi
14913         if test $_pkg_short_errors_supported = yes; then
14914                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
14915         else
14916                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
14917         fi
14918         # Put the nasty error message in config.log where it belongs
14919         echo "$SQLITE3_PKG_ERRORS" >&5
14920
14921         as_fn_error "Package requirements (sqlite3) were not met:
14922
14923 $SQLITE3_PKG_ERRORS
14924
14925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14926 installed software in a non-standard prefix.
14927
14928 Alternatively, you may set the environment variables SQLITE3_CFLAGS
14929 and SQLITE3_LIBS to avoid the need to call pkg-config.
14930 See the pkg-config man page for more details.
14931 " "$LINENO" 5
14932 elif test $pkg_failed = untried; then
14933         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14935 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
14936 is in your PATH or set the PKG_CONFIG environment variable to the full
14937 path to pkg-config.
14938
14939 Alternatively, you may set the environment variables SQLITE3_CFLAGS
14940 and SQLITE3_LIBS to avoid the need to call pkg-config.
14941 See the pkg-config man page for more details.
14942
14943 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14944 See \`config.log' for more details." "$LINENO" 5; }
14945 else
14946         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
14947         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
14948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14949 $as_echo "yes" >&6; }
14950         :
14951 fi
14952     HAVE_SQLITE=1
14953 else
14954     HAVE_SQLITE=0
14955 fi
14956
14957 cat >>confdefs.h <<_ACEOF
14958 #define ONOFF_SQLITE_SUPPORT $HAVE_SQLITE
14959 _ACEOF
14960
14961
14962 # Check whether --enable-regex was given.
14963 if test "${enable_regex+set}" = set; then :
14964   enableval=$enable_regex; enable_regex=$enableval
14965 else
14966   enable_regex="yes"
14967 fi
14968
14969 if test "$enable_regex" == "yes"; then
14970
14971 pkg_failed=no
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
14973 $as_echo_n "checking for PCRE... " >&6; }
14974
14975 if test -n "$PKG_CONFIG"; then
14976     if test -n "$PCRE_CFLAGS"; then
14977         pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
14978     else
14979         if test -n "$PKG_CONFIG" && \
14980     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
14981   ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
14982   ac_status=$?
14983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14984   test $ac_status = 0; }; then
14985   pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
14986 else
14987   pkg_failed=yes
14988 fi
14989     fi
14990 else
14991         pkg_failed=untried
14992 fi
14993 if test -n "$PKG_CONFIG"; then
14994     if test -n "$PCRE_LIBS"; then
14995         pkg_cv_PCRE_LIBS="$PCRE_LIBS"
14996     else
14997         if test -n "$PKG_CONFIG" && \
14998     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
14999   ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15000   ac_status=$?
15001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15002   test $ac_status = 0; }; then
15003   pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
15004 else
15005   pkg_failed=yes
15006 fi
15007     fi
15008 else
15009         pkg_failed=untried
15010 fi
15011
15012
15013
15014 if test $pkg_failed = yes; then
15015
15016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15017         _pkg_short_errors_supported=yes
15018 else
15019         _pkg_short_errors_supported=no
15020 fi
15021         if test $_pkg_short_errors_supported = yes; then
15022                 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
15023         else
15024                 PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
15025         fi
15026         # Put the nasty error message in config.log where it belongs
15027         echo "$PCRE_PKG_ERRORS" >&5
15028
15029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030 $as_echo "no" >&6; }
15031                 as_fn_error "libpcre not found, required for --enable-regex" "$LINENO" 5
15032 elif test $pkg_failed = untried; then
15033         as_fn_error "libpcre not found, required for --enable-regex" "$LINENO" 5
15034 else
15035         PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
15036         PCRE_LIBS=$pkg_cv_PCRE_LIBS
15037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15039         HAVE_PCRE=1
15040 fi
15041     HAVE_PCRE=1
15042 else
15043     HAVE_PCRE=0
15044 fi
15045
15046 cat >>confdefs.h <<_ACEOF
15047 #define ONOFF_REGEX_SUPPORT $HAVE_PCRE
15048 _ACEOF
15049
15050
15051 # Check whether --enable-dlt was given.
15052 if test "${enable_dlt+set}" = set; then :
15053   enableval=$enable_dlt; enable_dlt=$enableval
15054                test $enable_dlt = "yes" || test $enable_dlt = "no" || as_fn_error "invalid value of --enable-dlt: $enableval" "$LINENO" 5
15055 else
15056   enable_dlt="no"
15057 fi
15058
15059 if test "$enable_dlt" = "yes"; then
15060
15061 pkg_failed=no
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT" >&5
15063 $as_echo_n "checking for DLT... " >&6; }
15064
15065 if test -n "$PKG_CONFIG"; then
15066     if test -n "$DLT_CFLAGS"; then
15067         pkg_cv_DLT_CFLAGS="$DLT_CFLAGS"
15068     else
15069         if test -n "$PKG_CONFIG" && \
15070     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"automotive-dlt\""; } >&5
15071   ($PKG_CONFIG --exists --print-errors "automotive-dlt") 2>&5
15072   ac_status=$?
15073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15074   test $ac_status = 0; }; then
15075   pkg_cv_DLT_CFLAGS=`$PKG_CONFIG --cflags "automotive-dlt" 2>/dev/null`
15076 else
15077   pkg_failed=yes
15078 fi
15079     fi
15080 else
15081         pkg_failed=untried
15082 fi
15083 if test -n "$PKG_CONFIG"; then
15084     if test -n "$DLT_LIBS"; then
15085         pkg_cv_DLT_LIBS="$DLT_LIBS"
15086     else
15087         if test -n "$PKG_CONFIG" && \
15088     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"automotive-dlt\""; } >&5
15089   ($PKG_CONFIG --exists --print-errors "automotive-dlt") 2>&5
15090   ac_status=$?
15091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15092   test $ac_status = 0; }; then
15093   pkg_cv_DLT_LIBS=`$PKG_CONFIG --libs "automotive-dlt" 2>/dev/null`
15094 else
15095   pkg_failed=yes
15096 fi
15097     fi
15098 else
15099         pkg_failed=untried
15100 fi
15101
15102
15103
15104 if test $pkg_failed = yes; then
15105
15106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15107         _pkg_short_errors_supported=yes
15108 else
15109         _pkg_short_errors_supported=no
15110 fi
15111         if test $_pkg_short_errors_supported = yes; then
15112                 DLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "automotive-dlt"`
15113         else
15114                 DLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "automotive-dlt"`
15115         fi
15116         # Put the nasty error message in config.log where it belongs
15117         echo "$DLT_PKG_ERRORS" >&5
15118
15119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120 $as_echo "no" >&6; }
15121                 as_fn_error "dlt not found, required for --enable-dlt" "$LINENO" 5
15122 elif test $pkg_failed = untried; then
15123         as_fn_error "dlt not found, required for --enable-dlt" "$LINENO" 5
15124 else
15125         DLT_CFLAGS=$pkg_cv_DLT_CFLAGS
15126         DLT_LIBS=$pkg_cv_DLT_LIBS
15127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15128 $as_echo "yes" >&6; }
15129         USE_DLT=1
15130 fi
15131
15132 $as_echo "#define USE_DLT 1" >>confdefs.h
15133
15134 fi
15135
15136 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_zlib_h" = x""yes; then :
15138
15139 else
15140   as_fn_error "zlib.h not found." "$LINENO" 5
15141 fi
15142
15143
15144 ac_fn_c_check_header_mongrel "$LINENO" "xmltok/xmlparse.h" "ac_cv_header_xmltok_xmlparse_h" "$ac_includes_default"
15145 if test "x$ac_cv_header_xmltok_xmlparse_h" = x""yes; then :
15146   have_system_xmltok="yes"
15147 fi
15148
15149
15150 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
15151 if test "x$ac_cv_header_expat_h" = x""yes; then :
15152   have_system_expat="yes"
15153 fi
15154
15155
15156
15157 # Check whether --enable-libical was given.
15158 if test "${enable_libical+set}" = set; then :
15159   enableval=$enable_libical; enable_libical=$enableval
15160 else
15161   enable_libical="yes"
15162 fi
15163
15164 if test "$enable_libical" == "yes"; then
15165
15166 pkg_failed=no
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
15168 $as_echo_n "checking for LIBICAL... " >&6; }
15169
15170 if test -n "$PKG_CONFIG"; then
15171     if test -n "$LIBICAL_CFLAGS"; then
15172         pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
15173     else
15174         if test -n "$PKG_CONFIG" && \
15175     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
15176   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
15177   ac_status=$?
15178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15179   test $ac_status = 0; }; then
15180   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
15181 else
15182   pkg_failed=yes
15183 fi
15184     fi
15185 else
15186         pkg_failed=untried
15187 fi
15188 if test -n "$PKG_CONFIG"; then
15189     if test -n "$LIBICAL_LIBS"; then
15190         pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
15191     else
15192         if test -n "$PKG_CONFIG" && \
15193     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
15194   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
15195   ac_status=$?
15196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197   test $ac_status = 0; }; then
15198   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
15199 else
15200   pkg_failed=yes
15201 fi
15202     fi
15203 else
15204         pkg_failed=untried
15205 fi
15206
15207
15208
15209 if test $pkg_failed = yes; then
15210
15211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15212         _pkg_short_errors_supported=yes
15213 else
15214         _pkg_short_errors_supported=no
15215 fi
15216         if test $_pkg_short_errors_supported = yes; then
15217                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical"`
15218         else
15219                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical"`
15220         fi
15221         # Put the nasty error message in config.log where it belongs
15222         echo "$LIBICAL_PKG_ERRORS" >&5
15223
15224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 $as_echo "no" >&6; }
15226
15227 pkg_failed=no
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBECAL" >&5
15229 $as_echo_n "checking for LIBECAL... " >&6; }
15230
15231 if test -n "$PKG_CONFIG"; then
15232     if test -n "$LIBECAL_CFLAGS"; then
15233         pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
15234     else
15235         if test -n "$PKG_CONFIG" && \
15236     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
15237   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
15238   ac_status=$?
15239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15240   test $ac_status = 0; }; then
15241   pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
15242 else
15243   pkg_failed=yes
15244 fi
15245     fi
15246 else
15247         pkg_failed=untried
15248 fi
15249 if test -n "$PKG_CONFIG"; then
15250     if test -n "$LIBECAL_LIBS"; then
15251         pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
15252     else
15253         if test -n "$PKG_CONFIG" && \
15254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
15255   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
15256   ac_status=$?
15257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15258   test $ac_status = 0; }; then
15259   pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
15260 else
15261   pkg_failed=yes
15262 fi
15263     fi
15264 else
15265         pkg_failed=untried
15266 fi
15267
15268
15269
15270 if test $pkg_failed = yes; then
15271
15272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15273         _pkg_short_errors_supported=yes
15274 else
15275         _pkg_short_errors_supported=no
15276 fi
15277         if test $_pkg_short_errors_supported = yes; then
15278                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
15279         else
15280                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
15281         fi
15282         # Put the nasty error message in config.log where it belongs
15283         echo "$LIBECAL_PKG_ERRORS" >&5
15284
15285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15287                 true
15288 elif test $pkg_failed = untried; then
15289         true
15290 else
15291         LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
15292         LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
15293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15294 $as_echo "yes" >&6; }
15295
15296 $as_echo "#define HAVE_LIBICAL 1" >>confdefs.h
15297
15298
15299 $as_echo "#define HAVE_LIBECAL 1" >>confdefs.h
15300
15301 fi
15302 elif test $pkg_failed = untried; then
15303
15304 pkg_failed=no
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBECAL" >&5
15306 $as_echo_n "checking for LIBECAL... " >&6; }
15307
15308 if test -n "$PKG_CONFIG"; then
15309     if test -n "$LIBECAL_CFLAGS"; then
15310         pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
15311     else
15312         if test -n "$PKG_CONFIG" && \
15313     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
15314   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
15315   ac_status=$?
15316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15317   test $ac_status = 0; }; then
15318   pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
15319 else
15320   pkg_failed=yes
15321 fi
15322     fi
15323 else
15324         pkg_failed=untried
15325 fi
15326 if test -n "$PKG_CONFIG"; then
15327     if test -n "$LIBECAL_LIBS"; then
15328         pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
15329     else
15330         if test -n "$PKG_CONFIG" && \
15331     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
15332   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
15333   ac_status=$?
15334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335   test $ac_status = 0; }; then
15336   pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
15337 else
15338   pkg_failed=yes
15339 fi
15340     fi
15341 else
15342         pkg_failed=untried
15343 fi
15344
15345
15346
15347 if test $pkg_failed = yes; then
15348
15349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15350         _pkg_short_errors_supported=yes
15351 else
15352         _pkg_short_errors_supported=no
15353 fi
15354         if test $_pkg_short_errors_supported = yes; then
15355                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
15356         else
15357                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
15358         fi
15359         # Put the nasty error message in config.log where it belongs
15360         echo "$LIBECAL_PKG_ERRORS" >&5
15361
15362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15364                 true
15365 elif test $pkg_failed = untried; then
15366         true
15367 else
15368         LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
15369         LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
15370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15371 $as_echo "yes" >&6; }
15372
15373 $as_echo "#define HAVE_LIBICAL 1" >>confdefs.h
15374
15375
15376 $as_echo "#define HAVE_LIBECAL 1" >>confdefs.h
15377
15378 fi
15379 else
15380         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
15381         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
15382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15383 $as_echo "yes" >&6; }
15384
15385 $as_echo "#define HAVE_LIBICAL 1" >>confdefs.h
15386
15387 fi
15388 fi
15389
15390 # Check whether --enable-evolution-compatibility was given.
15391 if test "${enable_evolution_compatibility+set}" = set; then :
15392   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
15393 else
15394   enable_evolution_compatibility="no"
15395 fi
15396
15397 if test "$enable_evolution_compatibility" == "yes"; then
15398
15399 $as_echo "#define EVOLUTION_COMPATIBILITY 1" >>confdefs.h
15400
15401    LIBICAL_LIBS=
15402    LIBECAL_LIBS=
15403 fi
15404
15405
15406 # Check whether --with-xmltok was given.
15407 if test "${with_xmltok+set}" = set; then :
15408   withval=$with_xmltok;  if test "$withval" = "builtin"; then with_xmltok="builtin"
15409           elif test "$withval" = "system" || test "$withval" = "yes"; then with_xmltok="system"
15410           else with_xmltok="$withval"
15411           fi
15412 else
15413    with_xmltok="no"
15414 fi
15415
15416
15417
15418 # Check whether --with-expat was given.
15419 if test "${with_expat+set}" = set; then :
15420   withval=$with_expat;  if test "$withval" = "system" || test "$withval" = "yes"; then with_expat="system"
15421           else with_expath="$withval"
15422           fi
15423 else
15424    with_expat="no"
15425 fi
15426
15427
15428 if test "$with_xmltok" = "no" && test "$with_expat" = "no"; then
15429    if test "$have_system_expat" = "yes"; then
15430       with_expat="yes"
15431       XMLPARSE_LIBS="-lexpat"
15432    elif test "$have_system_xmltok" = "yes"; then
15433       with_xmltok="yes"
15434       XMLPARSE_LIBS="-lxmlparse"
15435    else
15436       with_xmltok="builtin"
15437    fi
15438 elif test "$with_expat" != "no"; then
15439    if test "$with_expat" = "system"; then
15440       if test "$have_system_expat" = "yes"; then XMLPARSE_LIBS="-lexpat"
15441       else as_fn_error "expat.h not found." "$LINENO" 5
15442       fi
15443    else # user path
15444       XMLPARSE_LIBS="-L$with_expat/lib -lexpat"
15445       XMLPARSE_CFLAGS="-I$with_expat/include"
15446    fi
15447    with_expat="yes"
15448 else # with_xmltok
15449    if test "$with_xmltok" = "system"; then
15450       if test "$have_system_xmltok" = "yes"; then XMLPARSE_LIBS="-lxmlparse"
15451       else as_fn_error "xmltok/xmplarse.h not found." "$LINENO" 5
15452       fi
15453    elif test "$with_xmltok" != "builtin"; then
15454       XMLPARSE_LIBS="-L$with_xmltok/lib -lxmlparse"
15455       XMLPARSE_CFLAGS="-I$with_xmltok/include"
15456    fi
15457 fi
15458
15459 if test "$with_expat" = "yes"; then
15460
15461 $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
15462
15463 elif test "$with_xmltok" != "builtin"; then
15464
15465 $as_echo "#define HAVE_SYS_XMLTOK 1" >>confdefs.h
15466
15467 else
15468
15469 $as_echo "#define HAVE_BUILTIN_XMLTOK 1" >>confdefs.h
15470
15471 fi
15472
15473
15474
15475  if test "$with_xmltok" = "builtin"; then
15476   COND_XMLPARSE_TRUE=
15477   COND_XMLPARSE_FALSE='#'
15478 else
15479   COND_XMLPARSE_TRUE='#'
15480   COND_XMLPARSE_FALSE=
15481 fi
15482
15483
15484 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15485 if test "x$ac_cv_header_stdint_h" = x""yes; then :
15486
15487 fi
15488
15489
15490
15491 # the autotools SDK always assumes that it is linked against the engine
15492
15493 $as_echo "#define UIAPI_LINKED 1" >>confdefs.h
15494
15495
15496 $as_echo "#define DBAPI_LINKED 1" >>confdefs.h
15497
15498
15499 $as_echo "#define DBAPI_SRV_LINKED 1" >>confdefs.h
15500
15501
15502 # determines which object files are needed in the SDK:
15503 # if linking statically, some object files are shared with
15504 # libsynthesis.a
15505  if test "$enable_shared" = "no"; then
15506   COND_STATIC_TRUE=
15507   COND_STATIC_FALSE='#'
15508 else
15509   COND_STATIC_TRUE='#'
15510   COND_STATIC_FALSE=
15511 fi
15512
15513
15514 # Disable unconditionally at the moment. Would add dependency of SDK
15515 # on SyncML Toolkit.
15516 #AC_DEFINE(WITHOUT_SAN_1_1, 1,
15517 #          [support for Server Alerted Notifications according to SyncML 1.1])
15518
15519 ac_config_files="$ac_config_files Makefile src/Makefile synthesis.pc synthesis-sdk.pc"
15520
15521 cat >confcache <<\_ACEOF
15522 # This file is a shell script that caches the results of configure
15523 # tests run on this system so they can be shared between configure
15524 # scripts and configure runs, see configure's option --config-cache.
15525 # It is not useful on other systems.  If it contains results you don't
15526 # want to keep, you may remove or edit it.
15527 #
15528 # config.status only pays attention to the cache file if you give it
15529 # the --recheck option to rerun configure.
15530 #
15531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15533 # following values.
15534
15535 _ACEOF
15536
15537 # The following way of writing the cache mishandles newlines in values,
15538 # but we know of no workaround that is simple, portable, and efficient.
15539 # So, we kill variables containing newlines.
15540 # Ultrix sh set writes to stderr and can't be redirected directly,
15541 # and sets the high bit in the cache file unless we assign to the vars.
15542 (
15543   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15544     eval ac_val=\$$ac_var
15545     case $ac_val in #(
15546     *${as_nl}*)
15547       case $ac_var in #(
15548       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15550       esac
15551       case $ac_var in #(
15552       _ | IFS | as_nl) ;; #(
15553       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15554       *) { eval $ac_var=; unset $ac_var;} ;;
15555       esac ;;
15556     esac
15557   done
15558
15559   (set) 2>&1 |
15560     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15561     *${as_nl}ac_space=\ *)
15562       # `set' does not quote correctly, so add quotes: double-quote
15563       # substitution turns \\\\ into \\, and sed turns \\ into \.
15564       sed -n \
15565         "s/'/'\\\\''/g;
15566           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15567       ;; #(
15568     *)
15569       # `set' quotes correctly as required by POSIX, so do not add quotes.
15570       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15571       ;;
15572     esac |
15573     sort
15574 ) |
15575   sed '
15576      /^ac_cv_env_/b end
15577      t clear
15578      :clear
15579      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15580      t end
15581      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15582      :end' >>confcache
15583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15584   if test -w "$cache_file"; then
15585     test "x$cache_file" != "x/dev/null" &&
15586       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15587 $as_echo "$as_me: updating cache $cache_file" >&6;}
15588     cat confcache >$cache_file
15589   else
15590     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15592   fi
15593 fi
15594 rm -f confcache
15595
15596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15597 # Let make expand exec_prefix.
15598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15599
15600 DEFS=-DHAVE_CONFIG_H
15601
15602 ac_libobjs=
15603 ac_ltlibobjs=
15604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15605   # 1. Remove the extension, and $U if already installed.
15606   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15607   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15608   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15609   #    will be set to the directory where LIBOBJS objects are built.
15610   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15611   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15612 done
15613 LIBOBJS=$ac_libobjs
15614
15615 LTLIBOBJS=$ac_ltlibobjs
15616
15617
15618  if test -n "$EXEEXT"; then
15619   am__EXEEXT_TRUE=
15620   am__EXEEXT_FALSE='#'
15621 else
15622   am__EXEEXT_TRUE='#'
15623   am__EXEEXT_FALSE=
15624 fi
15625
15626 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15627   as_fn_error "conditional \"AMDEP\" was never defined.
15628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15629 fi
15630 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15631   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15633 fi
15634 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15635   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15637 fi
15638 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15639   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15641 fi
15642 if test -z "${COND_DOXYGEN_TRUE}" && test -z "${COND_DOXYGEN_FALSE}"; then
15643   as_fn_error "conditional \"COND_DOXYGEN\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15645 fi
15646 if test -z "${COND_XMLPARSE_TRUE}" && test -z "${COND_XMLPARSE_FALSE}"; then
15647   as_fn_error "conditional \"COND_XMLPARSE\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649 fi
15650 if test -z "${COND_STATIC_TRUE}" && test -z "${COND_STATIC_FALSE}"; then
15651   as_fn_error "conditional \"COND_STATIC\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653 fi
15654
15655 : ${CONFIG_STATUS=./config.status}
15656 ac_write_fail=0
15657 ac_clean_files_save=$ac_clean_files
15658 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15660 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15661 as_write_fail=0
15662 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15663 #! $SHELL
15664 # Generated by $as_me.
15665 # Run this file to recreate the current configuration.
15666 # Compiler output produced by configure, useful for debugging
15667 # configure, is in config.log if it exists.
15668
15669 debug=false
15670 ac_cs_recheck=false
15671 ac_cs_silent=false
15672
15673 SHELL=\${CONFIG_SHELL-$SHELL}
15674 export SHELL
15675 _ASEOF
15676 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15677 ## -------------------- ##
15678 ## M4sh Initialization. ##
15679 ## -------------------- ##
15680
15681 # Be more Bourne compatible
15682 DUALCASE=1; export DUALCASE # for MKS sh
15683 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15684   emulate sh
15685   NULLCMD=:
15686   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15687   # is contrary to our usage.  Disable this feature.
15688   alias -g '${1+"$@"}'='"$@"'
15689   setopt NO_GLOB_SUBST
15690 else
15691   case `(set -o) 2>/dev/null` in #(
15692   *posix*) :
15693     set -o posix ;; #(
15694   *) :
15695      ;;
15696 esac
15697 fi
15698
15699
15700 as_nl='
15701 '
15702 export as_nl
15703 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15704 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15707 # Prefer a ksh shell builtin over an external printf program on Solaris,
15708 # but without wasting forks for bash or zsh.
15709 if test -z "$BASH_VERSION$ZSH_VERSION" \
15710     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15711   as_echo='print -r --'
15712   as_echo_n='print -rn --'
15713 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15714   as_echo='printf %s\n'
15715   as_echo_n='printf %s'
15716 else
15717   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15718     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15719     as_echo_n='/usr/ucb/echo -n'
15720   else
15721     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15722     as_echo_n_body='eval
15723       arg=$1;
15724       case $arg in #(
15725       *"$as_nl"*)
15726         expr "X$arg" : "X\\(.*\\)$as_nl";
15727         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15728       esac;
15729       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15730     '
15731     export as_echo_n_body
15732     as_echo_n='sh -c $as_echo_n_body as_echo'
15733   fi
15734   export as_echo_body
15735   as_echo='sh -c $as_echo_body as_echo'
15736 fi
15737
15738 # The user is always right.
15739 if test "${PATH_SEPARATOR+set}" != set; then
15740   PATH_SEPARATOR=:
15741   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15742     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15743       PATH_SEPARATOR=';'
15744   }
15745 fi
15746
15747
15748 # IFS
15749 # We need space, tab and new line, in precisely that order.  Quoting is
15750 # there to prevent editors from complaining about space-tab.
15751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15752 # splitting by setting IFS to empty value.)
15753 IFS=" ""        $as_nl"
15754
15755 # Find who we are.  Look in the path if we contain no directory separator.
15756 case $0 in #((
15757   *[\\/]* ) as_myself=$0 ;;
15758   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15759 for as_dir in $PATH
15760 do
15761   IFS=$as_save_IFS
15762   test -z "$as_dir" && as_dir=.
15763     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15764   done
15765 IFS=$as_save_IFS
15766
15767      ;;
15768 esac
15769 # We did not find ourselves, most probably we were run as `sh COMMAND'
15770 # in which case we are not to be found in the path.
15771 if test "x$as_myself" = x; then
15772   as_myself=$0
15773 fi
15774 if test ! -f "$as_myself"; then
15775   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15776   exit 1
15777 fi
15778
15779 # Unset variables that we do not need and which cause bugs (e.g. in
15780 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15781 # suppresses any "Segmentation fault" message there.  '((' could
15782 # trigger a bug in pdksh 5.2.14.
15783 for as_var in BASH_ENV ENV MAIL MAILPATH
15784 do eval test x\${$as_var+set} = xset \
15785   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15786 done
15787 PS1='$ '
15788 PS2='> '
15789 PS4='+ '
15790
15791 # NLS nuisances.
15792 LC_ALL=C
15793 export LC_ALL
15794 LANGUAGE=C
15795 export LANGUAGE
15796
15797 # CDPATH.
15798 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15799
15800
15801 # as_fn_error ERROR [LINENO LOG_FD]
15802 # ---------------------------------
15803 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15804 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15805 # script with status $?, using 1 if that was 0.
15806 as_fn_error ()
15807 {
15808   as_status=$?; test $as_status -eq 0 && as_status=1
15809   if test "$3"; then
15810     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15811     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15812   fi
15813   $as_echo "$as_me: error: $1" >&2
15814   as_fn_exit $as_status
15815 } # as_fn_error
15816
15817
15818 # as_fn_set_status STATUS
15819 # -----------------------
15820 # Set $? to STATUS, without forking.
15821 as_fn_set_status ()
15822 {
15823   return $1
15824 } # as_fn_set_status
15825
15826 # as_fn_exit STATUS
15827 # -----------------
15828 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15829 as_fn_exit ()
15830 {
15831   set +e
15832   as_fn_set_status $1
15833   exit $1
15834 } # as_fn_exit
15835
15836 # as_fn_unset VAR
15837 # ---------------
15838 # Portably unset VAR.
15839 as_fn_unset ()
15840 {
15841   { eval $1=; unset $1;}
15842 }
15843 as_unset=as_fn_unset
15844 # as_fn_append VAR VALUE
15845 # ----------------------
15846 # Append the text in VALUE to the end of the definition contained in VAR. Take
15847 # advantage of any shell optimizations that allow amortized linear growth over
15848 # repeated appends, instead of the typical quadratic growth present in naive
15849 # implementations.
15850 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15851   eval 'as_fn_append ()
15852   {
15853     eval $1+=\$2
15854   }'
15855 else
15856   as_fn_append ()
15857   {
15858     eval $1=\$$1\$2
15859   }
15860 fi # as_fn_append
15861
15862 # as_fn_arith ARG...
15863 # ------------------
15864 # Perform arithmetic evaluation on the ARGs, and store the result in the
15865 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15866 # must be portable across $(()) and expr.
15867 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15868   eval 'as_fn_arith ()
15869   {
15870     as_val=$(( $* ))
15871   }'
15872 else
15873   as_fn_arith ()
15874   {
15875     as_val=`expr "$@" || test $? -eq 1`
15876   }
15877 fi # as_fn_arith
15878
15879
15880 if expr a : '\(a\)' >/dev/null 2>&1 &&
15881    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15882   as_expr=expr
15883 else
15884   as_expr=false
15885 fi
15886
15887 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15888   as_basename=basename
15889 else
15890   as_basename=false
15891 fi
15892
15893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15894   as_dirname=dirname
15895 else
15896   as_dirname=false
15897 fi
15898
15899 as_me=`$as_basename -- "$0" ||
15900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15901          X"$0" : 'X\(//\)$' \| \
15902          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15903 $as_echo X/"$0" |
15904     sed '/^.*\/\([^/][^/]*\)\/*$/{
15905             s//\1/
15906             q
15907           }
15908           /^X\/\(\/\/\)$/{
15909             s//\1/
15910             q
15911           }
15912           /^X\/\(\/\).*/{
15913             s//\1/
15914             q
15915           }
15916           s/.*/./; q'`
15917
15918 # Avoid depending upon Character Ranges.
15919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15922 as_cr_digits='0123456789'
15923 as_cr_alnum=$as_cr_Letters$as_cr_digits
15924
15925 ECHO_C= ECHO_N= ECHO_T=
15926 case `echo -n x` in #(((((
15927 -n*)
15928   case `echo 'xy\c'` in
15929   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15930   xy)  ECHO_C='\c';;
15931   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15932        ECHO_T=' ';;
15933   esac;;
15934 *)
15935   ECHO_N='-n';;
15936 esac
15937
15938 rm -f conf$$ conf$$.exe conf$$.file
15939 if test -d conf$$.dir; then
15940   rm -f conf$$.dir/conf$$.file
15941 else
15942   rm -f conf$$.dir
15943   mkdir conf$$.dir 2>/dev/null
15944 fi
15945 if (echo >conf$$.file) 2>/dev/null; then
15946   if ln -s conf$$.file conf$$ 2>/dev/null; then
15947     as_ln_s='ln -s'
15948     # ... but there are two gotchas:
15949     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15950     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15951     # In both cases, we have to default to `cp -p'.
15952     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15953       as_ln_s='cp -p'
15954   elif ln conf$$.file conf$$ 2>/dev/null; then
15955     as_ln_s=ln
15956   else
15957     as_ln_s='cp -p'
15958   fi
15959 else
15960   as_ln_s='cp -p'
15961 fi
15962 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15963 rmdir conf$$.dir 2>/dev/null
15964
15965
15966 # as_fn_mkdir_p
15967 # -------------
15968 # Create "$as_dir" as a directory, including parents if necessary.
15969 as_fn_mkdir_p ()
15970 {
15971
15972   case $as_dir in #(
15973   -*) as_dir=./$as_dir;;
15974   esac
15975   test -d "$as_dir" || eval $as_mkdir_p || {
15976     as_dirs=
15977     while :; do
15978       case $as_dir in #(
15979       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15980       *) as_qdir=$as_dir;;
15981       esac
15982       as_dirs="'$as_qdir' $as_dirs"
15983       as_dir=`$as_dirname -- "$as_dir" ||
15984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15985          X"$as_dir" : 'X\(//\)[^/]' \| \
15986          X"$as_dir" : 'X\(//\)$' \| \
15987          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15988 $as_echo X"$as_dir" |
15989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15990             s//\1/
15991             q
15992           }
15993           /^X\(\/\/\)[^/].*/{
15994             s//\1/
15995             q
15996           }
15997           /^X\(\/\/\)$/{
15998             s//\1/
15999             q
16000           }
16001           /^X\(\/\).*/{
16002             s//\1/
16003             q
16004           }
16005           s/.*/./; q'`
16006       test -d "$as_dir" && break
16007     done
16008     test -z "$as_dirs" || eval "mkdir $as_dirs"
16009   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16010
16011
16012 } # as_fn_mkdir_p
16013 if mkdir -p . 2>/dev/null; then
16014   as_mkdir_p='mkdir -p "$as_dir"'
16015 else
16016   test -d ./-p && rmdir ./-p
16017   as_mkdir_p=false
16018 fi
16019
16020 if test -x / >/dev/null 2>&1; then
16021   as_test_x='test -x'
16022 else
16023   if ls -dL / >/dev/null 2>&1; then
16024     as_ls_L_option=L
16025   else
16026     as_ls_L_option=
16027   fi
16028   as_test_x='
16029     eval sh -c '\''
16030       if test -d "$1"; then
16031         test -d "$1/.";
16032       else
16033         case $1 in #(
16034         -*)set "./$1";;
16035         esac;
16036         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16037         ???[sx]*):;;*)false;;esac;fi
16038     '\'' sh
16039   '
16040 fi
16041 as_executable_p=$as_test_x
16042
16043 # Sed expression to map a string onto a valid CPP name.
16044 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16045
16046 # Sed expression to map a string onto a valid variable name.
16047 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16048
16049
16050 exec 6>&1
16051 ## ----------------------------------- ##
16052 ## Main body of $CONFIG_STATUS script. ##
16053 ## ----------------------------------- ##
16054 _ASEOF
16055 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16056
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 # Save the log message, to keep $0 and so on meaningful, and to
16059 # report actual input values of CONFIG_FILES etc. instead of their
16060 # values after options handling.
16061 ac_log="
16062 This file was extended by $as_me, which was
16063 generated by GNU Autoconf 2.65.  Invocation command line was
16064
16065   CONFIG_FILES    = $CONFIG_FILES
16066   CONFIG_HEADERS  = $CONFIG_HEADERS
16067   CONFIG_LINKS    = $CONFIG_LINKS
16068   CONFIG_COMMANDS = $CONFIG_COMMANDS
16069   $ $0 $@
16070
16071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16072 "
16073
16074 _ACEOF
16075
16076 case $ac_config_files in *"
16077 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16078 esac
16079
16080 case $ac_config_headers in *"
16081 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16082 esac
16083
16084
16085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16086 # Files that config.status was made for.
16087 config_files="$ac_config_files"
16088 config_headers="$ac_config_headers"
16089 config_commands="$ac_config_commands"
16090
16091 _ACEOF
16092
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 ac_cs_usage="\
16095 \`$as_me' instantiates files and other configuration actions
16096 from templates according to the current configuration.  Unless the files
16097 and actions are specified as TAGs, all are instantiated by default.
16098
16099 Usage: $0 [OPTION]... [TAG]...
16100
16101   -h, --help       print this help, then exit
16102   -V, --version    print version number and configuration settings, then exit
16103       --config     print configuration, then exit
16104   -q, --quiet, --silent
16105                    do not print progress messages
16106   -d, --debug      don't remove temporary files
16107       --recheck    update $as_me by reconfiguring in the same conditions
16108       --file=FILE[:TEMPLATE]
16109                    instantiate the configuration file FILE
16110       --header=FILE[:TEMPLATE]
16111                    instantiate the configuration header FILE
16112
16113 Configuration files:
16114 $config_files
16115
16116 Configuration headers:
16117 $config_headers
16118
16119 Configuration commands:
16120 $config_commands
16121
16122 Report bugs to the package provider."
16123
16124 _ACEOF
16125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16126 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16127 ac_cs_version="\\
16128 config.status
16129 configured by $0, generated by GNU Autoconf 2.65,
16130   with options \\"\$ac_cs_config\\"
16131
16132 Copyright (C) 2009 Free Software Foundation, Inc.
16133 This config.status script is free software; the Free Software Foundation
16134 gives unlimited permission to copy, distribute and modify it."
16135
16136 ac_pwd='$ac_pwd'
16137 srcdir='$srcdir'
16138 INSTALL='$INSTALL'
16139 MKDIR_P='$MKDIR_P'
16140 AWK='$AWK'
16141 test -n "\$AWK" || AWK=awk
16142 _ACEOF
16143
16144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16145 # The default lists apply if the user does not specify any file.
16146 ac_need_defaults=:
16147 while test $# != 0
16148 do
16149   case $1 in
16150   --*=*)
16151     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16152     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16153     ac_shift=:
16154     ;;
16155   *)
16156     ac_option=$1
16157     ac_optarg=$2
16158     ac_shift=shift
16159     ;;
16160   esac
16161
16162   case $ac_option in
16163   # Handling of the options.
16164   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16165     ac_cs_recheck=: ;;
16166   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16167     $as_echo "$ac_cs_version"; exit ;;
16168   --config | --confi | --conf | --con | --co | --c )
16169     $as_echo "$ac_cs_config"; exit ;;
16170   --debug | --debu | --deb | --de | --d | -d )
16171     debug=: ;;
16172   --file | --fil | --fi | --f )
16173     $ac_shift
16174     case $ac_optarg in
16175     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16176     esac
16177     as_fn_append CONFIG_FILES " '$ac_optarg'"
16178     ac_need_defaults=false;;
16179   --header | --heade | --head | --hea )
16180     $ac_shift
16181     case $ac_optarg in
16182     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16183     esac
16184     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16185     ac_need_defaults=false;;
16186   --he | --h)
16187     # Conflict between --help and --header
16188     as_fn_error "ambiguous option: \`$1'
16189 Try \`$0 --help' for more information.";;
16190   --help | --hel | -h )
16191     $as_echo "$ac_cs_usage"; exit ;;
16192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16193   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16194     ac_cs_silent=: ;;
16195
16196   # This is an error.
16197   -*) as_fn_error "unrecognized option: \`$1'
16198 Try \`$0 --help' for more information." ;;
16199
16200   *) as_fn_append ac_config_targets " $1"
16201      ac_need_defaults=false ;;
16202
16203   esac
16204   shift
16205 done
16206
16207 ac_configure_extra_args=
16208
16209 if $ac_cs_silent; then
16210   exec 6>/dev/null
16211   ac_configure_extra_args="$ac_configure_extra_args --silent"
16212 fi
16213
16214 _ACEOF
16215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16216 if \$ac_cs_recheck; then
16217   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16218   shift
16219   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16220   CONFIG_SHELL='$SHELL'
16221   export CONFIG_SHELL
16222   exec "\$@"
16223 fi
16224
16225 _ACEOF
16226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16227 exec 5>>config.log
16228 {
16229   echo
16230   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16231 ## Running $as_me. ##
16232 _ASBOX
16233   $as_echo "$ac_log"
16234 } >&5
16235
16236 _ACEOF
16237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 #
16239 # INIT-COMMANDS
16240 #
16241 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16242
16243
16244 # The HP-UX ksh and POSIX shell print the target directory to stdout
16245 # if CDPATH is set.
16246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16247
16248 sed_quote_subst='$sed_quote_subst'
16249 double_quote_subst='$double_quote_subst'
16250 delay_variable_subst='$delay_variable_subst'
16251 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16252 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16253 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16254 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16255 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16256 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16257 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16258 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16259 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16260 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16261 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16262 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16263 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16264 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16265 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16266 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16267 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16268 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16269 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16270 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16271 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16272 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16273 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16274 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16275 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16276 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16277 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16278 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16280 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16281 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16282 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16283 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16284 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16285 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16286 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16287 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16288 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16289 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16290 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16291 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16292 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16293 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16294 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16295 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"`'
16296 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"`'
16297 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16298 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16299 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16300 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16301 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16302 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16303 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16304 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16305 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16306 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16307 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16308 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16309 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16310 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16311 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16312 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16313 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16314 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16315 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16316 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16317 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16318 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16319 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16320 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16321 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16322 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16323 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16324 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16325 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16326 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16327 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16328 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16329 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16330 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16331 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16332 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16333 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16334 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16335 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16336 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16337 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16338 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16339 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16340 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16341 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16342 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16343 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16344 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16345 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16346 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16347 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16348 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16349 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16350 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16351 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16352 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16353 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16354 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16355 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16356 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16357 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16358 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16359 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16360 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16361 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16362 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16363 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16364 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16365 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16366 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16367 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16368 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16369 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16370 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16371 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16372 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16373 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16374 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16375 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16376 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16377 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16378 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16379 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16380 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16381 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16382 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16383 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16384 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16385 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16386 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16387 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16388 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16389 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16390 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16391 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16392 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16393 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16394 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16395 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16396 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16397 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16398 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16399 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16400 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16401 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16402 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16403 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16404 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16405 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16406 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16407 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16408 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16409 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16410 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16411 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16412 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16413 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16414 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16415 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16416 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16417 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16418 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16419 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16420 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16421 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16422
16423 LTCC='$LTCC'
16424 LTCFLAGS='$LTCFLAGS'
16425 compiler='$compiler_DEFAULT'
16426
16427 # Quote evaled strings.
16428 for var in SED \
16429 GREP \
16430 EGREP \
16431 FGREP \
16432 LD \
16433 NM \
16434 LN_S \
16435 lt_SP2NL \
16436 lt_NL2SP \
16437 reload_flag \
16438 OBJDUMP \
16439 deplibs_check_method \
16440 file_magic_cmd \
16441 AR \
16442 AR_FLAGS \
16443 STRIP \
16444 RANLIB \
16445 CC \
16446 CFLAGS \
16447 compiler \
16448 lt_cv_sys_global_symbol_pipe \
16449 lt_cv_sys_global_symbol_to_cdecl \
16450 lt_cv_sys_global_symbol_to_c_name_address \
16451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16452 SHELL \
16453 ECHO \
16454 lt_prog_compiler_no_builtin_flag \
16455 lt_prog_compiler_wl \
16456 lt_prog_compiler_pic \
16457 lt_prog_compiler_static \
16458 lt_cv_prog_compiler_c_o \
16459 need_locks \
16460 DSYMUTIL \
16461 NMEDIT \
16462 LIPO \
16463 OTOOL \
16464 OTOOL64 \
16465 shrext_cmds \
16466 export_dynamic_flag_spec \
16467 whole_archive_flag_spec \
16468 compiler_needs_object \
16469 with_gnu_ld \
16470 allow_undefined_flag \
16471 no_undefined_flag \
16472 hardcode_libdir_flag_spec \
16473 hardcode_libdir_flag_spec_ld \
16474 hardcode_libdir_separator \
16475 fix_srcfile_path \
16476 exclude_expsyms \
16477 include_expsyms \
16478 file_list_spec \
16479 variables_saved_for_relink \
16480 libname_spec \
16481 library_names_spec \
16482 soname_spec \
16483 finish_eval \
16484 old_striplib \
16485 striplib \
16486 compiler_lib_search_dirs \
16487 predep_objects \
16488 postdep_objects \
16489 predeps \
16490 postdeps \
16491 compiler_lib_search_path \
16492 LD_CXX \
16493 compiler_CXX \
16494 lt_prog_compiler_no_builtin_flag_CXX \
16495 lt_prog_compiler_wl_CXX \
16496 lt_prog_compiler_pic_CXX \
16497 lt_prog_compiler_static_CXX \
16498 lt_cv_prog_compiler_c_o_CXX \
16499 export_dynamic_flag_spec_CXX \
16500 whole_archive_flag_spec_CXX \
16501 compiler_needs_object_CXX \
16502 with_gnu_ld_CXX \
16503 allow_undefined_flag_CXX \
16504 no_undefined_flag_CXX \
16505 hardcode_libdir_flag_spec_CXX \
16506 hardcode_libdir_flag_spec_ld_CXX \
16507 hardcode_libdir_separator_CXX \
16508 fix_srcfile_path_CXX \
16509 exclude_expsyms_CXX \
16510 include_expsyms_CXX \
16511 file_list_spec_CXX \
16512 compiler_lib_search_dirs_CXX \
16513 predep_objects_CXX \
16514 postdep_objects_CXX \
16515 predeps_CXX \
16516 postdeps_CXX \
16517 compiler_lib_search_path_CXX; do
16518     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16519     *[\\\\\\\`\\"\\\$]*)
16520       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16521       ;;
16522     *)
16523       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16524       ;;
16525     esac
16526 done
16527
16528 # Double-quote double-evaled strings.
16529 for var in reload_cmds \
16530 old_postinstall_cmds \
16531 old_postuninstall_cmds \
16532 old_archive_cmds \
16533 extract_expsyms_cmds \
16534 old_archive_from_new_cmds \
16535 old_archive_from_expsyms_cmds \
16536 archive_cmds \
16537 archive_expsym_cmds \
16538 module_cmds \
16539 module_expsym_cmds \
16540 export_symbols_cmds \
16541 prelink_cmds \
16542 postinstall_cmds \
16543 postuninstall_cmds \
16544 finish_cmds \
16545 sys_lib_search_path_spec \
16546 sys_lib_dlsearch_path_spec \
16547 old_archive_cmds_CXX \
16548 old_archive_from_new_cmds_CXX \
16549 old_archive_from_expsyms_cmds_CXX \
16550 archive_cmds_CXX \
16551 archive_expsym_cmds_CXX \
16552 module_cmds_CXX \
16553 module_expsym_cmds_CXX \
16554 export_symbols_cmds_CXX \
16555 prelink_cmds_CXX; do
16556     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16557     *[\\\\\\\`\\"\\\$]*)
16558       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16559       ;;
16560     *)
16561       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16562       ;;
16563     esac
16564 done
16565
16566 # Fix-up fallback echo if it was mangled by the above quoting rules.
16567 case \$lt_ECHO in
16568 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16569   ;;
16570 esac
16571
16572 ac_aux_dir='$ac_aux_dir'
16573 xsi_shell='$xsi_shell'
16574 lt_shell_append='$lt_shell_append'
16575
16576 # See if we are running on zsh, and set the options which allow our
16577 # commands through without removal of \ escapes INIT.
16578 if test -n "\${ZSH_VERSION+set}" ; then
16579    setopt NO_GLOB_SUBST
16580 fi
16581
16582
16583     PACKAGE='$PACKAGE'
16584     VERSION='$VERSION'
16585     TIMESTAMP='$TIMESTAMP'
16586     RM='$RM'
16587     ofile='$ofile'
16588
16589
16590
16591
16592
16593
16594 _ACEOF
16595
16596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16597
16598 # Handling of arguments.
16599 for ac_config_target in $ac_config_targets
16600 do
16601   case $ac_config_target in
16602     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16603     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16604     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16605     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16606     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16607     "synthesis.pc") CONFIG_FILES="$CONFIG_FILES synthesis.pc" ;;
16608     "synthesis-sdk.pc") CONFIG_FILES="$CONFIG_FILES synthesis-sdk.pc" ;;
16609
16610   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16611   esac
16612 done
16613
16614
16615 # If the user did not use the arguments to specify the items to instantiate,
16616 # then the envvar interface is used.  Set only those that are not.
16617 # We use the long form for the default assignment because of an extremely
16618 # bizarre bug on SunOS 4.1.3.
16619 if $ac_need_defaults; then
16620   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16621   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16622   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16623 fi
16624
16625 # Have a temporary directory for convenience.  Make it in the build tree
16626 # simply because there is no reason against having it here, and in addition,
16627 # creating and moving files from /tmp can sometimes cause problems.
16628 # Hook for its removal unless debugging.
16629 # Note that there is a small window in which the directory will not be cleaned:
16630 # after its creation but before its name has been assigned to `$tmp'.
16631 $debug ||
16632 {
16633   tmp=
16634   trap 'exit_status=$?
16635   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16636 ' 0
16637   trap 'as_fn_exit 1' 1 2 13 15
16638 }
16639 # Create a (secure) tmp directory for tmp files.
16640
16641 {
16642   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16643   test -n "$tmp" && test -d "$tmp"
16644 }  ||
16645 {
16646   tmp=./conf$$-$RANDOM
16647   (umask 077 && mkdir "$tmp")
16648 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16649
16650 # Set up the scripts for CONFIG_FILES section.
16651 # No need to generate them if there are no CONFIG_FILES.
16652 # This happens for instance with `./config.status config.h'.
16653 if test -n "$CONFIG_FILES"; then
16654
16655
16656 ac_cr=`echo X | tr X '\015'`
16657 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16658 # But we know of no other shell where ac_cr would be empty at this
16659 # point, so we can use a bashism as a fallback.
16660 if test "x$ac_cr" = x; then
16661   eval ac_cr=\$\'\\r\'
16662 fi
16663 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16664 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16665   ac_cs_awk_cr='\r'
16666 else
16667   ac_cs_awk_cr=$ac_cr
16668 fi
16669
16670 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16671 _ACEOF
16672
16673
16674 {
16675   echo "cat >conf$$subs.awk <<_ACEOF" &&
16676   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16677   echo "_ACEOF"
16678 } >conf$$subs.sh ||
16679   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16680 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16681 ac_delim='%!_!# '
16682 for ac_last_try in false false false false false :; do
16683   . ./conf$$subs.sh ||
16684     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16685
16686   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16687   if test $ac_delim_n = $ac_delim_num; then
16688     break
16689   elif $ac_last_try; then
16690     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16691   else
16692     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16693   fi
16694 done
16695 rm -f conf$$subs.sh
16696
16697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16698 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16699 _ACEOF
16700 sed -n '
16701 h
16702 s/^/S["/; s/!.*/"]=/
16703 p
16704 g
16705 s/^[^!]*!//
16706 :repl
16707 t repl
16708 s/'"$ac_delim"'$//
16709 t delim
16710 :nl
16711 h
16712 s/\(.\{148\}\)..*/\1/
16713 t more1
16714 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16715 p
16716 n
16717 b repl
16718 :more1
16719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16720 p
16721 g
16722 s/.\{148\}//
16723 t nl
16724 :delim
16725 h
16726 s/\(.\{148\}\)..*/\1/
16727 t more2
16728 s/["\\]/\\&/g; s/^/"/; s/$/"/
16729 p
16730 b
16731 :more2
16732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16733 p
16734 g
16735 s/.\{148\}//
16736 t delim
16737 ' <conf$$subs.awk | sed '
16738 /^[^""]/{
16739   N
16740   s/\n//
16741 }
16742 ' >>$CONFIG_STATUS || ac_write_fail=1
16743 rm -f conf$$subs.awk
16744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745 _ACAWK
16746 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16747   for (key in S) S_is_set[key] = 1
16748   FS = "\a"
16749
16750 }
16751 {
16752   line = $ 0
16753   nfields = split(line, field, "@")
16754   substed = 0
16755   len = length(field[1])
16756   for (i = 2; i < nfields; i++) {
16757     key = field[i]
16758     keylen = length(key)
16759     if (S_is_set[key]) {
16760       value = S[key]
16761       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16762       len += length(value) + length(field[++i])
16763       substed = 1
16764     } else
16765       len += 1 + keylen
16766   }
16767
16768   print line
16769 }
16770
16771 _ACAWK
16772 _ACEOF
16773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16774 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16775   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16776 else
16777   cat
16778 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16779   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16780 _ACEOF
16781
16782 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16783 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16784 # trailing colons and then remove the whole line if VPATH becomes empty
16785 # (actually we leave an empty line to preserve line numbers).
16786 if test "x$srcdir" = x.; then
16787   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16788 s/:*\$(srcdir):*/:/
16789 s/:*\${srcdir}:*/:/
16790 s/:*@srcdir@:*/:/
16791 s/^\([^=]*=[     ]*\):*/\1/
16792 s/:*$//
16793 s/^[^=]*=[       ]*$//
16794 }'
16795 fi
16796
16797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16798 fi # test -n "$CONFIG_FILES"
16799
16800 # Set up the scripts for CONFIG_HEADERS section.
16801 # No need to generate them if there are no CONFIG_HEADERS.
16802 # This happens for instance with `./config.status Makefile'.
16803 if test -n "$CONFIG_HEADERS"; then
16804 cat >"$tmp/defines.awk" <<\_ACAWK ||
16805 BEGIN {
16806 _ACEOF
16807
16808 # Transform confdefs.h into an awk script `defines.awk', embedded as
16809 # here-document in config.status, that substitutes the proper values into
16810 # config.h.in to produce config.h.
16811
16812 # Create a delimiter string that does not exist in confdefs.h, to ease
16813 # handling of long lines.
16814 ac_delim='%!_!# '
16815 for ac_last_try in false false :; do
16816   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16817   if test -z "$ac_t"; then
16818     break
16819   elif $ac_last_try; then
16820     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16821   else
16822     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16823   fi
16824 done
16825
16826 # For the awk script, D is an array of macro values keyed by name,
16827 # likewise P contains macro parameters if any.  Preserve backslash
16828 # newline sequences.
16829
16830 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16831 sed -n '
16832 s/.\{148\}/&'"$ac_delim"'/g
16833 t rset
16834 :rset
16835 s/^[     ]*#[    ]*define[       ][      ]*/ /
16836 t def
16837 d
16838 :def
16839 s/\\$//
16840 t bsnl
16841 s/["\\]/\\&/g
16842 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16843 D["\1"]=" \3"/p
16844 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16845 d
16846 :bsnl
16847 s/["\\]/\\&/g
16848 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16849 D["\1"]=" \3\\\\\\n"\\/p
16850 t cont
16851 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16852 t cont
16853 d
16854 :cont
16855 n
16856 s/.\{148\}/&'"$ac_delim"'/g
16857 t clear
16858 :clear
16859 s/\\$//
16860 t bsnlc
16861 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16862 d
16863 :bsnlc
16864 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16865 b cont
16866 ' <confdefs.h | sed '
16867 s/'"$ac_delim"'/"\\\
16868 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16869
16870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16871   for (key in D) D_is_set[key] = 1
16872   FS = "\a"
16873 }
16874 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16875   line = \$ 0
16876   split(line, arg, " ")
16877   if (arg[1] == "#") {
16878     defundef = arg[2]
16879     mac1 = arg[3]
16880   } else {
16881     defundef = substr(arg[1], 2)
16882     mac1 = arg[2]
16883   }
16884   split(mac1, mac2, "(") #)
16885   macro = mac2[1]
16886   prefix = substr(line, 1, index(line, defundef) - 1)
16887   if (D_is_set[macro]) {
16888     # Preserve the white space surrounding the "#".
16889     print prefix "define", macro P[macro] D[macro]
16890     next
16891   } else {
16892     # Replace #undef with comments.  This is necessary, for example,
16893     # in the case of _POSIX_SOURCE, which is predefined and required
16894     # on some systems where configure will not decide to define it.
16895     if (defundef == "undef") {
16896       print "/*", prefix defundef, macro, "*/"
16897       next
16898     }
16899   }
16900 }
16901 { print }
16902 _ACAWK
16903 _ACEOF
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16906 fi # test -n "$CONFIG_HEADERS"
16907
16908
16909 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16910 shift
16911 for ac_tag
16912 do
16913   case $ac_tag in
16914   :[FHLC]) ac_mode=$ac_tag; continue;;
16915   esac
16916   case $ac_mode$ac_tag in
16917   :[FHL]*:*);;
16918   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16919   :[FH]-) ac_tag=-:-;;
16920   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16921   esac
16922   ac_save_IFS=$IFS
16923   IFS=:
16924   set x $ac_tag
16925   IFS=$ac_save_IFS
16926   shift
16927   ac_file=$1
16928   shift
16929
16930   case $ac_mode in
16931   :L) ac_source=$1;;
16932   :[FH])
16933     ac_file_inputs=
16934     for ac_f
16935     do
16936       case $ac_f in
16937       -) ac_f="$tmp/stdin";;
16938       *) # Look for the file first in the build tree, then in the source tree
16939          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16940          # because $ac_f cannot contain `:'.
16941          test -f "$ac_f" ||
16942            case $ac_f in
16943            [\\/$]*) false;;
16944            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16945            esac ||
16946            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16947       esac
16948       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16949       as_fn_append ac_file_inputs " '$ac_f'"
16950     done
16951
16952     # Let's still pretend it is `configure' which instantiates (i.e., don't
16953     # use $as_me), people would be surprised to read:
16954     #    /* config.h.  Generated by config.status.  */
16955     configure_input='Generated from '`
16956           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16957         `' by configure.'
16958     if test x"$ac_file" != x-; then
16959       configure_input="$ac_file.  $configure_input"
16960       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16961 $as_echo "$as_me: creating $ac_file" >&6;}
16962     fi
16963     # Neutralize special characters interpreted by sed in replacement strings.
16964     case $configure_input in #(
16965     *\&* | *\|* | *\\* )
16966        ac_sed_conf_input=`$as_echo "$configure_input" |
16967        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16968     *) ac_sed_conf_input=$configure_input;;
16969     esac
16970
16971     case $ac_tag in
16972     *:-:* | *:-) cat >"$tmp/stdin" \
16973       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16974     esac
16975     ;;
16976   esac
16977
16978   ac_dir=`$as_dirname -- "$ac_file" ||
16979 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16980          X"$ac_file" : 'X\(//\)[^/]' \| \
16981          X"$ac_file" : 'X\(//\)$' \| \
16982          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16983 $as_echo X"$ac_file" |
16984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16985             s//\1/
16986             q
16987           }
16988           /^X\(\/\/\)[^/].*/{
16989             s//\1/
16990             q
16991           }
16992           /^X\(\/\/\)$/{
16993             s//\1/
16994             q
16995           }
16996           /^X\(\/\).*/{
16997             s//\1/
16998             q
16999           }
17000           s/.*/./; q'`
17001   as_dir="$ac_dir"; as_fn_mkdir_p
17002   ac_builddir=.
17003
17004 case "$ac_dir" in
17005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17006 *)
17007   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17008   # A ".." for each directory in $ac_dir_suffix.
17009   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17010   case $ac_top_builddir_sub in
17011   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17012   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17013   esac ;;
17014 esac
17015 ac_abs_top_builddir=$ac_pwd
17016 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17017 # for backward compatibility:
17018 ac_top_builddir=$ac_top_build_prefix
17019
17020 case $srcdir in
17021   .)  # We are building in place.
17022     ac_srcdir=.
17023     ac_top_srcdir=$ac_top_builddir_sub
17024     ac_abs_top_srcdir=$ac_pwd ;;
17025   [\\/]* | ?:[\\/]* )  # Absolute name.
17026     ac_srcdir=$srcdir$ac_dir_suffix;
17027     ac_top_srcdir=$srcdir
17028     ac_abs_top_srcdir=$srcdir ;;
17029   *) # Relative name.
17030     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17031     ac_top_srcdir=$ac_top_build_prefix$srcdir
17032     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17033 esac
17034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17035
17036
17037   case $ac_mode in
17038   :F)
17039   #
17040   # CONFIG_FILE
17041   #
17042
17043   case $INSTALL in
17044   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17045   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17046   esac
17047   ac_MKDIR_P=$MKDIR_P
17048   case $MKDIR_P in
17049   [\\/$]* | ?:[\\/]* ) ;;
17050   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17051   esac
17052 _ACEOF
17053
17054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055 # If the template does not know about datarootdir, expand it.
17056 # FIXME: This hack should be removed a few years after 2.60.
17057 ac_datarootdir_hack=; ac_datarootdir_seen=
17058 ac_sed_dataroot='
17059 /datarootdir/ {
17060   p
17061   q
17062 }
17063 /@datadir@/p
17064 /@docdir@/p
17065 /@infodir@/p
17066 /@localedir@/p
17067 /@mandir@/p'
17068 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17069 *datarootdir*) ac_datarootdir_seen=yes;;
17070 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17071   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17072 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17073 _ACEOF
17074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17075   ac_datarootdir_hack='
17076   s&@datadir@&$datadir&g
17077   s&@docdir@&$docdir&g
17078   s&@infodir@&$infodir&g
17079   s&@localedir@&$localedir&g
17080   s&@mandir@&$mandir&g
17081   s&\\\${datarootdir}&$datarootdir&g' ;;
17082 esac
17083 _ACEOF
17084
17085 # Neutralize VPATH when `$srcdir' = `.'.
17086 # Shell code in configure.ac might set extrasub.
17087 # FIXME: do we really want to maintain this feature?
17088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17089 ac_sed_extra="$ac_vpsub
17090 $extrasub
17091 _ACEOF
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 :t
17094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17095 s|@configure_input@|$ac_sed_conf_input|;t t
17096 s&@top_builddir@&$ac_top_builddir_sub&;t t
17097 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17098 s&@srcdir@&$ac_srcdir&;t t
17099 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17100 s&@top_srcdir@&$ac_top_srcdir&;t t
17101 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17102 s&@builddir@&$ac_builddir&;t t
17103 s&@abs_builddir@&$ac_abs_builddir&;t t
17104 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17105 s&@INSTALL@&$ac_INSTALL&;t t
17106 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17107 $ac_datarootdir_hack
17108 "
17109 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17110   || as_fn_error "could not create $ac_file" "$LINENO" 5
17111
17112 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17113   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17114   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17115   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17116 which seems to be undefined.  Please make sure it is defined." >&5
17117 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17118 which seems to be undefined.  Please make sure it is defined." >&2;}
17119
17120   rm -f "$tmp/stdin"
17121   case $ac_file in
17122   -) cat "$tmp/out" && rm -f "$tmp/out";;
17123   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17124   esac \
17125   || as_fn_error "could not create $ac_file" "$LINENO" 5
17126  ;;
17127   :H)
17128   #
17129   # CONFIG_HEADER
17130   #
17131   if test x"$ac_file" != x-; then
17132     {
17133       $as_echo "/* $configure_input  */" \
17134       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17135     } >"$tmp/config.h" \
17136       || as_fn_error "could not create $ac_file" "$LINENO" 5
17137     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17138       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17139 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17140     else
17141       rm -f "$ac_file"
17142       mv "$tmp/config.h" "$ac_file" \
17143         || as_fn_error "could not create $ac_file" "$LINENO" 5
17144     fi
17145   else
17146     $as_echo "/* $configure_input  */" \
17147       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17148       || as_fn_error "could not create -" "$LINENO" 5
17149   fi
17150 # Compute "$ac_file"'s index in $config_headers.
17151 _am_arg="$ac_file"
17152 _am_stamp_count=1
17153 for _am_header in $config_headers :; do
17154   case $_am_header in
17155     $_am_arg | $_am_arg:* )
17156       break ;;
17157     * )
17158       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17159   esac
17160 done
17161 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17162 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17163          X"$_am_arg" : 'X\(//\)[^/]' \| \
17164          X"$_am_arg" : 'X\(//\)$' \| \
17165          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17166 $as_echo X"$_am_arg" |
17167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17168             s//\1/
17169             q
17170           }
17171           /^X\(\/\/\)[^/].*/{
17172             s//\1/
17173             q
17174           }
17175           /^X\(\/\/\)$/{
17176             s//\1/
17177             q
17178           }
17179           /^X\(\/\).*/{
17180             s//\1/
17181             q
17182           }
17183           s/.*/./; q'`/stamp-h$_am_stamp_count
17184  ;;
17185
17186   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17187 $as_echo "$as_me: executing $ac_file commands" >&6;}
17188  ;;
17189   esac
17190
17191
17192   case $ac_file$ac_mode in
17193     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17194   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17195   # are listed without --file.  Let's play safe and only enable the eval
17196   # if we detect the quoting.
17197   case $CONFIG_FILES in
17198   *\'*) eval set x "$CONFIG_FILES" ;;
17199   *)   set x $CONFIG_FILES ;;
17200   esac
17201   shift
17202   for mf
17203   do
17204     # Strip MF so we end up with the name of the file.
17205     mf=`echo "$mf" | sed -e 's/:.*$//'`
17206     # Check whether this is an Automake generated Makefile or not.
17207     # We used to match only the files named `Makefile.in', but
17208     # some people rename them; so instead we look at the file content.
17209     # Grep'ing the first line is not enough: some people post-process
17210     # each Makefile.in and add a new line on top of each file to say so.
17211     # Grep'ing the whole file is not good either: AIX grep has a line
17212     # limit of 2048, but all sed's we know have understand at least 4000.
17213     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17214       dirpart=`$as_dirname -- "$mf" ||
17215 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17216          X"$mf" : 'X\(//\)[^/]' \| \
17217          X"$mf" : 'X\(//\)$' \| \
17218          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17219 $as_echo X"$mf" |
17220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17221             s//\1/
17222             q
17223           }
17224           /^X\(\/\/\)[^/].*/{
17225             s//\1/
17226             q
17227           }
17228           /^X\(\/\/\)$/{
17229             s//\1/
17230             q
17231           }
17232           /^X\(\/\).*/{
17233             s//\1/
17234             q
17235           }
17236           s/.*/./; q'`
17237     else
17238       continue
17239     fi
17240     # Extract the definition of DEPDIR, am__include, and am__quote
17241     # from the Makefile without running `make'.
17242     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17243     test -z "$DEPDIR" && continue
17244     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17245     test -z "am__include" && continue
17246     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17247     # When using ansi2knr, U may be empty or an underscore; expand it
17248     U=`sed -n 's/^U = //p' < "$mf"`
17249     # Find all dependency output files, they are included files with
17250     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17251     # simplest approach to changing $(DEPDIR) to its actual value in the
17252     # expansion.
17253     for file in `sed -n "
17254       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17255          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17256       # Make sure the directory exists.
17257       test -f "$dirpart/$file" && continue
17258       fdir=`$as_dirname -- "$file" ||
17259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17260          X"$file" : 'X\(//\)[^/]' \| \
17261          X"$file" : 'X\(//\)$' \| \
17262          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17263 $as_echo X"$file" |
17264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17265             s//\1/
17266             q
17267           }
17268           /^X\(\/\/\)[^/].*/{
17269             s//\1/
17270             q
17271           }
17272           /^X\(\/\/\)$/{
17273             s//\1/
17274             q
17275           }
17276           /^X\(\/\).*/{
17277             s//\1/
17278             q
17279           }
17280           s/.*/./; q'`
17281       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17282       # echo "creating $dirpart/$file"
17283       echo '# dummy' > "$dirpart/$file"
17284     done
17285   done
17286 }
17287  ;;
17288     "libtool":C)
17289
17290     # See if we are running on zsh, and set the options which allow our
17291     # commands through without removal of \ escapes.
17292     if test -n "${ZSH_VERSION+set}" ; then
17293       setopt NO_GLOB_SUBST
17294     fi
17295
17296     cfgfile="${ofile}T"
17297     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17298     $RM "$cfgfile"
17299
17300     cat <<_LT_EOF >> "$cfgfile"
17301 #! $SHELL
17302
17303 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17304 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17306 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17307 #
17308 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17309 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17310 #   Written by Gordon Matzigkeit, 1996
17311 #
17312 #   This file is part of GNU Libtool.
17313 #
17314 # GNU Libtool is free software; you can redistribute it and/or
17315 # modify it under the terms of the GNU General Public License as
17316 # published by the Free Software Foundation; either version 2 of
17317 # the License, or (at your option) any later version.
17318 #
17319 # As a special exception to the GNU General Public License,
17320 # if you distribute this file as part of a program or library that
17321 # is built using GNU Libtool, you may include this file under the
17322 # same distribution terms that you use for the rest of that program.
17323 #
17324 # GNU Libtool is distributed in the hope that it will be useful,
17325 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17327 # GNU General Public License for more details.
17328 #
17329 # You should have received a copy of the GNU General Public License
17330 # along with GNU Libtool; see the file COPYING.  If not, a copy
17331 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17332 # obtained by writing to the Free Software Foundation, Inc.,
17333 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17334
17335
17336 # The names of the tagged configurations supported by this script.
17337 available_tags="CXX "
17338
17339 # ### BEGIN LIBTOOL CONFIG
17340
17341 # Which release of libtool.m4 was used?
17342 macro_version=$macro_version
17343 macro_revision=$macro_revision
17344
17345 # Whether or not to build shared libraries.
17346 build_libtool_libs=$enable_shared
17347
17348 # Whether or not to build static libraries.
17349 build_old_libs=$enable_static
17350
17351 # What type of objects to build.
17352 pic_mode=$pic_mode
17353
17354 # Whether or not to optimize for fast installation.
17355 fast_install=$enable_fast_install
17356
17357 # The host system.
17358 host_alias=$host_alias
17359 host=$host
17360 host_os=$host_os
17361
17362 # The build system.
17363 build_alias=$build_alias
17364 build=$build
17365 build_os=$build_os
17366
17367 # A sed program that does not truncate output.
17368 SED=$lt_SED
17369
17370 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17371 Xsed="\$SED -e 1s/^X//"
17372
17373 # A grep program that handles long lines.
17374 GREP=$lt_GREP
17375
17376 # An ERE matcher.
17377 EGREP=$lt_EGREP
17378
17379 # A literal string matcher.
17380 FGREP=$lt_FGREP
17381
17382 # A BSD- or MS-compatible name lister.
17383 NM=$lt_NM
17384
17385 # Whether we need soft or hard links.
17386 LN_S=$lt_LN_S
17387
17388 # What is the maximum length of a command?
17389 max_cmd_len=$max_cmd_len
17390
17391 # Object file suffix (normally "o").
17392 objext=$ac_objext
17393
17394 # Executable file suffix (normally "").
17395 exeext=$exeext
17396
17397 # whether the shell understands "unset".
17398 lt_unset=$lt_unset
17399
17400 # turn spaces into newlines.
17401 SP2NL=$lt_lt_SP2NL
17402
17403 # turn newlines into spaces.
17404 NL2SP=$lt_lt_NL2SP
17405
17406 # How to create reloadable object files.
17407 reload_flag=$lt_reload_flag
17408 reload_cmds=$lt_reload_cmds
17409
17410 # An object symbol dumper.
17411 OBJDUMP=$lt_OBJDUMP
17412
17413 # Method to check whether dependent libraries are shared objects.
17414 deplibs_check_method=$lt_deplibs_check_method
17415
17416 # Command to use when deplibs_check_method == "file_magic".
17417 file_magic_cmd=$lt_file_magic_cmd
17418
17419 # The archiver.
17420 AR=$lt_AR
17421 AR_FLAGS=$lt_AR_FLAGS
17422
17423 # A symbol stripping program.
17424 STRIP=$lt_STRIP
17425
17426 # Commands used to install an old-style archive.
17427 RANLIB=$lt_RANLIB
17428 old_postinstall_cmds=$lt_old_postinstall_cmds
17429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17430
17431 # A C compiler.
17432 LTCC=$lt_CC
17433
17434 # LTCC compiler flags.
17435 LTCFLAGS=$lt_CFLAGS
17436
17437 # Take the output of nm and produce a listing of raw symbols and C names.
17438 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17439
17440 # Transform the output of nm in a proper C declaration.
17441 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17442
17443 # Transform the output of nm in a C name address pair.
17444 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17445
17446 # Transform the output of nm in a C name address pair when lib prefix is needed.
17447 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17448
17449 # The name of the directory that contains temporary libtool files.
17450 objdir=$objdir
17451
17452 # Shell to use when invoking shell scripts.
17453 SHELL=$lt_SHELL
17454
17455 # An echo program that does not interpret backslashes.
17456 ECHO=$lt_ECHO
17457
17458 # Used to examine libraries when file_magic_cmd begins with "file".
17459 MAGIC_CMD=$MAGIC_CMD
17460
17461 # Must we lock files when doing compilation?
17462 need_locks=$lt_need_locks
17463
17464 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17465 DSYMUTIL=$lt_DSYMUTIL
17466
17467 # Tool to change global to local symbols on Mac OS X.
17468 NMEDIT=$lt_NMEDIT
17469
17470 # Tool to manipulate fat objects and archives on Mac OS X.
17471 LIPO=$lt_LIPO
17472
17473 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17474 OTOOL=$lt_OTOOL
17475
17476 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17477 OTOOL64=$lt_OTOOL64
17478
17479 # Old archive suffix (normally "a").
17480 libext=$libext
17481
17482 # Shared library suffix (normally ".so").
17483 shrext_cmds=$lt_shrext_cmds
17484
17485 # The commands to extract the exported symbol list from a shared archive.
17486 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17487
17488 # Variables whose values should be saved in libtool wrapper scripts and
17489 # restored at link time.
17490 variables_saved_for_relink=$lt_variables_saved_for_relink
17491
17492 # Do we need the "lib" prefix for modules?
17493 need_lib_prefix=$need_lib_prefix
17494
17495 # Do we need a version for libraries?
17496 need_version=$need_version
17497
17498 # Library versioning type.
17499 version_type=$version_type
17500
17501 # Shared library runtime path variable.
17502 runpath_var=$runpath_var
17503
17504 # Shared library path variable.
17505 shlibpath_var=$shlibpath_var
17506
17507 # Is shlibpath searched before the hard-coded library search path?
17508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17509
17510 # Format of library name prefix.
17511 libname_spec=$lt_libname_spec
17512
17513 # List of archive names.  First name is the real one, the rest are links.
17514 # The last name is the one that the linker finds with -lNAME
17515 library_names_spec=$lt_library_names_spec
17516
17517 # The coded name of the library, if different from the real name.
17518 soname_spec=$lt_soname_spec
17519
17520 # Command to use after installation of a shared archive.
17521 postinstall_cmds=$lt_postinstall_cmds
17522
17523 # Command to use after uninstallation of a shared archive.
17524 postuninstall_cmds=$lt_postuninstall_cmds
17525
17526 # Commands used to finish a libtool library installation in a directory.
17527 finish_cmds=$lt_finish_cmds
17528
17529 # As "finish_cmds", except a single script fragment to be evaled but
17530 # not shown.
17531 finish_eval=$lt_finish_eval
17532
17533 # Whether we should hardcode library paths into libraries.
17534 hardcode_into_libs=$hardcode_into_libs
17535
17536 # Compile-time system search path for libraries.
17537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17538
17539 # Run-time system search path for libraries.
17540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17541
17542 # Whether dlopen is supported.
17543 dlopen_support=$enable_dlopen
17544
17545 # Whether dlopen of programs is supported.
17546 dlopen_self=$enable_dlopen_self
17547
17548 # Whether dlopen of statically linked programs is supported.
17549 dlopen_self_static=$enable_dlopen_self_static
17550
17551 # Commands to strip libraries.
17552 old_striplib=$lt_old_striplib
17553 striplib=$lt_striplib
17554
17555
17556 # The linker used to build libraries.
17557 LD=$lt_LD
17558
17559 # Commands used to build an old-style archive.
17560 old_archive_cmds=$lt_old_archive_cmds
17561
17562 # A language specific compiler.
17563 CC=$lt_compiler
17564
17565 # Is the compiler the GNU compiler?
17566 with_gcc=$GCC
17567
17568 # Compiler flag to turn off builtin functions.
17569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17570
17571 # How to pass a linker flag through the compiler.
17572 wl=$lt_lt_prog_compiler_wl
17573
17574 # Additional compiler flags for building library objects.
17575 pic_flag=$lt_lt_prog_compiler_pic
17576
17577 # Compiler flag to prevent dynamic linking.
17578 link_static_flag=$lt_lt_prog_compiler_static
17579
17580 # Does compiler simultaneously support -c and -o options?
17581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17582
17583 # Whether or not to add -lc for building shared libraries.
17584 build_libtool_need_lc=$archive_cmds_need_lc
17585
17586 # Whether or not to disallow shared libs when runtime libs are static.
17587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17588
17589 # Compiler flag to allow reflexive dlopens.
17590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17591
17592 # Compiler flag to generate shared objects directly from archives.
17593 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17594
17595 # Whether the compiler copes with passing no objects directly.
17596 compiler_needs_object=$lt_compiler_needs_object
17597
17598 # Create an old-style archive from a shared archive.
17599 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17600
17601 # Create a temporary old-style archive to link instead of a shared archive.
17602 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17603
17604 # Commands used to build a shared archive.
17605 archive_cmds=$lt_archive_cmds
17606 archive_expsym_cmds=$lt_archive_expsym_cmds
17607
17608 # Commands used to build a loadable module if different from building
17609 # a shared archive.
17610 module_cmds=$lt_module_cmds
17611 module_expsym_cmds=$lt_module_expsym_cmds
17612
17613 # Whether we are building with GNU ld or not.
17614 with_gnu_ld=$lt_with_gnu_ld
17615
17616 # Flag that allows shared libraries with undefined symbols to be built.
17617 allow_undefined_flag=$lt_allow_undefined_flag
17618
17619 # Flag that enforces no undefined symbols.
17620 no_undefined_flag=$lt_no_undefined_flag
17621
17622 # Flag to hardcode \$libdir into a binary during linking.
17623 # This must work even if \$libdir does not exist
17624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17625
17626 # If ld is used when linking, flag to hardcode \$libdir into a binary
17627 # during linking.  This must work even if \$libdir does not exist.
17628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17629
17630 # Whether we need a single "-rpath" flag with a separated argument.
17631 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17632
17633 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17634 # DIR into the resulting binary.
17635 hardcode_direct=$hardcode_direct
17636
17637 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17638 # DIR into the resulting binary and the resulting library dependency is
17639 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17640 # library is relocated.
17641 hardcode_direct_absolute=$hardcode_direct_absolute
17642
17643 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17644 # into the resulting binary.
17645 hardcode_minus_L=$hardcode_minus_L
17646
17647 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17648 # into the resulting binary.
17649 hardcode_shlibpath_var=$hardcode_shlibpath_var
17650
17651 # Set to "yes" if building a shared library automatically hardcodes DIR
17652 # into the library and all subsequent libraries and executables linked
17653 # against it.
17654 hardcode_automatic=$hardcode_automatic
17655
17656 # Set to yes if linker adds runtime paths of dependent libraries
17657 # to runtime path list.
17658 inherit_rpath=$inherit_rpath
17659
17660 # Whether libtool must link a program against all its dependency libraries.
17661 link_all_deplibs=$link_all_deplibs
17662
17663 # Fix the shell variable \$srcfile for the compiler.
17664 fix_srcfile_path=$lt_fix_srcfile_path
17665
17666 # Set to "yes" if exported symbols are required.
17667 always_export_symbols=$always_export_symbols
17668
17669 # The commands to list exported symbols.
17670 export_symbols_cmds=$lt_export_symbols_cmds
17671
17672 # Symbols that should not be listed in the preloaded symbols.
17673 exclude_expsyms=$lt_exclude_expsyms
17674
17675 # Symbols that must always be exported.
17676 include_expsyms=$lt_include_expsyms
17677
17678 # Commands necessary for linking programs (against libraries) with templates.
17679 prelink_cmds=$lt_prelink_cmds
17680
17681 # Specify filename containing input files.
17682 file_list_spec=$lt_file_list_spec
17683
17684 # How to hardcode a shared library path into an executable.
17685 hardcode_action=$hardcode_action
17686
17687 # The directories searched by this compiler when creating a shared library.
17688 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17689
17690 # Dependencies to place before and after the objects being linked to
17691 # create a shared library.
17692 predep_objects=$lt_predep_objects
17693 postdep_objects=$lt_postdep_objects
17694 predeps=$lt_predeps
17695 postdeps=$lt_postdeps
17696
17697 # The library search path used internally by the compiler when linking
17698 # a shared library.
17699 compiler_lib_search_path=$lt_compiler_lib_search_path
17700
17701 # ### END LIBTOOL CONFIG
17702
17703 _LT_EOF
17704
17705   case $host_os in
17706   aix3*)
17707     cat <<\_LT_EOF >> "$cfgfile"
17708 # AIX sometimes has problems with the GCC collect2 program.  For some
17709 # reason, if we set the COLLECT_NAMES environment variable, the problems
17710 # vanish in a puff of smoke.
17711 if test "X${COLLECT_NAMES+set}" != Xset; then
17712   COLLECT_NAMES=
17713   export COLLECT_NAMES
17714 fi
17715 _LT_EOF
17716     ;;
17717   esac
17718
17719
17720 ltmain="$ac_aux_dir/ltmain.sh"
17721
17722
17723   # We use sed instead of cat because bash on DJGPP gets confused if
17724   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17725   # text mode, it properly converts lines to CR/LF.  This bash problem
17726   # is reportedly fixed, but why not run on old versions too?
17727   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17728     || (rm -f "$cfgfile"; exit 1)
17729
17730   case $xsi_shell in
17731   yes)
17732     cat << \_LT_EOF >> "$cfgfile"
17733
17734 # func_dirname file append nondir_replacement
17735 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17736 # otherwise set result to NONDIR_REPLACEMENT.
17737 func_dirname ()
17738 {
17739   case ${1} in
17740     */*) func_dirname_result="${1%/*}${2}" ;;
17741     *  ) func_dirname_result="${3}" ;;
17742   esac
17743 }
17744
17745 # func_basename file
17746 func_basename ()
17747 {
17748   func_basename_result="${1##*/}"
17749 }
17750
17751 # func_dirname_and_basename file append nondir_replacement
17752 # perform func_basename and func_dirname in a single function
17753 # call:
17754 #   dirname:  Compute the dirname of FILE.  If nonempty,
17755 #             add APPEND to the result, otherwise set result
17756 #             to NONDIR_REPLACEMENT.
17757 #             value returned in "$func_dirname_result"
17758 #   basename: Compute filename of FILE.
17759 #             value retuned in "$func_basename_result"
17760 # Implementation must be kept synchronized with func_dirname
17761 # and func_basename. For efficiency, we do not delegate to
17762 # those functions but instead duplicate the functionality here.
17763 func_dirname_and_basename ()
17764 {
17765   case ${1} in
17766     */*) func_dirname_result="${1%/*}${2}" ;;
17767     *  ) func_dirname_result="${3}" ;;
17768   esac
17769   func_basename_result="${1##*/}"
17770 }
17771
17772 # func_stripname prefix suffix name
17773 # strip PREFIX and SUFFIX off of NAME.
17774 # PREFIX and SUFFIX must not contain globbing or regex special
17775 # characters, hashes, percent signs, but SUFFIX may contain a leading
17776 # dot (in which case that matches only a dot).
17777 func_stripname ()
17778 {
17779   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17780   # positional parameters, so assign one to ordinary parameter first.
17781   func_stripname_result=${3}
17782   func_stripname_result=${func_stripname_result#"${1}"}
17783   func_stripname_result=${func_stripname_result%"${2}"}
17784 }
17785
17786 # func_opt_split
17787 func_opt_split ()
17788 {
17789   func_opt_split_opt=${1%%=*}
17790   func_opt_split_arg=${1#*=}
17791 }
17792
17793 # func_lo2o object
17794 func_lo2o ()
17795 {
17796   case ${1} in
17797     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17798     *)    func_lo2o_result=${1} ;;
17799   esac
17800 }
17801
17802 # func_xform libobj-or-source
17803 func_xform ()
17804 {
17805   func_xform_result=${1%.*}.lo
17806 }
17807
17808 # func_arith arithmetic-term...
17809 func_arith ()
17810 {
17811   func_arith_result=$(( $* ))
17812 }
17813
17814 # func_len string
17815 # STRING may not start with a hyphen.
17816 func_len ()
17817 {
17818   func_len_result=${#1}
17819 }
17820
17821 _LT_EOF
17822     ;;
17823   *) # Bourne compatible functions.
17824     cat << \_LT_EOF >> "$cfgfile"
17825
17826 # func_dirname file append nondir_replacement
17827 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17828 # otherwise set result to NONDIR_REPLACEMENT.
17829 func_dirname ()
17830 {
17831   # Extract subdirectory from the argument.
17832   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17833   if test "X$func_dirname_result" = "X${1}"; then
17834     func_dirname_result="${3}"
17835   else
17836     func_dirname_result="$func_dirname_result${2}"
17837   fi
17838 }
17839
17840 # func_basename file
17841 func_basename ()
17842 {
17843   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17844 }
17845
17846
17847 # func_stripname prefix suffix name
17848 # strip PREFIX and SUFFIX off of NAME.
17849 # PREFIX and SUFFIX must not contain globbing or regex special
17850 # characters, hashes, percent signs, but SUFFIX may contain a leading
17851 # dot (in which case that matches only a dot).
17852 # func_strip_suffix prefix name
17853 func_stripname ()
17854 {
17855   case ${2} in
17856     .*) func_stripname_result=`$ECHO "X${3}" \
17857            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17858     *)  func_stripname_result=`$ECHO "X${3}" \
17859            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17860   esac
17861 }
17862
17863 # sed scripts:
17864 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17865 my_sed_long_arg='1s/^-[^=]*=//'
17866
17867 # func_opt_split
17868 func_opt_split ()
17869 {
17870   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17871   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17872 }
17873
17874 # func_lo2o object
17875 func_lo2o ()
17876 {
17877   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17878 }
17879
17880 # func_xform libobj-or-source
17881 func_xform ()
17882 {
17883   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17884 }
17885
17886 # func_arith arithmetic-term...
17887 func_arith ()
17888 {
17889   func_arith_result=`expr "$@"`
17890 }
17891
17892 # func_len string
17893 # STRING may not start with a hyphen.
17894 func_len ()
17895 {
17896   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17897 }
17898
17899 _LT_EOF
17900 esac
17901
17902 case $lt_shell_append in
17903   yes)
17904     cat << \_LT_EOF >> "$cfgfile"
17905
17906 # func_append var value
17907 # Append VALUE to the end of shell variable VAR.
17908 func_append ()
17909 {
17910   eval "$1+=\$2"
17911 }
17912 _LT_EOF
17913     ;;
17914   *)
17915     cat << \_LT_EOF >> "$cfgfile"
17916
17917 # func_append var value
17918 # Append VALUE to the end of shell variable VAR.
17919 func_append ()
17920 {
17921   eval "$1=\$$1\$2"
17922 }
17923
17924 _LT_EOF
17925     ;;
17926   esac
17927
17928
17929   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17930     || (rm -f "$cfgfile"; exit 1)
17931
17932   mv -f "$cfgfile" "$ofile" ||
17933     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17934   chmod +x "$ofile"
17935
17936
17937     cat <<_LT_EOF >> "$ofile"
17938
17939 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17940
17941 # The linker used to build libraries.
17942 LD=$lt_LD_CXX
17943
17944 # Commands used to build an old-style archive.
17945 old_archive_cmds=$lt_old_archive_cmds_CXX
17946
17947 # A language specific compiler.
17948 CC=$lt_compiler_CXX
17949
17950 # Is the compiler the GNU compiler?
17951 with_gcc=$GCC_CXX
17952
17953 # Compiler flag to turn off builtin functions.
17954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17955
17956 # How to pass a linker flag through the compiler.
17957 wl=$lt_lt_prog_compiler_wl_CXX
17958
17959 # Additional compiler flags for building library objects.
17960 pic_flag=$lt_lt_prog_compiler_pic_CXX
17961
17962 # Compiler flag to prevent dynamic linking.
17963 link_static_flag=$lt_lt_prog_compiler_static_CXX
17964
17965 # Does compiler simultaneously support -c and -o options?
17966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17967
17968 # Whether or not to add -lc for building shared libraries.
17969 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17970
17971 # Whether or not to disallow shared libs when runtime libs are static.
17972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17973
17974 # Compiler flag to allow reflexive dlopens.
17975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17976
17977 # Compiler flag to generate shared objects directly from archives.
17978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17979
17980 # Whether the compiler copes with passing no objects directly.
17981 compiler_needs_object=$lt_compiler_needs_object_CXX
17982
17983 # Create an old-style archive from a shared archive.
17984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17985
17986 # Create a temporary old-style archive to link instead of a shared archive.
17987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17988
17989 # Commands used to build a shared archive.
17990 archive_cmds=$lt_archive_cmds_CXX
17991 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17992
17993 # Commands used to build a loadable module if different from building
17994 # a shared archive.
17995 module_cmds=$lt_module_cmds_CXX
17996 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17997
17998 # Whether we are building with GNU ld or not.
17999 with_gnu_ld=$lt_with_gnu_ld_CXX
18000
18001 # Flag that allows shared libraries with undefined symbols to be built.
18002 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18003
18004 # Flag that enforces no undefined symbols.
18005 no_undefined_flag=$lt_no_undefined_flag_CXX
18006
18007 # Flag to hardcode \$libdir into a binary during linking.
18008 # This must work even if \$libdir does not exist
18009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18010
18011 # If ld is used when linking, flag to hardcode \$libdir into a binary
18012 # during linking.  This must work even if \$libdir does not exist.
18013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18014
18015 # Whether we need a single "-rpath" flag with a separated argument.
18016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18017
18018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18019 # DIR into the resulting binary.
18020 hardcode_direct=$hardcode_direct_CXX
18021
18022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18023 # DIR into the resulting binary and the resulting library dependency is
18024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18025 # library is relocated.
18026 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18027
18028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18029 # into the resulting binary.
18030 hardcode_minus_L=$hardcode_minus_L_CXX
18031
18032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18033 # into the resulting binary.
18034 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18035
18036 # Set to "yes" if building a shared library automatically hardcodes DIR
18037 # into the library and all subsequent libraries and executables linked
18038 # against it.
18039 hardcode_automatic=$hardcode_automatic_CXX
18040
18041 # Set to yes if linker adds runtime paths of dependent libraries
18042 # to runtime path list.
18043 inherit_rpath=$inherit_rpath_CXX
18044
18045 # Whether libtool must link a program against all its dependency libraries.
18046 link_all_deplibs=$link_all_deplibs_CXX
18047
18048 # Fix the shell variable \$srcfile for the compiler.
18049 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18050
18051 # Set to "yes" if exported symbols are required.
18052 always_export_symbols=$always_export_symbols_CXX
18053
18054 # The commands to list exported symbols.
18055 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18056
18057 # Symbols that should not be listed in the preloaded symbols.
18058 exclude_expsyms=$lt_exclude_expsyms_CXX
18059
18060 # Symbols that must always be exported.
18061 include_expsyms=$lt_include_expsyms_CXX
18062
18063 # Commands necessary for linking programs (against libraries) with templates.
18064 prelink_cmds=$lt_prelink_cmds_CXX
18065
18066 # Specify filename containing input files.
18067 file_list_spec=$lt_file_list_spec_CXX
18068
18069 # How to hardcode a shared library path into an executable.
18070 hardcode_action=$hardcode_action_CXX
18071
18072 # The directories searched by this compiler when creating a shared library.
18073 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18074
18075 # Dependencies to place before and after the objects being linked to
18076 # create a shared library.
18077 predep_objects=$lt_predep_objects_CXX
18078 postdep_objects=$lt_postdep_objects_CXX
18079 predeps=$lt_predeps_CXX
18080 postdeps=$lt_postdeps_CXX
18081
18082 # The library search path used internally by the compiler when linking
18083 # a shared library.
18084 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18085
18086 # ### END LIBTOOL TAG CONFIG: CXX
18087 _LT_EOF
18088
18089  ;;
18090
18091   esac
18092 done # for ac_tag
18093
18094
18095 as_fn_exit 0
18096 _ACEOF
18097 ac_clean_files=$ac_clean_files_save
18098
18099 test $ac_write_fail = 0 ||
18100   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18101
18102
18103 # configure is writing to config.log, and then calls config.status.
18104 # config.status does its own redirection, appending to config.log.
18105 # Unfortunately, on DOS this fails, as config.log is still kept open
18106 # by configure, so config.status won't be able to write to it; its
18107 # output is simply discarded.  So we exec the FD to /dev/null,
18108 # effectively closing config.log, so it can be properly (re)opened and
18109 # appended to by config.status.  When coming back to configure, we
18110 # need to make the FD available again.
18111 if test "$no_create" != yes; then
18112   ac_cs_success=:
18113   ac_config_status_args=
18114   test "$silent" = yes &&
18115     ac_config_status_args="$ac_config_status_args --quiet"
18116   exec 5>/dev/null
18117   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18118   exec 5>>config.log
18119   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18120   # would make configure fail if this is the last instruction.
18121   $ac_cs_success || as_fn_exit $?
18122 fi
18123 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18124   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18125 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18126 fi
18127